/* ==========================================================================
   QuestIQ Academy — Design System
   ========================================================================== */

:root {
  --navy-950: #081627;
  --navy-900: #0b2545;
  --navy-800: #12335e;
  --navy-700: #1a4478;
  --navy-100: #e8eef7;
  --amber-500: #c9982f;
  --amber-400: #d9b25c;
  --amber-100: #f7efdd;
  --gold-champagne: #c9982f;
  --gold-champagne-light: #e7cd8f;
  --ivory: #faf8f4;
  --warm-grey: #f1ede6;
  --ink: #1c2733;
  --ink-soft: #4b5a6b;
  --paper: #fffdfa;
  --paper-alt: #f3efe7;
  --border: #e6e0d3;
  --success: #2f9e5c;
  --text-heading: var(--navy-900);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 37, 69, 0.16);
  --max-width: 1180px;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 16px;
}

/* ---------- Dark mode ---------- */
html[data-theme="dark"] {
  --ivory: #0c1420;
  --warm-grey: #121b28;
  --ink: #e9edf3;
  --ink-soft: #a6b0be;
  --paper: #101a28;
  --paper-alt: #16202f;
  --border: #253044;
  --navy-100: #17263c;
  --text-heading: #f2f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] body::after { opacity: 0.035; }
html[data-theme="dark"] img:not(.brand-logo):not(.founder-avatar img) { filter: brightness(0.94); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Fixed, low-opacity QuestIQ Academy logo watermark behind the whole site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/logo-icon-badge.png") center / 480px auto no-repeat fixed;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 640px) {
  body::after { background-size: 280px auto; }
}

h1, h2, h3, h4 {
  font-family: "Manrope", "Inter", sans-serif;
  color: var(--text-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.heading-accent {
  font-weight: 800;
  font-style: italic;
  background: linear-gradient(120deg, var(--amber-500), var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--navy-800); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-500);
  background: rgba(201, 152, 47, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-400); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-outline-navy { background: transparent; border: 1.5px solid var(--navy-900); color: var(--text-heading); }
.btn-outline-navy:hover { background: var(--navy-100); }
html[data-theme="dark"] .btn-outline-navy { border-color: var(--gold-champagne); }
.btn-cta {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-950));
  color: #fff;
  padding: 11px 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(201, 152, 47, 0.4);
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.28);
}
.btn-cta:hover { background: linear-gradient(120deg, var(--navy-700), var(--navy-900)); box-shadow: 0 6px 18px rgba(11, 37, 69, 0.36); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-counsel {
  background: var(--navy-900);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid var(--gold-champagne);
  box-shadow: 0 2px 10px rgba(201, 152, 47, 0.18);
  flex-shrink: 0;
}
.btn-counsel:hover { background: var(--navy-800); box-shadow: 0 6px 18px rgba(201, 152, 47, 0.32); }
@media (max-width: 900px) {
  .btn-counsel { display: none; }
}

/* ---------- Header login tabs ---------- */
.nav-login-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-login-group a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.nav-login-group .student-login {
  background: transparent;
  color: var(--text-heading);
  border: 1.5px solid var(--navy-900);
}
.nav-login-group .student-login:hover { background: var(--navy-100); }
html[data-theme="dark"] .nav-login-group .student-login { border-color: var(--gold-champagne); }
.nav-login-group .teacher-login {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.3);
}
.nav-login-group .teacher-login:hover { background: var(--navy-800); box-shadow: 0 6px 18px rgba(11, 37, 69, 0.38); }

/* ---------- Top utility bar (thin accent strip) ---------- */
.top-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--navy-900), var(--gold-champagne), var(--navy-900));
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .site-header { background: rgba(12, 20, 32, 0.94); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  color: var(--text-heading);
  font-size: 1.05rem;
  line-height: 1.15;
  flex-shrink: 0;
}
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.site-footer .brand-logo { height: 46px; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--text-heading);
  white-space: nowrap;
}
.brand-sub-standalone {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  color: var(--gold-champagne);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--navy-100); color: var(--text-heading); }
.nav-links a.active { background: var(--navy-900); color: #fff; }

/* ---------- Dropdown mega-menu ---------- */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 4px; }
.has-dropdown > a::after {
  content: "▾";
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.15s ease;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--navy-950);
  border: 1px solid rgba(201, 152, 47, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 200;
}
.dropdown-menu.dropdown-wide {
  min-width: 380px;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}
