/* ================================================================
   Mental Abacus Academy — Shared Design System v2
   Link on every page: <link rel="stylesheet" href="css/shared.css">
   ================================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  /* Brand Colors */
  --blue-deep:    #0F3066;
  --blue:         #1B57A6;
  --blue-mid:     #2468C0;
  --blue-bright:  #3585E0;
  --blue-pale:    #EBF1FB;
  --orange:       #E8720F;
  --orange-light: #FBE8D5;
  --yellow:       #F5BC28;
  --yellow-light: #FFF5D3;

  /* Neutrals — warmer off-white base */
  --warm-white:   #FAF8F5;
  --surface:      #FFFFFF;
  --surface-alt:  #F5F1EC;
  --border:       #E6E0D6;
  --border-soft:  #EDE8DF;

  /* Text */
  --ink:          #0E2A4D;
  --ink-soft:     #3E5A7C;
  --ink-muted:    #7590B0;

  /* Accent beads */
  --bead-red:   #E4572E;
  --bead-teal:  #1FA0A0;
  --bead-green: #3E9C4A;

  /* Shadows — soft, long, multi-layer */
  --shadow-xs:    0 1px 3px rgba(15,48,102,.06);
  --shadow-sm:    0 2px 10px -2px rgba(15,48,102,.10), 0 1px 3px rgba(15,48,102,.05);
  --shadow-card:  0 6px 32px -6px rgba(15,48,102,.13), 0 2px 8px -2px rgba(15,48,102,.06);
  --shadow-float: 0 20px 64px -16px rgba(15,48,102,.22), 0 6px 20px -6px rgba(15,48,102,.09);
  --shadow-hero:  0 40px 90px -24px rgba(15,48,102,.40);
  --shadow-orange: 0 10px 32px -8px rgba(232,114,15,.48);
  --shadow-orange-lg: 0 18px 52px -12px rgba(232,114,15,.44);
  --shadow-blue:  0 10px 32px -8px rgba(27,87,166,.42);

  /* Border Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;

  /* Section spacing */
  --section-v: 100px;

  /* Font families */
  --font-display: 'Baloo 2', 'Noto Sans Ethiopic', sans-serif;
  --font-body:    'Nunito Sans', 'Noto Sans Ethiopic', sans-serif;

  /* Easings */
  --ease:     cubic-bezier(.22,.68,0,1.12);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-std: cubic-bezier(.4,0,.2,1);
}

/* ── 2. RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.12;
}
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
p  { margin: 0; }

/* ── 3. LANGUAGE SYSTEM ───────────────────────────────────────── */
/* !important is required here: several component classes elsewhere in
   this file (e.g. .prog-features li, .proof-quote-cite) set their own
   `display` value with equal-or-higher CSS specificity than a bare
   attribute selector. Without !important those component rules can
   silently win the cascade and defeat the show/hide toggle, causing
   both languages to render at once. */
[lang-am]       { display: none !important; }
[lang-am-block] { display: none !important; }
body.am [lang-en]       { display: none !important; }
/* `revert` restores each element's natural tag display (block for
   h1/p/div/li, inline for span/a/em, etc.) instead of forcing inline —
   so headings and paragraphs don't need a separate lang-am-block
   attribute to lay out correctly in Amharic mode. */
body.am [lang-am]       { display: revert !important; }
body.am [lang-am-block] { display: revert !important; }

/* Ethiopic script needs more generous line-height to prevent cramping */
body.am h1, body.am h2, body.am h3, body.am h4 { line-height: 1.48; }
body.am p, body.am li, body.am .lede, body.am .section-head p { line-height: 1.95; }
body.am .eyebrow span, body.am .kicker { letter-spacing: 0; }

/* ── 4. LAYOUT ────────────────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { padding: var(--section-v) 0; }

/* ── 5. TYPOGRAPHY UTILITIES ──────────────────────────────────── */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--orange);
}
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--blue-deep);
  margin-top: 10px;
  letter-spacing: -.3px;
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.72;
  font-weight: 600;
}

/* ── 6. SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }

/* ── 7. CARD HOVER LIFT ───────────────────────────────────────── */
.card-hover {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float) !important;
}

