/* ═══════════════════════════════════════════════════════════════════════════
   NaukriSync v2.2 — Lightweight Professional Design System
   Optimized for 1 CPU / 1GB RAM servers
   ───────────────────────────────────────────────────────────────────────────
   Philosophy:
   - CSS custom properties for theming (no JS theme switching cost)
   - Single paint layers, minimal compositing
   - GPU-accelerated transforms only where needed
   - No heavy animations, no blur/backdrop-filter
   - Systematic spacing scale
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
:root {
  /* Recruitment Theme (default dark navy) */
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-inverse: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Accent — warm orange/gold */
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #fff7ed;
  --accent-text: #9a3412;

  /* Semantic */
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --warning: #ca8a04;
  --warning-soft: #fefce8;
  --error: #dc2626;
  --error-soft: #fef2f2;
  --info: #2563eb;
  --info-soft: #eff6ff;

  /* Current Affairs Theme overrides */
  --ca-bg: #faf6f1;
  --ca-surface: #ffffff;
  --ca-ink: #2d1810;
  --ca-ink-secondary: #5c4033;
  --ca-border: #e8ddd0;
  --ca-accent: #b45309;

  --bg-card: var(--surface);
  --muted: var(--ink-muted);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-display: 'Baloo 2', var(--font-sans);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Layout */
  --bottom-nav-height: 64px;
  --desktop-rail-width: 176px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.05), 0 10px 25px rgba(0,0,0,.06);

  /* Transitions */
  --transition-fast: .12s ease;
  --transition: .18s ease;
}

/* ─── Base Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-muted);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ─── Topline ────────────────────────────────────────────────────────────── */
.topline {
  background: var(--bg);
  color: var(--ink-inverse);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topline-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.live-dot {
  width: 7px; height: 7px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #ef4444;
  opacity: .5;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.topline-text { opacity: .8; }
.topline-link {
  margin-left: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.topline-link:hover { text-decoration: underline; }

/* ─── Brand Bar ──────────────────────────────────────────────────────────── */
.brandbar {
  background: var(--bg-elevated);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brandbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-name a { color: #fff; }
.brand-name .accent { color: #fb923c; }
.brand-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}
.brandbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: rgba(255,255,255,.55);
  font-size: 12px;
}
.brand-svg-logo {
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1;
}
.brand-svg-logo svg { display: block; }
.brand-wordmark,
.footer-brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand-wordmark .accent,
.footer-brand-logo .accent { color: #fb923c; }
.brand-logo-img {
  width: auto;
  max-width: 170px;
  max-height: 38px;
  object-fit: contain;
}
.brandbar .hamburger-line { background: rgba(255,255,255,.86); }
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-cycle-button {
  display: none;
  width: 40px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.lang-cycle-text {
  display: inline-block;
  min-width: 22px;
  text-align: center;
}
.lang-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.82);
}
.lang-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.lang-pill:hover:not(.active) {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar-inner::-webkit-scrollbar { display: none; }
.nav-link {
  padding: var(--space-3) 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-link .badge-new {
  display: inline-block;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #8b5cf6, #f59e0b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-left: 4px;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ─── Desktop Category Rail ─────────────────────────────────────────────── */
.desktop-category-rail {
  display: none;
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--desktop-rail-width);
  }

  .desktop-category-rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 250;
    width: var(--desktop-rail-width);
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 6px 0 22px rgba(15, 23, 42, .18);
  }

  .desktop-rail-brand {
    display: block;
    padding: 18px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
  }

  .desktop-rail-brand span {
    display: block;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
  }

  .desktop-rail-brand b {
    color: #fb923c;
    font-weight: 800;
  }

  .desktop-rail-brand small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.58);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
  }

  .desktop-category-rail-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .desktop-category-rail-link {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.74);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.15;
    transition: background .15s ease, color .15s ease, transform .15s ease;
  }

  .desktop-category-rail-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
  }

  .desktop-category-rail-link.active {
    background: rgba(234, 88, 12, .16);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .desktop-category-rail-link em {
    font-style: normal;
    color: #fb923c;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  .navbar {
    display: none;
  }

  .reading-progress {
    left: var(--desktop-rail-width);
  }
}

/* ─── Reading Progress ───────────────────────────────────────────────────── */
.reading-progress {
  height: 2.5px;
  background: var(--accent);
  position: fixed;
  top: 0; left: 0;
  z-index: 101;
  transition: width .1s linear;
}

@media (min-width: 1024px) {
  .reading-progress {
    left: var(--desktop-rail-width);
  }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #1e3a5f 100%);
  color: #fff;
  padding: var(--space-16) var(--space-4);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--space-10);
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-5);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.hero-sub {
  font-size: 16px;
  opacity: .75;
  max-width: 520px;
  margin-bottom: var(--space-6);
}
.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  max-width: 560px;
  margin-bottom: var(--space-5);
}
.hero-search input,
.hero-search select {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.hero-search input::placeholder { color: rgba(255,255,255,.45); }
.hero-search input:focus,
.hero-search select:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
}
.hero-search select option {
  color: var(--ink);
  background: var(--surface);
}
.hero-filter-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.filter-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  min-height: 42px;
}
.filter-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}
.filter-btn select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: transparent;
  appearance: none;
}
.filter-btn:focus-within {
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
}
.hero-search button {
  grid-row: 1;
  grid-column: 2;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.hero-search button:hover { background: var(--accent-hover); }
.hero-pills {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.hero-pill {
  padding: 5px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition-fast);
}
.hero-pill:hover { background: rgba(255,255,255,.15); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.hero-stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #fb923c;
}
.hero-stat-label {
  font-size: 12px;
  opacity: .6;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: var(--space-12) var(--space-4);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-alt { background: var(--surface); }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; }
.section-desc {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: -12px;
  margin-bottom: var(--space-5);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-link { display: flex; flex-direction: column; flex: 1; gap: var(--space-2); }
.card-meta {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}
.card-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--info-soft);
  color: var(--info);
}
.card-badge.result { background: var(--success-soft); color: var(--success); }
.card-badge.admit-card { background: var(--info-soft); color: var(--info); }
.card-badge.notification { background: var(--warning-soft); color: var(--warning); }
.card-badge.recruitment { background: var(--warning-soft); color: var(--warning); }
.card-badge.answer-key { background: var(--accent-soft); color: var(--accent-text); }
.card-badge.datesheet { background: #eef2ff; color: #4338ca; }
.card-badge.syllabus { background: #f3e8ff; color: #7e22ce; }
.card-badge.schedule { background: #eef2ff; color: #4338ca; }
.card-org {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 12px;
  color: var(--ink-muted);
}

/* ─── Category Grid ──────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4);
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: var(--transition);
}
.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category-card .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.category-card .count {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ─── State Chips ────────────────────────────────────────────────────────── */
.state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.state-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}
.state-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.state-chip .count {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-muted);
  padding: 1px 6px;
  border-radius: 100px;
}

/* ─── Directory Grid ─────────────────────────────────────────────────────── */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.directory-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: var(--transition);
}
.directory-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.directory-card .icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.directory-card .info { flex: 1; min-width: 0; }
.directory-card .name {
  font-size: 15px;
  font-weight: 700;
}
.directory-card .meta {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ─── Current Affairs Widget (Recruitment Pages) ─────────────────────────── */
.ca-widget {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: #fff;
  margin-bottom: var(--space-6);
}
.ca-widget-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.ca-widget-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}
.ca-widget-headline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.ca-widget-sub {
  font-size: 13px;
  opacity: .65;
  margin-bottom: var(--space-4);
}
.ca-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}
.ca-widget-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 8px 12px;
  transition: var(--transition-fast);
}
.ca-widget-card:hover {
  background: rgba(255,255,255,.1);
}
.ca-widget-card .date,
.ca-widget-card-date {
  font-size: 10px;
  opacity: .6;
  margin-bottom: 2px;
  color: inherit;
}
.ca-widget-card .headline,
.ca-widget-card-headline {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ca-widget-cta {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  transition: color var(--transition-fast);
}
.ca-widget-cta:hover { color: #fff; }

/* ─── Priority List ──────────────────────────────────────────────────────── */
.priority-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.priority-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition-fast);
}
.priority-item:hover {
  border-color: var(--accent);
}
.priority-item .pin {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.priority-item .title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--border-strong);
}
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* ─── Detail Page ────────────────────────────────────────────────────────── */
.detail-hero {
  background: var(--bg);
  color: #fff;
  padding: var(--space-10) var(--space-4) var(--space-8);
}
.detail-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
}
.detail-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.detail-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
}
.detail-badge.result { background: rgba(22,163,74,.2); color: #86efac; }
.detail-badge.admit-card { background: rgba(37,99,235,.2); color: #93c5fd; }
.detail-badge.notification { background: rgba(202,138,4,.2); color: #fde047; }
.detail-badge.recruitment { background: rgba(202,138,4,.2); color: #fde047; }
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.detail-location {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
  font-size: 13px;
  opacity: .7;
}
.detail-location span {
  background: rgba(255,255,255,.08);
  padding: 3px 10px;
  border-radius: 100px;
}
.detail-date {
  font-size: 13px;
  opacity: .55;
  margin-bottom: var(--space-5);
}
.detail-cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.btn-primary {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  padding: 10px 20px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  transition: var(--transition-fast);
}
.btn-secondary:hover { background: rgba(255,255,255,.15); }

/* Article Shell */
.article-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-8);
}
.article-main { min-width: 0; }
.article-sidebar { min-width: 0; }

.summary-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: var(--space-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: var(--space-6);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.toc-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-3);
  color: var(--ink-secondary);
}
.toc ul { display: flex; flex-direction: column; gap: var(--space-1); }
.toc li a {
  display: block;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-secondary);
  transition: var(--transition-fast);
}
.toc li a:hover { background: var(--bg-muted); color: var(--accent); }

