/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --ink: #122327;
  --ink-soft: #1c363c;
  --paper: #F4EFE3;
  --paper-raised: #FBF8F0;
  --gold: #D9A441;
  --gold-deep: #B9832C;
  --teal: #2E7D8C;
  --teal-deep: #1F5A66;
  --green: #3F7A5C;
  --text-on-paper: #2A3A3B;
  --text-muted: #5C6B6A;
  --line: #D9D0BC;
  --danger: #A34D3B;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --max-w: 1180px;
  --shadow-card: 0 20px 60px -20px rgba(18, 35, 39, 0.35);

  /* School colors */
  --mhs-top: #1a3a5c;
  --mhs-bottom: #4a7c9e;
  --ihs-top: #2d6a4f;
  --ihs-bottom: #d4c9b0;

  --school-top: var(--mhs-top);
  --school-bottom: var(--mhs-bottom);
  --school-primary: var(--mhs-top);
  --school-secondary: var(--mhs-bottom);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: var(--gold);
  color: #20160a;
}
.btn-gold:hover { background: #E7B55A; }
.btn-ghost {
  border-color: rgba(251, 248, 240, 0.35);
  color: #FBF8F0;
}
.btn-ghost:hover {
  border-color: #FBF8F0;
  background: rgba(251, 248, 240, 0.08);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper-raised);
}
.btn-ink:hover { background: var(--ink-soft); }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper-raised);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ============================================================
   NAVIGATION (DESKTOP - NO CONFLICTING MOBILE STYLES)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 237, 215, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 500;
}

/* Desktop navigation only - mobile handled by index.css */
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover {
  background: rgba(18, 35, 39, 0.08);
  color: var(--ink);
}
.nav-links a i {
  font-size: 15px;
  color: var(--teal-deep);
}
.nav-links a.active {
  background: var(--ink);
  color: var(--paper-raised);
}
.nav-links a.active i {
  color: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: #20160a;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover {
  background: #E7B55A;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink);
  padding: 4px 8px;
  cursor: pointer;
  z-index: 110;
}

/* Mobile navigation is now handled ENTIRELY by index.css */
/* The nav-overlay, nav-links mobile styles, and nav-close-btn */
/* have been REMOVED from here to avoid conflicts */

/* ============================================================
   VIEW SWITCHING
   ============================================================ */
#registerView { display: none; }
#registerView.active { display: block; }
#trackView { display: none; }
#trackView.active { display: block; }
#teacherView { display: none; }
#teacherView.active { display: block; }
#homeView.hidden { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, var(--ink-soft), var(--ink) 62%);
  color: var(--paper-raised);
  overflow: hidden;
  padding: 80px 0 70px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FBF8F0;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.7;
  max-width: 46ch;
  color: #CFE0DF;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* Route graphic */
.hero-route { position: relative; height: 340px; }
.hero-route svg { width: 100%; height: 100%; }
.route-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.2s ease forwards 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.route-dot {
  fill: #FBF8F0;
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0;
  animation: pop 0.4s ease forwards;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-route { height: 200px; order: -1; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16.5px;
}

.band-ink {
  background: var(--ink);
  color: var(--paper-raised);
}
.band-ink h2 { color: #FBF8F0; }
.band-ink .section-head p { color: #9FB9B7; }

/* ============================================================
   VISION
   ============================================================ */
.vision {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.vision blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 26px;
}
.vision-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.stat-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.stat-card .num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--teal-deep);
}
.stat-card .lbl {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

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

/* ============================================================
   JOURNEY
   ============================================================ */
.journey-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin-top: 10px;
  padding: 20px 0 10px;
}

.journey-line::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 4px;
  background: linear-gradient(90deg, #1a3a5c 0%, #2e7d8c 33%, #d9a441 66%, #2d6a4f 100%);
  border-radius: 4px;
  z-index: 0;
}

.journey-stop {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

.journey-dot-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.journey-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--ink);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.4);
  animation: pop 0.5s ease forwards;
}