/* ── 8. BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { box-shadow: var(--shadow-orange-lg); }

.btn-secondary {
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-secondary:hover { background: var(--blue-mid); }

.btn-ghost {
  background: rgba(255,255,255,.09);
  color: white;
  border-color: rgba(255,255,255,.42);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-pale); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: 10px; }

/* ── 9. HEADER & NAV ──────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .25s;
}
header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 20px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--blue-mid), var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(15,48,102,.35);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
  color: var(--blue-deep);
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--orange);
  text-transform: uppercase;
}

/* Nav links */
.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 11px;
  border-radius: 8px;
  position: relative;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-pale); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px;
  bottom: 3px;
  height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
}

/* Navigation Call to Action button (Get Started) */
.nav-links a.nav-cta {
  background: var(--orange);
  color: white !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 4px 12px -2px rgba(232, 114, 15, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-links a.nav-cta:hover {
  background: #f0791e;
  box-shadow: 0 6px 16px -2px rgba(232, 114, 15, 0.4);
  transform: translateY(-1px);
}
.nav-links a.nav-cta:active {
  transform: translateY(0);
}
.nav-links a.nav-cta.active {
  background: var(--blue);
  box-shadow: 0 4px 12px -2px rgba(14, 42, 77, 0.3);
}
.nav-links a.nav-cta.active::after {
  display: none !important;
}

/* Nav actions (lang toggle + profile) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Shop dropdown in nav */
.nav-dropdown { position: relative; list-style: none; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 11px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--blue);
  background: var(--blue-pale);
}
.nav-dropdown-trigger svg { opacity: .65; transition: transform .15s; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  padding: 6px;
  z-index: 300;
  list-style: none;
  margin: 0;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background .12s;
}
.nav-dropdown-menu a:hover {
  background: var(--blue-pale);
  color: var(--blue);
}

/* Profile avatar dropdown */
.nav-profile { position: relative; }
.nav-profile-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--font-display);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .15s, transform .15s;
  padding: 0;
}
.nav-profile-btn:hover {
  box-shadow: 0 4px 12px rgba(27,87,166,.25);
  transform: translateY(-1px);
}
.nav-profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  padding: 6px;
  z-index: 300;
}
.nav-profile.open .nav-profile-menu { display: block; }
.nav-profile-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background .12s;
}
.nav-profile-menu-item:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* Register tuition notice */
.register-notice {
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.register-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #52525b;
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav-links a.nav-cta {
    margin-left: 0;
    margin-top: 12px;
    padding: 12px 14px;
  }
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: #EEF2F8;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.lang-toggle button.on { background: var(--blue); color: white; }

/* Hamburger */
.menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.menu-btn:hover { background: var(--blue-pale); }

/* ── 10. IMAGE-PENDING COMPONENT ──────────────────────────────── */
/*
 * PHOTO CONSENT POLICY
 * ─────────────────────────────────────────────────────────────────
 * All student and parent photos used on this website require:
 *   1. A signed written parental/guardian consent form obtained
 *      BEFORE any photo is published or shared publicly.
 *   2. Photos must be taken at the academy by trusted staff —
 *      NOT stock images or photos of unrelated children.
 *   3. Signed consent forms must be stored securely and retained
 *      for the duration of the photo's use plus at least 3 years.
 *   4. Any consent may be withdrawn; remove photos promptly if so.
 *
 * HOW TO USE: Replace an .img-pending element with a real <img>
 * when a licensed/consented photo is ready. The src placeholder
 * in the HTML comments marks exactly where the file path goes.
 * ─────────────────────────────────────────────────────────────────
 */
.img-pending {
  background: linear-gradient(145deg, var(--blue-pale) 0%, #D5E5FA 100%);
  border: 2px dashed rgba(27,87,166,.28);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 20px;
  color: var(--blue);
  text-align: center;
  user-select: none;
}
.img-pending-icon {
  width: 56px; height: 56px;
  background: rgba(27,87,166,.10);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.img-pending-label {
  font-weight: 800;
  font-size: 13px;
  color: var(--blue);
  line-height: 1.45;
}
.img-pending-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Portrait ratio — for instructor/student headshots */
.img-pending.portrait {
  min-height: 260px;
  border-radius: var(--radius-md);
  width: 100%;
}

/* Small square — for testimonial avatars */
.img-pending.avatar-sq {
  width: 54px; height: 54px; min-height: unset;
  border-radius: 14px;
  padding: 6px;
  gap: 3px;
  border-width: 1.5px;
}
.img-pending.avatar-sq .img-pending-icon { width: 26px; height: 26px; border-radius: 7px; }
.img-pending.avatar-sq .img-pending-icon svg { transform: scale(.7); }
.img-pending.avatar-sq .img-pending-label { font-size: 7.5px; }
.img-pending.avatar-sq .img-pending-sub { display: none; }

/* ── 11. PAGE HERO STRIP ──────────────────────────────────────── */
/* Sub-pages use this smaller hero banner */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(53,133,224,.22) 0%, transparent 70%);
}
.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: #FFECC7;
  border: 1px solid rgba(255,255,255,.24);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
}
.page-hero .eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.page-hero h1 {
  color: white;
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -.4px;
  max-width: 640px;
}
.page-hero p {
  color: #C8DAFA;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  max-width: 540px;
  margin-top: 16px;
}
.page-hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  line-height: 0;
}