.post-rich-content {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
}
.post-rich-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin: var(--space-8) 0 var(--space-4);
  color: var(--ink);
}
.post-rich-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--ink);
}
.post-rich-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin: var(--space-5) 0 var(--space-2);
  color: var(--ink);
}
.post-rich-content p { margin-bottom: var(--space-4); }
.post-rich-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.post-rich-content a:hover {
  color: var(--accent-hover, #c2410c);
  text-decoration: none;
}
.post-rich-content ul, .post-rich-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}
.post-rich-content ul { list-style: disc; }
.post-rich-content ol { list-style: decimal; }
.post-rich-content li { margin-bottom: var(--space-2); }
.post-rich-content li > ul,
.post-rich-content li > ol { margin-top: var(--space-2); margin-bottom: var(--space-2); }
.post-rich-content strong, .post-rich-content b { font-weight: 700; color: var(--ink); }
.post-rich-content em, .post-rich-content i { font-style: italic; }
.post-rich-content mark {
  background: rgba(245, 158, 11, 0.2);
  color: inherit;
  padding: 1px 3px;
  border-radius: 3px;
}
.post-rich-content del { text-decoration: line-through; opacity: 0.7; }
.post-rich-content ins { text-decoration: underline; color: var(--accent); }
.post-rich-content abbr[title] { border-bottom: 1px dotted var(--ink-muted); cursor: help; }
.post-rich-content sup, .post-rich-content sub { font-size: 75%; line-height: 0; }
.post-rich-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}
.post-rich-content img {
  max-width: 100%;
  height: auto;
}
.post-rich-content .post-image {
  margin: var(--space-5) 0;
}
.post-rich-content .post-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.post-rich-content blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--accent);
  background: var(--bg-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-secondary);
}
.post-rich-content blockquote p:last-child { margin-bottom: 0; }
.post-rich-content blockquote cite {
  display: block;
  margin-top: var(--space-2);
  font-size: 13px;
  font-style: normal;
  color: var(--ink-muted);
}
.post-rich-content code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  border: 1px solid var(--border);
}
.post-rich-content pre {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  overflow-x: auto;
  margin-bottom: var(--space-4);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
}
.post-rich-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.post-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: var(--space-4) auto;
}
.post-rich-content figure {
  margin: var(--space-5) 0;
}
.post-rich-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: var(--space-2);
}
.post-rich-content iframe,
.post-rich-content video,
.post-rich-content audio {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
  margin: var(--space-4) auto;
}
.post-rich-content iframe {
  border: 1px solid var(--border);
}
.post-rich-content details {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
.post-rich-content summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.post-rich-content details[open] summary {
  margin-bottom: var(--space-2);
}
.post-rich-content dl { margin-bottom: var(--space-4); }
.post-rich-content dt { font-weight: 700; color: var(--ink); margin-top: var(--space-3); }
.post-rich-content dd { margin-left: var(--space-5); color: var(--ink-secondary); }
.post-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
  font-size: 14px;
}
.post-rich-content th, .post-rich-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.post-rich-content th {
  background: var(--bg-muted);
  font-weight: 700;
  color: var(--ink) !important;
}
.post-rich-content tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}
.post-rich-content caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  padding: 0 0 var(--space-2);
  color: var(--ink);
}