.journey-dot.success {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(217, 164, 65, 0.4);
  animation: pop 0.5s ease forwards, glow 2s ease-in-out infinite 0.5s;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(217, 164, 65, 0.3); }
  50% { box-shadow: 0 0 0 2px var(--gold), 0 0 50px rgba(217, 164, 65, 0.6); }
}

.journey-dot-wrapper .pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: pulse-ring 2s ease-in-out infinite;
  z-index: 1;
}

.journey-dot.success + .pulse-ring {
  border-color: var(--gold);
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0; }
}

.journey-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  display: inline-block;
}

.journey-tag.start { background: #1a3a5c; color: #fff; }
.journey-tag.progress { background: #2e7d8c; color: #fff; }
.journey-tag.success { background: var(--gold); color: #20160a; box-shadow: 0 0 20px rgba(217, 164, 65, 0.25); }

.journey-stop h4 { font-size: 15px; margin-top: 0; font-weight: 700; color: var(--ink); }
.journey-stop p { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; max-width: 180px; }

.journey-stop:nth-child(1) .journey-dot { animation-delay: 0.3s; }
.journey-stop:nth-child(2) .journey-dot { animation-delay: 0.6s; }
.journey-stop:nth-child(3) .journey-dot { animation-delay: 0.9s; }
.journey-stop:nth-child(4) .journey-dot { animation-delay: 1.2s; }

@media (max-width: 900px) {
  .journey-line {
    flex-direction: column;
    gap: 28px;
    padding: 0 0 10px;
  }
  .journey-line::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, #1a3a5c 0%, #2e7d8c 33%, #d9a441 66%, #2d6a4f 100%);
  }
  .journey-stop {
    flex-direction: row;
    text-align: left;
    padding: 0 0 0 70px;
    gap: 16px;
    align-items: center;
  }
  .journey-dot-wrapper {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-bottom: 0;
  }
  .journey-dot { width: 44px; height: 44px; font-size: 18px; }
  .journey-stop .content { flex: 1; }
  .journey-stop h4 { font-size: 14px; margin-top: 0; }
  .journey-stop p { font-size: 12px; max-width: 100%; }
  .journey-tag { font-size: 9px; padding: 2px 10px; }
}

@media (max-width: 480px) {
  .journey-dot { width: 38px; height: 38px; font-size: 15px; }
  .journey-stop { padding: 0 0 0 54px; }
  .journey-stop h4 { font-size: 13px; }
  .journey-stop p { font-size: 11px; }
}

/* ============================================================
   COMPONENTS GRID
   ============================================================ */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.comp-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.comp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(18, 35, 39, 0.35);
}
.comp-card .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 700;
}
.comp-card h4 {
  font-size: 17.5px;
  margin-top: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comp-card h4 i {
  color: var(--teal-deep);
  font-size: 18px;
}
.comp-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

@media (max-width: 900px) { .comp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .comp-grid { grid-template-columns: 1fr; } }

/* ============================================================
   REGISTER CTA
   ============================================================ */
.register-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 46px;
}
.register-cta .steps-preview {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.steps-preview span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}
.steps-preview span b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

@media (max-width: 700px) {
  .register-cta { padding: 28px 24px; flex-direction: column; text-align: center; }
  .steps-preview { justify-content: center; }
}

/* ============================================================
   WHATSAPP CTA
   ============================================================ */