/* ── 12. FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--blue-deep);
  color: #CBDAF2;
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 52px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-name { color: white; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-desc { font-size: 13.5px; line-height: 1.75; color: #9FB4D6; max-width: 264px; }
footer h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 800;
}
footer ul { display: flex; flex-direction: column; gap: 10px; }
footer ul li a {
  font-size: 14px;
  font-weight: 600;
  color: #B9CDEB;
  transition: color .15s;
}
footer ul li a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #9FB4D6;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: background .15s, transform .15s;
}
.social-row a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ── 13. CTA BAND ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(125deg, var(--orange) 0%, #C75E08 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  color: white;
  box-shadow: var(--shadow-orange-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(22px, 2.8vw, 32px); max-width: 520px; position: relative; z-index: 1; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-white {
  background: white;
  color: var(--orange);
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.18);
}
.cta-band .btn-white:hover { box-shadow: 0 12px 32px -8px rgba(0,0,0,.22); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); }

/* ── 14. FORM ELEMENTS ────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.form-label .req { color: var(--orange); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,87,166,.12);
}
.form-control::placeholder { color: var(--ink-muted); }
.form-control.error { border-color: #D84040; box-shadow: 0 0 0 3px rgba(216,64,64,.10); }
.form-error {
  font-size: 12.5px;
  font-weight: 700;
  color: #C23030;
  display: none;
}
.form-error.visible { display: block; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237590B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

textarea.form-control { resize: vertical; min-height: 110px; }

/* ── 15. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-v: 72px; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    height: 100vh;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    background: white;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-float);
    gap: 2px;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-links a {
    padding: 12px 14px;
    font-size: 15.5px;
    border-radius: 10px;
  }
  .nav-links a.active::after { display: none; }
  .menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 44px; }
  .cta-band { padding: 44px 32px; }
  .page-hero { padding: 56px 0 64px; }
}
@media (max-width: 600px) {
  :root { --section-v: 56px; }
  .wrap { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-inner { padding: 12px 18px; }
  .btn { padding: 13px 20px; font-size: 14px; }
  .cta-band { padding: 36px 24px; }
  .page-hero { padding: 48px 0 56px; }
}

/* ── 16. SHARED JS UTILITIES (inline SVG icon shortcuts) ──────── */
/* Used by all pages for the brand-mark abacus icon */