/* Important Dates */
.dates-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.dates-section .section-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: var(--space-4);
}
.dates-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dates-table th {
  background: var(--bg-muted);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--border);
  color: var(--ink) !important;
}
.dates-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

/* Official Links */
.official-links-section {
  margin-bottom: var(--space-6);
}
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}
.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: var(--transition-fast);
}
.link-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.link-card .title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.link-card .url { font-size: 11px; color: var(--ink-muted); word-break: break-all; }

/* Related Posts */
.related-section {
  margin-bottom: var(--space-6);
}
.related-section .section-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: var(--space-4);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: var(--transition-fast);
}
.related-card:hover { border-color: var(--accent); }
.related-card .badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 100px;
  margin-bottom: var(--space-2);
  display: inline-block;
}
.related-card .title { font-size: 13px; font-weight: 600; line-height: 1.4; }

/* Sidebar Box */
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.sidebar-box-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-3);
  color: var(--ink-secondary);
}
.sidebar-links { display: flex; flex-direction: column; gap: var(--space-1); }
.sidebar-links a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-secondary);
  transition: var(--transition-fast);
}
.sidebar-links a:hover { background: var(--bg-muted); color: var(--accent); }
.sidebar-links .count {
  float: right;
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--bg-muted);
  padding: 1px 6px;
  border-radius: 100px;
}

/* Review Section */
.review-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-6);
}
.review-section .section-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: var(--space-4);
}

/* ─── Browse Pages ───────────────────────────────────────────────────────── */
.browse-hero {
  background: linear-gradient(135deg, var(--bg) 0%, #1e3a5f 100%);
  color: #fff;
  padding: var(--space-10) var(--space-4);
}
.browse-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.browse-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-3);
}
.browse-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.browse-hero p {
  font-size: 15px;
  opacity: .7;
  max-width: 600px;
}
.browse-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-8);
}
.browse-main { min-width: 0; }
.browse-sidebar { min-width: 0; }
.feed-list { display: flex; flex-direction: column; gap: var(--space-3); }
.feed-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: var(--transition-fast);
}
.feed-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.feed-item .title { font-size: 15px; font-weight: 700; margin-bottom: var(--space-2); }
.feed-item .meta { display: flex; gap: var(--space-2); flex-wrap: wrap; font-size: 12px; }

/* ─── Search Page ────────────────────────────────────────────────────────── */
.search-hero {
  background: linear-gradient(135deg, var(--bg) 0%, #1e3a5f 100%);
  color: #fff;
  padding: var(--space-10) var(--space-4);
}
.search-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.search-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: var(--space-4);
}
.search-form {
  display: flex;
  gap: var(--space-2);
  max-width: 560px;
  margin: 0 auto var(--space-5);
}
.search-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.search-form input::placeholder { color: rgba(255,255,255,.45); }
.search-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
}

/* ─── Current Affairs Pages (The Affairs Theme) ──────────────────────────── */
.ca-page { background: var(--ca-bg); color: var(--ca-ink); }
.ca-page .topline { background: var(--ca-ink); }
.ca-page .brandbar { background: #2d1810; }
.ca-page .navbar { background: var(--ca-surface); border-color: var(--ca-border); }
.ca-page .navbar .nav-link { color: var(--ca-ink-secondary); }
.ca-page .navbar .nav-link:hover, .ca-page .navbar .nav-link.active { color: var(--ca-accent); border-color: var(--ca-accent); }

.ca-header {
  background: linear-gradient(135deg, #2d1810 0%, #5c4033 100%);
  color: #fff;
  padding: var(--space-10) var(--space-4);
}
.ca-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.ca-brand { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.ca-brand-tagline { font-size: 12px; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.ca-header-date { font-size: 14px; opacity: .7; }

.ca-nav-tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--ca-surface);
  border-bottom: 1px solid var(--ca-border);
  padding: 0 var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}
.ca-nav-tab {
  padding: var(--space-3) var(--space-4);
  font-size: 13px;
  font-weight: 700;
  color: var(--ca-ink-secondary);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.ca-nav-tab:hover, .ca-nav-tab.active {
  color: var(--ca-accent);
  border-bottom-color: var(--ca-accent);
}

.ca-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-8);
}
.ca-sidebar { min-width: 0; }
.ca-sidebar-section { margin-bottom: var(--space-6); }
.ca-sidebar-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ca-ink-secondary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--ca-border);
}
.ca-sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.ca-sidebar-links a {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ca-ink-secondary);
  transition: var(--transition-fast);
}
.ca-sidebar-links a:hover, .ca-sidebar-links a.active {
  background: rgba(180,83,9,.08);
  color: var(--ca-accent);
}
.ca-sidebar-links .count {
  font-size: 11px;
  color: var(--ca-ink-secondary);
  opacity: .6;
}

.ca-hero-story {
  background: var(--ca-surface);
  border: 1px solid var(--ca-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.ca-hero-story .source {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ca-accent);
  margin-bottom: var(--space-2);
}
.ca-hero-story .headline {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}
.ca-hero-story .excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ca-ink-secondary);
  margin-bottom: var(--space-4);
}

