/* ============================================================================
   Zenith School of Foreign Languages - Global Stylesheet
   Editorial Luxury · Light + Dark Mode · Premium Educational Aesthetic
   ============================================================================ */

/* -------------------- Design Tokens -------------------- */
:root {
  /* Brand palette - Marine + Sand (white + deep marine teal + warm gold) */
  --navy-900: #0A6B7A;
  --navy-800: #0E8898;
  --navy-700: #14A5B6;
  --navy-600: #28BFCF;
  --gold-700: #B18A2E;
  --gold-600: #D4A537;
  --gold-500: #DFB656;
  --gold-400: #E9C87E;
  --gold-300: #F2DCAE;
  /* Page neutrals - pure white + cool greys (variable names kept as --cream-* for
     compatibility with existing rules; values are now neutral, not warm) */
  --cream-50:  #FFFFFF;
  --cream-100: #F4F7F8;
  --cream-200: #E8EEF0;
  --cream-300: #D6DFE2;

  /* Semantic tokens - light theme */
  --bg:           var(--cream-50);
  --bg-elevated: #ffffff;
  --bg-subtle:   var(--cream-100);
  --bg-inverse:  var(--navy-900);
  --surface:     #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --surface-elevated: #ffffff;

  --text:        #0F2530;
  --text-soft:   #2C4554;
  --text-muted:  #5A7280;
  --text-faint:  #9DB0BB;
  --text-inverse: #F8FBFC;

  --border:        rgba(10, 107, 122, 0.10);
  --border-soft:   rgba(10, 107, 122, 0.13); /* was undefined → card borders silently dropped */
  --border-strong: rgba(10, 107, 122, 0.20);
  --border-gold:   rgba(212, 165, 55, 0.4);

  --accent:        var(--gold-600);
  --accent-soft:   var(--gold-300);
  --accent-hover:  var(--gold-700);
  --accent-on:     var(--navy-900);

  --danger:        #b02a37;
  --success:       #1e6b32;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;

  /* Scale */
  --text-xs: 0.75rem;     /* 12 */
  --text-sm: 0.875rem;    /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-md: 1.0625rem;   /* 17 */
  --text-lg: 1.25rem;     /* 20 */
  --text-xl: 1.5rem;      /* 24 */
  --text-2xl: 2rem;       /* 32 */
  --text-3xl: 2.75rem;    /* 44 */
  --text-4xl: 3.75rem;    /* 60 */
  --text-5xl: 5rem;       /* 80 */

  --leading-tight: 1.15;
  --leading-snug:  1.3;
  --leading-base:  1.55;
  --leading-loose: 1.75;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;
  --tracking-wider:  0.18em;

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

  --radius-sm: 4px;
  --radius:    8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs:  0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-sm:  0 2px 6px rgba(10, 22, 40, 0.05), 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow:     0 8px 24px rgba(10, 22, 40, 0.07), 0 2px 6px rgba(10, 22, 40, 0.04);
  --shadow-md:  0 16px 40px rgba(10, 22, 40, 0.10), 0 4px 12px rgba(10, 22, 40, 0.05);
  --shadow-lg:  0 28px 80px rgba(10, 22, 40, 0.14), 0 8px 24px rgba(10, 22, 40, 0.06);
  --shadow-gold: 0 12px 40px rgba(184, 146, 58, 0.28);

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 520ms;

  --container-max: 1200px;
  --container-wide: 1340px;
  --container-pad: clamp(20px, 5vw, 48px);
  --nav-h: 72px;
}

/* -------------------- Dark Mode -------------------- */
[data-theme="dark"] {
  --bg:           #0a0f1a;
  --bg-elevated:  #111827;
  --bg-subtle:    #0e1522;
  --bg-inverse:   var(--cream-50);
  --surface:      #131c2e;
  --surface-glass: rgba(19, 28, 46, 0.72);
  --surface-elevated: #1a2540;

  --text:        #e9eef8;
  --text-soft:   #c1cadc;
  --text-muted:  #94a0b8;
  --text-faint:  #5e6b85;
  --text-inverse: var(--navy-900);

  --border:        rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-gold:   rgba(220, 192, 112, 0.36);

  --accent:        var(--gold-400);
  --accent-soft:   rgba(220, 192, 112, 0.18);
  --accent-hover:  var(--gold-300);
  --accent-on:     var(--navy-900);

  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm:  0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow:     0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md:  0 16px 40px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg:  0 28px 80px rgba(0, 0, 0, 0.65), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Respect OS preference if no explicit choice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg:           #0a0f1a;
    --bg-elevated:  #111827;
    --bg-subtle:    #0e1522;
    --bg-inverse:   var(--cream-50);
    --surface:      #131c2e;
    --surface-glass: rgba(19, 28, 46, 0.72);
    --surface-elevated: #1a2540;
    --text:        #e9eef8;
    --text-soft:   #c1cadc;
    --text-muted:  #94a0b8;
    --text-faint:  #5e6b85;
    --text-inverse: var(--navy-900);
    --border:        rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.14);
    --border-gold:   rgba(220, 192, 112, 0.36);
    --accent:        var(--gold-400);
    --accent-soft:   rgba(220, 192, 112, 0.18);
    --accent-hover:  var(--gold-300);
  }
}

/* -------------------- Base -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: var(--nav-h);
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-on); }

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

/* -------------------- Typography -------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text);
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 5.5vw, var(--text-4xl)); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, var(--text-3xl)); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2.5vw, var(--text-xl)); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }

p { margin: 0 0 1rem; line-height: var(--leading-loose); color: var(--text-soft); }
strong { color: var(--text); font-weight: 600; }
em { font-style: italic; color: var(--accent); font-family: var(--font-display); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--accent);
}
.eyebrow.eyebrow-center {
  display: flex; justify-content: center;
}
.eyebrow.eyebrow-center::before { display: none; }
.eyebrow.eyebrow-center::after  {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--accent);
}
.eyebrow.eyebrow-center { gap: 14px; }
.eyebrow.eyebrow-center::before {
  content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -------------------- Layout -------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-wide { max-width: var(--container-wide); }
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-divider {
  display: flex; align-items: center; gap: 16px;
  color: var(--text-faint);
}
.section-divider::before,
.section-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.section-divider svg { color: var(--accent); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--cream-50);
  border-color: var(--navy-900);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(220, 192, 112, 0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--t-slow) var(--ease);
}
.btn-primary:hover {
  background: var(--navy-800);
  color: var(--gold-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  border-color: var(--gold-600);
  font-weight: 600;
}
.btn-gold:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-sm  { padding: 9px 18px; font-size: var(--text-xs); }
.btn-lg  { padding: 18px 36px; font-size: var(--text-base); }
.btn-block { width: 100%; }

/* -------------------- Navbar -------------------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--container-pad);
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--t-base) var(--ease);
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(220, 192, 112, 0.25), var(--shadow-sm);
}
.nav-logo-text {
  display: flex; flex-direction: column;
  line-height: 1.05;
}
.nav-logo-text span:nth-child(1) {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo-text span:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--t-fast) var(--ease);
}
.nav-link::after {
  content: ""; position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--t-base) var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { width: 20px; }

.nav-controls {
  display: flex; align-items: center; gap: 12px;
}
.nav-cta {
  padding: 10px 22px;
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--navy-900);
  color: var(--cream-50);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--t-fast) var(--ease);
  border: 1px solid var(--navy-900);
}
.nav-cta:hover {
  background: var(--navy-800);
  color: var(--gold-400);
  transform: translateY(-1px);
}
[data-theme="dark"] .nav-cta {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
[data-theme="dark"] .nav-cta:hover {
  background: var(--gold-400);
  color: var(--navy-900);
}

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-hamburger {
  display: none;
  width: 38px; height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.nav-hamburger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--t-base) var(--ease);
}
.nav-hamburger span:nth-child(1) { top: 13px; }
.nav-hamburger span:nth-child(2) { top: 18px; }
.nav-hamburger span:nth-child(3) { top: 23px; }
.nav-hamburger.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) var(--container-pad) var(--space-8);
  transform: translateY(-110%);
  transition: transform var(--t-base) var(--ease);
  z-index: 99;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  padding: 14px 16px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--accent); background: var(--bg-subtle); }
.mobile-menu .nav-cta {
  margin-top: var(--space-4);
  text-align: center;
  border-bottom: none;
}

/* -------------------- Page Header -------------------- */
.page-header {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(56px, 8vw, 88px);
  background: var(--bg-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 320px at 80% -10%, rgba(184, 146, 58, 0.10), transparent 60%),
    radial-gradient(700px 240px at 10% 110%, rgba(20, 37, 67, 0.05), transparent 60%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, var(--text-4xl));
  max-width: 720px;
}
.page-header p {
  max-width: 620px;
  font-size: var(--text-lg);
  margin-top: var(--space-4);
}