/* ── 17. HOMEPAGE SPECIFIC STYLES ────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, var(--blue-bright) 0%, var(--blue) 45%, var(--blue-deep) 100%);
  padding: 80px 0 140px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  color: var(--yellow-light);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}
.hero h1 {
  color: white;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.8px;
}
.hero h1 .hl {
  color: var(--yellow);
}
.hero p.lede {
  color: var(--blue-pale);
  font-size: 19px;
  line-height: 1.65;
  margin: 24px 0 36px;
  max-width: 520px;
  font-weight: 600;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.abacus-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 2;
}
.frame-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: center;
}
.frame-row:last-of-type {
  margin-bottom: 0;
}
.bead {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 -3px 4px rgba(0,0,0,.15), 0 2px 4px rgba(0,0,0,.12);
}
.abacus-caption {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blue-deep);
  font-size: 16px;
  margin-top: 20px;
  text-align: center;
}
.abacus-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.float-chip {
  position: absolute;
  background: var(--surface);
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: var(--shadow-float);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  transition: transform 0.3s var(--ease);
}
.float-chip:hover {
  transform: translateY(-3px);
}
.chip-1 {
  left: -20px;
  bottom: 40px;
}
.chip-2 {
  right: -20px;
  top: 20px;
}
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  line-height: 0;
  z-index: 1;
}

/* QUICK STATS STRIP */
.strip {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strip-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 4px solid var(--orange);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.strip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}
.strip-card:nth-child(2) { border-bottom-color: var(--blue); }
.strip-card:nth-child(3) { border-bottom-color: var(--yellow); }
.strip-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strip-card:nth-child(1) .strip-icon { background: var(--orange-light); }
.strip-card:nth-child(2) .strip-icon { background: var(--blue-pale); }
.strip-card:nth-child(3) .strip-icon { background: var(--yellow-light); }
.strip-title {
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
}
.strip-sub {
  font-weight: 700;
  color: var(--orange);
  font-size: 14px;
  margin-top: 2px;
}

