/* ============================================================
   International Astro Foundation - Maharshi Ved Vyas Academy
   Global Stylesheet | Mobile-First, Modern, Traditional Palette
   ============================================================ */

/* ---------- 1. CSS Variables (Brand Tokens) ---------- */
:root {
  --color-primary: #8B0000;          /* deep maroon */
  --color-primary-dark: #660000;
  --color-primary-light: #B22222;
  --color-accent: #D4A017;           /* gold */
  --color-accent-light: #F4C430;
  --color-cream: #FFF8E7;            /* off-white background */
  --color-cream-dark: #F4EBD0;
  --color-green: #2E7D32;            /* traditional green */
  --color-ink: #2A1A0F;              /* body text */
  --color-muted: #6b5a4a;
  --color-line: #E8DCC0;
  --color-white: #ffffff;
  --color-danger: #C62828;
  --color-success: #2E7D32;
  --color-warn: #EF6C00;

  --font-heading: 'Playfair Display', 'Noto Serif Gujarati', Georgia, serif;
  --font-body:    'Poppins', 'Noto Sans Gujarati', system-ui, -apple-system, sans-serif;
  --font-script:  'Tiro Devanagari Sanskrit', 'Noto Serif Devanagari', serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 6px rgba(139,0,0,.08);
  --shadow:    0 6px 20px rgba(139,0,0,.10);
  --shadow-lg: 0 14px 40px rgba(139,0,0,.18);

  --container: 1200px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }

.text-sanskrit { font-family: var(--font-script); color: var(--color-accent); }
.text-muted    { color: var(--color-muted); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }

/* ---------- 3. Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section        { padding: 70px 0; }
.section-tight  { padding: 40px 0; }
.section-cream  { background: var(--color-cream-dark); }
.section-dark   { background: var(--color-primary-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--color-accent-light); }

.grid            { display: grid; gap: 24px; }
.grid-2          { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3          { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4          { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.flex            { display: flex; }
.flex-between    { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.flex-center     { display: flex; justify-content: center; align-items: center; }
.gap-sm          { gap: 8px; }
.gap             { gap: 16px; }
.gap-lg          { gap: 32px; }

.mt-1{ margin-top:8px } .mt-2{ margin-top:16px } .mt-3{ margin-top:24px } .mt-4{ margin-top:40px }
.mb-1{ margin-bottom:8px } .mb-2{ margin-bottom:16px } .mb-3{ margin-bottom:24px } .mb-4{ margin-bottom:40px }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary   { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-accent-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent    { background: var(--color-accent); color: var(--color-primary-dark); }
.btn-accent:hover { background: var(--color-accent-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline   { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost     { background: transparent; color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-cream-dark); }
.btn-danger    { background: var(--color-danger); color: #fff; }
.btn-success   { background: var(--color-success); color: #fff; }
.btn-sm        { padding: 8px 16px; font-size: .85rem; }
.btn-lg        { padding: 16px 34px; font-size: 1.05rem; }
.btn-block     { display: flex; width: 100%; }

/* ---------- 5. Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img    { margin: -24px -24px 16px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-title  { font-size: 1.15rem; margin-bottom: 8px; }
.card-meta   { font-size: .82rem; color: var(--color-muted); margin-bottom: 12px; }

/* ---------- 6. Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-primary-dark);
}
.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  background: #fff;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212,160,23,.18);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-help  { font-size: .8rem; color: var(--color-muted); margin-top: 4px; }
.form-error { color: var(--color-danger); font-size: .85rem; margin-top: 4px; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }

/* ---------- 7. Alerts ---------- */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin-bottom: 18px;
  font-size: .95rem;
}
.alert-success { background: #E8F5E9; border-color: var(--color-success); color: #1B5E20; }
.alert-danger  { background: #FFEBEE; border-color: var(--color-danger);  color: #B71C1C; }
.alert-warn    { background: #FFF3E0; border-color: var(--color-warn);    color: #E65100; }
.alert-info    { background: #FFF8E7; border-color: var(--color-accent);  color: #6B4E00; }

/* ---------- 8. Badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: .3px;
}
.badge-primary { background: var(--color-primary); color: #fff; }
.badge-accent  { background: var(--color-accent); color: var(--color-primary-dark); }
.badge-success { background: #C8E6C9; color: #1B5E20; }
.badge-warn    { background: #FFE0B2; color: #E65100; }
.badge-danger  { background: #FFCDD2; color: #B71C1C; }
.badge-muted   { background: #ECE5D2; color: var(--color-muted); }

/* ---------- 9. Header / Navigation ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: #f0e6c8;
  font-size: .85rem;
  padding: 6px 0;
}
.topbar a { color: var(--color-accent-light); margin-left: 12px; }
.topbar .divider { color: rgba(255,255,255,.25); margin: 0 8px; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 54px; width: 54px; object-fit: contain; }
.brand-text .brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.1;
}
.brand-text .brand-sub {
  display: block;
  font-size: .75rem;
  color: var(--color-muted);
  font-family: var(--font-script);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--color-ink);
  font-weight: 500;
  font-size: .92rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--color-cream-dark);
  color: var(--color-primary);
}
.nav-menu .dropdown-toggle::after {
  content: '\25BE';
  margin-left: 4px;
  font-size: .7em;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all var(--transition);
  list-style: none;
  margin: 0;
  z-index: 10;
}
.nav-menu li:hover > .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu a { padding: 8px 16px; border-radius: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* ---------- 10. Hero / Banner ---------- */
.hero {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, rgba(139,0,0,.85), rgba(102,0,0,.75)),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(212,160,23,.25), transparent 50%);
}
.hero-inner { position: relative; z-index: 2; padding: 80px 0; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; opacity: .95; margin-bottom: 30px; }
.hero .btn-primary { background: var(--color-accent); color: var(--color-primary-dark); }
.hero .btn-primary:hover { background: #fff; }

/* Announcement scroller */
.ticker {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  padding: 10px 0;
  overflow: hidden;
  font-weight: 500;
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.ticker-label {
  background: var(--color-primary);
  color: var(--color-accent-light);
  padding: 4px 14px;
  border-radius: 999px;
  margin-right: 14px;
  font-size: .85rem;
  font-weight: 700;
}
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  padding-left: 100%;
}
.ticker-track span { margin-right: 60px; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-100%)} }

/* ---------- 11. Counters ---------- */
.counter {
  text-align: center;
  padding: 30px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  transition: transform var(--transition);
}
.counter:hover { transform: translateY(-4px); }
.counter i { font-size: 2.2rem; color: var(--color-accent); margin-bottom: 10px; }
.counter .count-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: 700;
}
.counter .count-label { color: var(--color-muted); font-size: .95rem; }

