/* ==========================================================================
   Ayurved Studies — AYUSH Counselling (UG & PG)
   Modern Vibrant Ayurvedic & Medical Design System
   Rich Emeralds (UG) / Royal Indigos (PG) / Saffron Turmeric (AACCC & Gold)
   Mobile-First, Responsive & Touch-Optimized
   ========================================================================== */

:root {
  /* Typography */
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);

  /* Neutrals & Base */
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --body: #334155;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --paper: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;

  /* Lush Emerald (UG / NEET) */
  --ug-900: #064e3b;
  --ug-800: #065f46;
  --ug-700: #047857;
  --ug-600: #059669;
  --ug-500: #10b981;
  --ug-200: #a7f3d0;
  --ug-100: #d1fae5;
  --ug-50: #ecfdf5;

  /* Royal Indigo / Sapphire (PG / AIAPGET) */
  --pg-900: #1e1b4b;
  --pg-800: #1e3a8a;
  --pg-700: #1d4ed8;
  --pg-600: #2563eb;
  --pg-500: #3b82f6;
  --pg-200: #bfdbfe;
  --pg-100: #dbeafe;
  --pg-50: #eff6ff;

  /* Saffron / Turmeric Gold (AACCC Central / Official) */
  --gold-900: #78350f;
  --gold-800: #92400e;
  --gold-700: #b45309;
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-200: #fde68a;
  --gold-100: #fef3c7;
  --gold-50: #fffbeb;

  /* Course Badges */
  --bams-color: #059669;
  --bams-bg: #ecfdf5;
  --bams-border: #a7f3d0;

  --bhms-color: #2563eb;
  --bhms-bg: #eff6ff;
  --bhms-border: #bfdbfe;

  --bums-color: #e11d48;
  --bums-bg: #fff1f2;
  --bums-border: #fecdd3;

  --bsms-color: #0d9488;
  --bsms-bg: #f0fdfa;
  --bsms-border: #99f6e4;

  --bnys-color: #d97706;
  --bnys-bg: #fffbeb;
  --bnys-border: #fde68a;

  /* Schedule Milestone Highlights */
  --sched-green-bg: #f0fdf4; --sched-green-line: #86efac; --sched-green-text: #14532d;
  --sched-blue-bg: #eff6ff; --sched-blue-line: #93c5fd; --sched-blue-text: #1e3a8a;
  --sched-amber-bg: #fffbeb; --sched-amber-line: #fcd34d; --sched-amber-text: #78350f;
  --sched-orange-bg: #fff7ed; --sched-orange-line: #fdba74; --sched-orange-text: #7c2d12;

  /* Dynamic Accents (Default UG) */
  --accent-900: var(--ug-900);
  --accent-800: var(--ug-800);
  --accent-700: var(--ug-700);
  --accent-600: var(--ug-600);
  --accent-500: var(--ug-500);
  --accent-100: var(--ug-100);
  --accent-50: var(--ug-50);
  --accent-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --accent-glow: rgba(16, 185, 129, 0.28);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  /* Border Radii */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
}

/* PG Swapped Variables */
body.pg-guide {
  --accent-900: var(--pg-900);
  --accent-800: var(--pg-800);
  --accent-700: var(--pg-700);
  --accent-600: var(--pg-600);
  --accent-500: var(--pg-500);
  --accent-100: var(--pg-100);
  --accent-50: var(--pg-50);
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --accent-glow: rgba(79, 70, 229, 0.28);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

a {
  color: var(--accent-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-900);
}

button, input, textarea, select {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

[hidden] {
  display: none !important;
}

.shell {
  max-width: 1240px;
  padding: 0 24px;
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 200;
  font-weight: 700;
  font-size: 13px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
}

.brand-logo {
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--muted);
  margin-top: 2px;
}

.header-inner nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-inner nav > a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 4px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.header-inner nav > a:hover {
  color: var(--accent-700);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  font-size: 13px;
  box-shadow: 0 3px 10px var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
  text-decoration: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 85% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 60%),
              radial-gradient(ellipse at 15% 100%, rgba(59, 130, 246, 0.10) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 24px 0 0;
}

body.pg-guide .hero {
  background: radial-gradient(ellipse at 85% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 60%),
              radial-gradient(ellipse at 15% 100%, rgba(14, 165, 233, 0.10) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent-700);
}

.bc-sep {
  color: var(--muted-soft);
  font-size: 11px;
}

.bc-current {
  color: var(--ink);
  font-weight: 700;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.page-heading > div:first-child {
  max-width: 750px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-700);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-600);
  box-shadow: 0 0 0 3px var(--accent-100);
  display: inline-block;
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.hero h1 {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--ink);
}