/* WHY CHOOSE */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.why-item {
  padding: 0 16px;
  text-align: center;
}
.why-item + .why-item {
  border-left: 1px solid var(--border-soft);
}
.why-badge {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.why-item:nth-child(1) .why-badge { background: linear-gradient(160deg, #FFD9C2, #FDB98A); }
.why-item:nth-child(2) .why-badge { background: linear-gradient(160deg, #CFE1FB, #9CC1F2); }
.why-item:nth-child(3) .why-badge { background: linear-gradient(160deg, #FFEBB0, #FFD666); }
.why-item h3 {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 12px;
}
.why-item p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* PROGRAMS SECTION */
.programs {
  background: var(--blue-deep);
  position: relative;
  overflow: hidden;
}
.programs .section-head h2, .programs .kicker {
  color: white;
}
.programs .kicker {
  color: var(--yellow);
}
.programs .section-head p {
  color: #B9CDEB;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.program-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  color: white;
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.program-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
}
.program-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--yellow);
  font-size: 16px;
  margin-bottom: 16px;
}
.program-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.program-card p {
  font-size: 14.5px;
  color: #C6D6EE;
  line-height: 1.6;
}

/* BOOKS */
.books-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.book-stack {
  display: flex;
  justify-content: center;
  gap: -15px;
  position: relative;
  height: 320px;
  align-items: center;
}
.book {
  width: 140px;
  border-radius: 8px 16px 16px 8px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px;
  color: white;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.book:hover {
  transform: translateY(-10px) scale(1.05) !important;
  z-index: 10 !important;
}
.book-1 {
  background: linear-gradient(160deg, #2E7CD6, #123B7A);
  transform: rotate(-6deg) translateX(30px);
  z-index: 1;
  height: 250px;
}
.book-2 {
  background: linear-gradient(160deg, #1FA0A0, #0E5C5C);
  transform: translateY(-10px);
  z-index: 2;
  height: 280px;
}
.book-3 {
  background: linear-gradient(160deg, #F0791E, #B4550F);
  transform: rotate(6deg) translateX(-30px);
  z-index: 1;
  height: 250px;
}
.book-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}
.book-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .9;
}
.books-copy h2 {
  color: var(--blue-deep);
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 20px;
}
.books-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
  margin-bottom: 28px;
}
.books-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.books-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.books-list li .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E7F5E9;
  color: var(--bead-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* TESTIMONIALS */
.testimonials {
  background: var(--surface);
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.test-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.test-stars {
  color: var(--yellow);
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.test-quote {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 24px;
}
.test-person {
  display: flex;
  align-items: center;
  gap: 14px;
}
.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: white;
  font-size: 16px;
}
.test-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.test-role {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  margin-top: 1px;
}

/* RESPONSIVE SPECIFICS */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero p.lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-art {
    height: 360px;
    margin-top: 30px;
  }
  .abacus-card {
    margin: 0 auto;
  }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .strip-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .why-item {
    padding: 24px 0;
  }
  .why-item + .why-item {
    border-left: none;
    border-top: 1px solid var(--border-soft);
  }
  .program-grid {
    grid-template-columns: 1fr 1fr;
  }
  .books-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .test-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p.lede {
    font-size: 17px;
  }
  .float-chip {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ── 18. ABOUT PAGE SPECIFIC STYLES ──────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
}
.mission-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}
.mission-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
}
.mission-card-icon {
  width: 44px; height: 44px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.mission-card:nth-child(2) .mission-card-icon {
  background: var(--blue-pale);
  color: var(--blue);
}
.mission-card-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.mission-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Instructor Team */
.team-section {
  background: var(--surface-alt);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.team-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.team-photo-container {
  position: relative;
  width: 100%;
}
.team-info {
  padding: 24px;
}
.team-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--blue-deep);
  font-weight: 800;
}
.team-role {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 19. PROGRAMS PAGE SPECIFIC STYLES ───────────────────────── */
.prog-details-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.prog-detail-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.prog-detail-card:nth-child(even) {
  grid-template-columns: 0.8fr 1.2fr;
}
.prog-detail-card:nth-child(even) .prog-text {
  order: 2;
}
.prog-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.prog-tag {
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prog-tag.orange {
  background: var(--orange-light);
  color: var(--orange);
}
.prog-tag.yellow {
  background: var(--yellow-light);
  color: #B48800;
}
.prog-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.prog-text p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.prog-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prog-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.prog-features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.prog-image-placeholder {
  width: 100%;
}

/* Comparison Table */
.comparison-section {
  background: var(--surface);
}
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--surface);
  min-width: 600px;
}
.comp-table th, .comp-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
}
.comp-table th {
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 16px;
}
.comp-table tr:last-child td {
  border-bottom: none;
}
.comp-table td.strong {
  font-weight: 800;
  color: var(--blue-deep);
}

@media (max-width: 900px) {
  .prog-detail-card {
    grid-template-columns: 1fr !important;
    padding: 32px;
    gap: 30px;
  }
  .prog-detail-card:nth-child(even) .prog-text {
    order: unset;
  }
}

/* ── 20. BOOKSTORE PAGE SPECIFIC STYLES ──────────────────────── */
.bookstore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 30px;
}
.book-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.book-cover-wrap {
  height: 240px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, #D5E5FA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}
.book-cover-preview {
  width: 120px;
  height: 170px;
  border-radius: 6px 12px 12px 6px;
  box-shadow: var(--shadow-float);
  color: white;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease);
}
.book-card:hover .book-cover-preview {
  transform: rotate(-3deg) scale(1.05);
}
.book-card:nth-child(1) .book-cover-preview { background: linear-gradient(160deg, #2E7CD6, #123B7A); }
.book-card:nth-child(2) .book-cover-preview { background: linear-gradient(160deg, #1FA0A0, #0E5C5C); }
.book-card:nth-child(3) .book-cover-preview { background: linear-gradient(160deg, #F0791E, #B4550F); }

.book-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.book-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--blue-deep);
  font-weight: 800;
  margin-bottom: 8px;
}
.book-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.book-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.book-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

/* Bookstore — Single Featured Book */
.bookstore-featured {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-top: 30px;
}
.bookstore-featured-image {
  position: relative;
  height: 100%;
  min-height: 420px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, #D5E5FA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.bookstore-featured-image img {
  max-width: 100%;
  max-height: 460px;
  border-radius: 8px;
  box-shadow: var(--shadow-float);
  transition: transform 0.3s var(--ease);
}
.bookstore-featured-image:hover img {
  transform: scale(1.03) rotate(-1deg);
}
.bookstore-featured-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--orange);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.bookstore-featured-details {
  padding: 40px 40px 40px 0;
}
.bookstore-featured-details .book-name { font-size: 28px; margin-bottom: 14px; }
.bookstore-featured-details .book-desc { font-size: 15px; margin-bottom: 28px; }
.bookstore-featured-price-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bookstore-featured-price { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--blue-deep); }
@media (max-width: 860px) {
  .bookstore-featured { grid-template-columns: 1fr; }
  .bookstore-featured-details { padding: 0 28px 32px; }
  .bookstore-featured-image { min-height: 300px; }
}

/* Bookstore Cart Drawer */
.cart-toggle-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--blue);
  color: white;
  border: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 150;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.cart-toggle-btn:hover {
  transform: scale(1.05);
  background: var(--blue-mid);
}
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  border: 2px solid white;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: var(--surface);
  box-shadow: -10px 0 40px rgba(15,48,102,0.15);
  z-index: 200;
  transition: right 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-soft);
}
.cart-drawer.open {
  right: 0;
}
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--blue-deep);
  font-weight: 800;
}
.cart-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink-soft);
}
.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.cart-item-info h4 {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.cart-item-info p {
  font-size: 13px;
  color: var(--ink-soft);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--bead-red);
  font-size: 13px;
  font-weight: 700;
}
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-soft);
  background: var(--warm-white);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--blue-deep);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,42,77,0.4);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.checkout-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  animation: modalSlideUp 0.3s var(--ease-out);
}
@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  padding: 24px 28px;
  background: var(--blue-deep);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
}
.modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 900px) {
  .bookstore-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .bookstore-grid {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

/* ── 21. REGISTER PAGE SPECIFIC STYLES ───────────────────────── */
.register-container {
  max-width: 680px;
  margin: 0 auto;
}
.register-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  padding: 44px;
}
.register-info-box {
  background: var(--orange-light);
  border: 1px solid rgba(232,114,15,0.2);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 30px;
  color: var(--ink);
}
.register-info-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--orange);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.register-info-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.file-upload-wrapper {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  background: var(--warm-white);
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
}
.file-upload-wrapper:hover, .file-upload-wrapper.dragover {
  border-color: var(--blue);
  background: var(--blue-pale);
}
.file-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-upload-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
}
.file-upload-subtext {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--blue);
  text-decoration: underline;
  margin-top: 8px;
}
.download-link:hover {
  color: var(--blue-mid);
}