/* -------------------- Home Hero -------------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--cream-50);
  overflow: hidden;
  padding: clamp(80px, 11vw, 140px) 0 clamp(80px, 11vw, 140px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(220, 192, 112, 0.18), transparent 60%),
    radial-gradient(800px 380px at 12% 110%, rgba(220, 192, 112, 0.08), transparent 60%);
  pointer-events: none;
}
.hero::after {
  /* subtle noise/grain overlay */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.06'/></svg>");
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-issue {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-6);
}
.hero-issue::before {
  content: ""; width: 32px; height: 1px; background: var(--gold-400);
}
.hero h1 {
  color: var(--cream-50);
  font-size: clamp(2.5rem, 6.5vw, var(--text-5xl));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  color: var(--gold-400);
  font-family: var(--font-display);
  font-style: italic;
}
.hero-lead {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: rgba(250, 246, 236, 0.78);
  max-width: 560px;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: var(--space-12);
}
.hero .btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.hero .btn-primary:hover { background: var(--gold-400); color: var(--navy-900); }
.hero .btn-secondary {
  color: var(--cream-50);
  border-color: rgba(250, 246, 236, 0.2);
  background: rgba(250, 246, 236, 0.04);
}
.hero .btn-secondary:hover {
  background: rgba(220, 192, 112, 0.12);
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  max-width: 540px;
}
.hero-meta-item {
  border-top: 1px solid rgba(220, 192, 112, 0.25);
  padding-top: var(--space-4);
}
.hero-meta-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--gold-400);
  line-height: 1;
}
.hero-meta-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.55);
  margin-top: 6px;
}

.hero-visual {
  position: relative;
  display: flex; justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
}
.hero-card {
  position: absolute;
  width: 78%;
  background: var(--cream-50);
  color: var(--navy-900);
  padding: 36px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column; gap: 14px;
}
.hero-card:nth-child(1) {
  top: 0; left: 0;
  transform: rotate(-4deg);
  animation: card-bob 8s ease-in-out infinite;
}
.hero-card:nth-child(2) {
  top: 25%; right: 0;
  transform: rotate(3deg);
  animation: card-bob 9s ease-in-out infinite -2s;
  z-index: 2;
}
.hero-card:nth-child(3) {
  bottom: 0; left: 12%;
  transform: rotate(-2deg);
  animation: card-bob 10s ease-in-out infinite -4s;
}
@keyframes card-bob {
  0%, 100% { transform: var(--rot, rotate(0)) translateY(0); }
  50%      { transform: var(--rot, rotate(0)) translateY(-8px); }
}
.hero-card:nth-child(1) { --rot: rotate(-4deg); }
.hero-card:nth-child(2) { --rot: rotate(3deg); }
.hero-card:nth-child(3) { --rot: rotate(-2deg); }

.hero-card-flag {
  font-size: 38px;
  line-height: 1;
}
.hero-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.hero-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-700);
}
.hero-card-line {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
  font-size: 13px;
  color: var(--navy-700);
}
.hero-card-pill {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(184, 146, 58, 0.12);
  color: var(--gold-700);
  border-radius: 2px;
}

/* -------------------- Highlight Strip -------------------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg-elevated);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  align-items: center;
}
.strip-item {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-soft);
}
.strip-item svg { color: var(--accent); flex-shrink: 0; }
.strip-item-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}
.strip-item-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* -------------------- Section Headings -------------------- */
.section-head {
  max-width: 760px;
  margin-bottom: var(--space-12);
}
.section-head.centered {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, var(--text-3xl));
  margin-bottom: var(--space-4);
}
.section-head p {
  font-size: var(--text-lg);
  color: var(--text-soft);
  max-width: 580px;
}
.section-head.centered p { margin-left: auto; margin-right: auto; }

/* -------------------- Course Cards -------------------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: 1fr; /* every card in the grid is the same height */
  gap: var(--space-8);
}
.course-card {
  position: relative;
  display: flex;
  flex-direction: column; /* cover + body stack; body flexes so footer pins to bottom */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}
.course-card-cover { flex-shrink: 0; }
/* Body is a flex column that fills the card; internal blocks get stable heights
   so title / levels / meta line up and the CTA pins to the bottom across a row,
   no matter how long each course's text is. */
.course-card .course-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.course-card .course-title { min-height: 2.6em; }
.course-card .course-desc { flex-shrink: 0; }
.course-card .course-levels { min-height: 56px; align-content: flex-start; }
.course-card .course-btn { margin-top: auto; }
.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
}
.course-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.course-card-cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(220, 192, 112, 0.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(184, 146, 58, 0.15), transparent 50%);
}
.course-card-cover svg {
  position: relative;
  width: 100%; height: 100%;
}
.course-flag-large {
  position: relative;
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.course-card-cover .course-num {
  position: absolute; top: 16px; left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-300);
}
.course-card-cover .course-cert {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: rgba(250, 246, 236, 0.1);
  color: var(--gold-300);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(220, 192, 112, 0.3);
  backdrop-filter: blur(8px);
}
.course-card-body { padding: 28px 28px 32px; }
.course-lang-line {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.course-lang-line .lang-flag { font-size: 22px; line-height: 1; }
/* SVG flags (replace flag emoji) — scale with surrounding font-size */
.zflag { display: inline-block; width: 1.5em; height: 1em; border-radius: 2px; vertical-align: -0.16em; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); overflow: hidden; }
.lang-flag .zflag, .lang-flag svg.zflag { width: 30px; height: 20px; }
.course-flag-large .zflag { width: 64px; height: 43px; border-radius: 4px; vertical-align: middle; }
.faculty-lang .zflag { width: 18px; height: 12px; }
.quiz-step-label .zflag, .lang-choice .zflag, .lang-choice .flag .zflag { width: 22px; height: 15px; }
[data-flag] { display: inline-flex; vertical-align: middle; }
[data-flag] .zflag { width: 26px; height: 17px; }
/* SVG rating stars (replace ★) */
.testi-stars { display: inline-flex; gap: 3px; }
.testi-stars svg { width: 16px; height: 16px; color: #E0A93B; }
.course-lang-line .lang-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.course-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}
.course-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 22px;
}
.course-levels {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 22px;
}
.level-tag {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 2px;
  font-weight: 500;
}
[data-theme="dark"] .level-tag { color: var(--gold-300); }
.course-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.course-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.course-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.course-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.course-card:hover .course-btn { gap: 12px; }
.course-btn::after {
  content: "→";
  transition: transform var(--t-base) var(--ease);
}
.course-card:hover .course-btn::after { transform: translateX(4px); }

/* -------------------- Course Detail -------------------- */
.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-12);
  align-items: flex-start;
}
.course-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: var(--space-10) 0 var(--space-4);
  color: var(--text);
}
.course-body ul {
  margin: 0 0 var(--space-6) 1.25rem;
  padding: 0;
}
.course-body li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--text-soft);
}
.course-info-card {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.course-info-rows {
  display: flex; flex-direction: column;
}
.course-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.course-info-row:last-child { border-bottom: none; }
.course-info-row .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.course-info-row .value { font-weight: 500; color: var(--text); }

/* -------------------- Blog Cards -------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: 1fr; /* every card in the grid is the same height */
  gap: var(--space-8);
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none; color: var(--text);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}
.blog-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}
.blog-card-cover svg {
  width: 100%; height: 100%;
  display: block;
}
.blog-card-category {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  background: rgba(250, 246, 236, 0.95);
  color: var(--navy-900);
  padding: 5px 11px;
  border-radius: 2px;
  font-weight: 600;
  z-index: 1;
}
.blog-card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex; flex-direction: column;
}
.blog-card-meta {
  display: flex; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.blog-card-meta span:not(:first-child)::before {
  content: "·";
  margin-right: 10px;
  color: var(--text-faint);
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}
.blog-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.blog-card:hover .blog-card-link { gap: 12px; }

/* -------------------- Single Article -------------------- */
.post-article {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 112px);
}
.post-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.post-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: var(--space-10);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}
.post-back:hover { color: var(--accent); }
.post-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}
.post-category {
  background: var(--accent);
  color: var(--accent-on);
  padding: 4px 12px;
  border-radius: 2px;
  font-weight: 600;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.post-excerpt {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border);
}
.post-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-soft);
}
.post-body > p:first-child::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4.5rem;
  line-height: 0.9;
  font-weight: 500;
  color: var(--accent);
  padding: 6px 12px 0 0;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: var(--space-10) 0 var(--space-3);
  letter-spacing: -0.01em;
}
.post-body p { margin-bottom: var(--space-5); }
.post-body ul {
  margin: 0 0 var(--space-6) 1.25rem;
  padding: 0;
}
.post-body li {
  margin-bottom: 10px;
  line-height: 1.75;
}
.post-body em { color: var(--accent); font-style: italic; font-family: var(--font-display); }
.post-body strong { color: var(--text); font-weight: 600; }