/* ---------- 12. Footer ---------- */
.footer {
  background: linear-gradient(180deg, #2A0A0A 0%, #1A0505 100%);
  color: #e8d9b8;
  padding: 60px 0 0;
  margin-top: 60px;
}
.footer h4 {
  color: var(--color-accent-light);
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(212,160,23,.3);
}
.footer a { color: #e8d9b8; font-size: .92rem; }
.footer a:hover { color: var(--color-accent-light); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .socials a {
  display: inline-flex; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(212,160,23,.15);
  align-items: center; justify-content: center;
  margin-right: 8px; transition: all var(--transition);
}
.footer .socials a:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(212,160,23,.2);
  font-size: .85rem;
  text-align: center;
}

/* ---------- 13. Tables ---------- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table thead th {
  background: var(--color-primary);
  color: var(--color-accent-light);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .3px;
}
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  font-size: .93rem;
}
.table tbody tr:hover { background: #FBF6E8; }
.table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 14. Auth Pages ---------- */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--color-accent);
}
.auth-card h1 { text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 28px;
}
.auth-toggle {
  display: flex;
  gap: 8px;
  background: var(--color-cream-dark);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.auth-toggle a {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--color-muted);
}
.auth-toggle a.active {
  background: var(--color-primary);
  color: var(--color-accent-light);
}

/* WhatsApp QR block */
.qr-block {
  text-align: center;
  padding: 20px;
  background: var(--color-cream);
  border-radius: var(--radius);
  border: 2px dashed var(--color-accent);
}
.qr-block img { width: 220px; height: 220px; margin: 0 auto 12px; }
.qr-block .status { font-size: .9rem; color: var(--color-muted); }

/* ---------- 15. Exam UI ---------- */
.exam-shell {
  max-width: 780px;
  margin: 40px auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--color-accent);
}
.exam-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--color-line);
  margin-bottom: 20px;
}
.exam-timer {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-danger);
  min-width: 90px;
  text-align: center;
  padding: 6px 14px;
  background: #FFEBEE;
  border-radius: var(--radius-sm);
}
.exam-timer.warn { animation: pulse 1s infinite; }
@keyframes pulse { 50% { background: #FFCDD2; } }

.exam-progress {
  height: 6px; background: var(--color-cream-dark);
  border-radius: 999px; overflow: hidden; margin-bottom: 24px;
}
.exam-progress-bar { height: 100%; background: linear-gradient(90deg, var(--color-accent), var(--color-primary)); transition: width .3s; }

.question-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 24px;
  line-height: 1.5;
}
.option-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.option-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--color-line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
}
.option-item:hover { border-color: var(--color-accent); background: #FFFDF5; }
.option-item.selected { border-color: var(--color-primary); background: #FFF0F0; }
.option-item .opt-label {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-cream-dark);
  display: grid; place-items: center;
  font-weight: 700; color: var(--color-primary);
}
.option-item.selected .opt-label { background: var(--color-primary); color: var(--color-accent-light); }

/* Result summary */
.result-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}
.result-hero .score {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-accent-light);
  line-height: 1;
}
.result-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 16px; }
.result-stat {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}
.result-stat .num { font-size: 2rem; font-weight: 700; color: var(--color-primary); }
.result-stat .lbl { font-size: .85rem; color: var(--color-muted); }

