/*
Theme Name: FindGovtJobs Theme
Theme URI: https://findgovtjobs.org/
Description: A premium, highly editorial, mobile-first Indian Government Jobs & Exam Intelligence layout, inspired by SarkariResult and FreeJobAlert, but modernised with elegant typography and clean HSL design tokens.
Author: Antigravity AI
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: govtjob-theme
*/

/* ━━━ DESIGN TOKENS — Indian editorial, bold & warm ━━━ */
:root {
  /* Brand: navy + saffron + cream — Indian flag inspired */
  --navy:         #0B1F45;
  --navy-mid:     #132850;
  --navy-light:   #1E3A6E;
  --saffron:      #FF6B00;
  --saffron-soft: #FF8C33;
  --saffron-pale: #FFF3E8;
  --cream:        #FDF8F0;
  --cream-dark:   #F5EDD8;
  --green:        #138808;          /* tricolour green */
  --green-soft:   #E0EFDB;

  /* Neutrals */
  --ink:          #0B1F45;          /* same as navy for visual cohesion */
  --ink-muted:    #5A6A8A;
  --ink-faint:    #8A93AB;
  --line:         #E2DDD3;
  --line-strong:  #C9C2B5;
  --white:        #FFFFFF;

  /* Status */
  --warn:         #C62828;
  --warn-soft:    #FFEBEE;
  --new-soft:     #DEEBE4;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow-card: 0 1px 2px rgba(11,31,69,.04);
  --shadow-card-hover: 0 6px 20px rgba(11,31,69,.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Skip link & focus */
.skip-link {
  position: absolute; top: -40px; left: 16px;
  background: var(--navy); color: var(--cream);
  padding: 8px 14px; border-radius: 4px;
  text-decoration: none; font-weight: 500; font-size: 14px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }
*:focus-visible {
  outline: 2.5px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 4px;
}

.font-display { font-family: var(--font-display); font-optical-sizing: auto; }

/* ─── EDITORIAL WORDMARK ───────────────────────────────── */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.018em;
}
.wordmark-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 24;
  font-size: 22px;
  color: var(--cream);
}
.wordmark-dot {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--saffron);
  line-height: 0;
  margin: 0 1px;
  transform: translateY(2px);
  display: inline-block;
}
.wordmark-tld {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: rgba(253,248,240,0.6);
}
/* Footer variant — on cream */
.wordmark-footer .wordmark-name { color: var(--ink); font-size: 19px; }
.wordmark-footer .wordmark-dot  { font-size: 22px; transform: translateY(1px); }
.wordmark-footer .wordmark-tld  { color: var(--ink-muted); font-size: 14px; }
.wordmark:hover .wordmark-dot { color: var(--saffron-soft); }

/* ─── TOP BAR (tricolour strip) ─────────────────────────── */
.top-bar {
  background: var(--saffron);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 0;
}
.top-bar a { color: var(--white); text-decoration: none; opacity: 0.92; }
.top-bar a:hover { opacity: 1; }

/* ─── HEADER ────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
.nav-link {
  color: rgba(253,248,240,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 5px;
  transition: all .15s var(--ease);
}
.nav-link:hover { color: var(--cream); background: rgba(255,255,255,.07); }
.nav-link.active { color: var(--cream); background: rgba(255,107,0,.18); }

/* ─── LIVE TICKER (green pill + scrolling text) ─────────── */
.live-bar {
  background: var(--navy-mid);
  color: rgba(253,248,240,0.88);
  padding: 8px 0;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}
.live-pill {
  background: var(--green);
  color: var(--white);
  padding: 3px 11px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 24px;
}
.live-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.live-ticker-wrap { overflow: hidden; flex: 1; padding-right: 24px; }
.live-ticker {
  white-space: nowrap;
  display: inline-block;
  animation: ticker-slide 60s linear infinite;
}
.live-ticker:hover { animation-play-state: paused; }
@keyframes ticker-slide {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #1A4080 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
/* Decorative plus-pattern overlay (subtle) */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
/* Glow blob — adds depth */
.hero::after {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,107,0,0.18);
  border: 1px solid rgba(255,107,0,0.4);
  color: var(--saffron-soft);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-tag::before {
  content: '🇮🇳';
  font-size: 13px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 5.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--cream);
  margin: 0 0 14px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--saffron-soft);
}

.hero-sub {
  color: rgba(253,248,240,0.72);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 560px;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  font-size: 30px;
  color: var(--saffron-soft);
  display: block;
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 11px;
  color: rgba(253,248,240,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
  display: block;
  font-weight: 500;
}

/* ─── SEARCH SHELL ──────────────────────────────────────── */
.search-section {
  background: var(--cream);
  margin-top: -28px;
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}
.search-shell {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(11,31,69,0.10);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-shell:focus-within {
  border-color: var(--navy);
  box-shadow: 0 12px 40px rgba(11,31,69,0.18), 0 0 0 4px var(--saffron-pale);
}
.search-input {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none; outline: none;
  width: 100%;
  padding: 0;
}
.search-input::placeholder { color: var(--ink-faint); font-weight: 400; }

/* ─── SUGGESTION TICKER ─────────────────────────────────── */
.chip-ticker-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.chip-ticker-track {
  display: inline-flex;
  gap: 10px;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
  will-change: transform;
}
.chip-ticker-wrap:hover .chip-ticker-track,
.chip-ticker-track:focus-within { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-muted);
  font-weight: 450;
  cursor: pointer;
  transition: all .18s var(--ease);
  text-decoration: none;
  flex-shrink: 0;
  font-family: inherit;
}
.chip:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-pale);
}