.hero-copy {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body);
  max-width: 680px;
  margin-bottom: 16px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.heading-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
  color: #ffffff;
  text-decoration: none;
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  background: var(--paper);
  border-color: var(--accent-500);
  color: var(--accent-700);
  box-shadow: var(--shadow-md);
}

.button.small {
  padding: 8px 14px;
  font-size: 12px;
  min-height: 36px;
}

/* Guide Facts Bar (State Pages) */
.guide-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.fact-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fact-card:hover {
  transform: translateY(-2px);
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.fact-card .fact-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border: 1.5px solid #a7f3d0 !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15) !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

body.pg-guide .fact-card .fact-icon {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15) !important;
}

.fact-card .fact-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 3px;
}

.fact-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

/* Quick Sections Navigation Bar */
.quick-links {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  margin: 20px 0 28px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  scrollbar-width: none;
}

.quick-links::-webkit-scrollbar {
  display: none;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.quick-links a:hover {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  transform: translateY(-1px);
}

/* ── Modern Step-by-Step Counselling Process ── */
.cns-steps-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 24px;
}

.cns-step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cns-step-card:hover {
  transform: translateX(4px);
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.cns-step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.cns-step-body {
  flex: 1;
}

.cns-step-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.cns-step-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

/* ── Modern Documents Checklist Grid ── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
}

.doc-item:hover {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.doc-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── Note & Callout Boxes ── */
.note-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.86rem;
  color: #92400e;
  line-height: 1.55;
}

/* ── Official Notification Alert Badge ── */
.cns-notify-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #065f46;
  margin: 4px 0 14px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.12);
}

.cns-notify-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseAnim 2s infinite;
}

/* ── Stream & Portal Comparison Grid ── */
.cns-stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 18px 0 24px;
}

.cns-stream-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.cns-stream-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.cns-stream-card.stream-state {
  border-top: 4.5px solid #059669;
}

.cns-stream-card.stream-aiq {
  border-top: 4.5px solid #0284c7;
}

.cns-stream-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.cns-stream-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
}

.cns-stream-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cns-badge-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
}

.cns-badge-pill.cns-pill-state {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.cns-badge-pill.cns-pill-aiq {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.cns-badge-pill.cns-pill-quota {
  background: #f1f5f9;
  color: #334155;
}

.cns-badge-pill.cns-pill-open {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.cns-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cns-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #334155;
}

.cns-meta-row strong {
  color: #0f172a;
  font-weight: 700;
}

.cns-stream-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none !important;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.22);
  transition: all 0.2s ease;
  margin-top: auto;
  box-sizing: border-box;
}

.cns-stream-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.32);
  color: #ffffff !important;
}

.stream-aiq .cns-stream-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
}

.stream-aiq .cns-stream-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.32);
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .cns-stream-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cns-stream-card {
    padding: 18px 16px;
  }
  .cns-stream-btn {
    font-size: 0.86rem;
    padding: 11px 14px;
  }
}

/* ── Action Buttons Row ── */
.cns-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.cns-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.cns-action-btn:hover {
  background: #047857;
  border-color: #047857;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.2);
}

/* ── Contact Info Cards Grid ── */
.cns-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}

.cns-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #0284c7;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.5;
}

/* ── Schedule Table Steps & Status Badges ── */
.cns-tbl-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cns-tbl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cns-tbl-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.cns-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  margin-bottom: 4px;
}

.quick-links a[aria-current="location"] {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* ==========================================================================
   Hub Content (Main Page)
   ========================================================================== */
.hub-content {
  padding-top: 40px;
  padding-bottom: 70px;
}

.level-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.level-bar h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.level-tabs {
  display: inline-flex;
  padding: 5px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.level-tabs a {
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  text-decoration: none;
  color: var(--muted);
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.level-tabs a:hover {
  color: var(--ink);
}

.level-tabs a[aria-current="page"] {
  background: var(--ug-700);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.35);
}

.level-tabs a.tab-pg[aria-current="page"] {
  background: var(--pg-700);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}

/* Central Counselling Section */
.central-section {
  margin-bottom: 50px;
}

.section-title-wrap {
  margin-bottom: 20px;
}

.badge-accent {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-800);
  background: var(--gold-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.section-title-wrap h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.section-title-wrap p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.central-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.central-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.central-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #059669, #10b981);
}

.central-card.pg::before {
  background: linear-gradient(90deg, #2563eb, #6366f1);
}

.central-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-500);
  text-decoration: none;
}

.central-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.central-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ug-800);
  background: var(--ug-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.central-card.pg .central-badge {
  color: var(--pg-800);
  background: var(--pg-100);
}

.central-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
}