@media (max-width: 600px) {
  .register-card {
    padding: 24px 20px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── 22. CONTACT PAGE SPECIFIC STYLES ────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-item-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon-box {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  box-shadow: var(--shadow-xs);
}
.contact-item-detail:nth-child(even) .contact-icon-box {
  background: var(--orange-light);
  color: var(--orange);
}
.contact-info-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--blue-deep);
  margin-bottom: 4px;
}
.contact-info-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.contact-info-desc a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Map Placeholder */
.map-placeholder-container {
  height: 260px;
  background: linear-gradient(135deg, var(--border-soft) 0%, #E2DCD2 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.map-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15,48,102,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15,48,102,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.map-pin {
  font-size: 32px;
  animation: pinBounce 1.5s infinite var(--ease);
  position: relative;
  z-index: 2;
}
@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .map-placeholder-container {
    height: 220px;
  }
}

/* ── 23. HOMEPAGE REFRESH — EDITORIAL OVERRIDES ──────────────
   These override the earlier homepage section styles (section 17).
   The old rules become dead code since index.html no longer references
   .hero-art / .abacus-card / .float-chip / .hero-inner grid.
   ─────────────────────────────────────────────────────────── */

/* HERO — full-width, single-column, editorial */
.hero {
  padding: 120px 0 140px;
  background: linear-gradient(155deg, #091829 0%, #0D2348 26%, #0F3066 58%, #163A82 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -80px;
  width: 680px; height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,130,230,.13) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 28%;
  width: 540px; height: 330px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(240,121,30,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: block;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(46px, 6.5vw, 84px);
  line-height: 1.00;
  letter-spacing: -2.5px;
  max-width: 900px;
  margin-top: 0;
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.68;
  margin: 30px 0 0;
  max-width: 600px;
  color: rgba(195,218,255,.80);
}
.hero-bottom {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 44px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
}
.hero-stat {
  padding: 0 36px;
  border-left: 1px solid rgba(255,255,255,.14);
  text-align: center;
}
.hero-stat:first-child { padding-left: 0; border-left: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(175,205,255,.65);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* Remove the overlap trick since we no longer have hero art */
.strip { margin-top: 0; }

/* PROOF BAR & DETAIL — replaces the Why icon-grid */
.proof-bar {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 72px;
}
.proof-item {
  flex: 1;
  padding: 30px 36px;
  border-right: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 18px;
}
.proof-item:last-child { border-right: none; }
.proof-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
}
.proof-text-label {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
}
.proof-text-sub {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.45;
}
.proof-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
}
.proof-quote-text {
  font-size: clamp(21px, 2.5vw, 28px);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.38;
  letter-spacing: -.3px;
}
.proof-quote-cite {
  display: block;
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.proof-points {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 4px;
}
.proof-point {
  padding-left: 18px;
  border-left: 3px solid var(--orange);
}
.pp-label {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 5px;
}
.pp-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* PROGRAMS — horizontal list (replaces 4-equal-card grid) */
.program-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.program-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 30px 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .2s var(--ease-std);
}
.program-row:last-child { border-bottom: none; }
.program-row:hover { background: rgba(255,255,255,.05); }
.program-num-lg {
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(255,255,255,.20);
  font-size: 24px;
  line-height: 1;
}
.program-row-content h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 5px;
}
.program-row-content p {
  font-size: 14px;
  color: #B9CDEB;
  line-height: 1.5;
  max-width: 680px;
}
.btn-row-link {
  color: var(--yellow);
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap .22s var(--ease);
  white-space: nowrap;
  letter-spacing: .01em;
}
.program-row:hover .btn-row-link { gap: 12px; }