.ca-story-card {
  background: var(--ca-surface);
  border: 1px solid var(--ca-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: var(--transition-fast);
}
.ca-story-card:hover { border-color: var(--ca-accent); box-shadow: var(--shadow-sm); }
.ca-story-card .tags { display: flex; gap: var(--space-1); flex-wrap: wrap; margin-bottom: var(--space-2); }
.ca-story-card .tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(180,83,9,.08);
  color: var(--ca-accent);
}
.ca-story-card .headline {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-2);
}
.ca-story-card .excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ca-ink-secondary);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ca-story-card .footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ca-ink-secondary);
  opacity: .7;
}

.ca-article-section {
  padding-top: 24px;
}
.ca-article-inner {
  max-width: 900px;
}
.ca-article-breadcrumb {
  margin-bottom: 18px;
  padding: 0;
}
.ca-article-card {
  display: block;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.ca-article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ca-article-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}
.ca-article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.ca-article-related {
  margin-top: 32px;
}
[data-theme="dark"] .ca-article-card {
  background: var(--surface);
  border-color: var(--border);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  color: rgba(255,255,255,.6);
  padding: var(--space-12) var(--space-4) var(--space-6);
}
.site-footer-inner { max-width: 1200px; margin: 0 auto; }
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.footer-brand-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-3);
}
.footer-brand-logo .accent { color: #fb923c; }
.footer-brand-logo img {
  width: auto;
  max-width: 170px;
  max-height: 42px;
  object-fit: contain;
}
.footer-brand-desc { font-size: 13px; line-height: 1.6; opacity: .7; margin-bottom: var(--space-4); }
.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a {
  font-size: 13px;
  opacity: .7;
  transition: var(--transition-fast);
}
.footer-links a:hover { opacity: 1; color: #fb923c; }
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 12px;
  opacity: .5;
}

/* ─── Floating Search Button ─────────────────────────────────────────────── */
.fab-search {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: var(--transition);
}
.fab-search:hover { transform: scale(1.08); background: var(--accent-hover); }

/* ─── Scroll to Top ──────────────────────────────────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.scroll-to-top.visible { opacity: 1; pointer-events: auto; }
.scroll-to-top:hover { background: var(--bg-muted); }

/* ─── Error Page ─────────────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  max-width: 600px;
  margin: 0 auto;
}
.error-code {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  color: var(--border-strong);
  line-height: 1;
}
.error-title { font-size: 22px; font-weight: 700; margin-bottom: var(--space-3); }
.error-desc { color: var(--ink-muted); margin-bottom: var(--space-5); }

/* ─── Theme Toggle ───────────────────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover,
.bookmark-icon-link:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}
.bookmark-icon-link {
  color: rgba(255,255,255,.55) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition-fast);
}
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .bookmark-icon-link {
  color: rgba(255,255,255,.6) !important;
}
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .bookmark-icon-link:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}

/* Brandbar Lang Pill Overrides (desktop only) */
@media (min-width: 769px) {
  .brandbar .lang-pill {
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
  }
  .brandbar .lang-pill:hover:not(.active) {
    color: #fff !important;
    border-color: #fff !important;
  }
  .brandbar .lang-pill.active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
  }
}