/* ─── FILTER BAR (sticky pills) ─────────────────────────── */
.filter-bar {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.filter-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-tab:hover { color: var(--ink); background: var(--white); border-color: var(--line); }
.filter-tab[aria-pressed="true"] {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  font-weight: 500;
}

/* ─── SIDEBAR FILTERS ───────────────────────────────────── */
.filter-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.filter-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-title .icon { color: var(--saffron); font-size: 14px; }

.filter-group label {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 450;
  color: var(--ink);
  transition: color .15s;
  line-height: 1.3;
  border-bottom: 1px solid transparent;
}
.filter-group label:hover { color: var(--saffron); }
.filter-group label:not(:last-child) { border-bottom-color: var(--cream-dark); }

.filter-group input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all .15s var(--ease);
}
.filter-group input[type=checkbox]:hover { border-color: var(--saffron); }
.filter-group input[type=checkbox]:checked {
  background: var(--saffron);
  border-color: var(--saffron);
}
.filter-group input[type=checkbox]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-count {
  margin-left: auto;
  font-feature-settings: "tnum";
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--cream-dark);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 500;
  min-width: 50px;
  text-align: center;
}

.state-buttons { display: flex; flex-direction: column; gap: 8px; }
.state-btn {
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all .15s var(--ease);
  color: var(--ink);
  background: var(--cream);
  font-weight: 500;
  font-family: inherit;
  display: flex; align-items: center; justify-content: space-between;
}
.state-btn:hover { border-color: var(--saffron); color: var(--saffron); background: var(--saffron-pale); }
.state-btn[aria-pressed="true"] {
  border-color: var(--saffron);
  background: var(--saffron);
  color: var(--white);
  font-weight: 600;
}
.state-btn[aria-pressed="true"] .state-btn-count { color: rgba(255,255,255,.95); background: rgba(255,255,255,.22); }
.state-btn-count {
  font-feature-settings: "tnum";
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--cream-dark);
  padding: 3px 10px;
  border-radius: 999px;
  min-width: 44px;
  text-align: center;
}

.clear-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.clear-btn:hover { border-color: var(--saffron); color: var(--saffron); }

/* ─── JOB CARD ──────────────────────────────────────────── */
.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px 20px;
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
/* Coloured left accent that shifts on hover */
.job-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--line);
  transition: background .25s var(--ease);
}
.job-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}
.job-card:hover::before { background: var(--saffron); }
.job-card.urgent::before { background: var(--warn); }
.job-card.urgent:hover::before { background: var(--warn); }
.job-card.state-job::before { background: var(--green); opacity: 0.55; }
.job-card.state-job:hover::before { background: var(--green); opacity: 1; }

.job-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 36;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 4px 0;
}
.job-org {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 400;
}

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.005em;
}
.badge-warn    { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.badge-new     { background: var(--saffron); color: var(--white); font-weight: 600; }
.badge-meta    { background: var(--cream-dark); color: var(--ink-muted); }
.badge-central { background: #E0EAF3; color: var(--navy); }
.badge-state   { background: var(--green-soft); color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--saffron);
  color: var(--white);
  border-color: var(--saffron);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--saffron-soft);
  border-color: var(--saffron-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,107,0,0.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--cream-dark); }
.external-icon { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.9; }

/* Meta row */
.meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 13px;
  margin-bottom: 14px;
}
.meta-row dt { font-weight: 500; color: var(--ink-faint); }
.meta-row dd { margin: 0; color: var(--ink); font-feature-settings: "tnum"; font-weight: 500; }
.meta-pair { display: inline-flex; gap: 6px; align-items: baseline; }

/* ─── SECTION DIVIDER ───────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
}
.section-divider:first-child { margin-top: 0; }
.section-divider-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-divider-badge {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.divider-central { background: #E0EAF3; color: var(--navy); }
.divider-state   { background: var(--green-soft); color: var(--green); }

/* ─── PAGINATION ───────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-feature-settings: "tnum";
}
.page-btn:hover:not(:disabled) {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-pale);
}
.page-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--white);
  font-weight: 600;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-arrow { color: var(--ink-muted); }
.page-ellipsis {
  color: var(--ink-faint);
  font-size: 16px;
  padding: 0 4px;
  user-select: none;
}

/* ─── ANIMATIONS ───────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .55s var(--ease) both; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .19s; }
.rise-4 { animation-delay: .26s; }
.rise-5 { animation-delay: .33s; }
.rise-6 { animation-delay: .40s; }
.rise-7 { animation-delay: .47s; }
.rise-8 { animation-delay: .54s; }

/* ─── SIDEBAR (desktop default — sticky) ─────────────── */
.mobile-filters-heading,
.mobile-filters-heading-sub { display: none; }