/* Responsive overrides for new homepage layouts */
@media (max-width: 1024px) {
  .hero h1 { max-width: 700px; }
  .proof-detail { gap: 56px; }
}
@media (max-width: 900px) {
  .hero { padding: 80px 0 110px; }
  .hero h1 { font-size: clamp(40px, 7vw, 60px); letter-spacing: -1.5px; }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 28px; }
  .proof-bar { flex-direction: column; }
  .proof-item {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding: 22px 28px;
  }
  .proof-item:last-child { border-bottom: none; }
  .proof-detail { grid-template-columns: 1fr; gap: 48px; }
  .program-row { padding: 22px 28px; gap: 20px; }
}
@media (max-width: 600px) {
  .hero { padding: 72px 0 96px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero p.lede { font-size: 16px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-stat { border-left: none; padding: 0; text-align: left; flex: 0 0 auto; }
  .program-row { grid-template-columns: 36px 1fr; padding: 18px 18px; gap: 14px; }
  .program-row .btn-row-link { display: none; }
  .proof-num { font-size: 36px; }
}

/* ── ICONS (Lucide) ───────────────────────────────────────────── */
.icon {
  width: 1.125em;
  height: 1.125em;
  stroke-width: 2;
  vertical-align: -0.15em;
  display: inline-block;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heading-with-icon .icon {
  color: var(--orange);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-contact-link .icon { color: rgba(255,255,255,.7); }

.social-row a {
  font-size: 0;
}
.social-row a .icon {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,.85);
}

.contact-icon-box .icon,
.mission-card-icon .icon,
.register-info-title .icon,
.section-icon .icon {
  width: 22px;
  height: 22px;
}

.cart-fab .icon { width: 22px; height: 22px; }

.test-stars {
  display: flex;
  gap: 2px;
  color: var(--yellow);
}
.test-stars .icon {
  width: 16px;
  height: 16px;
  fill: var(--yellow);
  stroke: var(--yellow);
}

.registration-closed-banner {
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.registration-closed-banner .icon-lg {
  color: var(--blue);
  margin-bottom: 12px;
}
.registration-closed-banner h3 {
  margin: 0 0 8px;
  color: var(--ink);
}
.registration-closed-banner p {
  margin: 0;
  color: var(--ink-soft);
}