.central-card h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ug-900);
}

.central-card.pg h2 {
  color: var(--pg-900);
}

.central-card h2 span {
  font-size: 18px;
  color: var(--accent-600);
  font-weight: 700;
}

.central-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 20px;
  flex-grow: 1;
}

.central-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.central-features span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 800;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  color: var(--ug-700);
}

.central-card.pg .card-bottom {
  color: var(--pg-700);
}

.card-bottom b {
  font-size: 20px;
  transition: transform 0.15s ease;
}

.central-card:hover .card-bottom b {
  transform: translateX(4px);
}

/* State Directory & Search */
.directory-section {
  margin-top: 40px;
}

.directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.directory-head h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.directory-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.search-box {
  min-width: 320px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  border: 2px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius-full);
  padding: 12px 42px 12px 42px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent-600);
  box-shadow: 0 0 0 4px var(--accent-100);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: var(--line);
  border: none;
  color: var(--ink);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.search-clear-btn:hover {
  background: var(--muted-soft);
  color: #fff;
}

.state-chips-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  padding: 6px 0 16px;
  scrollbar-width: none;
}

.state-chips-bar::-webkit-scrollbar {
  display: none;
}

.chips-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.chip {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--accent-500);
  color: var(--accent-700);
  background: var(--accent-50);
}

.chip.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.search-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 10px 0 18px;
}

/* State Cards Grid */
.state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.state-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.state-card:hover {
  transform: translateY(-3px);
  border-color: var(--ug-500);
  box-shadow: var(--shadow-lg);
}