.dropdown-menu.dropdown-mega {
  min-width: 640px;
  left: 50%;
  transform: translate(-50%, 6px);
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}
.has-dropdown:hover .dropdown-menu.dropdown-mega,
.has-dropdown.open .dropdown-menu.dropdown-mega {
  transform: translate(-50%, 0);
}
.dropdown-col { display: grid; gap: 2px; align-content: start; }
.dropdown-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-400);
  padding: 8px 12px 4px;
}
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(201, 152, 47, 0.14); color: var(--amber-400); }

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown.open > a::after { transform: rotate(180deg); }

@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    background: var(--navy-900);
    box-shadow: none;
    margin: 4px 0 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-dropdown.open .dropdown-menu { display: grid; }
  .dropdown-menu.dropdown-wide { grid-template-columns: 1fr 1fr; }
  .dropdown-menu.dropdown-mega { grid-template-columns: 1fr 1fr; left: auto; transform: none; }
  .has-dropdown:hover .dropdown-menu.dropdown-mega,
  .has-dropdown.open .dropdown-menu.dropdown-mega { transform: none; }
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-right: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.theme-toggle-track {
  position: relative;
  width: 46px;
  height: 25px;
  border-radius: 999px;
  background: var(--navy-100);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-toggle-icon { font-size: 11px; line-height: 1; z-index: 1; opacity: 0.85; }
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-premium), background 0.2s ease;
}
html[data-theme="dark"] .theme-toggle-track { background: var(--navy-800); border-color: var(--navy-700); }
html[data-theme="dark"] .theme-toggle-thumb { transform: translateX(21px); background: var(--gold-champagne); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .nav-login-group { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at top right, var(--navy-800) 0%, var(--navy-950) 60%);
  color: #fff;
  padding: 72px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at top right, black, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/logo-icon-badge.png") center / 420px auto no-repeat;
  opacity: 0.09;
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero-slogan {
  color: var(--amber-400);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 10px 0 16px;
}
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.6rem; color: var(--amber-400); }
.hero-stat span { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.hero-panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero-panel-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
}
.hero-panel-list li .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber-400); flex-shrink: 0;
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Track / Batch cards ---------- */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.track-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.track-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy-700); }
.track-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.track-card .batches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-800);
}
.track-card a.card-link {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Feature / Why cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.feature-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--border);
}
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.mock-tier-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-tier-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  border: 1px solid var(--border);
}
.mock-tier-name {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.9rem;
}
.mock-tier-marks {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-500);
  background: var(--amber-100);
  padding: 3px 10px;
  border-radius: 999px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-800);
  text-decoration: none;
}
.feature-link .arrow-glyph { color: var(--gold-champagne); }
.feature-link:not(.disabled):hover { color: var(--text-heading); text-decoration: underline; }
.feature-link.disabled {
  color: var(--ink-soft);
  cursor: default;
}