/* ─── Dark Mode ──────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-elevated: #111827;
  --bg-muted: #1f2937;
  --surface: #1e293b;
  --surface-2: #111827;
  --ink: #f1f5f9;
  --ink-secondary: #cbd5e1;
  --ink-muted: #94a3b8;
  --ink-inverse: #0f172a;
  --border: #334155;
  --border-strong: #475569;
  --accent-soft: rgba(234, 88, 12, 0.12);

  --ca-bg: #1a1410;
  --ca-surface: #2d1810;
  --ca-ink: #f5efe8;
  --ca-ink-secondary: #c4b5a0;
  --ca-border: #4a3b2a;
  --ca-accent: #f59e0b;
  --sky: #38bdf8;
}

[data-theme="dark"] .card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .directory-card,
[data-theme="dark"] .feed-item,
[data-theme="dark"] .related-card,
[data-theme="dark"] .sidebar-box,
[data-theme="dark"] .toc,
[data-theme="dark"] .dates-section,
[data-theme="dark"] .review-section,
[data-theme="dark"] .link-card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .section-alt {
  background: var(--bg-elevated);
}

[data-theme="dark"] .hero-search input,
[data-theme="dark"] .hero-search select {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
  color: #fff;
}

[data-theme="dark"] .hero-search input::placeholder {
  color: rgba(255,255,255,.35);
}

[data-theme="dark"] .hero-stat-card,
[data-theme="dark"] .ca-widget-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}

[data-theme="dark"] .post-rich-content {
  color: var(--ink-secondary);
}

[data-theme="dark"] .post-rich-content h2,
[data-theme="dark"] .post-rich-content h3,
[data-theme="dark"] .post-rich-content h4,
[data-theme="dark"] .post-rich-content strong,
[data-theme="dark"] .post-rich-content b,
[data-theme="dark"] .post-rich-content dt,
[data-theme="dark"] .post-rich-content summary,
[data-theme="dark"] .post-rich-content caption {
  color: var(--ink);
}

[data-theme="dark"] .post-rich-content a {
  color: var(--accent);
}
[data-theme="dark"] .post-rich-content a:hover {
  color: var(--accent-hover, #f97316);
}

[data-theme="dark"] .post-rich-content mark {
  background: rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .post-rich-content blockquote {
  background: rgba(255,255,255,0.03);
  border-left-color: var(--accent);
}

[data-theme="dark"] .post-rich-content code {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--ink);
}

[data-theme="dark"] .post-rich-content pre {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}

[data-theme="dark"] .post-rich-content details {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
}

[data-theme="dark"] .post-rich-content th {
  background: var(--bg-muted);
}

[data-theme="dark"] .post-rich-content tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}

[data-theme="dark"] .dates-table th {
  background: var(--bg-muted);
}

[data-theme="dark"] .scroll-to-top {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

[data-theme="dark"] .ca-hero-story,
[data-theme="dark"] .ca-story-card {
  background: var(--ca-surface);
  border-color: var(--ca-border);
}

[data-theme="dark"] .ca-story-card .excerpt {
  color: var(--ca-ink-secondary);
}

[data-theme="dark"] .ca-sidebar-links a:hover,
[data-theme="dark"] .ca-sidebar-links a.active {
  background: rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .site-footer {
  background: #050a14;
}

[data-theme="dark"] .error-code {
  color: var(--border-strong);
}

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

/* ─── Theme Toggle Icon Swap ─────────────────────────────────────────────── */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* ─── Dark Mode: Body, Navbar, Breadcrumb ────────────────────────────────── */
[data-theme="dark"] body { background: var(--bg-muted); color: var(--ink); }
[data-theme="dark"] .navbar { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .nav-link { color: var(--ink-secondary); }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { color: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .breadcrumb { color: var(--ink-muted); }
[data-theme="dark"] .article-shell { background: transparent; }
/* ─── Dark Mode: Scraped Content Overrides ─────────────────────────────────── */
[data-theme="dark"] .post-rich-content table,
[data-theme="dark"] .post-rich-content tr,
[data-theme="dark"] .post-rich-content th,
[data-theme="dark"] .post-rich-content td { background-color: transparent !important; }
[data-theme="dark"] .post-rich-content table th { color: var(--ink) !important; background-color: var(--bg-elevated) !important; border-color: var(--border) !important; }
[data-theme="dark"] .post-rich-content table td { border-color: var(--border) !important; color: var(--ink-secondary) !important; }
[data-theme="dark"] .post-rich-content tbody tr:nth-child(even) td { background-color: rgba(255,255,255,0.05) !important; }
[data-theme="dark"] .post-rich-content div[style*="background"] { background-color: var(--bg-elevated) !important; color: var(--ink) !important; }
[data-theme="dark"] .section-head { background: var(--surface); color: var(--ink); }

/* ─── Share Row ──────────────────────────────────────────────────────────── */
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.share-row-label {
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-muted);
  margin-bottom: var(--space-1);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s, transform .12s;
  color: #fff;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.share-btn-wa  { background: linear-gradient(135deg,#25d366,#1ebe5d); box-shadow: 0 4px 14px rgba(37,211,102,.3); }
.share-btn-tg  { background: linear-gradient(135deg,#24a1de,#1a8bc2); box-shadow: 0 4px 14px rgba(36,161,222,.25); }
.share-btn-copy {
  background: var(--surface);
  color: var(--ink) !important;
  border: 1.5px solid var(--border-strong);
  box-shadow: none;
}
.share-btn-copy:hover { background: var(--bg-muted); }

/* ─── Detail Search Card (In-Page Search on Post Detail) ─────────────────── */
.detail-search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.detail-search-card .dsc-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}
.detail-search-form {
  display: flex;
  gap: var(--space-2);
}
.detail-search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg-muted);
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition-fast);
}
.detail-search-form input:focus { border-color: var(--accent); background: var(--surface); }
.detail-search-form input::placeholder { color: var(--ink-muted); }
.detail-search-form button {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius);
  transition: background var(--transition-fast);
  white-space: nowrap;
}
.detail-search-form button:hover { background: var(--accent-hover); }
.dsc-results { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.dsc-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition-fast);
}
.dsc-result-item:hover { border-color: var(--accent); }
.dsc-result-type { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.dsc-result-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.dsc-result-meta { font-size: 12px; color: var(--ink-muted); }
.dsc-empty { font-size: 13px; color: var(--ink-muted); padding: var(--space-2) 0; }
.dsc-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.dsc-pill {
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  background: var(--surface);
  transition: var(--transition-fast);
}
.dsc-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ─── Floating Search FAB Removed (Duplicate) ────────────────────────────── */

/* ─── Dark Mode: Share + Search Card ────────────────────────────────────── */
[data-theme="dark"] .share-btn-copy { background: var(--surface-2); border-color: var(--border); color: var(--ink) !important; }
[data-theme="dark"] .detail-search-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .detail-search-form input { background: var(--bg-elevated); border-color: var(--border); color: var(--ink); }
[data-theme="dark"] .detail-search-form input:focus { background: var(--surface); border-color: var(--accent); }
[data-theme="dark"] .dsc-result-item { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .dsc-pill { background: var(--bg-elevated); border-color: var(--border); color: var(--ink-secondary); }
[data-theme="dark"] .dsc-pill:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .floating-search-fab { box-shadow: 0 4px 20px rgba(0,0,0,.5); }

/* ─── In-Page Search ───────────────────────────────────────────────────── */
.detail-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.detail-search svg { color: var(--muted); flex-shrink: 0; }
.detail-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.detail-search input::placeholder { color: var(--muted); }

/* ─── Dark Mode Overrides (additional) ─────────────────────────────────── */
[data-theme="dark"] .fab-search { background: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
[data-theme="dark"] .fab-search:hover { background: var(--accent-hover); }
[data-theme="dark"] .breadcrumb a { color: var(--sky); }
[data-theme="dark"] .breadcrumb li[aria-current] { color: var(--ink-muted); }
[data-theme="dark"] .detail-hero { background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%); }
[data-theme="dark"] .summary-box { background: var(--surface-2); border-color: var(--border); }
[data-theme="dark"] .link-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .link-card:hover { border-color: var(--accent); }
[data-theme="dark"] .link-card .url { color: var(--ink-muted); }
[data-theme="dark"] .official-links-section .section-head { color: var(--ink); }
[data-theme="dark"] .share-btn { background: var(--surface); border-color: var(--border); color: var(--ink); }
[data-theme="dark"] .share-btn:hover { background: var(--surface-2); }
[data-theme="dark"] .detail-search { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .detail-search input { background: var(--surface-2); color: var(--ink); border-color: var(--border); }
[data-theme="dark"] .detail-search input::placeholder { color: var(--ink-muted); }
[data-theme="dark"] .detail-search mark { background: var(--accent-soft); color: var(--accent); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { max-width: 400px; }
  .article-shell { grid-template-columns: 1fr; }
  .detail-hero-inner { grid-template-columns: 1fr; }
  .browse-layout { grid-template-columns: 1fr; }
  .ca-layout { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .search-form { flex-direction: column; }
}

/* ============================================
   HAMBURGER MENU (Task 1)
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  z-index: 1000000;
}
.hamburger-line {
  display: block;
  width: 25px;
  height: 2px;
  background: rgba(255,255,255,.86);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE NAV OVERLAY (Task 1)
   ============================================ */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: var(--bottom-nav-height);
  width: min(86vw, 326px);
  height: auto;
  background: var(--surface);
  color: var(--ink);
  z-index: 999998;
  transform: translateX(-105%);
  visibility: hidden;
  border-right: 1px solid var(--border);
  box-shadow: 18px 0 36px rgba(15,23,42,.22);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-overlay.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}
.mobile-nav-close {
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}
.mobile-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 9px;
  color: var(--ink);
  background: var(--surface-2);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.18;
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: background 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   BOTTOM NAVIGATION BAR (Task 1)
   ============================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 999999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  transform: translateY(0) !important;
  contain: layout paint;
}
.bottom-nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 2px 5px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.bottom-nav-item svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
}
.bottom-nav-item.active {
  color: var(--accent);
}
body.menu-open {
  overflow: hidden;
}
body.menu-open .hamburger {
  visibility: hidden;
  pointer-events: none;
}
.bottom-nav-text {
  position: relative;
  display: block;
  width: 100%;
  height: 14px;
  line-height: 14px;
  overflow: hidden;
  text-align: center;
  font-size: 10.5px;
  font-weight: 750;
}
.bottom-nav-text span {
  position: absolute;
  inset: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  animation: bottomNavWord 8s infinite;
  animation-delay: calc(var(--i) * 2s);
}
@keyframes bottomNavWord {
  0%, 8% { opacity: 0; transform: translateY(5px); }
  12%, 22% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-nav-text span { animation: none; opacity: 0; transform: none; }
  .bottom-nav-text span:first-child { opacity: 1; }
}

/* ─── Compact Hub Screens ───────────────────────────────────────────────── */
.jobs-hub,
.tools-hub,
.directory-page {
  padding: var(--space-6) var(--space-4);
}
.jobs-hub-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.compact-page-head {
  margin-bottom: var(--space-5);
}
.compact-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--space-2);
}
.compact-page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
.compact-page-head p {
  color: var(--ink-muted);
  max-width: 620px;
}
.hub-filter-form {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, .8fr)) auto;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}
.hub-filter-form input,
.hub-filter-form select {
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
}
.hub-filter-form button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.hub-chip-grid,
.browse-filter-strip {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: var(--space-4);
}
.hub-chip-grid::-webkit-scrollbar,
.browse-filter-strip::-webkit-scrollbar { display: none; }
.hub-chip-grid a,
.browse-filter-strip a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.hub-section {
  margin-top: var(--space-6);
}
.hub-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.hub-section-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}
.hub-section-head a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.compact-feed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}
.compact-feed-card,
.compact-link-grid a,
.qualification-card,
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compact-feed-card a {
  display: block;
  padding: var(--space-3);
}
.compact-feed-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.compact-feed-meta span {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}
.compact-feed-card h3 {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.32;
  margin-bottom: 5px;
}
.compact-feed-card p {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.35;
}
.compact-link-grid,
.qualification-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}
.compact-link-grid.three {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.compact-link-grid a,
.qualification-card {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px 12px;
  color: var(--ink);
}
.compact-link-grid a span,
.qualification-card span {
  color: var(--ink-muted);
  font-size: 12px;
  white-space: nowrap;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: var(--space-4);
}
.tool-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.tool-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.tool-card strong {
  color: var(--ink);
  font-size: 15px;
}
.tool-card span:last-child {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
}
.compact-empty {
  padding: 22px 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compact-empty div {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 5px;
}

/* ============================================
   PYQ VAULT (Task 3)
   ============================================ */
.pyq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.pyq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pyq-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pyq-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.pyq-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-3);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.pyq-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pyq-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.pyq-download:hover {
  opacity: 0.85;
}
.pyq-download + .pyq-download {
  margin-left: var(--space-2);
}

/* ============================================
   TABLE OVERFLOW (Task 6)
   ============================================ */
.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-4) 0;
}
.table-scroll-wrapper table {
  min-width: 500px;
}