.wa-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  border-radius: 20px;
  padding: 40px 44px;
  color: #fff;
}
.wa-cta h3 {
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-cta p {
  color: #DCEFEE;
  margin-top: 8px;
  max-width: 46ch;
}
.wa-cta .btn-gold {
  background: #25D366;
  color: #fff;
}
.wa-cta .btn-gold:hover {
  background: #20BD5A;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: #9FB9B7;
  padding: 60px 0 34px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
footer h5 {
  color: #FBF8F0;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
footer .slogan {
  font-family: var(--font-display);
  font-style: italic;
  color: #EDE7D6;
  font-size: 19px;
  margin-top: 10px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
footer a {
  color: #9FB9B7;
}
footer a:hover {
  color: #FBF8F0;
}
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(159, 185, 183, 0.2);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   GLASS CARD REGISTRATION FORM
   ============================================================ */
.register-topbar {
  background: var(--ink);
  color: var(--paper-raised);
  padding: 16px 0;
}
.register-topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CFE0DF;
  font-size: 14px;
  font-weight: 500;
}
.back-link:hover { color: #FBF8F0; }

.register-header {
  padding: 40px 0 30px;
  text-align: center;
}
.register-header h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
}
.register-header p {
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Stepper ---- */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto 40px;
  position: relative;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 34px;
  right: 34px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.stepper .sp-fill {
  position: absolute;
  top: 17px;
  left: 34px;
  height: 2px;
  background: var(--gold-deep);
  z-index: 0;
  width: 0%;
  transition: width 0.3s ease;
}
.sp-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.sp-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.sp-step.done .sp-dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.sp-step.current .sp-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold);
}
.sp-label {
  font-size: 11.5px;
  text-align: center;
  color: var(--text-muted);
  max-width: 90px;
  font-weight: 500;
}
.sp-step.current .sp-label {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 700px) { .sp-label { display: none; } }

/* ---- Glass Card Container ---- */
.glass-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.school-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: var(--ink);
  color: var(--gold);
  padding: 12px 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--gold);
}
.school-badge i {
  font-size: 22px;
  color: var(--gold);
}
.school-badge .school-name {
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  font-family: var(--font-body);
}

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: 24px;
  padding: 48px 44px 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-top: 20px;
}

.glass-card::before,
.glass-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 0;
}
.glass-card::before { top: 0; background: var(--school-top, var(--mhs-top)); }
.glass-card::after { bottom: 0; background: var(--school-bottom, var(--mhs-bottom)); }

.glass-container[data-school="IHS"] .school-badge { border-color: var(--ihs-top); }
.glass-container[data-school="IHS"] .school-badge i { color: var(--ihs-top); }
.glass-container[data-school="IHS"] .glass-card::before { background: var(--ihs-top); }
.glass-container[data-school="IHS"] .glass-card::after { background: var(--ihs-bottom); }
.glass-container[data-school="MHS"] .glass-card::before { background: var(--mhs-top); }
.glass-container[data-school="MHS"] .glass-card::after { background: var(--mhs-bottom); }

.glass-card .panel {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadein 0.3s ease; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title { margin-bottom: 22px; }
.step-title h3 {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-title h3 i { color: var(--teal-deep); }
.step-title p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field label i {
  color: var(--teal-deep);
  font-size: 14px;
  width: 18px;
}
.field .hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 208, 188, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-on-paper);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 125, 140, 0.12);
  background: rgba(255, 255, 255, 0.85);
}
.field textarea {
  resize: vertical;
  min-height: 70px;
}

fieldset {
  border: 1px solid rgba(217, 208, 188, 0.5);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0;
}
legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0 8px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin: 6px 0;
}
.checkbox-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}
.checkbox-row label {
  font-weight: 400;
  font-size: 14px;
}

.upload-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.upload-item label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.upload-item label i { font-size: 14px; }
.upload-item input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px dashed rgba(217, 208, 188, 0.6);
  border-radius: 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.upload-item input[type="file"]:hover { border-color: var(--teal); }
@media (max-width: 600px) { .upload-group { grid-template-columns: 1fr; } }

