/* ================================================
   GGBGC – Good Guys Bad Guys Contractors
   Design System v2.0
   Brand: Deep Blue #1a2b6b | Teal #1a4a5a | Silver #8a9bb0 | Navy #0d1b3e
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1e3a8a;
  --blue-dark:  #0d1b3e;
  --teal:       #1a4a5a;
  --teal-mid:   #2a7a9a;
  --teal-light: #7dd3fc;
  --silver:     #8a9bb0;
  --white:      #ffffff;
  --off-white:  #f8f9fc;
  --light-gray: #e2e8f0;
  --border:     #e2e8f0;
  --text:       #1a2b6b;
  --text-mid:   #475569;
  --text-light: #8a9bb0;
  --danger:     #dc2626;
  --success:    #16a34a;
  --warning:    #d97706;
  --shadow:     0 2px 12px rgba(26,43,107,.07);
  --shadow-lg:  0 12px 40px rgba(26,43,107,.13);
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAVIGATION ─────────────────────────────────── */
.nav {
  background: var(--blue);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 180px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: .3px;
  white-space: nowrap;
}
.nav-brand-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
@media(max-width: 900px) {
  .nav-logo-text { display: none; }
  .nav-logo-img { width: 140px; height: auto; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  padding: .5rem 1.2rem !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: #1a5c70 !important; }
.nav-logout { background: #7f1d1d !important; color: #fff !important; }
.nav-logout:hover { background: #991b1b !important; }
.nav-user { color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 600; padding: .5rem .9rem; white-space: nowrap; }
.nav-admin-link { background: rgba(125,211,252,.15) !important; color: var(--teal-light) !important; border: 1px solid rgba(125,211,252,.3) !important; }
.nav-admin-link:hover { background: rgba(125,211,252,.25) !important; }
.hamburger{display:none !important;flex-direction:column;gap:6px;cursor:pointer;padding:10px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);border-radius:8px}
.hamburger span{display:block;width:26px;height:2px;background:#fff;border-radius:2px;transition:all .3s}
@media(max-width:768px){
  .nav img[alt="GGBGC Logo"]{width:120px !important;max-width:120px !important}
  .nav-links{display:none !important;flex-direction:column;position:fixed;top:80px;left:0;right:0;background:var(--blue);padding:1rem 2rem;gap:0;border-top:1px solid rgba(255,255,255,.1);z-index:999;box-shadow:0 8px 24px rgba(0,0,0,.3)}
  .nav-links.open{display:flex !important}
  .nav-links li{width:100%}
  .nav-links a{display:block;padding:.85rem 0;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0;font-size:1rem;color:rgba(255,255,255,.85)}
  .nav-links a:hover,.nav-links a.active{color:#fff;background:transparent}
  .hamburger{display:flex !important}
}

/* ── AD SPACES ──────────────────────────────────── */
.ad-space, .ad-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .8rem 2rem;
  text-align: center;
}
.ad-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: .5rem 2rem;
  font-size: .72rem;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-width: 300px;
  min-height: 48px;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .8rem 1.8rem;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  border: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  box-shadow: 0 4px 18px rgba(26,43,107,.28);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(26,43,107,.38); }
.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,74,90,.28);
}
.btn-teal:hover { background: #1a5c70; }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: .45rem 1.1rem; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; border-radius: 14px; }

/* ── HERO SECTION ───────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--blue) 0%, #1a3a5a 100%);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illus-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 160px; display: flex; gap: 0; opacity: .2; pointer-events: none;
}
.hero-illus-strip > div { flex: 1; height: 160px; overflow: hidden; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,43,107,.8) 0%, rgba(26,43,107,.25) 55%, rgba(26,43,107,.9) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 1rem; font-weight: 600;
  padding: .5rem 1.2rem .5rem .5rem;
  border-radius: 100px; margin-bottom: 1.75rem;
  backdrop-filter: blur(6px);
}
.hero-badge-logo {
  height: 42px; width: 42px;
  border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.hero-badge-logo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--teal-light); }
.hero p {
  color: rgba(255,255,255,.72); font-size: 1rem;
  max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── SEARCH BAR ─────────────────────────────────── */
.search-bar {
  display: flex; background: #fff;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-width: 600px; margin: 0 auto 2rem;
}
.search-bar input {
  flex: 1; border: none; outline: none;
  padding: 1rem 1.4rem; font-size: 1rem;
  font-family: 'DM Sans', sans-serif; color: var(--blue);
}
.search-bar input::placeholder { color: #94a3b8; }
.search-btn {
  background: var(--teal); color: #fff; border: none;
  padding: 1rem 1.8rem; font-size: .95rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background .2s;
}
.search-btn:hover { background: #1a5c70; }
@media(max-width: 640px) { .search-bar { flex-direction: column; } }

/* ── STATS BAR ──────────────────────────────────── */
.stats {
  background: var(--white); padding: 1.75rem 2rem;
  display: flex; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--blue);
}
.stat-label { font-size: .8rem; color: var(--silver); margin-top: 2px; }

/* ── WARNING BAR ────────────────────────────────── */
.warning-bar {
  background: #fff7ed;
  border-top: 3px solid #f59e0b;
  border-bottom: 1px solid #fed7aa;
  padding: .9rem 2rem;
}
.warning-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
}
.warning-inner p { font-size: .84rem; color: #9a3412; line-height: 1.5; }
.warning-inner a { color: var(--teal); font-weight: 600; }

/* ── SECTION TITLES ─────────────────────────────── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700; color: var(--blue);
}
.section-title::after {
  content: ''; display: block; width: 44px; height: 4px;
  background: var(--teal); border-radius: 2px; margin-top: 8px;
}

/* ── SHOWCASE (HOME) ────────────────────────────── */
.showcase { padding: 3rem 2rem; background: var(--off-white); }
.showcase-inner { max-width: 1100px; margin: 0 auto; }
.section-head { margin-bottom: 1.75rem; }
.section-sub { color: var(--silver); font-size: .9rem; margin-top: .6rem; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.25rem; }
.showcase-card {
  border-radius: 14px; overflow: hidden; background: var(--white);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.showcase-illus { width: 100%; height: 160px; overflow: hidden; display: flex; align-items: center; }
.showcase-illus svg { width: 100%; height: 100%; }
.showcase-label { padding: .75rem 1rem; font-size: .88rem; font-weight: 700; color: var(--blue); }
.showcase-sub { padding: 0 1rem .75rem; font-size: .78rem; color: var(--silver); line-height: 1.5; }

/* ── STORY CARDS ────────────────────────────────── */
.stories-section { padding: 3rem 2rem; }
.stories-section-inner { max-width: 1100px; margin: 0 auto; }
.section-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 1.75rem;
  flex-wrap: wrap; gap: 1rem;
}
.view-all {
  color: var(--teal); text-decoration: none;
  font-weight: 600; font-size: .9rem; margin-top: .4rem;
}
.stories-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(310px,1fr)); gap: 1.5rem; }
.story-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-card-illus { width: 100%; height: 155px; overflow: hidden; display: flex; align-items: center; }
.story-card-illus svg { width: 100%; height: 100%; }
.story-card-body { padding: 1.2rem; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .55rem; gap: .5rem; }
.contractor-name { font-size: 1.02rem; font-weight: 700; color: var(--blue); }
.company-name { font-size: .8rem; color: var(--silver); margin-top: 2px; }
.card-meta { display: flex; gap: .7rem; font-size: .78rem; color: var(--silver); margin-bottom: .55rem; flex-wrap: wrap; }
.amount-lost { color: var(--danger) !important; font-weight: 700 !important; }
.card-desc {
  font-size: .83rem; color: var(--text-mid); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .9rem;
}
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-date { font-size: .73rem; color: #94a3b8; }

/* ── VOTE BUTTONS ───────────────────────────────── */
.vote-btns, .vote-buttons { display: flex; gap: .5rem; }
.vote-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 600;
  padding: .32rem .68rem; border-radius: 7px;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.vote-up { background: #dcfce7; color: #166534; }
.vote-up:hover { background: #bbf7d0; }
.vote-down { background: #fee2e2; color: #991b1b; }
.vote-down:hover { background: #fecaca; }

/* ── ISSUE BADGES ───────────────────────────────── */
.issue-badge, .badge {
  font-size: .68rem; font-weight: 700;
  padding: .22rem .62rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.badge-fraud    { background: #fee2e2; color: #991b1b; }
.badge-noshow   { background: #fef3c7; color: #92400e; }
.badge-damage   { background: #ede9fe; color: #5b21b6; }
.badge-overcharge { background: #dbeafe; color: #1e40af; }
.badge-default  { background: #f1f5f9; color: #475569; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-good     { background: #dcfce7; color: #15803d; }

/* ── BAD CONTRACTOR EXPOSÉS ──────────────────────── */
.bad-section {
  padding: 3rem 2rem;
  background: linear-gradient(180deg, #fff5f5 0%, #f8f9fc 100%);
  border-top: 3px solid #fca5a5;
}
.bad-section-inner { max-width: 1100px; margin: 0 auto; }
.bad-title::after { background: #dc2626 !important; }
.btn-bad-cta {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  border: none;
  padding: .65rem 1.4rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(220,38,38,.25);
  white-space: nowrap;
}
.btn-bad-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,38,38,.35); }
.bad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.bad-card {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  border-top: 4px solid #ef4444;
  cursor: pointer;
}
.bad-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(220,38,38,.13); }
.bad-card-header {
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  padding: 1.1rem 1.2rem .8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.bad-contractor-name { font-size: 1.02rem; font-weight: 700; color: #7f1d1d; }
.bad-company-name { font-size: .8rem; color: #991b1b; margin-top: 2px; }
.bad-card-body { padding: 1rem 1.2rem 1.2rem; }
.bad-card-meta { display: flex; gap: .7rem; font-size: .78rem; color: var(--silver); margin-bottom: .65rem; flex-wrap: wrap; }
.bad-amount { color: #dc2626 !important; font-weight: 700 !important; }
.bad-card-desc {
  font-size: .84rem; color: var(--text-mid); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .9rem;
}
.bad-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid #fee2e2;
  gap: .75rem;
  flex-wrap: wrap;
}
.bad-vote-label { font-size: .75rem; font-weight: 600; color: var(--silver); }
.bad-vote-btns { display: flex; gap: .5rem; }
.bad-vote-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: .88rem; font-weight: 700;
  padding: .45rem .9rem; border-radius: 8px;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.bad-vote-up   { background: #dcfce7; color: #166534; border: 1.5px solid #bbf7d0; }
.bad-vote-up:hover { background: #bbf7d0; transform: scale(1.06); }
.bad-vote-down { background: #fee2e2; color: #991b1b; border: 1.5px solid #fecaca; }
.bad-vote-down:hover { background: #fecaca; transform: scale(1.06); }

/* ── GOOD CONTRACTOR SPOTLIGHT ───────────────────── */
.good-section {
  padding: 3rem 2rem;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8f9fc 100%);
  border-top: 3px solid #86efac;
}
.good-section-inner { max-width: 1100px; margin: 0 auto; }
.good-title::after { background: #16a34a !important; }
.btn-good-cta {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border: none;
  padding: .65rem 1.4rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(22,163,74,.25);
  white-space: nowrap;
}
.btn-good-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,.35); }
.good-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.good-card {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  border-top: 4px solid #22c55e;
}
.good-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(22,163,74,.13); }
.good-card-header {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  padding: 1.1rem 1.2rem .8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.good-contractor-name { font-size: 1.02rem; font-weight: 700; color: #14532d; }
.good-company-name { font-size: .8rem; color: #166534; margin-top: 2px; }
.good-card-body { padding: 1rem 1.2rem 1.2rem; }
.good-card-meta { display: flex; gap: .7rem; font-size: .78rem; color: var(--silver); margin-bottom: .65rem; flex-wrap: wrap; }
.good-card-desc {
  font-size: .84rem; color: var(--text-mid); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .9rem;
}
.good-card-footer { display: flex; justify-content: space-between; align-items: center; }
.good-vote-btns { display: flex; gap: .5rem; }
.good-vote-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: .82rem; font-weight: 600;
  padding: .38rem .75rem; border-radius: 8px;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.good-vote-up   { background: #dcfce7; color: #166534; }
.good-vote-up:hover { background: #bbf7d0; transform: scale(1.05); }
.good-vote-down { background: #fee2e2; color: #991b1b; }
.good-vote-down:hover { background: #fecaca; transform: scale(1.05); }
.good-star-rating { color: #f59e0b; font-size: .9rem; letter-spacing: 1px; }

/* ── HOW IT WORKS ───────────────────────────────── */
.how-section { background: var(--blue); padding: 4rem 2rem; }
.how-inner { max-width: 1000px; margin: 0 auto; }
.how-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700; color: #fff;
  text-align: center; margin-bottom: 2.5rem;
}
.how-title span { color: var(--teal-light); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.75rem; }
.step {
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .2s;
}
.step:hover { transform: translateY(-4px); }
.step-illus { width: 100%; height: 130px; border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; display: flex; align-items: center; }
.step-illus svg { width: 100%; height: 100%; }
.step h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: rgba(255,255,255,.62); font-size: .84rem; line-height: 1.6; }

/* ── PAGE HEADER ────────────────────────────────── */
.page-header { background: var(--blue); padding: 2.5rem 2rem; }
.page-header h1 {
  font-family: 'Playfair Display', serif;
  color: #fff; font-size: 2rem; margin-bottom: .5rem;
}
.page-header p { color: rgba(255,255,255,.65); }

/* ── SEARCH HERO ────────────────────────────────── */
.search-hero { background: var(--blue); padding: 2rem 2rem 1.5rem; }
.search-hero h1 {
  font-family: 'Playfair Display', serif;
  color: #fff; font-size: 1.7rem; margin-bottom: 1rem;
}
.search-hero h1 span { color: var(--teal-light); }
.search-hero .search-bar { max-width: 680px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }

/* ── FILTERS BAR ────────────────────────────────── */
.filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .9rem 2rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.filter-label { font-size: .82rem; font-weight: 600; color: var(--silver); }
.filter-select {
  border: 1px solid var(--border); border-radius: 8px;
  padding: .4rem .8rem; font-size: .82rem;
  font-family: 'DM Sans', sans-serif; color: var(--blue);
  outline: none; cursor: pointer; background: var(--white);
}
.filter-select:focus { border-color: var(--teal); }

/* ── SEARCH RESULTS LIST ────────────────────────── */
.results-container { max-width: 1000px; margin: 0 auto; padding: 1.75rem 2rem; }
.results-count { font-size: .88rem; color: var(--silver); margin-bottom: 1.25rem; font-weight: 500; }
.results-count strong { color: var(--blue); }
/* Horizontal story cards (search results) */
.story-card.horizontal { display: flex; border-radius: 16px; margin-bottom: 1rem; }
.story-card.horizontal:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,43,107,.1); }
.story-card.horizontal .story-card-illus { width: 180px; flex-shrink: 0; height: auto; }
.story-card.horizontal .story-card-body { padding: 1.2rem; flex: 1; }
.card-description {
  font-size: .84rem; color: var(--text-mid); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .9rem;
}
.view-btn {
  background: var(--teal); color: #fff; border: none;
  padding: .45rem .95rem; border-radius: 8px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background .2s;
}
.view-btn:hover { background: #1a5c70; }
@media(max-width: 640px) {
  .story-card.horizontal { flex-direction: column; }
  .story-card.horizontal .story-card-illus { width: 100%; height: 140px; }
}

/* ── FORM ELEMENTS ──────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--blue); margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: .75rem 1rem; font-size: .9rem;
  font-family: 'DM Sans', sans-serif; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s; background: var(--white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,74,90,.08);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ── CARDS ──────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ── DIRECTORY TABLE ────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--silver);
  padding: .75rem 1rem; border-bottom: 1px solid var(--border);
  background: var(--off-white);
}
td {
  padding: .9rem 1rem; border-bottom: 1px solid var(--border);
  font-size: .875rem; vertical-align: middle; color: var(--text-mid);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8f9fc; }

/* ── EMPTY STATE ────────────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  background: var(--white); border-radius: 20px; border: 1px solid var(--border);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; color: var(--blue); margin-bottom: .5rem; }
.empty-state p { color: var(--silver); margin-bottom: 1.5rem; }
.btn-primary-inline {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; border: none;
  padding: .8rem 1.8rem; border-radius: 12px;
  font-size: .95rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}

/* ── FOOTER ─────────────────────────────────────── */
footer, .footer {
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 2.5rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: .75rem; }
.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-desc { color: rgba(255,255,255,.45); font-size: .85rem; line-height: 1.6; }
.footer-col h4 {
  color: rgba(255,255,255,.88); font-size: .82rem; font-weight: 700;
  margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .6px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.45); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom span { color: rgba(255,255,255,.28); font-size: .8rem; }
/* Simple footer (contact/privacy/legal pages) */
.footer-simple { background: var(--blue); padding: 2rem; text-align: center; margin-top: 3rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .85rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--teal-light); }
.footer-copy { color: rgba(255,255,255,.25); font-size: .8rem; }
@media(max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; }
}

/* ── LAYOUT UTILITIES ───────────────────────────── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 2rem; }
.section      { padding: 3rem 2rem; }
.section-inner{ max-width: 1100px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.mb-8  { margin-bottom: .5rem; }
.mb-16 { margin-bottom: 1rem; }
.mb-24 { margin-bottom: 1.5rem; }
.mt-12 { margin-top: .75rem; }
.mt-16 { margin-top: 1rem; }
.mt-24 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.fw-700 { font-weight: 700; }
.text-blue { color: var(--blue); }
.text-teal { color: var(--teal); }
.text-silver { color: var(--silver); }
.text-danger { color: var(--danger); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PRINT / PDF OVERLAP FIX ────────────────────── */
@media print {
  * { overflow: visible !important; }
  body { font-size: 12pt; line-height: 1.5; color: #000; background: #fff; }
  nav, .nav, footer, .footer, .ad-space, .ad-bar, .btn, .vote-btn, .vote-btns { display: none !important; }
  .card, .legal-card, .story-card { page-break-inside: avoid; break-inside: avoid; border: 1px solid #ccc; box-shadow: none; margin-bottom: 1rem; }
  h1, h2, h3 { page-break-after: avoid; break-after: avoid; }
  .hero { min-height: auto; padding: 1rem; }
  .hero-overlay, .hero-illus-strip { display: none; }
  a { text-decoration: underline; color: #000; }
  img { max-width: 100%; }
  .section-title::after { background: #1a4a5a; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