/* ---------- 16. Admin Sidebar Layout ---------- */
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: linear-gradient(180deg, #2A0A0A, #1A0505);
  color: #e8d9b8;
  padding: 24px 0;
}
.admin-side .admin-brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(212,160,23,.2);
  margin-bottom: 20px;
}
.admin-side .admin-brand h3 { color: var(--color-accent-light); font-size: 1.1rem; margin: 0; }
.admin-side .admin-brand small { color: rgba(232,217,184,.7); }
.admin-side nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  color: #e8d9b8;
  font-size: .93rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.admin-side nav a:hover, .admin-side nav a.active {
  background: rgba(212,160,23,.1);
  border-left-color: var(--color-accent);
  color: var(--color-accent-light);
}
.admin-side nav a i { width: 20px; text-align: center; }
.admin-main {
  background: var(--color-cream);
  padding: 24px 32px;
}
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
.admin-shell.collapsed {
  grid-template-columns: 0 1fr;
}
.admin-shell.collapsed .admin-side {
  width: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
.admin-shell.collapsed .admin-side .admin-brand,
.admin-shell.collapsed .admin-side nav a {
  display: none;
}
.admin-shell.collapsed .admin-main {
  padding-left: 24px;
}
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; }
.stat-card {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); }
.stat-card .stat-lbl { color: var(--color-muted); font-size: .85rem; }
.stat-card i { float: right; font-size: 2rem; color: var(--color-accent); opacity: .35; }

/* ---------- 17. Gallery & Videos ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .caption {
  position: absolute; inset: auto 0 0; padding: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: #fff; font-size: .9rem;
}

.video-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 20px; }
.video-item .video-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); background: #000;
}
.video-item .video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- 18. Booking Calendar ---------- */
.calendar {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.calendar-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.calendar-head h3 { margin: 0; color: var(--color-primary); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 4px;
}
.calendar-grid .day-name {
  text-align: center; font-weight: 700; color: var(--color-primary-dark);
  padding: 6px 0; font-size: .82rem; text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--color-cream);
  color: var(--color-ink);
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.booked { background: #FFCDD2; color: #B71C1C; cursor: not-allowed; }
.cal-day.pending { background: #FFE0B2; color: #E65100; }
.cal-day.available:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.cal-day.today { outline: 2px solid var(--color-primary); }
.cal-day.selected { background: var(--color-primary); color: var(--color-accent-light); }

.calendar-legend { display: flex; gap: 16px; margin-top: 14px; font-size: .82rem; flex-wrap: wrap; }
.calendar-legend span::before {
  content: ''; display: inline-block; width: 12px; height: 12px;
  border-radius: 3px; margin-right: 6px; vertical-align: middle;
}
.legend-avail::before   { background: var(--color-cream-dark); }
.legend-booked::before  { background: #FFCDD2; }
.legend-pending::before { background: #FFE0B2; }

/* ---------- 19. Utilities ---------- */
.divider { height: 1px; background: var(--color-line); margin: 24px 0; }
.rounded { border-radius: var(--radius); }
.shadow  { box-shadow: var(--shadow); }
.hidden  { display: none !important; }

/* Section title with underline */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { position: relative; display: inline-block; padding-bottom: 12px; }
.section-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--color-accent);
  border-radius: 999px;
}
.section-title p { color: var(--color-muted); max-width: 640px; margin: 0 auto; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 992px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; top: 0; left: -280px; height: 100vh; width: 260px; z-index: 200; transition: left .3s; }
  .admin-side.open { left: 0; }
}
@media (max-width: 768px) {
  .sidebar-toggle { display: inline-flex; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-top: 1px solid var(--color-line);
    padding: 12px; gap: 4px;
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-menu.open { max-height: 500px; overflow-y: auto; }
  .nav-menu a { padding: 12px; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 16px; opacity: 1; pointer-events: auto; transform: none; }
  .hero-inner { padding: 60px 0; }
  .section { padding: 50px 0; }
  .exam-shell, .auth-card { padding: 24px 20px; }
  .exam-header { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .brand-text .brand-name { font-size: 1rem; }
  .brand img { height: 44px; width: 44px; }
  .counter .count-value { font-size: 2rem; }
  .result-hero .score { font-size: 3rem; }
}

/* Print (result download) */
@media print {
  .header, .footer, .nav, .no-print { display: none !important; }
  body { background: #fff; }
  .exam-shell, .result-hero { box-shadow: none; border: 1px solid #ccc; }
}