.review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(217, 208, 188, 0.4);
  border-radius: 12px;
  overflow: hidden;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(217, 208, 188, 0.3);
}
.review-row:last-child { border-bottom: none; }
.review-row dt {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-row dt i {
  color: var(--teal-deep);
  font-size: 13px;
  width: 18px;
}
.review-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 14px;
}
.wizard-nav .btn-group {
  display: flex;
  gap: 10px;
}

.form-note {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 44ch;
  margin-top: 16px;
}

.result-card {
  display: none;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}
.result-card.show { display: block; animation: fadein 0.4s ease; }
.result-card .learner-code {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 2px dashed var(--gold-deep);
  border-radius: 14px;
  padding: 18px 30px;
  display: inline-block;
  margin: 16px 0;
  letter-spacing: 0.03em;
}
.result-card .success-icon {
  font-size: 56px;
  color: var(--green);
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .glass-card { padding: 32px 20px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .wizard-nav { flex-direction: column; align-items: stretch; }
  .wizard-nav .btn-group { justify-content: center; }
  .school-badge {
    font-size: 14px;
    padding: 8px 20px;
    top: -22px;
  }
  .school-badge .school-name { font-size: 12px; }
}

/* ============================================================
   TRACK VIEW
   ============================================================ */
.track-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 0;
}
.track-box input {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  outline: none;
}
.track-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 125, 140, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.status-result {
  margin-top: 28px;
}
.status-result .status-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.status-result .status-steps li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-left: 2px solid var(--line);
  position: relative;
  padding-left: 22px;
}
.status-result .status-steps li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--paper-raised);
}
.status-result .status-steps li.done::before { background: var(--green); }
.status-result .status-steps li.current::before {
  background: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.25);
}
.status-result .status-steps li .s-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.status-result .status-steps li .s-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #FBF8F0;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
  max-width: 90vw;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast i { font-size: 18px; }
.toast.success i { color: var(--gold); }
.toast.error i { color: var(--danger); }

/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 480px) {
  .glass-card { padding: 24px 14px 20px; }
  .school-badge {
    font-size: 12px;
    padding: 6px 14px;
    gap: 6px;
    top: -18px;
  }
  .school-badge i { font-size: 16px; }
  .school-badge .school-name { display: none; }
  .track-box input { font-size: 14px; padding: 12px 14px; }
}

/* ============================================================
   TEACHER PORTAL - remaining styles
   ============================================================ */
#teacherGate .glass-card { padding: 40px 36px; }
#pinInput::placeholder {
  letter-spacing: normal;
  color: var(--text-muted);
}

.percent-preview {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(217, 208, 188, 0.5);
  border-radius: 10px;
  padding: 11px 14px;
  text-align: center;
}
.percent-preview.is-set {
  color: var(--teal-deep);
  border-color: var(--teal);
  background: rgba(46, 125, 140, 0.08);
}

.marks-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.marks-toolbar .field label { font-size: 12.5px; }
.marks-toolbar .field input,
.marks-toolbar .field select { min-width: 180px; }
.marks-toolbar #markDownloadBtn {
  margin-left: auto;
  white-space: nowrap;
}

.marks-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(217, 208, 188, 0.4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
}
.marks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.marks-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(217, 208, 188, 0.5);
  background: rgba(255, 255, 255, 0.4);
}
.marks-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(217, 208, 188, 0.3);
  color: var(--text-on-paper);
  vertical-align: middle;
}
.marks-table tbody tr:last-child td { border-bottom: none; }
.marks-table tbody tr:hover td { background: rgba(255, 255, 255, 0.4); }

.pct-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--teal-deep);
  background: rgba(46, 125, 140, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(217, 208, 188, 0.6);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn:hover {
  background: var(--ink);
  color: var(--paper-raised);
}
.icon-btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

@media (max-width: 700px) {
  .marks-toolbar { flex-direction: column; align-items: stretch; }
  .marks-toolbar .field input,
  .marks-toolbar .field select { min-width: 0; }
  .marks-toolbar #markDownloadBtn { margin-left: 0; justify-content: center; }
}

/* Application tracker styles - keep as is */
.local-save-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(46, 125, 140, 0.1);
  border: 1px solid rgba(46, 125, 140, 0.3);
  color: var(--teal-deep);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
}
.local-save-banner i { font-size: 16px; }