.state-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.state-initial {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Dynamic Gradient Classes for State Initials */
.grad-emerald { background: linear-gradient(135deg, #059669, #10b981); }
.grad-blue    { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.grad-amber   { background: linear-gradient(135deg, #d97706, #fbbf24); }
.grad-teal    { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.grad-rose    { background: linear-gradient(135deg, #e11d48, #fb7185); }
.grad-purple  { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.grad-indigo  { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.grad-cyan    { background: linear-gradient(135deg, #0891b2, #38bdf8); }

.state-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--line-soft);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.state-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--ink);
}

.state-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.4;
}

.state-links {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  width: 100%;
  margin-top: auto;
}

.state-btn {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
  min-height: 40px;
}

.state-btn.ug {
  background: var(--ug-50);
  color: var(--ug-700);
  border: 1px solid var(--ug-200);
}

.state-btn.ug:hover {
  background: var(--ug-600);
  color: #ffffff;
  border-color: var(--ug-600);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
  text-decoration: none;
}

.state-btn.pg {
  background: var(--pg-50);
  color: var(--pg-700);
  border: 1px solid var(--pg-200);
}

.state-btn.pg:hover {
  background: var(--pg-600);
  color: #ffffff;
  border-color: var(--pg-600);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

.state-btn-disabled {
  font-size: 11px;
  color: var(--muted-soft);
  flex: 1;
  text-align: center;
  padding: 10px 0;
}

.btn-arrow {
  font-size: 13px;
  transition: transform 0.15s ease;
}

.state-btn:hover .btn-arrow {
  transform: translateX(2px);
}

.empty-search {
  font-size: 14px;
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
}

.directory-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 36px;
}

.note-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.directory-note strong {
  display: block;
  color: var(--gold-900);
  margin-bottom: 2px;
}

.directory-note p {
  margin: 0;
  color: var(--gold-800);
}

/* Three Golden Rules (Planning Strip) */
.planning-strip {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.planning-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

.planning-head h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.planning-head p {
  color: var(--muted);
  margin: 0;
}

.planning-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.plan-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-500);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.9;
}

.plan-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 12px;
}

.plan-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Detail / State Page Layout
   ========================================================================== */
.detail-content {
  padding-top: 24px;
  padding-bottom: 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}

.guide-article {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

/* Sidebar TOC (Desktop) */
.toc {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.toc .eyebrow {
  font-size: 10px;
  padding: 0;
  background: none;
  border: none;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.toc nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 6px;
}

.toc nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--body);
  text-decoration: none;
  padding: 6px 9px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.35;
  transition: all 0.15s ease;
}

.toc nav a:hover {
  background: var(--accent-50);
  color: var(--accent-700);
}

.toc nav a[aria-current="location"] {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  border-left: 3px solid #10b981;
}

.toc-help {
  font-size: 11px;
  padding: 8px 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 7px;
  margin-top: 12px;
  color: #92400e;
  line-height: 1.4;
}

.toc-help strong {
  display: block;
  margin-bottom: 2px;
}

.toc-help p {
  margin: 0;
}

/* Content Cards */
.content-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
  scroll-margin-top: 100px;
}

.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-700);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.content-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.content-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}

.content-card p, .content-card li {
  font-size: 14.5px;
  line-height: 1.8;
}

.content-card ul, .content-card ol {
  padding-left: 20px;
}

.content-card li {
  margin-bottom: 8px;
}

.content-card .source-note {
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-800);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

/* Status Note */
.status-note {
  display: flex;
  gap: 12px;
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-600);
  margin-top: 7px;
  flex-shrink: 0;
}

.status-note strong {
  font-size: 13px;
  color: var(--gold-900);
  display: block;
}

.status-note p {
  font-size: 12.5px;
  color: var(--gold-800);
  margin: 2px 0 0;
}

/* Official Updates Editorial Card */
.official-update-card {
  border-top: 5px solid #2563eb !important;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 180%);
}

/* Card Specific Colorful Top Accents */
.content-card#route { border-top: 5px solid #3b82f6; }
.content-card#schedule { border-top: 5px solid #10b981; }
.content-card#eligibility { border-top: 5px solid #8b5cf6; }
.content-card#domicile { border-top: 5px solid #f59e0b; }
.content-card#apply { border-top: 5px solid #06b6d4; }
.content-card#fees { border-top: 5px solid #14b8a6; }
.content-card#choices { border-top: 5px solid #6366f1; }
.content-card#round-rules { border-top: 5px solid #f43f5e; }
.content-card#documents { border-top: 5px solid #ea580c; }
.content-card#reference { border-top: 5px solid #9333ea; }
.content-card#colleges { border-top: 5px solid #2563eb; }
.content-card#questions { border-top: 5px solid #0284c7; }
.content-card#sources { border-top: 5px solid #059669; }

/* Vibrant Pill Section Kickers */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  color: #ffffff !important;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.content-card#route .section-kicker { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.content-card#schedule .section-kicker { background: linear-gradient(135deg, #059669, #10b981); }
.content-card#eligibility .section-kicker { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.content-card#domicile .section-kicker { background: linear-gradient(135deg, #d97706, #f59e0b); }
.content-card#apply .section-kicker { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.content-card#fees .section-kicker { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.content-card#choices .section-kicker { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.content-card#round-rules .section-kicker { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.content-card#documents .section-kicker { background: linear-gradient(135deg, #c2410c, #ea580c); }

.content-card#schedule h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin: 20px 0 12px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
}

.content-card#schedule h3:first-of-type {
  margin-top: 4px;
}

/* Route Grid */
.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}

.route-grid > div:first-child {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
}

.route-grid > div:first-child h3 {
  margin-top: 0;
  color: #1e40af;
  font-size: 16.5px;
  font-weight: 800;
}

.route-grid > div:last-child {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.05);
}

.route-grid > div:last-child h3 {
  margin-top: 0;
  color: #166534;
  font-size: 16.5px;
  font-weight: 800;
}

.route-grid p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #334155;
}

/* Tables & Scrolling with Crisp Sticky Headers */
.table-scroll {
  overflow-x: auto;
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior: contain;
  max-width: 100%;
  margin: 18px 0;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  background: #ffffff !important;
  position: relative;
}

.table-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.content-card table, .cn-schedule-tbl, .table-scroll table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  border: 1px solid #cbd5e1 !important;
}

.content-card th, .cn-schedule-tbl th, .table-scroll th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 13px 18px !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  border: 1px solid #334155 !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