/* -------------------- Faculty -------------------- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 1fr; /* every card in the grid is the same height */
  gap: var(--space-8);
}
.faculty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px 32px;
  text-align: center;
  transition: all var(--t-base) var(--ease);
  position: relative;
}
.faculty-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}
.faculty-card.faculty-founder {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, var(--surface), var(--surface));
}
.faculty-card.faculty-founder::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-400), transparent 50%, var(--gold-400));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.faculty-avatar {
  width: 96px; height: 96px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--gold-400);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  font-style: italic;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(220, 192, 112, 0.25);
}
.faculty-avatar.faculty-avatar-photo {
  background: var(--bg-subtle);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow), inset 0 0 0 2px var(--gold-400);
}
.faculty-avatar.faculty-avatar-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.faculty-lang {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.faculty-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}
.faculty-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.faculty-meta {
  display: flex; justify-content: center; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.faculty-meta-item {
  text-align: center;
}
.faculty-meta-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.faculty-meta-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.faculty-bio {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
}

/* -------------------- Testimonials -------------------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px 32px;
  position: relative;
  transition: all var(--t-base) var(--ease);
  /* Flex column so quote can grow and the author block stays pinned to the
     bottom - this aligns student names across cards of unequal quote lengths. */
  display: flex;
  flex-direction: column;
}
.testi-card::before {
  content: "“";
  position: absolute;
  top: 8px; right: 24px;
  font-family: var(--font-display);
  font-size: 100px;
  color: var(--accent-soft);
  line-height: 1;
  font-weight: 500;
}
.testi-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}
.testi-stars {
  color: var(--accent);
  letter-spacing: 4px;
  font-size: 16px;
  margin-bottom: 18px;
}
.testi-text {
  position: relative;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 24px;
  flex: 1 1 auto; /* grow so author block is anchored at card bottom */
}
.testi-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: auto;  /* belt-and-braces: pin to bottom of flex column */
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--gold-400);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
}
.testi-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.testi-course {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* -------------------- Stats (animated counters) -------------------- */
.stats {
  padding: var(--space-16) 0;
  background: var(--bg-inverse);
  color: var(--cream-50);
  position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 360px at 20% 0%, rgba(220, 192, 112, 0.12), transparent 60%),
    radial-gradient(700px 280px at 90% 100%, rgba(184, 146, 58, 0.08), transparent 60%);
  pointer-events: none;
}
.stats-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-10);
  text-align: center;
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, var(--text-4xl));
  font-weight: 500;
  color: var(--gold-400);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-item .stat-num .stat-suffix {
  font-size: 0.5em;
  color: var(--gold-400);
}
.stat-item .stat-label {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.7);
}

/* -------------------- Method / Why-Us -------------------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
}
.method-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--t-base) var(--ease);
}
.method-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow);
}
.method-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}
.method-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.method-icon svg { width: 24px; height: 24px; }
.method-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.method-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
}

/* -------------------- About Sections -------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.about-image-inner {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  display: grid; place-items: center;
  color: var(--gold-400);
  text-align: center;
  padding: 40px;
}
.about-image-inner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(220, 192, 112, 0.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(184, 146, 58, 0.1), transparent 50%);
}
.about-image-text {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-display);
  z-index: 1;
}
.about-image-text > span:first-child {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-style: italic;
}
.about-image-text > span:last-child {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(220, 192, 112, 0.7);
  margin-top: 12px;
}
.about-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  box-shadow: var(--shadow-md);
}
.about-badge-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.about-badge-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-top: 6px;
  color: rgba(10, 22, 40, 0.8);
}
.about-points {
  list-style: none; padding: 0; margin: var(--space-6) 0 0;
}
.about-points li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}
.about-points li::before {
  content: ""; position: absolute;
  left: 0; top: 24px;
  width: 16px; height: 1px; background: var(--accent);
}

/* -------------------- FAQ -------------------- */
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}
.faq-list {
  display: flex; flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%;
  padding: 22px 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--accent);
  position: relative;
  transition: transform var(--t-base) var(--ease);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform var(--t-base) var(--ease);
}
.faq-toggle::before { width: 14px; height: 1.5px; }
.faq-toggle::after  { width: 1.5px; height: 14px; }
.faq-item.open .faq-toggle::after { transform: scaleY(0); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base) var(--ease);
}
.faq-answer-inner {
  padding: 0 0 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
  max-width: 92%;
}

/* -------------------- Contact -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: flex-start;
}
.contact-info-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:first-of-type { border-top: 1px solid var(--border); }
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-info-value {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.contact-info-value a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--t-fast) var(--ease);
}
.contact-info-value a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.form-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  display: flex; flex-direction: column;
  margin-bottom: 18px;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font-body);
  transition: all var(--t-fast) var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--space-4);
  line-height: 1.6;
}
.form-error {
  padding: 14px 16px;
  margin: 14px 0;
  border-radius: var(--radius);
  background: rgba(176, 42, 55, 0.08);
  border-left: 3px solid var(--danger);
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 500;
}
.form-error[hidden] { display: none; }
.form-success {
  padding: 18px 20px;
  margin: 14px 0;
  border-radius: var(--radius);
  background: rgba(30, 107, 50, 0.08);
  border-left: 3px solid var(--success);
  color: var(--success);
  font-size: 14px;
  line-height: 1.6;
}
.form-success[hidden] { display: none; }
.form-field input[disabled], .form-field button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* -------------------- CTA strip -------------------- */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--navy-900);
  color: var(--cream-50);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(220, 192, 112, 0.16), transparent 60%);
}
.cta .container { position: relative; z-index: 1; }
.cta h2 {
  color: var(--cream-50);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-4);
}
.cta h2 em { color: var(--gold-400); }
.cta p {
  color: rgba(250, 246, 236, 0.7);
  font-size: var(--text-lg);
  max-width: 580px;
  margin: 0 auto var(--space-8);
}
.cta .btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.cta .btn-primary:hover { background: var(--gold-400); }

/* -------------------- Footer -------------------- */
footer {
  background: var(--navy-900);
  color: rgba(250, 246, 236, 0.7);
  padding: clamp(56px, 8vw, 88px) 0 0;
}
footer .container { padding-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(250, 246, 236, 0.08);
}
.footer-brand .nav-logo span:first-child { color: var(--cream-50); }
.footer-brand .nav-logo span:last-child  { color: rgba(220, 192, 112, 0.7); }
.footer-brand p {
  margin-top: var(--space-4);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(250, 246, 236, 0.55);
  max-width: 360px;
}
.footer-social {
  display: flex; gap: 10px;
  margin-top: var(--space-5);
}
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(250, 246, 236, 0.12);
  border-radius: var(--radius);
  color: rgba(250, 246, 236, 0.6);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
}
.footer-social a:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-5);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(250, 246, 236, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--gold-400); }
.footer-newsletter p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(250, 246, 236, 0.55);
  margin-bottom: var(--space-4);
}
.newsletter-form {
  display: flex; gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(250, 246, 236, 0.05);
  border: 1px solid rgba(250, 246, 236, 0.12);
  border-radius: var(--radius);
  color: var(--cream-50);
  font-size: 13.5px;
  transition: all var(--t-fast) var(--ease);
}
.newsletter-form input::placeholder { color: rgba(250, 246, 236, 0.4); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(250, 246, 236, 0.08);
}
.newsletter-form button {
  padding: 12px 18px;
  background: var(--gold-500);
  color: var(--navy-900);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.newsletter-form button:hover { background: var(--gold-400); }
#newsletterMsg {
  font-size: 12px;
  margin-top: 8px;
  color: var(--gold-400);
  min-height: 18px;
}
.footer-bottom {
  padding: 28px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  color: rgba(250, 246, 236, 0.4);
  text-transform: uppercase;
}