.print-only { display: none; }

/* Print styles - keep as is */
@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  body { background: #fff; color: #1a1a1a; }
  .print-letterhead {
    background: var(--ink);
    color: #FBF8F0;
    padding: 32px 40px 26px;
    border-radius: 10px;
    border-top: 4px solid var(--gold);
    margin-bottom: 28px;
  }
  .print-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
  }
  .print-brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }
  .print-subtitle {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    border-radius: 999px;
    padding: 4px 12px;
    margin-top: 14px;
  }
  .print-tagline {
    font-size: 12.5px;
    color: #9FB9B7;
    margin-top: 10px;
  }
  .print-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #CFE0DF;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  #printEntries { margin-bottom: 12px; }
  .print-uni-banner {
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 11px 16px;
    border-radius: 8px;
    margin: 22px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .print-uni-banner:first-child { margin-top: 0; }
  .print-uni-banner i { color: var(--gold); }
  .print-entry {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .print-entry-header {
    background: var(--paper);
    border-bottom: 2.5px solid var(--gold-deep);
    padding: 10px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink);
  }
  .print-entry-header .entry-num {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    color: var(--gold-deep);
    margin-right: 10px;
  }
  .print-field-row {
    display: flex;
    border-bottom: 1px solid var(--line);
  }
  .print-field-row:last-child { border-bottom: none; }
  .print-field-label {
    width: 150px;
    flex-shrink: 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    background: rgba(244, 239, 227, 0.5);
    padding: 8px 14px;
    border-right: 1px solid var(--line);
  }
  .print-field-value {
    flex: 1;
    padding: 8px 14px;
    font-size: 11.5px;
    color: #1a1a1a;
  }
  .print-field-value > div + div { margin-top: 4px; }
  .fee-icon-paid { color: var(--green); margin-left: 4px; }
  .fee-icon-unpaid { color: var(--danger); margin-left: 4px; }
  .print-status {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--teal-deep);
    background: rgba(46, 125, 140, 0.12);
    border-radius: 999px;
    padding: 2px 9px;
  }
  .print-stamp {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold-deep);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 16px;
    background: var(--paper-raised);
  }
  .print-stamp-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
  }
  .print-stamp-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
  }
  .print-stamp-sub {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
  }
  .print-footer {
    font-size: 10.5px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
  }
  .print-choices-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 10.8px;
    margin: 0 0 20px;
  }
  .print-choices-table th,
  .print-choices-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }
  .print-choices-table thead th {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 2.5px solid var(--gold-deep);
  }
  .print-choices-table th:nth-child(1), .print-choices-table td:nth-child(1) { width: 8%; }
  .print-choices-table th:nth-child(2), .print-choices-table td:nth-child(2) { width: 20%; }
  .print-choices-table th:nth-child(3), .print-choices-table td:nth-child(3) { width: 14%; }
  .print-choices-table th:nth-child(4), .print-choices-table td:nth-child(4) {
    width: 40%;
    white-space: nowrap;
    overflow: visible;
  }
  .print-choices-table th:nth-child(5), .print-choices-table td:nth-child(5) { width: 18%; }
  @page { margin: 16mm; }
}

/* Update Status styles */
.update-status-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  border-radius: 16px;
  padding: 20px 26px;
  margin-bottom: 20px;
  color: #fff;
}
.update-status-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.update-status-cta p {
  color: #DCEFEE;
  font-size: 13px;
  margin-top: 4px;
  max-width: 48ch;
}
@media (max-width: 700px) {
  .update-status-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 35, 39, 0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  position: relative;
  background: var(--paper-raised);
  border-radius: 18px;
  padding: 38px 34px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5);
  max-height: 88vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--paper); }