/* ---------- Resource category cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.resource-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--paper);
}
.resource-card .status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 10px;
}
.status.coming { background: var(--amber-100); color: #a16207; }
.status.available { background: #e3f6ea; color: var(--success); }

/* ---------- Grade / batch detail block ---------- */
.grade-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.grade-block-head {
  background: var(--navy-900);
  color: #fff;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.grade-block-head h3 { color: #fff; margin: 0; }
.grade-block-head span.tag {
  background: rgba(255,255,255,0.14);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.grade-block-body {
  padding: 22px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.grade-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.grade-item .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.grade-item h4 { margin: 0 0 4px; font-size: 0.94rem; }
.grade-item p { margin: 0; font-size: 0.82rem; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 12px 22px;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover { color: var(--text-heading); }
.tab-btn.active { color: var(--text-heading); border-bottom-color: var(--amber-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein 0.2s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Social links ---------- */
.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  color: var(--text-heading);
  background: var(--paper);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--navy-700); }
.social-btn .social-icon { font-size: 1.1rem; }
.social-btn.whatsapp { border-color: #25D366; }
.social-btn.instagram { border-color: #d6249f; }
.social-btn.linkedin { border-color: #0a66c2; }
.social-btn.facebook { border-color: #1877f2; }

/* ---------- Founder profile ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: start;
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  border: 1px solid rgba(201, 152, 47, 0.25);
}
.founder-avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-950));
  border: 3px solid var(--amber-400);
  display: flex; align-items: center; justify-content: center;
  font-family: "Manrope", sans-serif;
  font-size: 3rem; font-weight: 800;
  color: var(--amber-400);
  box-shadow: 0 0 40px rgba(201, 152, 47, 0.25);
  overflow: hidden;
}
.founder-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.founder-name { color: #fff; margin-bottom: 2px; }
.founder-role { color: var(--amber-400); font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.founder-card p { color: rgba(255,255,255,0.78); }
.founder-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; }
.founder-stats div strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.5rem; color: var(--amber-400); }
.founder-stats div span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

@media (max-width: 700px) {
  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-avatar { margin: 0 auto; }
  .founder-stats { justify-content: center; }
}

.timeline { display: grid; gap: 0; border-left: 2px solid var(--border); margin-left: 10px; }
.timeline-item { position: relative; padding: 0 0 30px 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--amber-500);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--amber-500);
}
.timeline-item .tl-period { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber-500); }
.timeline-item h4 { margin: 4px 0 2px; }
.timeline-item .tl-org { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; }

.achievement-list { display: grid; gap: 10px; }
.achievement-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.achievement-list li .tick { color: var(--success); font-weight: 800; flex-shrink: 0; }

/* ---------- University outcomes badge grid ---------- */
.uni-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.uni-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 14px);
  transition: transform 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium), border-color 0.2s;
}
.uni-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-champagne);
}
.uni-wordmark {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  color: var(--text-heading);
  text-align: center;
  line-height: 1.3;
}
.uni-disclaimer {
  margin-top: 16px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  opacity: 0.75;
  max-width: 760px;
  line-height: 1.5;
}

/* ---------- Chapter drill-down modal system ---------- */
.grade-block { cursor: default; }
.grade-block.clickable { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.grade-block.clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.view-chapters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 22px 26px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-heading);
  background: var(--amber-100);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.view-chapters-btn:hover { background: var(--amber-400); }

/* Inline chapter panel — embedded directly in the page under each grade card, no popup */
.chapter-panel {
  background: var(--navy-950);
  color: #fff;
  border: 1px solid rgba(201, 152, 47, 0.25);
  border-radius: var(--radius-lg);
  margin: -16px 0 24px;
  box-shadow: var(--shadow-md);
  animation: paneldrop 0.2s ease;
  overflow: hidden;
}
@media (max-width: 700px) { .chapter-panel { margin-top: 0; } }
@keyframes paneldrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.modal-header-titles h3 { color: #fff; margin: 0 0 4px; }
.modal-header-titles span { font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.modal-header-actions { display: flex; align-items: center; gap: 8px; }
.modal-back, .modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-back:hover, .modal-close:hover { background: rgba(201, 152, 47, 0.2); border-color: var(--amber-400); }
.modal-body { padding: 24px 26px 28px; }

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.chapter-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chapter-chip:hover { background: rgba(201, 152, 47, 0.14); border-color: var(--amber-400); }
.chapter-chip .chapter-num {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(201, 152, 47, 0.16); color: var(--amber-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; flex-shrink: 0;
}

.detail-resource-list { display: grid; gap: 10px; }
.detail-resource-item {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.detail-resource-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
}
.detail-resource-head .res-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(201, 152, 47, 0.14); color: var(--amber-400);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 0.95rem;
}
.detail-resource-head .res-title { font-weight: 700; font-size: 0.92rem; flex: 1; color: #fff; }
.detail-resource-head .res-chevron { font-size: 0.75rem; color: rgba(255,255,255,0.5); transition: transform 0.15s ease; }
.detail-resource-item.open .res-chevron { transform: rotate(180deg); }
.detail-resource-panel {
  display: none;
  padding: 4px 18px 18px 64px;
}
.detail-resource-item.open .detail-resource-panel { display: block; }
.detail-resource-panel p { color: rgba(255,255,255,0.68); font-size: 0.87rem; margin: 0 0 10px; }
.detail-resource-panel a.pdf-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-500); color: var(--navy-950);
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 0.82rem;
}
.detail-resource-panel a.pdf-link:hover { background: var(--amber-400); }
.placeholder-note {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #a16207;
  background: rgba(201, 152, 47, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
}

.sub-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sub-tab-btn {
  appearance: none; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75); font-size: 0.76rem; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
}
.sub-tab-btn.active { background: var(--amber-500); color: var(--navy-950); border-color: var(--amber-500); }
.sub-tab-panel { display: none; }
.sub-tab-panel.active { display: block; }

/* ---------- Resource tabs (Lecture Notes / PYQs / Sample Papers, per class) ---------- */
.resource-tabs-wrap { margin-bottom: 24px; }
.resource-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.resource-tab-btn {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.resource-tab-btn:hover { border-color: var(--navy-700); color: var(--text-heading); }
.resource-tab-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.resource-tab-panel { display: none; }
.resource-tab-panel.active { display: block; animation: fadein 0.2s ease; }

/* ---------- Subject picker (Lecture Notes / Formula Booklet -> pick a subject) ---------- */
.subject-picker-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.subject-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.subject-picker-btn {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.subject-picker-btn:hover { border-color: var(--gold-champagne); color: var(--text-heading); }
.subject-picker-btn.active {
  background: var(--navy-900);
  border-color: var(--gold-champagne);
  color: #fff;
}

/* ---------- Class divider (bifurcates the two resource-tab blocks) ---------- */
.class-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 30px;
}
.class-divider::before,
.class-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.class-divider span {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text-heading);
  padding: 7px 22px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--paper-alt);
  white-space: nowrap;
}
.resource-tab-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper-alt);
}
.resource-tab-empty p { margin: 0 0 10px; }

/* ---------- Lecture note downloads ---------- */
.notes-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 24px;
  background: var(--paper-alt);
}
.notes-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.notes-block-head h4 { margin: 0; font-size: 1.05rem; }
.tag-mini {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.note-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.note-card:hover { border-color: var(--navy-700); background: var(--navy-100); transform: translateY(-1px); }
.note-card .pdf-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fdeaea;
  color: #c0392b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.notes-misc-label {
  margin: 18px 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- Static chapter panel (subject chapter browsers, no drill-down) ---------- */
.chapter-panel-intro {
  margin: 0 0 18px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
}
.chapter-grid-label {
  margin: 22px 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber-400);
}
.chapter-grid-label:first-child { margin-top: 0; }
.chapter-chip.static { cursor: default; }
.chapter-chip.static:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }

/* ---------- Testimonials ---------- */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}
.testimonial-card .quote-mark {
  font-family: "Manrope", serif;
  font-size: 2.4rem;
  color: var(--amber-400);
  line-height: 1;
  margin-bottom: 4px;
}
.testimonial-card p.quote { color: var(--ink); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.88rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-heading);
  gap: 16px;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); background: var(--amber-100); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { margin: 12px 0 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 600; color: var(--text-heading); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(26, 68, 120, 0.14);
}
html[data-theme="dark"] .form-field input:focus,
html[data-theme="dark"] .form-field select:focus,
html[data-theme="dark"] .form-field textarea:focus {
  border-color: var(--gold-champagne);
  box-shadow: 0 0 0 3px rgba(201, 152, 47, 0.2);
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact info cards ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: left;
}
.info-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; font-weight: 700;
}

/* ---------- Breadcrumb / page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 56px 0 46px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 60ch; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 32px 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: #fff; font-size: 0.92rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: rgba(201,152,47,0.18); border-color: var(--gold-champagne); transform: translateY(-2px); }
.footer-brand .brand { display: flex; align-items: center; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--amber-400); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; max-width: 32ch; }
.footer-slogan {
  color: var(--amber-400) !important;
  font-weight: 600;
  font-style: italic;
  font-size: 0.82rem !important;
  letter-spacing: 0.03em;
  margin-bottom: 6px !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Premium motion system — scroll reveal, nav-on-scroll, hover micro-interactions
   ========================================================================== */