/* -------------------- WhatsApp Float -------------------- */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25d366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 50;
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
}
.wa-float svg { width: 28px; height: 28px; }

/* -------------------- Scroll-to-top -------------------- */
.scroll-top {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--t-base) var(--ease);
  z-index: 50;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
  transform: translateY(-4px);
}
.scroll-top svg { width: 18px; height: 18px; }

/* -------------------- Admin -------------------- */
.admin-login {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.admin-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.admin-subtitle {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 24px;
}
.admin-login-form { display: flex; flex-direction: column; gap: 16px; }
.admin-login-form .btn { width: 100%; }

.admin-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  margin-bottom: var(--space-10);
}
.admin-tabs {
  display: flex; gap: 4px;
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}
.admin-tab {
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 7px; margin-left: 8px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.admin-tab.active .tab-badge { background: var(--accent); color: var(--accent-on); }

.admin-pane { animation: fadein 0.2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.admin-table thead th {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.cell-date { white-space: nowrap; color: var(--text-muted); font-size: 12px; }
.cell-message { max-width: 240px; color: var(--text-soft); font-size: 12.5px; }
.cell-actions { white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  font-weight: 500;
}
.status-new       { background: rgba(184, 146, 58, 0.15); color: var(--gold-700); }
.status-contacted { background: rgba(20, 80, 160, 0.12); color: #1450a0; }
.status-enrolled  { background: rgba(30, 107, 50, 0.12); color: var(--success); }
.status-closed    { background: rgba(0, 0, 0, 0.06); color: var(--text-muted); }
[data-theme="dark"] .status-new       { color: var(--gold-300); }
[data-theme="dark"] .status-contacted { color: #87baff; }
[data-theme="dark"] .status-enrolled  { color: #6ddc8a; }

.status-select {
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}
.btn-icon-danger {
  width: 26px; height: 26px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 16px;
  cursor: pointer;
  display: inline-grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
  line-height: 1;
}
.btn-icon-danger:hover { border-color: var(--danger); color: var(--danger); background: rgba(176, 42, 55, 0.05); }

/* -------------------- 404 -------------------- */
.error-page {
  padding: clamp(80px, 14vw, 160px) 0;
  text-align: center;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.error-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* -------------------- Loading -------------------- */
.loading {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  font-style: italic;
  font-family: var(--font-display);
}

/* -------------------- Fade-in on scroll -------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.08s; }
.fade-up.delay-2 { transition-delay: 0.16s; }
.fade-up.delay-3 { transition-delay: 0.24s; }
.fade-up.delay-4 { transition-delay: 0.32s; }

/* -------------------- Accessibility -------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--accent);
  color: var(--accent-on);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  z-index: 999;
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: 12px; }

/* -------------------- Utilities -------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .course-detail-grid { grid-template-columns: 1fr; }
  .course-info-card { position: static; }
  .faq-section, .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: grid; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-badge { bottom: -16px; right: -8px; padding: 14px 18px; }
  .about-badge-num { font-size: 24px; }
  .hero-meta { grid-template-columns: 1fr; gap: var(--space-4); }
  .post-body > p:first-child::first-letter { font-size: 3.5rem; }
}
@media (max-width: 480px) {
  .wa-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 24px; height: 24px; }
  .scroll-top { bottom: 16px; left: 16px; }
  .stat-item .stat-num { font-size: 2.2rem; }
  .hero-card-stack { aspect-ratio: 5 / 6; }
  .hero-card { padding: 24px 22px; }
  .hero-card-name { font-size: 18px; }
}

/* ============================================================================
   PHASE 2 COMPONENTS - booking, quiz, schedule, resources, portal, payment, admin CRUD
   ============================================================================ */

/* -------------------- Generic split layout -------------------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; } }

/* -------------------- Schedule / Batches -------------------- */
.batch-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--space-8);
}
.batch-filter {
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent; color: var(--text-soft);
  cursor: pointer; transition: all var(--t-fast) var(--ease);
}
.batch-filter:hover { border-color: var(--accent); color: var(--accent); }
.batch-filter.active { background: var(--navy-900); color: var(--cream-50); border-color: var(--navy-900); }
[data-theme="dark"] .batch-filter.active { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }

.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); grid-auto-rows: 1fr; gap: var(--space-6); }
.batch-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 26px 26px 22px;
  transition: all var(--t-base) var(--ease); position: relative; overflow: hidden;
}
.batch-card:hover { transform: translateY(-3px); border-color: var(--border-gold); box-shadow: var(--shadow-md); }
.batch-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.batch-lang {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--accent);
}
.batch-status {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill); font-weight: 600;
}
.batch-status.open    { background: rgba(30,107,50,0.12); color: var(--success); }
.batch-status.filling { background: rgba(184,146,58,0.16); color: var(--gold-700); }
.batch-status.closed  { background: rgba(0,0,0,0.06); color: var(--text-muted); }
[data-theme="dark"] .batch-status.open { color: #6ddc8a; }
[data-theme="dark"] .batch-status.filling { color: var(--gold-300); }
.batch-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 14px; letter-spacing: -0.01em; }
.batch-rows { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.batch-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-soft); }
.batch-row svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.batch-seats { margin-bottom: 16px; }
.batch-seats-bar { height: 6px; border-radius: 99px; background: var(--bg-subtle); overflow: hidden; margin-bottom: 6px; }
.batch-seats-fill { height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); border-radius: 99px; transition: width var(--t-slow) var(--ease); }
.batch-seats-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.batch-actions { display: flex; gap: 8px; }
.batch-actions .btn { flex: 1; padding: 11px 14px; font-size: 13px; }

/* -------------------- Demo booking slots -------------------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.slot-option { position: relative; }
.slot-option input { position: absolute; opacity: 0; pointer-events: none; }
.slot-option label {
  display: block; text-align: center; cursor: pointer;
  padding: 13px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  font-size: 13.5px; color: var(--text-soft); transition: all var(--t-fast) var(--ease);
}
.slot-option label:hover { border-color: var(--accent); color: var(--accent); }
.slot-option input:checked + label { background: var(--navy-900); color: var(--cream-50); border-color: var(--navy-900); }
[data-theme="dark"] .slot-option input:checked + label { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.lang-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) { .lang-choice-grid { grid-template-columns: 1fr; } }
.lang-choice { position: relative; }
.lang-choice input { position: absolute; opacity: 0; pointer-events: none; }
.lang-choice label {
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  padding: 18px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  transition: all var(--t-fast) var(--ease);
}
.lang-choice label .flag { font-size: 30px; line-height: 1; }
.lang-choice label .name { font-size: 13px; font-weight: 500; color: var(--text-soft); }
.lang-choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.lang-choice input:checked + label .name { color: var(--accent); }

/* -------------------- Level Test Quiz -------------------- */
.quiz-card {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow);
}
.quiz-progress { height: 4px; border-radius: 99px; background: var(--bg-subtle); overflow: hidden; margin-bottom: var(--space-8); }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); width: 0; transition: width var(--t-base) var(--ease); }
.quiz-step-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.quiz-question { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 30px); font-weight: 600; color: var(--text); margin-bottom: var(--space-8); line-height: 1.25; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  text-align: left; padding: 16px 20px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--bg); color: var(--text);
  font-size: 15.5px; cursor: pointer; transition: all var(--t-fast) var(--ease);
  display: flex; align-items: center; gap: 14px;
}
.quiz-option:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(3px); }
.quiz-option .opt-key {
  width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: 50%;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}
.quiz-option:hover .opt-key { border-color: var(--accent); color: var(--accent); }
.quiz-result { text-align: center; }
.quiz-result-level {
  font-family: var(--font-display); font-size: clamp(60px, 12vw, 110px); font-weight: 600; font-style: italic;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}
.quiz-result-score { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-6); }
.quiz-result-rec { background: var(--bg-subtle); border-radius: var(--radius-md); padding: 24px; margin: var(--space-6) 0; text-align: left; }
.quiz-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: var(--space-6); }
.quiz-email-capture { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }

/* -------------------- Resources (gated) -------------------- */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-auto-rows: 1fr; gap: var(--space-6); }
.resource-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px 28px; transition: all var(--t-base) var(--ease); display: flex; flex-direction: column;
}
.resource-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--shadow-md); }
.resource-icon {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.resource-icon svg { width: 26px; height: 26px; }
.resource-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.resource-desc { font-size: 14px; color: var(--text-soft); line-height: 1.65; margin-bottom: 22px; flex: 1; }
.resource-card .btn { margin-top: auto; }

/* -------------------- Auth (portal login/register) -------------------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow); }
.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-6);
  padding: 4px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}
.auth-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text-soft);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.auth-tab:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }
.auth-tab.active {
  color: var(--navy-900);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border-soft);
}
.auth-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Safety-net link beneath each form so visitors never miss the alternate action */
.auth-switch {
  text-align: center;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-soft);
}
.auth-switch a {
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch a:hover { color: var(--accent-hover); }

/* -------------------- Portal dashboard -------------------- */
.portal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: var(--space-10); flex-wrap: wrap; }
.portal-greeting { font-family: var(--font-display); font-size: clamp(28px, 5vw, 42px); font-weight: 500; color: var(--text); }
.portal-greeting em { color: var(--accent); }
.portal-section-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--accent); margin: var(--space-10) 0 var(--space-5); }
.enroll-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.enroll-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.enroll-card .flag { font-size: 28px; }
.enroll-card .ec-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); margin: 10px 0 4px; }
.enroll-card .ec-meta { font-size: 13px; color: var(--text-muted); }
.enroll-card .ec-status { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; background: var(--accent-soft); color: var(--accent); }
.announce-list { display: flex; flex-direction: column; gap: 14px; }
.announce-item { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; }
.announce-item h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; color: var(--text); }
.announce-item p { font-size: 14px; margin: 0; color: var(--text-soft); }
.announce-item .date { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-top: 8px; }
.portal-empty { padding: 40px; text-align: center; color: var(--text-muted); background: var(--bg-subtle); border-radius: var(--radius-md); font-family: var(--font-display); font-style: italic; }

/* -------------------- Payment / Enroll -------------------- */
.pay-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow); }
.pay-summary { background: var(--bg-subtle); border-radius: var(--radius-md); padding: 24px; margin-bottom: var(--space-6); }
.pay-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; color: var(--text-soft); }
.pay-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 20px; font-weight: 600; color: var(--text); font-family: var(--font-display); }
.pay-sim-note { background: rgba(184,146,58,0.1); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 12px 16px; font-size: 12.5px; color: var(--gold-700); margin-bottom: var(--space-5); line-height: 1.5; }
[data-theme="dark"] .pay-sim-note { color: var(--gold-300); }

/* -------------------- Admin: forms, modal, sub-tabs -------------------- */
.admin-subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-6); }
.admin-subtab {
  padding: 8px 14px; font-size: 12.5px; font-weight: 500; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent; color: var(--text-muted); cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.admin-subtab:hover { color: var(--text); background: var(--bg-subtle); }
.admin-subtab.active { color: var(--accent); background: var(--accent-soft); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: var(--space-5); flex-wrap: wrap; }
.admin-section-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,22,40,0.55); backdrop-filter: blur(4px);
  z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); width: 100%; max-width: 640px; box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.modal-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--text); }
.modal-close { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text-muted); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { border-color: var(--danger); color: var(--danger); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .modal-grid { grid-template-columns: 1fr; } }
.modal-grid .full { grid-column: 1 / -1; }
.btn-add { display: inline-flex; align-items: center; gap: 8px; }
.cell-thumb { font-size: 22px; }

/* ============================================================================
   PHASE 3 - Course fee, admin sidebar + overview + toasts + search, payment methods
   ============================================================================ */

/* -------------------- Course card fee -------------------- */
.course-price {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 14px 16px; margin: 14px 0 18px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border-gold); border-radius: var(--radius);
}
.course-price-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-soft);
}
.course-price-value {
  font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--accent-hover);
  letter-spacing: -0.01em;
}
.course-info-fee .value { color: var(--accent-hover); font-weight: 600; }
[data-theme="dark"] .course-info-fee .value { color: var(--gold-400); }

/* -------------------- Admin: sidebar shell -------------------- */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  background: var(--bg-inverse); color: var(--cream-100);
  padding: 22px 16px 28px; display: flex; flex-direction: column;
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
}
.admin-sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px;
}
.admin-sidebar-brand .nav-logo-icon { width: 36px; height: 36px; font-size: 17px; background: var(--accent); color: var(--navy-900); }
.admin-sidebar-brand-text { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--cream-50); letter-spacing: -0.01em; }
.admin-sidebar-brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); margin-top: 2px; }
.admin-nav-group { margin-top: 14px; }
.admin-nav-group-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); padding: 4px 12px 6px;
}
.admin-nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 12px; margin: 1px 0;
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
  color: rgba(255,255,255,0.75); font-size: 13.5px; font-weight: 500; text-align: left;
  transition: all var(--t-fast) var(--ease);
}
.admin-nav-item:hover { background: rgba(255,255,255,0.06); color: var(--cream-50); }
.admin-nav-item.active { background: var(--accent); color: var(--navy-900); font-weight: 600; }
.admin-nav-item .badge {
  font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 10px;
  background: rgba(255,255,255,0.12); color: var(--cream-50); font-weight: 500;
}
.admin-nav-item.active .badge { background: rgba(10,22,40,0.16); color: var(--navy-900); }
.admin-sidebar-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar-foot button {
  width: 100%; padding: 9px 12px; background: rgba(255,255,255,0.06); color: var(--cream-50);
  border: 0; border-radius: 8px; font-size: 13px; cursor: pointer; font-weight: 500;
}
.admin-sidebar-foot button:hover { background: rgba(255,255,255,0.12); }
.admin-main { padding: 32px clamp(20px, 4vw, 44px) 60px; min-width: 0; }
.admin-main-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-main-header h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); font-weight: 600; margin: 0; color: var(--text); letter-spacing: -0.02em; }
.admin-main-header .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* Mobile: collapse sidebar to a top bar */
.admin-sidebar-toggle { display: none; }
@media (max-width: 880px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; top: 0; left: 0; right: 0; height: auto; max-height: 100vh; z-index: 50;
    transform: translateY(-100%); transition: transform 0.3s var(--ease); }
  .admin-sidebar.open { transform: translateY(0); }
  .admin-sidebar-toggle {
    display: flex; align-items: center; gap: 10px; position: fixed; top: 16px; right: 16px; z-index: 60;
    padding: 9px 14px; background: var(--navy-900); color: var(--cream-50); border: 0;
    border-radius: 8px; font-size: 13px; cursor: pointer; box-shadow: var(--shadow);
  }
  .admin-main { padding-top: 72px; }
}

/* -------------------- Admin: overview cards -------------------- */
.overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 8px; }
.overview-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px 16px; transition: all var(--t-fast) var(--ease);
}
.overview-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.overview-card .ov-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.overview-card .ov-num { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.overview-card .ov-sub { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.overview-card.accent { background: linear-gradient(135deg, var(--accent-soft), transparent); border-color: var(--border-gold); }
.overview-card.accent .ov-num { color: var(--accent-hover); }
[data-theme="dark"] .overview-card.accent .ov-num { color: var(--gold-300); }
.overview-section-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 28px 0 10px; }

/* -------------------- Admin: search & toolbar -------------------- */
.admin-search-input {
  width: 280px; max-width: 100%; padding: 9px 14px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface);
  font-size: 13.5px; color: var(--text);
}
.admin-search-input:focus { outline: none; border-color: var(--accent); }

/* -------------------- Toast notifications -------------------- */
.toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 12px 16px; font-size: 13.5px; color: var(--text);
  box-shadow: var(--shadow-md); animation: toastIn 0.3s var(--ease);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.fade-out { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* -------------------- Payment methods strip (enroll page) -------------------- */
.pay-methods {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 14px 16px; background: var(--bg-subtle); border-radius: var(--radius);
  margin-bottom: var(--space-5);
}
.pay-methods-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-right: 6px;
}
.pay-method-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 99px; font-size: 11.5px; font-weight: 500; color: var(--text-soft);
}
.pay-method-chip svg { width: 14px; height: 14px; }

body[data-page="admin"] .scroll-top { display: none !important; }
body[data-page="admin"] .wa-float { display: none !important; }

/* ============================================================================
   PHASE 4 - Sidebar icons, notifications bell, charts, enquiry detail, attendance
   ============================================================================ */

/* Sidebar nav with icons */
.admin-nav-item {
  align-items: center;
}
.admin-nav-item svg.nav-icon {
  flex-shrink: 0; width: 16px; height: 16px; opacity: 0.7;
  margin-right: 10px;
}
.admin-nav-item.active svg.nav-icon { opacity: 1; }