.status-update-uni-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.5);
}
.status-update-uni {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.status-update-uni i { color: var(--teal-deep); font-size: 13px; }
.status-update-course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.status-update-course-name {
  font-size: 13.5px;
  color: var(--text-on-paper);
  flex: 1;
  min-width: 140px;
}
.status-update-select {
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 170px;
}
.status-update-empty {
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 10px 2px;
}

.course-line + .course-line { margin-top: 4px; }

.course-builder-inputs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.course-builder-inputs input {
  flex: 1;
  min-width: 150px;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 208, 188, 0.5);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.6);
}
.course-builder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(217, 208, 188, 0.5);
  border-radius: 9px;
  padding: 9px 14px;
  margin-top: 8px;
}
.course-builder-row-info { flex: 1; min-width: 160px; }
.course-builder-row-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.course-builder-row-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.course-builder-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .course-builder-inputs { flex-direction: column; }
  .course-builder-inputs input { min-width: 0; }
}

.print-learner-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 18px;
}

/* Navigation dropdowns - keep as is */
.nav-item-dropdown {
  position: relative;
}
.nav-item-dropdown > a {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item-dropdown > a .dropdown-arrow {
  font-size: 10px;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}
.nav-item-dropdown.open > a .dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--paper-raised);
  border-radius: 12px;
  padding: 8px 0;
  margin-top: 6px;
  box-shadow: 0 16px 48px -12px rgba(18, 35, 39, 0.3);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 50;
  list-style: none;
}
.nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu li { padding: 0; margin: 0; }
.nav-dropdown-menu a {
  padding: 10px 18px !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--ink-soft) !important;
  justify-content: flex-start !important;
  width: 100% !important;
}
.nav-dropdown-menu a:hover {
  background: rgba(18, 35, 39, 0.06) !important;
}
.nav-dropdown-menu a i {
  width: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--teal-deep);
}

/* Desktop dropdown hover */
@media (min-width: 781px) {
  .nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-item-dropdown:hover > a .dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* Bursaries section */
.bursary-home-content { max-width: 1100px; margin: 0 auto; }

.bursary-info-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.bursary-info-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bursary-info-card h3 i { color: #b8860b; }
.bursary-info-card p {
  color: var(--text-on-paper);
  font-size: 15px;
  line-height: 1.7;
}
.bursary-info-card ul.qualify-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.bursary-info-card ul.qualify-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text-on-paper);
  font-size: 14.5px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(217, 208, 188, 0.15);
}
.bursary-info-card ul.qualify-list li:last-child { border-bottom: none; }
.bursary-info-card ul.qualify-list li i {
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  color: #2d6a4f;
}
.bursary-info-card ol {
  padding-left: 20px;
  margin: 8px 0 0;
}
.bursary-info-card ol li {
  padding: 4px 0;
  color: var(--text-on-paper);
  font-size: 14.5px;
  line-height: 1.6;
}
.bursary-info-card ol li strong { color: var(--ink); }
.bursary-info-card ul.important-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.bursary-info-card ul.important-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text-on-paper);
  font-size: 14.5px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(217, 208, 188, 0.15);
}
.bursary-info-card ul.important-list li:last-child { border-bottom: none; }
.bursary-info-card ul.important-list li i {
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
}

.bursary-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.bursary-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.bursary-category-grid .category-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.bursary-category-grid .category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px -10px rgba(18, 35, 39, 0.12);
  border-color: #b8860b;
}
.bursary-category-grid .category-card .icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.bursary-category-grid .category-card .icon i { color: #b8860b; }
.bursary-category-grid .category-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.bursary-category-grid .category-card .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

@media (max-width: 700px) {
  .bursary-info-grid { grid-template-columns: 1fr; }
  .bursary-category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bursary-category-grid { grid-template-columns: 1fr 1fr; }
}