/* ============================================
   ADDITIONAL BREAKPOINTS (Task 7)
   ============================================ */
/* Tablet portrait */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .hamburger { display: flex; }
  .navbar { display: none; }
  .bottom-nav { display: flex !important; }
  .bottom-nav {
    width: 100vw;
    max-width: 100vw;
  }
  body { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom)) !important; }
  .fab-search { display: none; }

  .brandbar {
    padding: 0 10px;
  }
  .brandbar-inner {
    min-height: 56px;
    padding: 7px 0;
    gap: 8px;
  }
  .brand-svg-logo svg {
    width: 132px;
    height: auto;
  }
  .brand-wordmark {
    font-size: 22px;
  }
  .brand-logo-img {
    max-width: 128px;
    max-height: 32px;
  }
  .brand-tagline {
    display: none;
  }
  .brandbar-right {
    gap: 7px;
  }
  .theme-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
  }
  .lang-cycle-button {
    display: inline-flex;
  }
  .lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    min-width: 76px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000001;
  }
  .lang-switcher.open .lang-menu {
    display: grid;
  }
  .lang-menu .lang-pill {
    min-height: 34px;
    padding: 7px 10px;
    color: var(--ink);
    border-color: var(--border);
    background: var(--surface-2);
  }
  .lang-menu .lang-pill.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
  }

  .hero {
    padding: 14px 12px 16px;
  }
  .hero-inner {
    gap: 12px;
  }
  .hero-badge {
    margin-bottom: 8px;
    padding: 4px 9px;
    font-size: 10px;
    letter-spacing: .04em;
    max-width: 100%;
  }
  .hero-headline {
    font-size: 1.45rem;
    line-height: 1.12;
    margin-bottom: 8px;
  }
  .hero-sub {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .hero-search {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 10px;
    max-width: none;
  }
  .hero-filter-row {
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .hero-search input,
  .hero-search button,
  .filter-btn {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .hero-search button {
    grid-row: auto;
    grid-column: auto;
  }
  .hero-pills {
    gap: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .hero-pills::-webkit-scrollbar {
    display: none;
  }
  .hero-pill {
    flex: 0 0 auto;
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .hero-stats {
    display: none;
  }
  .hero-stat-card {
    padding: 8px 4px;
    border-radius: 9px;
  }
  .hero-stat-num {
    font-size: 20px;
    line-height: 1;
  }
  .hero-stat-label {
    font-size: 8px;
    letter-spacing: .04em;
  }
  .section {
    padding: 18px 12px;
  }
  .section-header {
    margin-bottom: 12px;
  }
  .section-title { font-size: 1.25rem; }
  .card-grid,
  .feed-list,
  .ca-widget-grid {
    gap: 9px;
  }
  .card,
  .feed-item,
  .category-card,
  .directory-card {
    border-radius: 8px;
    padding: 10px;
  }
  .card-link {
    gap: 5px;
  }
  .card-title,
  .feed-item .title {
    font-size: 13.5px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
  }
  .card-excerpt {
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 1;
  }
  .card-footer,
  .feed-item .meta {
    padding-top: 5px;
    font-size: 11px;
  }
  .card-badge,
  .browse-hero-badge,
  .detail-badge {
    font-size: 9px;
    padding: 3px 7px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .directory-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .directory-card .icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 8px;
  }
  .directory-card .name,
  .category-card .name {
    font-size: 13px;
  }
  .directory-card .meta,
  .category-card .count {
    font-size: 11px;
  }

  .browse-hero,
  .search-hero,
  .detail-hero,
  .ca-header {
    padding: 16px 12px;
  }
  .browse-layout,
  .article-shell,
  .ca-layout {
    padding: 14px 12px;
    gap: 12px;
  }
  .browse-hero h1,
  .search-hero h1,
  .detail-title {
    font-size: 1.35rem;
    line-height: 1.16;
  }
  .browse-hero {
    display: none;
  }
  .browse-layout {
    padding-top: 12px;
  }
  .browse-sidebar {
    display: none;
  }
  .browse-filter-strip {
    margin-bottom: 10px;
  }
  .browse-filter-strip a {
    padding: 6px 9px;
    font-size: 11px;
  }
  .browse-hero p,
  .detail-date {
    font-size: 12px;
  }
  .home-latest-section,
  .home-ca-section,
  .browse-ca-widget {
    display: none;
  }
  .breadcrumb {
    display: none;
  }
  .detail-meta,
  .detail-cta-row {
    gap: 7px;
    margin-bottom: 9px;
  }
  .btn-primary,
  .btn-secondary {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
    border-radius: 8px;
  }
  .detail-bookmark-btn {
    margin-left: 0;
  }
  .article-sidebar {
    display: none;
  }
  .summary-box,
  .toc,
  .dates-section,
  .official-links-section,
  .related-section,
  .detail-search-card,
  .sidebar-box,
  .ca-widget {
    margin-bottom: 12px;
  }
  .summary-box,
  .toc,
  .dates-section,
  .detail-search-card,
  .ca-widget {
    padding: 12px;
    border-radius: 8px;
  }

  /* ── Mobile: hide inline TOC, show floating sticky one ── */
  .toc { display: none !important; }

  /* Floating TOC Pill */
  .mob-toc {
    position: fixed;
    bottom: 70px; /* above bottom nav */
    right: 14px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    pointer-events: none;
  }
  .mob-toc-list {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.22s ease;
    opacity: 0;
    pointer-events: none;
    width: 240px;
    margin-bottom: 8px;
  }
  .mob-toc-list.open {
    max-height: 58vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mob-toc-list-inner {
    padding: 8px 4px;
  }
  .mob-toc-list-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-muted, #9ca3af);
    padding: 4px 12px 6px;
  }
  .mob-toc-list a {
    display: block;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-secondary, #374151);
    border-radius: 8px;
    line-height: 1.35;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mob-toc-list a:hover,
  .mob-toc-list a:active { background: var(--bg-muted, #f3f4f6); color: var(--accent, #ea580c); }
  .mob-toc-list a.mob-toc-active {
    background: var(--accent-soft, #fff7ed);
    color: var(--accent, #ea580c);
    font-weight: 700;
  }
  /* Pill trigger button */
  .mob-toc-trigger {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg, #1e293b);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 14px 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    max-width: 200px;
    transition: background 0.18s, box-shadow 0.18s;
    line-height: 1.2;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-toc-trigger:active { box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
  .mob-toc-trigger svg { flex-shrink: 0; opacity: 0.85; transition: transform 0.22s ease; }
  .mob-toc-trigger.open svg.mob-toc-chevron { transform: rotate(180deg); }
  .mob-toc-trigger-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
  }
  [data-theme="dark"] .mob-toc-list {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.42);
  }
  [data-theme="dark"] .mob-toc-trigger {
    background: #0f172a;
  }
  [data-theme="dark"] .mob-toc-list a.mob-toc-active {
    background: rgba(234,88,12,0.15);
  }
  .post-rich-content {
    font-size: 14px;
    line-height: 1.58;
  }
  .post-rich-content h2 {
    font-size: 18px;
    margin: 18px 0 8px;
  }
  .post-rich-content h3 {
    font-size: 15.5px;
    margin: 14px 0 6px;
  }
  .post-rich-content p,
  .post-rich-content ul,
  .post-rich-content ol {
    margin-bottom: 10px;
  }
  .post-rich-content ul,
  .post-rich-content ol {
    padding-left: 19px;
  }
  .post-rich-content th,
  .post-rich-content td,
  .dates-table th,
  .dates-table td {
    padding: 7px 9px;
    font-size: 12px;
  }
  .share-row {
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
  }
  .share-btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .detail-search {
    padding: 8px 10px;
    margin-bottom: 12px;
  }
  .detail-search-form {
    flex-direction: column;
  }
  .link-card-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .link-card,
  .related-card {
    padding: 10px;
    border-radius: 8px;
  }

  .jobs-hub,
  .tools-hub,
  .directory-page {
    padding: 14px 12px;
  }
  .compact-page-head {
    margin-bottom: 12px;
  }
  .compact-kicker {
    min-height: 20px;
    padding: 2px 8px;
    font-size: 9.5px;
    margin-bottom: 6px;
  }
  .compact-page-head h1 {
    font-size: 1.35rem;
    margin-bottom: 5px;
  }
  .compact-page-head p {
    font-size: 12.5px;
    line-height: 1.42;
  }
  .hub-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  .hub-filter-form input {
    grid-column: 1 / -1;
  }
  .hub-filter-form input,
  .hub-filter-form select,
  .hub-filter-form button {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 11.5px;
    border-radius: 7px;
  }
  .hub-chip-grid {
    gap: 6px;
    margin-bottom: 10px;
  }
  .hub-chip-grid a {
    padding: 6px 9px;
    font-size: 11px;
  }
  .hub-section {
    margin-top: 16px;
  }
  .hub-section-head {
    margin-bottom: 8px;
  }
  .hub-section-head h2 {
    font-size: 1.1rem;
  }
  .compact-feed-list,
  .compact-link-grid,
  .compact-link-grid.three,
  .qualification-grid,
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .compact-feed-card a,
  .compact-link-grid a,
  .qualification-card,
  .tool-card {
    padding: 10px;
    border-radius: 8px;
  }
  .compact-feed-card h3 {
    font-size: 13px;
    line-height: 1.3;
  }
  .compact-feed-card p,
  .tool-card span:last-child {
    font-size: 11.5px;
  }
  .tool-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 4px 9px;
  }
  .tool-card span:last-child {
    grid-column: 2;
  }

  .ca-header-inner {
    align-items: flex-start;
  }
  .ca-brand {
    font-size: 22px;
  }
  .ca-brand-tagline,
  .ca-header-date {
    font-size: 11px;
  }
  .ca-mobile-strip {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding: 8px 12px;
    gap: 6px;
  }
  .ca-mobile-pill {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .ca-hero-story {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  .ca-hero-story .headline {
    font-size: 18px;
    line-height: 1.28;
  }
  .ca-hero-story .excerpt {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 8px;
  }
  .ca-story-card {
    padding: 10px;
    border-radius: 8px;
  }
  .ca-story-card .headline {
    font-size: 14px;
  }
  .ca-story-card .excerpt {
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 1;
  }
  .ca-story-card .footer {
    gap: 6px;
    font-size: 10.5px;
  }
  .ca-article-section {
    padding: 12px;
  }
  .ca-article-breadcrumb {
    margin-bottom: 10px;
  }
  .ca-article-card {
    padding: 12px;
    border-radius: 8px;
  }
  .ca-article-tags {
    gap: 6px;
    margin-bottom: 8px;
  }
  .ca-article-title {
    font-size: 1.35rem;
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .ca-article-meta {
    gap: 6px;
    font-size: 11px;
    margin-bottom: 12px;
  }
  .ca-article-card .summary-box {
    padding: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.45;
  }
  .ca-article-card .post-rich-content {
    font-size: 14px;
    line-height: 1.58;
  }
  .ca-article-related {
    margin-top: 16px;
  }

  /* Ensure all touch targets are 48px minimum */
  .nav-link,
  .btn,
  .btn-primary,
  .btn-secondary,
  .hero-search button,
  .search-form button {
    min-height: 40px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding-inline: 12px; }
  .hero { padding: 12px 10px 14px; }
  .hero-headline { font-size: 1.32rem; }
  .detail-hero { padding: 14px 10px; }
  .section-title { font-size: 1.1rem; }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-svg-logo svg {
    width: 122px;
  }
  .brand-wordmark { font-size: 21px; }
  .brand-logo-img { max-width: 118px; }
  .lang-cycle-button,
  .theme-toggle,
  .hamburger {
    width: 36px;
    height: 36px;
  }
  .mobile-nav-overlay {
    width: min(88vw, 318px);
  }
  .mobile-nav-links {
    gap: 6px;
    padding: 8px;
  }
  .mobile-nav-link {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 11.5px;
  }
  .bottom-nav-text { font-size: 10px; }
}

/* ─── Directory Redesign ─────────────────────────────────────────────────── */
.directory-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.directory-tabs::-webkit-scrollbar { display: none; }
.dir-tab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.dir-tab:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.dir-tab.active {
  background: var(--ink);
  color: #fff;
}

.sector-group {
  margin-bottom: var(--space-8);
}
.sector-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--border);
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}
.department-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: var(--transition-fast);
}
.department-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.dept-icon {
  font-size: 24px;
  background: var(--bg-muted);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.dept-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dept-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dept-count {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.state-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}
.state-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.state-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.state-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-muted);
  color: var(--ink-muted);
  padding: 2px 8px;
  border-radius: 100px;
}
.state-card:hover .state-badge {
  background: #fff;
  color: var(--accent);
}

/* ─── UPSC Practice Module Styles ────────────────────────────────────────── */
.upsc-hub-container {
  font-family: var(--font-sans);
}
.test-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.test-card:hover {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-2px);
}
.status-indicator.status-scheduled {
  background: #eff6ff;
  color: #1e40af;
}
.status-indicator.status-live {
  background: #fef2f2;
  color: #991b1b;
  animation: blink-anim 1.5s infinite;
}
.status-indicator.status-completed {
  background: #f1f5f9;
  color: #475569;
}
.nav-q-btn {
  transition: all 0.15s ease;
}
.nav-q-btn:hover {
  background: var(--bg-muted) !important;
  border-color: var(--border-strong) !important;
}
.option-label {
  transition: all 0.15s ease;
}
.option-label:hover {
  background: var(--bg-muted) !important;
  border-color: var(--border-strong) !important;
}

/* ─── Premium Editorial Column (Slide 2) Styles ────────────────────────── */
.premium-reader-layout {
  font-family: var(--font-serif);
}
.editorial-body p {
  margin-bottom: 24px !important;
}
.editorial-body p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin-right: 10px;
  margin-top: 4px;
  color: #b45309;
  font-family: var(--font-serif);
}
.editorial-body blockquote {
  border-left: 4px solid #b45309 !important;
  padding-left: 20px !important;
  font-style: italic !important;
  font-size: 1.2rem !important;
  margin: 32px 0 !important;
  color: #5c4033 !important;
  font-family: var(--font-serif);
}

@keyframes blink-anim {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