/* Notifications bell */
.admin-bell {
  position: relative; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-soft); cursor: pointer;
  display: grid; place-items: center; transition: all var(--t-fast) var(--ease);
}
.admin-bell:hover { color: var(--accent); border-color: var(--accent); }
.admin-bell-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--danger); color: white;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  border-radius: 9px; display: grid; place-items: center; line-height: 1;
}
.notif-panel {
  position: fixed; top: 80px; right: 24px; width: 360px; max-width: calc(100vw - 32px);
  max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 250;
}
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.notif-list { padding: 4px 0; }
.notif-item {
  display: block; padding: 12px 18px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: background var(--t-fast) var(--ease); cursor: pointer;
}
.notif-item:hover { background: var(--bg-subtle); }
.notif-item.unread { background: rgba(184,146,58,0.06); border-left: 3px solid var(--accent); }
.notif-item .nf-kind { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.notif-item .nf-title { font-size: 14px; font-weight: 500; color: var(--text); margin: 2px 0 3px; }
.notif-item .nf-body { font-size: 12.5px; color: var(--text-muted); }
.notif-item .nf-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-top: 4px; }
.notif-empty { padding: 30px 18px; text-align: center; color: var(--text-muted); font-style: italic; }

/* Chart cards */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 18px 14px;
}
.chart-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.chart-card h3 {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0;
}
.chart-card .chart-sub { font-size: 11px; color: var(--text-muted); }
.chart-card canvas { width: 100% !important; height: 220px !important; }

/* Enquiry detail */
.enq-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-bottom: 22px; font-size: 14px; }
.enq-meta dt { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.enq-meta dd { margin: 0; color: var(--text); }
.enq-section { margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--border); }
.enq-section h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.enq-notes { display: flex; flex-direction: column; gap: 10px; max-height: 250px; overflow-y: auto; }
.enq-note {
  background: var(--bg-subtle); border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 10px 14px;
}
.enq-note p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.enq-note .nm { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); display: flex; justify-content: space-between; gap: 10px; }
.enq-note button { background: none; border: 0; color: var(--danger); font-size: 11px; cursor: pointer; padding: 0; }
.enq-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Attendance grid */
.attend-controls { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 18px; }
.attend-controls .form-field { margin: 0; min-width: 200px; }
.attend-list { display: flex; flex-direction: column; gap: 8px; }
.attend-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px;
}
.attend-name { font-weight: 500; }
.attend-email { font-size: 12px; color: var(--text-muted); }
.attend-buttons { display: flex; gap: 6px; }
.attend-btn {
  padding: 6px 14px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: transparent; color: var(--text-soft); cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.attend-btn:hover { border-color: var(--accent); color: var(--accent); }
.attend-btn.present.active { background: var(--success); color: white; border-color: var(--success); }
.attend-btn.late.active    { background: var(--gold-600); color: var(--navy-900); border-color: var(--gold-600); }
.attend-btn.absent.active  { background: var(--danger); color: white; border-color: var(--danger); }

/* Audit log */
.audit-row {
  display: grid; grid-template-columns: 130px 100px 1fr 100px;
  gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--border); font-size: 13px; align-items: center;
}
.audit-row:hover { background: var(--bg-subtle); }
.audit-row .a-action { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); }
.audit-row .a-actor { font-weight: 500; }
.audit-row .a-target { color: var(--text-soft); }
.audit-row .a-date { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); text-align: right; }
@media (max-width: 700px) {
  .audit-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .audit-row .a-date { text-align: left; }
}

/* -------------------- Wordmark logo (replaces icon+text combo when a logo file is set) -------------------- */
.nav-logo.nav-logo-wordmark {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  gap: 0;
}
.nav-logo-wordmark img {
  height: 44px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
}
@media (max-width: 720px) {
  .nav-logo-wordmark img { height: 36px; max-width: 200px; }
}

/* On the footer (which sits on the dark/teal brand background) the navy logo
   would be illegible - paint it white via a CSS filter. brightness(0) flattens
   the image to pure black, then invert(1) flips that to pure white. Works for
   any single-colour PNG silhouette without needing a second image asset. */
.footer-brand .nav-logo-wordmark img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  height: 40px;
  max-width: 240px;
}

/* -------------------- Testimonial carousel -------------------- */
.testi-carousel { position: relative; }
.testi-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 4px 16px;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-carousel .testi-card {
  flex: 0 0 calc(100% - 8px);
  scroll-snap-align: start;
  margin: 0;
}
@media (min-width: 720px) {
  .testi-carousel .testi-card { flex: 0 0 calc(50% - 12px); }
}
@media (min-width: 1100px) {
  .testi-carousel .testi-card { flex: 0 0 calc(33.333% - 16px); }
}
.testi-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.testi-arrow {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: all var(--t-fast) var(--ease);
}
.testi-arrow:hover {
  background: var(--accent);
  color: var(--navy-900);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.testi-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.testi-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 360px;
}
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all var(--t-fast) var(--ease);
}
.testi-dot:hover { background: var(--accent-soft); }
.testi-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.testi-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* -------------------- Admin payments - gateway-status banner -------------------- */
.pay-gateway-banner {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 16px 20px;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--t-fast) var(--ease);
}
.pay-gateway-banner--loading {
  color: var(--text-muted);
  font-size: 13px;
}
.pay-gateway-banner--live {
  border-color: rgba(30, 107, 50, 0.4);
  background: linear-gradient(135deg, rgba(30, 107, 50, 0.04), transparent 60%);
}
.pay-gateway-banner--sim {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
}
.pgb-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pgb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pgb-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pgb-dot--live { background: var(--success); box-shadow: 0 0 0 3px rgba(30, 107, 50, 0.18); }
.pgb-dot--sim  { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pgb-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pgb-name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text);
}
.pgb-state {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-soft);
}
.pay-gateway-banner--live .pgb-state { background: rgba(30, 107, 50, 0.12); color: var(--success); }
.pay-gateway-banner--sim  .pgb-state { background: rgba(212, 165, 55, 0.18); color: var(--accent-hover); }
.pgb-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pgb-methods-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}
.pgb-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}
.pgb-hint {
  font-size: 12.5px;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed var(--border-strong);
  line-height: 1.5;
}

/* ============================================================
   CAMBRIDGE-INSPIRED HOMEPAGE STYLES
   Scoped to body.cam-home so other pages keep their editorial look.
   ============================================================ */

body.cam-home main { background: #FFFFFF; }

/* Sans-serif headings on the homepage only (Cambridge feel).
   Other pages keep Cormorant Garamond as defined globally. */
.cam-home .cam-h1, .cam-home .cam-h2, .cam-home h3 {
  font-family: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.cam-home .cam-h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cam-home .cam-h1 em {
  color: var(--accent-hover);
  font-style: normal;
}
.cam-home .cam-h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.15;
}
.cam-home h3 {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.cam-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 18px;
}

/* ===== HERO ===== */
.cam-hero {
  padding: 90px 0 110px;
  background:
    radial-gradient(ellipse at top left, rgba(10, 107, 122, 0.04), transparent 55%),
    #FFFFFF;
  border-bottom: 1px solid var(--border-soft);
}
.cam-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 960px) {
  .cam-hero { padding: 60px 0 70px; }
  .cam-hero-inner { grid-template-columns: 1fr; gap: 50px; }
}
.cam-hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 28px 0 36px;
  max-width: 540px;
}
.cam-hero-lead strong { color: var(--text); font-weight: 600; }
.cam-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero visual panel - stylised, no photo needed */
.cam-hero-visual {
  position: relative;
  min-height: 440px;
}
.cam-hero-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(10, 107, 122, 0.45);
}
.cam-greet {
  position: absolute;
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cam-greet-1 { top: 14%; left: 9%; font-size: 76px; opacity: 0.92; transform: rotate(-3deg); }
.cam-greet-2 { top: 38%; right: 8%; font-size: 62px; opacity: 0.7;  transform: rotate(2deg); }
.cam-greet-3 { bottom: 22%; left: 14%; font-size: 84px; opacity: 0.55; transform: rotate(-1deg); }
@media (max-width: 700px) {
  .cam-greet-1 { font-size: 56px; }
  .cam-greet-2 { font-size: 46px; }
  .cam-greet-3 { font-size: 60px; }
  .cam-hero-visual, .cam-hero-panel { min-height: 320px; }
}
.cam-hero-badge {
  position: absolute;
  bottom: 26px;
  right: 26px;
  background: var(--accent);
  color: var(--navy-900);
  padding: 14px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.3);
}
.cam-hero-badge-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.cam-hero-badge-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== BUTTONS ===== */
.cam-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.cam-btn-primary {
  background: var(--navy-900);
  color: #FFFFFF;
  border-color: var(--navy-900);
}
.cam-btn-primary:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(10, 107, 122, 0.45);
}
.cam-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.cam-btn-ghost:hover {
  background: var(--text);
  color: #FFFFFF;
  border-color: var(--text);
}