.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 6px;
}
.sidebar { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

/* ─── REDUCED MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ━━━ TABLET (≤ 1024px) ━━━ */
@media (max-width: 1024px) {
  .layout-grid { grid-template-columns: 230px 1fr !important; gap: 22px !important; }
  .hero-title { font-size: 42px; }
}

/* ━━━ MOBILE (≤ 768px) ━━━ */
@media (max-width: 768px) {
  /* Header */
  .site-header > div { height: 56px !important; padding-left: 16px !important; padding-right: 16px !important; }
  .wordmark-name { font-size: 18px; }
  .wordmark-dot  { font-size: 22px; }
  .wordmark-tld  { font-size: 14px; }
  .site-header nav { display: none !important; }

  /* Top bar — keep but tighten */
  .top-bar { font-size: 10.5px; padding: 5px 0; }
  .top-bar > div { padding-left: 16px !important; padding-right: 16px !important; }

  /* Live ticker */
  .live-bar { font-size: 11.5px; }
  .live-pill { margin-left: 16px; padding: 2px 9px; font-size: 9.5px; }
  .live-ticker-wrap { padding-right: 16px; }

  /* Hero */
  .hero { padding: 44px 0 56px; }
  .hero > div { padding-left: 18px !important; padding-right: 18px !important; }
  .hero-title { font-size: 32px !important; line-height: 1.08 !important; }
  .hero-sub { font-size: 14.5px !important; }
  .hero-tag { font-size: 10.5px; padding: 4px 11px; margin-bottom: 14px; }
  .hero-stats { gap: 24px; margin-top: 24px; padding-top: 22px; }
  .stat-num { font-size: 24px; }

  /* Search */
  .search-section { padding-left: 16px; padding-right: 16px; }
  .search-shell { padding: 14px 16px !important; border-radius: 14px; flex-wrap: wrap; gap: 12px !important; }
  .search-input { font-size: 16px !important; }
  .search-shell .btn-primary {
    width: 100%;
    flex-basis: 100%;
    justify-content: center;
    padding: 11px 16px !important;
  }

  /* Suggestion ticker */
  .chip-ticker-track { animation-duration: 55s !important; gap: 8px !important; }
  .chip { font-size: 13px !important; padding: 7px 13px !important; }

  /* Filter bar */
  .filter-bar { padding: 10px 0; }
  .filter-bar > div { padding-left: 16px !important; padding-right: 16px !important; }
  .filter-tab { padding: 6px 12px !important; font-size: 12.5px !important; }

  /* Main content */
  main > .results-section { padding: 24px 16px !important; }
  .layout-grid { grid-template-columns: 1fr !important; gap: 0 !important; }

  /* ─── Sidebar dropdown (mobile only) ─── */
  .filter-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .filter-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 85% !important;
    max-width: 320px !important;
    background: #fff !important;
    z-index: 100 !important;
    padding: 20px !important;
    overflow-y: auto !important;
    transition: left 0.3s ease !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15) !important;
    margin-bottom: 0 !important;
  }
  .sidebar.open {
    left: 0 !important;
  }

  /* Filter cards on mobile — generous touch targets */
  .filter-card {
    padding: 16px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
  }
  .filter-group label { font-size: 14.5px; padding: 10px 0; }

  /* Hide the old static headings */
  .mobile-filters-heading { display: none !important; }
  .mobile-filters-heading-sub { display: none !important; }

  /* Job cards */
  .job-card { padding: 18px 18px 16px !important; border-radius: 12px; }
  .job-title { font-size: 16.5px !important; }
  .job-org { font-size: 12.5px; }

  /* Title row stacks on mobile */
  .job-card > div:first-child { flex-direction: column; align-items: flex-start !important; gap: 10px !important; }
  .job-card > div:first-child > div:last-child { width: 100%; }

  .meta-row { gap: 6px 18px !important; font-size: 12.5px !important; }

  /* Buttons share row evenly */
  .job-card > div:last-child { gap: 8px !important; }
  .job-card .btn { flex: 1 1 0; min-width: 0; padding: 10px 12px !important; font-size: 12.5px !important; }

  /* Section divider tightens */
  .section-divider-label { font-size: 16px; }
  .section-divider { margin: 22px 0 14px; }

  /* Footer */
  footer .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  footer > div { padding: 28px 16px !important; }
  footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ━━━ SMALL PHONES (≤ 380px) ━━━ */
@media (max-width: 380px) {
  .hero-title { font-size: 28px !important; }
  .stat-num { font-size: 22px; }
  .hero-stats { gap: 18px; }
  .wordmark-name { font-size: 16px; }
  .filter-tab { padding: 5px 10px !important; font-size: 11.5px !important; }
  .job-card .btn { font-size: 12px !important; padding: 9px 10px !important; }
  .page-btn { min-width: 38px; height: 38px; padding: 0 9px; font-size: 13.5px; }
  .pagination { gap: 5px; }
}
