/* StationLaws.com - Premium Dark Editorial Design Engine */
:root {
  --gold:         #D97706;
  --gold-hover:   #F59E0B;
  --gold-glow:    rgba(217, 119, 6, 0.24);
  --gold-subtle:  rgba(217, 119, 6, 0.08);

  --dark:         #080E1A;
  --bg-page:      #080E1A;
  --bg-surface:   #111827;
  --card:         #111827;
  --card-hover:   #162032;
  --border:       rgba(255, 255, 255, 0.10);
  --border-focus: rgba(217, 119, 6, 0.50);

  --text:         #FFFFFF;
  --text-body:    #F1F5F9;
  --muted:        #CBD5E1;
  --muted-light:  #94A3B8;

  --nav-bg:       rgba(8, 14, 26, 0.95);
  --nav-text:     #FFFFFF;
  --nav-border:   rgba(255, 255, 255, 0.08);

  --font-h:       'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-b:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-m:       'JetBrains Mono', monospace;

  --r-sm:         6px;
  --r:            12px;
  --r-lg:         16px;
  --shadow:       0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg:    0 16px 36px rgba(0, 0, 0, 0.55);
  --ease:         all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-b);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-hover);
  text-decoration: none;
  transition: var(--ease);
}
a:hover {
  color: #FBBF24;
  text-decoration: none;
}

/* Statutory Announcement Notice Bar */
.alert-bar {
  background: linear-gradient(90deg, #78350F 0%, #92400E 100%);
  color: #FEF3C7;
  font-size: 13px;
  padding: 10px 20px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

/* Top Sticky Navigation */
header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  transition: transform 0.15s ease;
}
.brand:hover { transform: translateY(-1px); }
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.6px;
  line-height: 1.1;
}
.brand-name span {
  color: var(--gold-hover);
  margin-left: 2px;
}
.brand-tag {
  font-family: var(--font-b);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--muted-light);
  letter-spacing: 1.5px;
  margin-top: 3px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}
nav a {
  color: var(--muted);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: var(--ease);
}
nav a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}
.header-cta {
  background: var(--gold) !important;
  color: #FFFFFF !important;
  padding: 8px 18px !important;
  border-radius: var(--r-sm) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px var(--gold-glow);
}
.header-cta:hover {
  background: var(--gold-hover) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* Master Layout Grid */
.main-container {
  max-width: 1260px;
  margin: 36px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

/* Hero Featured Section */
.hero-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.featured-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--ease);
  position: relative;
  box-shadow: var(--shadow);
}
.featured-card:hover {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #090F1D;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.featured-card:hover .img-wrap img,
.article-card:hover .img-wrap img {
  transform: scale(1.05);
}
.badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 15, 29, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold-hover);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.featured-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted-light);
  margin-bottom: 10px;
  font-family: var(--font-m);
}
.featured-title {
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}
.featured-title a { color: var(--text); }
.featured-card:hover .featured-title a { color: var(--gold-hover); }

.featured-excerpt {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Secondary Featured Stack */
.featured-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stack-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  transition: var(--ease);
  box-shadow: var(--shadow);
}
.stack-card:hover {
  border-color: rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.stack-img {
  width: 140px;
  min-width: 140px;
  height: 100%;
  position: relative;
  background: #090F1D;
  overflow: hidden;
}
.stack-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.stack-card:hover .stack-img img {
  transform: scale(1.06);
}
.stack-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stack-title {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}
.stack-title a { color: var(--text); }
.stack-card:hover .stack-title a { color: var(--gold-hover); }

/* Category Pills Bar */
.category-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 20px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.category-pill {
  padding: 6px 14px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
  transition: var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.category-pill:hover {
  background: var(--card-hover);
  border-color: var(--gold-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.category-pill.active {
  background: rgba(217, 119, 6, 0.15);
  border-color: var(--gold);
  color: var(--gold-hover);
}

/* Article Feed Grid (Supports both .articles-grid and .article-grid) */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.section-title {
  font-family: var(--font-h);
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--gold);
  border-radius: 2px;
}

.articles-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--ease);
  box-shadow: var(--shadow);
}
.article-card:hover {
  border-color: rgba(217, 119, 6, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card .img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #090F1D;
}
.article-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.article-card .card-content {
  padding: 18px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.article-card .card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted-light);
  margin-bottom: 8px;
  font-family: var(--font-m);
}
.article-card .card-title {
  font-family: var(--font-h);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-title a { color: var(--text); }
.article-card:hover .card-title a { color: var(--gold-hover); }

.article-card .card-excerpt {
  color: var(--muted-light);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-hover);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  letter-spacing: 0.3px;
}
.read-more:hover {
  color: #FBBF24;
  gap: 8px;
}

/* Sidebar & Sticky Helpline */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 85px;
  align-self: start;
}
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow);
}