/* Scroll reveal: elements start slightly lower + faded, settle in on view */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--stagger-i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Compact / translucent header once the page has scrolled */
.site-header {
  transition: background 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium), padding 0.35s var(--ease-premium);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(11,37,69,0.05), 0 12px 30px -18px rgba(11,37,69,0.18);
}
html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(12, 20, 32, 0.86);
  box-shadow: 0 1px 0 rgba(0,0,0,0.3), 0 12px 30px -18px rgba(0,0,0,0.5);
}
.site-header.is-scrolled .nav { padding: 8px 0; }
.site-header.is-scrolled .brand-logo { height: 36px; }

/* Arrow-nudge micro-interaction for text links */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow .arrow-glyph {
  display: inline-block;
  transition: transform 0.25s var(--ease-premium);
}
.link-arrow:hover .arrow-glyph { transform: translateX(4px); }

/* Generic premium card lift (used across feature/track/mentor/result cards) */
.lift-card {
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium), border-color 0.35s var(--ease-premium);
}
.lift-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-champagne);
}

/* Counter number style used in trust bar / results */
.stat-counter {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Placeholder-content marker: dashed outline so swap-out spots are obvious in dev, invisible feel in prod */
.content-placeholder { position: relative; }
.content-placeholder::after {
  content: "Placeholder — replace with real content";
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-500);
  opacity: 0.55;
  white-space: nowrap;
}

/* ==========================================================================
   Premium homepage sections
   ========================================================================== */

/* ---------- Hero (premium) ---------- */
.hero-premium { padding: 96px 0 92px; }
.hero-premium .eyebrow { background: rgba(201,152,47,0.16); color: var(--gold-champagne-light); }
.hero-premium h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.3em;
}
.hero-subhead {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 42ch;
  margin: 0 0 14px;
}
.hero-premium .lead { margin-bottom: 8px; }

.hero-visual {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-card {
  position: absolute;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  color: #fff;
}
.hero-visual-primary {
  width: 260px;
  top: 6%;
  left: 4%;
}
.hero-visual-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-graph-svg { width: 100%; height: 70px; margin: 10px 0; }
.hero-visual-stat strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.5rem; color: var(--gold-champagne-light); }
.hero-visual-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.hero-visual-formula {
  bottom: 10%;
  left: 0;
  font-family: "Manrope", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-champagne-light);
  padding: 16px 22px;
}
.hero-visual-ring {
  top: 34%;
  right: 2%;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 50%;
}
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hero-visual-ring span { position: relative; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.05rem; }