/* ===== SECTIONS ===== */
.cam-section { padding: 90px 0; background: #FFFFFF; }
.cam-section-tight { padding: 60px 0; }
.cam-section--ondark { background: #F4F7F8; }
.cam-section-head { max-width: 760px; margin-bottom: 56px; }
.cam-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-top: 16px;
}
.cam-section-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ===== TASK CARDS ===== */
.cam-tasks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.cam-task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  background: #FFFFFF;
  transition: all var(--t-fast) var(--ease);
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
}
.cam-task:last-child { border-right: 0; }
.cam-task span {
  color: var(--accent-hover);
  font-size: 18px;
  transition: transform var(--t-fast) var(--ease);
}
/* label span (used where a task title is wrapped to control line breaks) keeps body styling, not the arrow's */
.cam-task .cam-task-label { color: inherit; font-size: inherit; }
/* forced 2-line break only applies in the narrow multi-column desktop layout;
   below the 2-column breakpoint the columns are wide enough for one line */
@media (max-width: 1100px) { .cam-task .cam-br { display: none; } }
.cam-task:hover {
  background: var(--accent-soft);
  color: var(--navy-900);
}
.cam-task:hover span { transform: translateX(4px); }
@media (max-width: 1100px) {
  .cam-tasks { grid-template-columns: repeat(2, 1fr); }
  .cam-task:nth-child(2n) { border-right: 0; }
}
@media (max-width: 600px) {
  .cam-tasks { grid-template-columns: 1fr; }
  .cam-task { border-right: 0; }
}

/* ===== ROLE CARDS ===== */
.cam-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 30px;
}
@media (max-width: 900px) { .cam-role-grid { grid-template-columns: 1fr; } }
.cam-role {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-base) var(--ease);
}
.cam-role:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,0.15);
}
.cam-role-panel {
  height: 220px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
}
.cam-role-panel--exam {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #FFFFFF;
}
.cam-role-panel--conv {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--navy-900);
}
.cam-role-icon { font-size: 48px; line-height: 1; }
.cam-role-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
/* body fills the card below the fixed panel; paragraph grows so the arrow
   pins to the bottom and both role cards' arrows align regardless of text length */
.cam-role-body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1 1 auto; }
.cam-role-body h3 { font-size: 24px; }
.cam-role-body p {
  color: var(--text-soft);
  margin: 8px 0 16px;
  line-height: 1.55;
  flex: 1 0 auto;
}
.cam-arrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 14.5px;
}

/* ===== WAVE DIVIDER ===== */
.cam-wave {
  background: #FFFFFF;
  color: #F4F7F8;
  height: 80px;
  margin: 0;
  line-height: 0;
}
.cam-wave svg { width: 100%; height: 80px; display: block; }

/* ===== WHY ZENITH GRID ===== */
.cam-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 32px;
}
@media (max-width: 1000px) { .cam-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cam-why-grid { grid-template-columns: 1fr; } }
.cam-why {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all var(--t-base) var(--ease);
  /* flex column so the paragraph grows and the footer link pins to the bottom,
     keeping links aligned across cards with different content lengths */
  display: flex;
  flex-direction: column;
}
.cam-why:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.12);
  border-color: var(--border-strong);
}
.cam-why-img {
  height: 180px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  display: grid;
  place-items: center;
}
.cam-why-img span { font-size: 64px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }
/* Inline-SVG icons (replace emoji) */
.cam-why-img [data-icon] { display: inline-flex; color: #fff; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.22)); }
.cam-why-img [data-icon] svg { width: 56px; height: 56px; }
/* icon follows the panel's foreground colour by default; the gold (conversational)
   panel uses a white icon for stronger contrast */
.cam-role-icon [data-icon] { display: inline-flex; color: inherit; }
.cam-role-panel--conv .cam-role-icon { color: #FFFFFF; }
.cam-role-icon [data-icon] svg { width: 44px; height: 44px; }
/* border-box is global, so min-height includes the 24px top padding;
   reserve 2 heading lines (2.3em) + that padding so all 3 cards' body text aligns */
.cam-why h3 { padding: 24px 26px 0; min-height: calc(2.3em + 24px); }
@media (max-width: 640px) { .cam-why h3 { min-height: 0; } }
.cam-why p {
  padding: 8px 26px 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 15px;
  flex: 1 0 auto; /* grow so the footer link is pushed to the card bottom */
}
.cam-link {
  display: inline-block;
  padding: 18px 26px 24px;
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.cam-link:hover { color: var(--navy-900); }

/* ===== COURSES GRID (Cambridge-style cards, dynamic content) ===== */
.cam-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; /* equal-height featured course cards */
  gap: 28px;
}
@media (max-width: 1000px) { .cam-courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cam-courses-grid { grid-template-columns: 1fr; } }
/* keep the existing .course-card styling - it nests fine inside the new grid */

/* ===== RECOGNITION STRIP ===== */
.cam-recognition {
  background: var(--navy-900);
  color: #FFFFFF;
  padding: 50px 0;
}
.cam-rec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 22px;
  text-align: center;
}
.cam-rec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  align-items: center;
}
.cam-rec-chip {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: #FFFFFF;
}

/* ===== STATS BAND ===== */
.cam-stats {
  padding: 60px 0;
  background: var(--accent-soft);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}
.cam-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
@media (max-width: 720px) { .cam-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
.cam-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--navy-900);
  line-height: 1;
}
.cam-stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 10px;
}

/* ===== FINAL CTA ===== */
.cam-cta {
  padding: 100px 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(212, 165, 55, 0.08), transparent 50%),
    #FFFFFF;
  text-align: center;
}
.cam-cta p {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 580px;
  margin: 18px auto 32px;
  line-height: 1.6;
}

/* ============================================================
   CAMBRIDGE-INSPIRED INNER PAGES (About, Courses, Schedule, Faculty, Contact)
   Body class .cam-page applies the same visual language as the homepage
   to all subordinate pages.
   ============================================================ */

body.cam-page { background: #FFFFFF; }
body.cam-page main { background: #FFFFFF; }

.cam-page h1, .cam-page h2, .cam-page h3 {
  font-family: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.cam-page h1 em, .cam-page h2 em { color: var(--accent-hover); font-style: normal; }

/* ===== INNER PAGE HEADER (shorter than the homepage hero) ===== */
.cam-page-header {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(56px, 8vw, 88px);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* Subtle gold/navy radial accents for character - same texture trick the blog
   page uses, kept low-opacity so it never competes with the heading. */
.cam-page-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 320px at 80% -10%, rgba(184, 146, 58, 0.10), transparent 60%),
    radial-gradient(700px 240px at 10% 110%, rgba(10, 107, 122, 0.06), transparent 60%);
  pointer-events: none;
}
.cam-page-header .container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
}
.cam-page-header h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  margin: 14px 0 22px;
  max-width: 900px;
}
.cam-page-header p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 680px;
  margin: 0;
}
.cam-page-header .cam-eyebrow { margin-bottom: 6px; }

/* ===== TWO-COLUMN BODY (About-style) ===== */
.cam-prose { max-width: 720px; }
.cam-prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 22px;
}
.cam-prose p strong { color: var(--text); font-weight: 600; }
.cam-prose h2 { font-size: 32px; margin: 56px 0 18px; }
.cam-prose h3 { font-size: 21px; margin: 36px 0 12px; }
.cam-prose ul { margin: 0 0 22px; padding-left: 22px; }
.cam-prose ul li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 10px;
}

/* ===== JS-RENDERED CARD GRIDS - Cambridge-style inside .cam-page ===== */
.cam-page .courses-grid,
.cam-page .faculty-grid,
.cam-page .batch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; /* equal-height cards across every row */
  gap: 28px;
}
@media (max-width: 1000px) {
  .cam-page .courses-grid,
  .cam-page .faculty-grid,
  .cam-page .batch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cam-page .courses-grid,
  .cam-page .faculty-grid,
  .cam-page .batch-grid { grid-template-columns: 1fr; }
}