/* Helpline Intake Form Styling (Fixes squished inputs & broken layout) */
.helpline-widget, .urgent-form-widget {
  background: linear-gradient(180deg, #131E30 0%, #0A1120 100%);
  border: 1px solid rgba(217, 119, 6, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.badge-urgent, .urgent-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.helpline-widget h3 {
  font-family: var(--font-h);
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 8px;
}
.helpline-widget > p {
  font-size: 13px;
  color: var(--muted-light);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Form Groups & Inputs (High-Contrast Zero Blend-In Guarantee) */
.helpline-form, .lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.form-group label {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #FFFFFF !important;
  margin-bottom: 2px !important;
}
.form-group input,
.form-group select,
.form-group textarea,
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100% !important;
  display: block !important;
  background: #0B1324 !important;
  border: 1.5px solid #334155 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  color: #FFFFFF !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  font-family: var(--font-b) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #94A3B8 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none !important;
  border-color: #F59E0B !important;
  background: #0F1A34 !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35) !important;
  color: #FFFFFF !important;
}
.form-group select {
  cursor: pointer !important;
  color: #FFFFFF !important;
}
.form-group select option {
  background-color: #0B1324 !important;
  color: #FFFFFF !important;
  font-size: 14.5px !important;
  padding: 8px !important;
}
.form-group textarea {
  resize: vertical !important;
  min-height: 74px !important;
  line-height: 1.5 !important;
}

.submit-btn, .lead-form button {
  width: 100% !important;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 14px !important;
  border-radius: 8px !important;
  font-family: var(--font-h) !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35) !important;
  margin-top: 6px !important;
}
.submit-btn:hover, .lead-form button:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5) !important;
}
.privacy-note {
  font-size: 11.5px !important;
  color: #CBD5E1 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  margin-top: 8px !important;
}
.form-status {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  margin-top: 10px;
}

/* Trending List */
.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trending-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trending-num {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.trending-list a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
}
.trending-list a:hover { color: var(--gold-hover); }
.trending-meta {
  font-size: 11px;
  color: var(--muted-light);
  font-family: var(--font-m);
}

/* Single Article Styling */
.article-header { margin-bottom: 28px; }
.article-header h1 {
  font-family: var(--font-h);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text);
  margin: 14px 0;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  background: #090F1D;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.summary-box {
  background: rgba(19, 30, 48, 0.85);
  border-left: 4px solid var(--gold);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px;
  margin-bottom: 32px;
}
.summary-title {
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-hover);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.summary-box p {
  color: #F1F5F9;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.content-body {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-body);
}
.content-body h2 {
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 36px 0 14px;
  line-height: 1.3;
}
.content-body h3 {
  font-family: var(--font-h);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 26px 0 10px;
}
.content-body p { margin-bottom: 20px; }
.content-body ul, .content-body ol { margin: 0 0 22px 24px; }
.content-body li { margin-bottom: 10px; color: var(--text-body); }
.content-body blockquote {
  background: rgba(9, 15, 29, 0.7);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 24px 0;
  color: #F1F5F9;
  font-style: italic;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Callout Box */
.callout-box {
  background: linear-gradient(135deg, rgba(22, 32, 50, 0.95) 0%, rgba(10, 17, 32, 0.95) 100%);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--r);
  padding: 24px;
  margin: 36px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.callout-box h4 {
  font-family: var(--font-h);
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.callout-box p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.callout-btn {
  display: inline-block;
  background: var(--gold);
  color: #FFFFFF !important;
  font-family: var(--font-h);
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  box-shadow: 0 4px 14px var(--gold-glow);
}
.callout-btn:hover { background: var(--gold-hover); }

/* Footer */
footer {
  background: #040810;
  border-top: 1px solid var(--border);
  color: var(--muted-light);
  padding: 52px 24px 28px;
  margin-top: 72px;
  font-size: 14px;
}
.footer-container {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.footer-col h5 {
  font-family: var(--font-h);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); font-size: 13.5px; }
.footer-col a:hover { color: var(--gold-hover); }
.disclaimer {
  max-width: 1260px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.6;
  color: #64748B;
  text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sidebar {
    position: static;
  }
  .hero-featured {
    grid-template-columns: 1fr;
  }
  .featured-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .articles-grid, .article-grid {
    grid-template-columns: 1fr;
  }
  .featured-stack {
    grid-template-columns: 1fr;
  }
  nav ul {
    display: none;
  }
  .header-container {
    justify-content: space-between;
  }
}