.content-card td, .cn-schedule-tbl td, .table-scroll td {
  padding: 14px 18px !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  vertical-align: top !important;
  line-height: 1.55 !important;
}

.content-card tbody tr:nth-child(even), .cn-schedule-tbl tbody tr:nth-child(even), .table-scroll tbody tr:nth-child(even) {
  background: #f8fafc !important;
}

.content-card tbody tr:hover, .cn-schedule-tbl tbody tr:hover, .table-scroll tbody tr:hover {
  background: #f0fdf4 !important;
}

.content-card tr.cn-highlight td, tr.cn-highlight td {
  background: #f0fdf4 !important;
}

.content-card table strong, .cn-schedule-tbl strong {
  color: #0f172a;
}

/* Stepper (Steps list) - Modern Elevated Card Style */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps::before {
  display: none !important;
}

.steps li {
  counter-increment: step;
  position: relative;
  display: block;
  padding: 18px 22px 18px 74px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.steps li:hover {
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
  transform: translateX(4px);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.steps li strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
  line-height: 1.35;
}

/* Checklist */
.checklist {
  list-style: none !important;
  padding: 0 !important;
  margin: 18px 0;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0 !important;
}

.checklist li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ug-100);
  color: var(--ug-800);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Accordion FAQ */
details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

details[open] {
  border-color: var(--accent-500);
  box-shadow: var(--shadow-sm);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  position: relative;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  transition: transform 0.2s ease;
}

details[open] > summary::after {
  content: "−";
  color: var(--accent-700);
}

details > p {
  padding: 0 20px 18px 20px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.7;
}

/* Reference Section */
.reference-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--gold-50) 100%);
  border-color: var(--gold-200);
}

.reference-section .eyebrow {
  color: var(--gold-800);
  background: var(--gold-100);
  border-color: var(--gold-200);
}

.reference-section .source-note {
  background: var(--gold-100);
  color: var(--gold-900);
  border-color: var(--gold-200);
}

.reference-body {
  padding-bottom: 18px;
  overflow-x: auto;
}

.reference-body .reference-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Sources List */
.source-list {
  list-style: none;
  padding: 0 !important;
  margin: 18px 0;
}

.source-list li {
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0 !important;
}

.source-list li:last-child {
  border-bottom: none;
}

.source-list a {
  font-weight: 700;
  font-size: 14.5px;
}

.source-list span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 3px;
}

/* Related Panel */
.related-panel {
  background: linear-gradient(135deg, var(--ug-900) 0%, #0c3e2c 100%);
  border: none;
  padding: 34px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

body.pg-guide .related-panel {
  background: linear-gradient(135deg, var(--pg-900) 0%, #1e1b4b 100%);
}

.related-panel .eyebrow {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.related-panel h2 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
}

.related-panel > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.related-panel a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}

.related-panel a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ==========================================================================
   College Directory Component
   ========================================================================== */
.college-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.college-heading h2 {
  margin-bottom: 0;
}

.listing-count {
  background: var(--accent-50);
  color: var(--accent-800);
  border: 1px solid var(--accent-200);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.college-source {
  font-size: 12.5px !important;
  color: var(--muted);
  margin-bottom: 20px !important;
  line-height: 1.6 !important;
}

.college-controls {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 1fr 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.control-box label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 36px !important;
}

.college-controls input, .college-controls select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 13.5px;
  color: var(--ink);
  min-height: 42px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.college-controls input:focus, .college-controls select:focus {
  outline: none;
  border-color: var(--accent-600);
  box-shadow: 0 0 0 3px var(--accent-100);
}

.college-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0 16px;
  flex-wrap: wrap;
}

.college-results {
  font-size: 12.5px !important;
  color: var(--muted);
  font-weight: 600;
  margin: 0 !important;
}

.swipe-hint-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-700);
  background: var(--accent-50);
  border: 1px solid var(--accent-200);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.college-group {
  margin-bottom: 22px;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-50);
  padding: 12px 18px;
  border-left: 4px solid var(--accent-600);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.group-icon {
  font-size: 18px;
}

.group-header h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent-900);
  margin: 0;
}

.college-group .table-scroll {
  margin: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-top: none;
}

.college-directory td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.college-directory td:nth-child(2) {
  font-weight: 700;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: break-word;
}

/* Colorful Course Indicators */
.college-directory tr[data-course="BAMS"] td:first-child {
  box-shadow: inset 4px 0 0 var(--bams-color);
}