/* Subtle circuit-trace backdrop + extra STEM badges — cyberpunk-tinged, on-palette accents */
.hero-circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-visual-card { z-index: 1; }
.hero-visual-atom {
  width: 88px; height: 88px;
  top: 0;
  right: 22%;
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 12px rgba(217, 178, 92, 0.35));
}
.atom-svg { width: 100%; height: 100%; }
.hero-visual-dna {
  width: 60px; height: 92px;
  bottom: 2%;
  right: 6%;
  padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.dna-svg { width: 100%; height: 100%; }
.hero-visual-code {
  bottom: 40%;
  left: 48%;
  padding: 10px 16px;
  font-family: "Manrope", monospace;
  font-weight: 800;
  font-size: 1.05rem;
  color: #e7cd8f;
}
@media (max-width: 900px) {
  .hero-visual { min-height: 260px; margin-top: 12px; }
  .hero-visual-primary { width: 220px; }
  .hero-visual-atom, .hero-visual-dna, .hero-visual-code { display: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar { padding: 54px 0; background: var(--warm-grey); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-stat { padding-bottom: 22px; }
.trust-stat .stat-counter {
  display: block;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--text-heading);
}
.trust-label { font-size: 0.86rem; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 800px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Feature grid (What every learner gets) ---------- */
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid-4 { grid-template-columns: 1fr; } }
.feature-card { padding: 30px 26px; position: relative; overflow: hidden; }
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-champagne), var(--navy-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-premium);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.feature-num { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 0.76rem; color: var(--ink-soft); opacity: 0.45; }
.feature-card .icon {
  transition: transform 0.35s var(--ease-premium), background 0.35s var(--ease-premium);
}
.feature-card:hover .icon { transform: scale(1.08) rotate(-4deg); background: var(--amber-100); }
.feature-card p { font-size: 0.9rem; margin-bottom: 6px; }
.feature-card .mock-tier-list { margin-top: 10px; }

/* ---------- Academic Excellence progression ---------- */
.progress-flow {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}
.progress-step {
  flex: 1 1 0;
  min-width: 160px;
  text-align: center;
  padding: 0 12px;
}
.progress-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-champagne-light);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.progress-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.progress-step p { font-size: 0.86rem; }
.progress-arrow {
  align-self: center;
  margin-top: 20px;
  color: var(--gold-champagne);
  font-size: 1.3rem;
  opacity: 0.45;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .progress-flow { flex-direction: column; align-items: stretch; }
  .progress-step { text-align: left; padding: 0; }
  .progress-arrow { display: none; }
}

/* ---------- Strategically dark section (e.g. AI-Powered Learning) ---------- */
.section-dark {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.section-dark h2 { color: #fff; }
.section-dark p.lead { color: rgba(255,255,255,0.75); }
.eyebrow-dark {
  background: rgba(201, 152, 47, 0.18);
  color: var(--gold-champagne-light);
}
.section-dark .ai-feature-list li { color: rgba(255,255,255,0.92); }
.section-dark .dash-window { box-shadow: 0 0 0 1px rgba(255,255,255,0.06), var(--shadow-lg); }

/* ---------- AI-powered learning / dashboard mockup ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.ai-grid-reverse { grid-template-columns: 1fr 1fr; }
.ai-grid-reverse > *:first-child { order: 2; }
.ai-feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ai-feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-heading); font-size: 0.94rem; }
.ai-feature-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-champagne); flex-shrink: 0; }

.dashboard-mockup { display: flex; justify-content: center; }
.dash-window {
  width: 100%;
  max-width: 420px;
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #fff;
}
.dash-titlebar { display: flex; gap: 6px; padding: 14px 18px; background: rgba(255,255,255,0.04); }
.dash-titlebar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.dash-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 22px 14px; }
.dash-head h4 { color: #fff; margin: 0; font-size: 0.96rem; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 22px 18px; }
.dash-stats div { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 12px 10px; text-align: center; }
.dash-stats strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.2rem; color: var(--gold-champagne-light); }
.dash-stats span { font-size: 0.68rem; color: rgba(255,255,255,0.55); }
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding: 0 22px 18px;
}
.dash-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--gold-champagne-light), var(--gold-champagne));
  border-radius: 6px 6px 2px 2px;
  opacity: 0.9;
}
.dash-topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 22px; }
.dash-topic { font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.dash-topic.weak { background: rgba(230, 106, 90, 0.18); color: #f0a89c; }
.dash-topic.ok { background: rgba(47, 158, 92, 0.18); color: #7fd8a3; }
@media (max-width: 900px) {
  .ai-grid, .ai-grid-reverse { grid-template-columns: 1fr; }
  .ai-grid-reverse > *:first-child { order: 0; }
}

/* ---------- Academics pathway ---------- */
.pathway-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.pathway-step {
  display: block;
  padding: 34px 26px;
  border-right: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  transition: background 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium);
}
.pathway-step:last-child { border-right: none; }
.pathway-step:hover { background: var(--paper-alt); border-bottom-color: var(--gold-champagne); }
.pathway-grade {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  margin-bottom: 10px;
}
.pathway-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pathway-step p { font-size: 0.86rem; margin: 0; }
@media (max-width: 900px) {
  .pathway-flow { grid-template-columns: 1fr 1fr; }
  .pathway-step:nth-child(2) { border-right: none; }
  .pathway-step:nth-child(1), .pathway-step:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .pathway-flow { grid-template-columns: 1fr; }
  .pathway-step { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
}

/* ---------- Faculty / mentor cards ---------- */
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mentor-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
}
.mentor-avatar {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--gold-champagne-light);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  overflow: hidden;
}
.mentor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mentor-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.mentor-subject { display: block; font-size: 0.8rem; font-weight: 700; color: var(--gold-champagne); margin-bottom: 8px; }
.mentor-meta { font-size: 0.8rem; margin: 0; }
@media (max-width: 900px) { .mentor-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mentor-grid { grid-template-columns: 1fr; } }

/* ---------- Results / honours gallery ---------- */
.honours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.honours-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-champagne);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  background: var(--paper);
}
.honours-rank {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.honours-card h3 { font-size: 1rem; margin-bottom: 4px; }
.honours-card p { font-size: 0.84rem; margin: 0; }
@media (max-width: 900px) { .honours-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .honours-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials (editorial) ---------- */
.testimonial-editorial {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.testimonial-editorial blockquote {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-heading);
}
.testimonial-who { display: grid; gap: 4px; border-left: 2px solid var(--gold-champagne); padding-left: 18px; }
.testimonial-who strong { font-size: 1rem; color: var(--text-heading); }
.testimonial-who span { font-size: 0.84rem; color: var(--ink-soft); }
@media (max-width: 800px) {
  .testimonial-editorial { grid-template-columns: 1fr; padding: 30px; }
  .testimonial-who { border-left: none; border-top: 2px solid var(--gold-champagne); padding-left: 0; padding-top: 14px; }
}

/* ---------- Campus (editorial layout) ---------- */
.campus-editorial {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1fr;
  gap: 20px;
}
.campus-photo {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
}
.campus-photo-large { aspect-ratio: auto; height: 100%; }
.campus-photo-col { display: grid; gap: 20px; }
.campus-info { display: flex; flex-direction: column; justify-content: center; }
.campus-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.campus-list li {
  padding: 12px 16px;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
}
@media (max-width: 900px) {
  .campus-editorial { grid-template-columns: 1fr; }
  .campus-photo-large { aspect-ratio: 4 / 3; }
}

/* ---------- Beyond academics ---------- */
.beyond-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.beyond-chip {
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-heading);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.beyond-chip:hover { border-color: var(--gold-champagne); background: var(--amber-100); transform: translateY(-2px); }

/* ---------- Admissions CTA ---------- */
.admissions-cta {
  background: radial-gradient(ellipse at bottom left, var(--navy-800) 0%, var(--navy-950) 65%);
  padding: 88px 0;
}
.admissions-cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.admissions-cta h2 { color: #fff; }
.admissions-cta p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 8px; }

/* ==========================================================================
   Mobile experience polish
   ========================================================================== */
html, body { overflow-x: hidden; }

.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 22, 39, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  background: var(--gold-champagne);
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.92rem;
}
@media (max-width: 900px) {
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 64px; }
  section { padding: 52px 0; }
  .testimonial-editorial { padding: 26px; }
  .honours-grid, .mentor-grid { gap: 16px; }
}
@media (max-width: 640px) {
  .hero-premium { padding: 56px 0 48px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}