/* Course / batch / faculty cards inside .cam-page get a softer, modern look */
.cam-page .course-card,
.cam-page .batch-card,
.cam-page .faculty-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
  /* Flex-column so we can pin sections at consistent positions across a row */
  display: flex;
  flex-direction: column;
}
.cam-page .course-card:hover,
.cam-page .batch-card:hover,
.cam-page .faculty-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.12);
}

/* Faculty cards: give each internal section a stable height so that
   the language tag, name, role, meta block, and bio all line up across
   the row even when individual text lengths vary.
   Heights are sized to safely contain the LONGEST content variant
   (e.g. a 2-line role + a wrapped qualification value). */
.cam-page .faculty-card { padding: 32px 24px 28px; }
.cam-page .faculty-card .faculty-role {
  min-height: 3.4em; /* covers 2 lines at line-height 1.5 + breathing room */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.cam-page .faculty-card .faculty-meta {
  min-height: 5em; /* covers wrapped qualification text */
  align-items: center;
}
.cam-page .faculty-card .faculty-bio {
  flex: 1 1 auto;       /* bio grows to fill any leftover vertical space */
  margin-top: 4px;
}

/* Course cards: same treatment so title + body + footer-link align across the row */
.cam-page .course-card .course-title { min-height: 2.6em; }
.cam-page .course-card .course-blurb,
.cam-page .course-card p { flex: 1 1 auto; }

/* Batch cards: pin the meta block to a stable height; title can take 1 or 2 lines */
.cam-page .batch-card .batch-title { min-height: 2.6em; }
.cam-page .batch-card .batch-meta,
.cam-page .batch-card .batch-info { flex: 1 1 auto; }

/* Mobile: relax the min-heights since cards stack vertically and alignment
   across a row no longer applies. */
@media (max-width: 640px) {
  .cam-page .faculty-card .faculty-role,
  .cam-page .faculty-card .faculty-meta,
  .cam-page .course-card .course-title,
  .cam-page .batch-card .batch-title {
    min-height: 0;
  }
}

/* ===== CONTACT FORM ===== */
.cam-contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .cam-contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.cam-form {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 36px;
}
.cam-form h2 { font-size: 26px; margin: 0 0 8px; }
.cam-form p { color: var(--text-soft); margin: 0 0 24px; line-height: 1.55; }
.cam-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 560px) { .cam-form-row { grid-template-columns: 1fr; } }
.cam-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.cam-form input,
.cam-form select,
.cam-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease);
}
.cam-form input:focus,
.cam-form select:focus,
.cam-form textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(10, 107, 122, 0.12);
}
.cam-form textarea { resize: vertical; min-height: 120px; }
.cam-form .cam-btn { margin-top: 12px; width: 100%; justify-content: center; }

.cam-info-card {
  background: #F4F7F8;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
}
.cam-info-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
}
.cam-info-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}
.cam-info-card a { color: var(--navy-900); font-weight: 600; }

/* Section sub-headings on inner pages */
.cam-section-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.cam-section-sub h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); }

/* ============================================================
   CLASS RECORDINGS - admin UI + student-portal player
   ============================================================ */

/* ---- admin: storage summary ---- */
.rec-storage {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
}
.rec-storage-row {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.rec-storage-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rec-storage-num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  margin-top: 2px;
}
.rec-storage-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---- admin: upload form ---- */
.rec-upload-card {
  background: var(--accent-soft);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.rec-upload-card h3 { margin: 0 0 4px; font-size: 18px; }
.rec-upload-desc { font-size: 13.5px; color: var(--text-muted); margin: 0 0 16px; }
.rec-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .rec-form-row { grid-template-columns: 1fr; } }
.rec-upload-progress {
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}
.rec-upload-bar {
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.rec-upload-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s ease;
  border-radius: 99px;
}
.rec-upload-status {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 8px;
}

/* ---- admin: recordings list ---- */
.rec-list { display: grid; gap: 12px; }
.rec-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}
.rec-thumb {
  width: 64px;
  height: 48px;
  background: var(--navy-900);
  color: #FFF;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 6px;
}
.rec-info .rec-title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.rec-info .rec-meta { font-size: 12.5px; color: var(--text-muted); }
.rec-info .rec-desc { font-size: 13.5px; color: var(--text-soft); margin-top: 6px; }
.rec-batch {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-soft);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-hover);
}
.rec-batch-general { background: rgba(0,0,0,0.05); color: var(--text-muted); }
.rec-actions { display: flex; gap: 6px; }
@media (max-width: 700px) {
  .rec-item { grid-template-columns: 48px 1fr; gap: 12px; padding: 12px 14px; }
  .rec-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---- student portal: recordings list ---- */
.recording-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.recording-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--t-fast) var(--ease);
}
.recording-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.12);
  border-color: var(--border-strong);
}
.recording-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: opacity var(--t-fast) var(--ease);
}
.recording-thumb:hover { opacity: 0.9; }
.rec-play {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--navy-900);
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 6px 18px -4px rgba(0,0,0,0.3);
}
.recording-info { padding: 16px 18px; }
.recording-title { font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.recording-meta { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.recording-meta .rec-batch { vertical-align: middle; }
.recording-desc { font-size: 13.5px; color: var(--text-soft); margin-top: 8px; line-height: 1.5; }

/* ---- student portal: full-screen video player overlay ---- */
.rec-player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 37, 48, 0.92);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.rec-player-shell {
  background: var(--surface);
  border-radius: 14px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rec-player-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #FFF;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
}
.rec-player-video {
  width: 100%;
  background: #000;
  max-height: 70vh;
  display: block;
}
.rec-player-info {
  padding: 18px 22px;
  border-top: 1px solid var(--border-soft);
}
.rec-player-info h3 { margin: 0 0 6px; font-size: 18px; }
.rec-player-info p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; }

/* ============================================================
   INLINE CONTACT FORM AT THE END OF EACH BLOG POST
   ============================================================ */
.post-contact {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: clamp(48px, 8vw, 88px) 0 clamp(64px, 10vw, 112px);
  position: relative;
}
.post-contact::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 240px at 90% 0%, rgba(184, 146, 58, 0.08), transparent 60%),
    radial-gradient(600px 200px at 10% 100%, rgba(10, 107, 122, 0.06), transparent 60%);
  pointer-events: none;
}
.post-contact-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.post-contact-head {
  text-align: center;
  margin-bottom: 32px;
}
.post-contact-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.15;
}
.post-contact-head h2 em {
  font-style: italic;
  color: var(--accent-hover);
}
.post-contact-head p {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}
#postEnquiryForm {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.1);
}
.post-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 560px) { .post-form-row { grid-template-columns: 1fr; } }
#postEnquiryForm .form-field { margin-bottom: 16px; }
#postEnquiryForm .form-field:last-of-type { margin-bottom: 24px; }
#postEnquiryForm label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
#postEnquiryForm input,
#postEnquiryForm select,
#postEnquiryForm textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease);
}
#postEnquiryForm input:focus,
#postEnquiryForm select:focus,
#postEnquiryForm textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(10, 107, 122, 0.12);
}
#postEnquiryForm textarea { resize: vertical; min-height: 100px; }
#postEnquiryForm button[type="submit"] {
  width: 100%;
}
.post-form-note {
  font-size: 12px;
  color: var(--text-faint);
  margin: 14px 0 0;
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   ABOUT PAGE - Two-column intro with sticky founder sidebar
   ============================================================ */
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Sidebar pins to the top of the viewport as the bio scrolls past */
.about-sidebar {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 960px) {
  .about-sidebar { position: static; }
}

/* Founder card */
.about-founder-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.12);
}
.about-founder-photo {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-founder-info {
  padding: 22px 24px 24px;
  text-align: center;
}
.about-founder-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.2;
}
.about-founder-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0;
}

/* Form card */
.about-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.12);
}
.about-form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}
#aboutEnquiryForm .form-field { margin-bottom: 12px; }
#aboutEnquiryForm label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 5px;
}
#aboutEnquiryForm input,
#aboutEnquiryForm select,
#aboutEnquiryForm textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease);
}
#aboutEnquiryForm input:focus,
#aboutEnquiryForm select:focus,
#aboutEnquiryForm textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(10, 107, 122, 0.12);
}
#aboutEnquiryForm textarea { resize: vertical; min-height: 70px; }
#aboutEnquiryForm button[type="submit"] {
  width: 100%;
  margin-top: 8px;
}
.about-form-note {
  font-size: 11px;
  color: var(--text-faint);
  margin: 10px 0 0;
  text-align: center;
  line-height: 1.5;
}