.college-directory tr[data-course="BHMS"] td:first-child {
  box-shadow: inset 4px 0 0 var(--bhms-color);
}

.college-directory tr[data-course="BUMS"] td:first-child {
  box-shadow: inset 4px 0 0 var(--bums-color);
}

.college-directory tr[data-course="BSMS"] td:first-child {
  box-shadow: inset 4px 0 0 var(--bsms-color);
}

.college-directory tr[data-course="BNYS"] td:first-child {
  box-shadow: inset 4px 0 0 var(--bnys-color);
}

.college-pagination {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12.5px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.btn-page, .btn-page-all {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 9px 16px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  transition: all 0.15s ease;
}

.btn-page:hover:not(:disabled), .btn-page-all:hover {
  border-color: var(--accent-600);
  color: var(--accent-700);
  background: var(--accent-50);
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-indicator {
  font-weight: 700;
  color: var(--muted);
  padding: 0 6px;
}

.empty-colleges {
  padding: 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: #ffffff;
}

.site-footer .shell {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer .brand {
  font-size: 16px;
}

.site-footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-footer nav a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--body);
}

.site-footer nav a:hover {
  color: var(--accent-700);
}

.site-footer small {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--muted-soft);
  margin-top: 12px;
}

.error-page {
  padding-top: 90px;
  padding-bottom: 120px;
  text-align: center;
}

.error-page h1 {
  font-size: 36px;
}

.error-page p {
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ==========================================================================
   Responsive & Mobile Optimization
   ========================================================================== */
@media (max-width: 1100px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 20px;
  }
  .state-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .central-grid {
    grid-template-columns: 1fr;
  }
  .guide-facts {
    grid-template-columns: 1fr 1fr;
  }
  .planning-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .planning-head h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .shell {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 62px;
  }

  .header-inner nav > a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero {
    padding-top: 16px;
  }

  .breadcrumbs {
    font-size: 11px;
    margin-bottom: 14px;
    padding: 4px 10px;
  }

  .page-heading {
    display: block;
    padding-bottom: 18px;
  }

  .hero h1 {
    font-size: 24px;
    letter-spacing: -0.3px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .heading-actions {
    margin-top: 16px;
    width: 100%;
  }

  .heading-actions .button {
    flex: 1;
    text-align: center;
  }

  .guide-facts {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .fact-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .fact-card .fact-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
  }

  .fact-card strong {
    font-size: 13px;
  }

  /* Quick-links bar on mobile */
  .quick-links {
    position: relative;
    border-radius: var(--radius-md);
    padding: 8px;
    margin: 16px 0 20px;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }

  .quick-links a {
    font-size: 12px;
    padding: 8px 12px;
  }

  .detail-content {
    padding-top: 14px;
  }

  .detail-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .toc {
    display: none;
  }

  .content-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
  }

  .content-card h2 {
    font-size: 20px;
  }

  .route-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .state-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .central-card {
    padding: 22px 20px;
  }

  .central-card h2 {
    font-size: 26px;
  }

  .level-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  .level-tabs {
    display: flex;
    width: 100%;
    gap: 6px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
  }

  .level-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
  }

  .hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }

  .highlight-chip {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
  }

  .cns-help-promo-card {
    padding: 20px 18px !important;
    border-radius: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .cns-help-promo-card h3 {
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
  }

  .cns-help-promo-card p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .cns-help-promo-card .button {
    width: 100% !important;
    justify-content: center !important;
  }

  .directory-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .related-panel > div {
    grid-template-columns: 1fr;
  }

  .college-controls {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .site-footer .shell {
    align-items: flex-start;
  }

  .site-footer nav {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (max-width: 440px) {
  .state-grid {
    grid-template-columns: 1fr;
  }

  .heading-actions {
    flex-direction: column;
  }

  .heading-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header, .site-footer, .toc, .heading-actions, .quick-links, .college-controls, .college-pagination, .skip-link {
    display: none !important;
  }
  .shell {
    max-width: none;
    padding: 0;
  }
  .hero {
    background: #fff;
    padding: 0;
  }
  .detail-layout {
    display: block;
  }
  .content-card {
    border: none;
    padding: 10px 0;
    break-inside: avoid;
    box-shadow: none;
  }
  .table-scroll {
    overflow: visible;
  }
  body {
    background: #fff;
  }
}
