/* ============================================================
   A Grade Ahead — Site Styles
   Shared across all pages. Keep design tokens in :root.
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple-deep: #2D1A6E;
  --purple-mid: #312783;
  --purple-light: #4A3A9F;
  --green-primary: #7AB648;
  --green-dark: #5E9A2F;
  --green-light: #8EC95E;
  --navy: #1B1547;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --warm-grey: #F2F0EB;
  --text-dark: #2C2C2C;
  --text-mid: #5A5A5A;
  --text-light: #8A8A8A;
  /* Brand font: Arial Narrow. Falls back to Arial on devices that don't have it
     (most Macs/iOS/Android). Both heading and body use the same family per brand spec. */
  --font-heading: 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Arial Narrow', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
button { cursor: pointer; border: none; font-family: var(--font-body); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Wide-edge container: shared by header + hero so the logo and hero copy
   sit on the same left gutter, instead of indented inside a centered 1200px box. */
.header__main > .container,
.utility-bar > .container,
.hero > .container {
  max-width: none;
  width: 100%;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}
.header.scrolled .utility-bar {
  max-height: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}
.header.scrolled .header__nav-link { color: var(--purple-deep); }
.header.scrolled .header__nav-link:hover { color: var(--green-dark); }
.header.scrolled .header__toggle span { background: var(--purple-deep); }

.utility-bar {
  background: var(--purple-deep);
  padding: 6px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  max-height: 40px;
  opacity: 1;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-bar__links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.utility-bar__links a {
  color: rgba(255,255,255,0.8);
}
.utility-bar__links a:hover { color: var(--white); }

.header__main {
  padding: 16px 0;
  background: rgba(27, 21, 71, 0.50);
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}
.header.scrolled .header__main {
  padding: 10px 0;
  background: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
/* Hamburger toggle — Bootstrap-style: hidden on desktop, visible <900px */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  cursor: pointer;
  border: 0;
}
.header__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.4s ease;
  border-radius: 2px;
}
.header__toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo img {
  height: 44px;
  width: auto;
  transition: filter 0.4s ease;
  filter: brightness(0) invert(1); /* white on dark bg */
}
.header.scrolled .header__logo img {
  filter: none; /* original colors on white bg */
}

/* Primary nav — single <ul> for all viewports (Bootstrap-style).
   On desktop: horizontal row inline. On mobile (<900px): collapses
   into a slide-down panel under the header bar. */
.header__nav {
  display: flex;
  align-items: center;
}
.header__nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}
.header__nav-item { position: relative; }
.header__nav-link {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green-primary);
  transition: width 0.25s ease;
}
.header__nav-link:hover { color: var(--green-light); }
.header__nav-link:hover::after { width: 100%; }

/* CTA item — uses .btn-primary, no underline */
.header__nav-item--cta { margin-left: 8px; }
.header__nav-item--cta a {
  padding: 10px 22px;
  font-size: 0.78rem;
}
.header__nav-item--cta a::after { display: none; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122, 182, 72, 0.3);
}
.btn-primary .arrow { transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--purple-deep);
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--purple-deep);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: var(--purple-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--purple-deep);
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.btn-ghost-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ===== HERO (full-viewport video bg) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Top padding offsets the fixed header overlap (~110px) so the content
     reads as visually centered in the area below the header, not in the raw section. */
  padding: 200px 0 90px;
}

/* Video background container */
#hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-video-bg .hero-fallback-img,
#hero-video-bg .hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none !important;
}

/* Dark overlay on video */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 21, 71, 0.55) 0%,
    rgba(27, 21, 71, 0.40) 40%,
    rgba(27, 21, 71, 0.70) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInUp 1s ease forwards;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 500;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 560px;
  font-weight: 300;
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__trust-check { color: var(--green-primary); font-weight: 700; }

/* ===== ZIP BAND (find an academy) ===== */
.zip-band {
  background: var(--off-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.zip-band::before,
.zip-band::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
}
.zip-band::before {
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(122,182,72,0.10), transparent 70%);
}
.zip-band::after {
  bottom: -200px;
  right: -120px;
  background: radial-gradient(circle, rgba(45,26,110,0.08), transparent 70%);
}
.zip-band__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.zip-band__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.zip-band__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--purple-deep);
  line-height: 1.25;
  margin-bottom: 12px;
}
.zip-band__subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
}
.zip-band__form {
  max-width: 540px;
  margin: 0 auto;
}
.zip-band__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
  text-align: left;
}
.zip-band__wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid rgba(45,26,110,0.12);
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 10px 30px rgba(45,26,110,0.06);
  transition: all 0.3s ease;
}
.zip-band__wrap:focus-within {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px rgba(122,182,72,0.15), 0 10px 30px rgba(45,26,110,0.08);
}
.zip-band__wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 0;
  min-width: 0;
}
.zip-band__wrap input::placeholder { color: var(--text-light); }
.zip-band__wrap button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.zip-band__wrap button:hover {
  background: var(--green-dark);
  transform: rotate(15deg);
  box-shadow: 0 6px 18px rgba(122,182,72,0.4);
}
.zip-band__wrap button svg { width: 20px; height: 20px; }
.zip-band__caption {
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: left;
  padding-left: 22px;
}

/* ===== SOCIAL PROOF BAR ===== */
.proof-bar {
  background: var(--navy);
  padding: 40px 0;
}
.proof-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.proof-bar__item { position: relative; }
.proof-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.proof-bar__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-bar__label {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ===== SECTION STYLES ===== */
.section { padding: 120px 0; }
.section--grey { background: var(--off-white); }
.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--purple-deep);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 640px;
  line-height: 1.7;
  font-weight: 300;
}
.section__header {
  text-align: center;
  margin-bottom: 72px;
}
.section__header .section__subtitle { margin: 0 auto; }

/* ===== WELCOME ===== */
.welcome { padding: 120px 0; text-align: center; }
.welcome__inner { max-width: 720px; margin: 0 auto; }
.welcome--left { text-align: left; }
.welcome--left .welcome__inner { max-width: none; }
.welcome__title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--purple-deep);
  margin-bottom: 24px;
  line-height: 1.3;
}
.welcome__text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}
.welcome__divider {
  width: 60px;
  height: 2px;
  background: var(--green-primary);
  margin: 40px auto 0;
}

/* ===== IMAGE GALLERY (masonry grid) ===== */
.gallery {
  padding: 0 0 120px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,21,71,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery__item:hover .gallery__item-overlay { opacity: 1; }
.gallery__item-label {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
}

/* ===== HOW IT WORKS (horizontal journey) ===== */
.steps-journey {
  position: relative;
}
/* Connecting line behind cards */
.steps-journey::before {
  content: '';
  position: absolute;
  top: 140px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(to right, var(--green-primary), var(--purple-light), var(--green-primary));
  opacity: 0.25;
  z-index: 0;
}
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}
.step-card {
  text-align: center;
  padding: 0;
  background: transparent;
  position: relative;
}
.step-card__image-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto 36px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.step-card:hover .step-card__image-wrap {
  transform: scale(1.05);
}
.step-card__image-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 12px 40px rgba(45,26,110,0.12);
}
.step-card:hover .step-card__image-circle {
  box-shadow: 0 16px 50px rgba(45,26,110,0.18);
}
.step-card__image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.step-card:hover .step-card__image-circle img {
  transform: scale(1.1);
}
.step-card__number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 15px rgba(122,182,72,0.4);
  z-index: 2;
  border: 3px solid var(--white);
}
.step-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--purple-deep);
  margin-bottom: 12px;
}
.step-card__text {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  max-width: 320px;
  margin: 0 auto;
}

/* ===== SUBJECTS CARDS ===== */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.subject-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.subject-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.subject-card:hover .subject-card__bg { transform: scale(1.05); }
.subject-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,26,110,0.9) 0%, rgba(45,26,110,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  transition: background 0.3s ease;
}
.subject-card:hover .subject-card__overlay {
  background: linear-gradient(to top, rgba(45,26,110,0.95) 0%, rgba(45,26,110,0.4) 60%, rgba(45,26,110,0.1) 100%);
}
.subject-card__grade {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 8px;
}
.subject-card__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}
.subject-card__bullets {
  list-style: none;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.subject-card:hover .subject-card__bullets { max-height: 200px; opacity: 1; }
.subject-card__bullets li { padding-left: 12px; position: relative; }
.subject-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-primary);
}
.subject-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s;
}
.subject-card:hover .subject-card__link { opacity: 1; transform: translateY(0); }

/* ===== WHY CHOOSE US (founder-letter style) ===== */
.why-section {
  background: linear-gradient(180deg, transparent 0%, #E8E0F5 3%, #E8E0F5 97%, transparent 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}
.why-section__frame-top {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--white) 0%, transparent 100%);
  z-index: 2;
}
.why-section__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3;
  padding: 0 24px;
}
.why-section__title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--purple-deep);
  margin-bottom: 8px;
}
.why-section__subtitle {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--purple-mid);
  margin-bottom: 40px;
  font-style: italic;
}
.why-section__text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 24px;
}
.why-section__text-more {
  display: none;
}
.why-section__text-more.visible {
  display: block;
  animation: fadeInUp 0.6s ease forwards;
}
.why-section__divider {
  width: 50px;
  height: 2px;
  background: var(--green-primary);
  margin: 40px auto;
}
.why-section__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 48px 0;
  text-align: left;
}
.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}
.why-feature:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45,26,110,0.08);
}
.why-feature__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.why-feature__content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--purple-deep);
  margin-bottom: 4px;
}
.why-feature__content p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
  font-weight: 300;
}
.why-feature__stat {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--green-primary);
  line-height: 1;
  margin-top: 8px;
}

/* ===== FLOATING KID ILLUSTRATIONS (drift) ===== */
.drift-container {
  position: relative;
  overflow: hidden;
}
.drift-el {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}
.drift-el img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(45,26,110,0.08));
}

/* ===== FULL-WIDTH IMAGE BREAK (parallax) ===== */
.image-break {
  height: 500px;
  position: relative;
  overflow: hidden;
}
.image-break__img {
  width: 100%;
  height: 160%;
  object-fit: cover;
  position: absolute;
  top: -30%;
  left: 0;
  will-change: transform;
}
.image-break__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,26,110,0.6), rgba(27,21,71,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.image-break__quote {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  max-width: 700px;
  line-height: 1.4;
  font-style: italic;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  padding: 40px 32px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 26, 110, 0.06);
}
.testimonial-card__quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--green-primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -10px;
}
.testimonial-card__text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 300;
}
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}
.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple-deep);
}
.testimonial-card__role { font-size: 0.8rem; color: var(--text-light); }
.testimonial-card__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(122,182,72,0.1);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--purple-deep) 0%, #1E1252 50%, #150E3A 100%);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 30% 70%, var(--green-primary) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, var(--green-primary) 1px, transparent 1px);
  background-size: 50px 50px, 70px 70px;
}
.final-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.final-cta__title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.final-cta__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}
.final-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.final-cta__reassurance {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 80px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand-name {
  margin-bottom: 16px;
}
.footer__brand-name img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  line-height: 1.6;
}
.footer__contact-line {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.footer__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.footer__links a:hover { color: var(--green-primary); }
.footer__bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer__socials { display: flex; gap: 16px; }
.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.footer__socials a:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: rgba(122,182,72,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__title { font-size: 2.8rem; }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { gap: 24px; }
  .step-card__image-wrap { width: 160px; height: 160px; }
  .steps-journey::before { top: 110px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall { grid-row: span 1; }
  .drift-el { display: none; }
  .header__nav-list { gap: 22px; font-size: 0.85rem; }
}
@media (max-width: 900px) {
  .header__toggle { display: flex; }
  /* Same <ul>, just collapses into a slide-down panel under the header bar */
  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-deep);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  }
  .header.nav-open .header__nav { max-height: 80vh; overflow-y: auto; }
  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
  }
  .header__nav-item { text-align: center; }
  .header__nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    color: var(--white);
  }
  .header__nav-link::after { display: none; }
  .header.scrolled .header__nav-link { color: var(--white); }
  .header__nav-item--cta { margin: 12px 24px 8px; }
  .header__nav-item--cta a { width: 100%; justify-content: center; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section__title { font-size: 2rem; }
  .utility-bar { display: none; }
  .header__logo img { height: 34px; }
  .hero { min-height: 100vh; align-items: center; padding: 140px 0 60px; }
  .hero__content { padding: 0; }
  .hero__title { font-size: 2.2rem; }
  .hero__subtitle { font-size: 1rem; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__trust { flex-direction: column; gap: 10px; }
  .proof-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .proof-bar__item:nth-child(2)::after { display: none; }
  .proof-bar__number { font-size: 2.2rem; }
  .steps__grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .steps-journey::before { display: none; }
  .subjects-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .subject-card { aspect-ratio: 4/3; }
  .why-section__title { font-size: 2rem; }
  .why-section__subtitle { font-size: 1.2rem; }
  .why-section__features { grid-template-columns: 1fr; }
  .drift-el { display: none !important; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .gallery__grid { grid-template-columns: 1fr; }
  .image-break { height: 350px; }
  .image-break__quote { font-size: 1.4rem; }
  .final-cta { padding: 80px 0; }
  .final-cta__title { font-size: 2rem; }
  .final-cta__buttons { flex-direction: column; align-items: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .welcome__title { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
  .proof-bar__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .header__inner { gap: 12px; }
  .step-card__image-wrap { width: 140px; height: 140px; }
}

/* ============================================================
   INNER-PAGE COMPONENTS
   Used on every page except the homepage.
   ============================================================ */

/* ===== PAGE HERO (shorter video-bg hero for inner pages) ===== */
.page-hero {
  position: relative;
  min-height: 55vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 200px 0 100px;
  text-align: center;
}
.page-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__video .hero-fallback-img,
.page-hero__video .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none !important;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(45, 26, 110, 0.88) 0%,
    rgba(49, 39, 131, 0.78) 50%,
    rgba(27, 21, 71, 0.85) 100%
  );
}
.page-hero > .container {
  position: relative;
  z-index: 2;
}
.page-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  animation: fadeInUp 1s ease forwards;
}
.page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.85); }
.page-hero__breadcrumb a:hover { color: var(--green-light); }
.page-hero__breadcrumb-sep { opacity: 0.5; }
.page-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 18px;
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 22px;
}
.page-hero__title em {
  color: var(--green-light);
  font-style: italic;
  font-weight: 500;
}
.page-hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== SPLIT GRID (two-column copy + media) ===== */
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.split-grid--reverse .split-grid__copy { order: 2; }
.split-grid--reverse .split-grid__media { order: 1; }
.split-grid__copy h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--purple-deep);
  line-height: 1.2;
  margin-bottom: 22px;
}
.split-grid__copy h2 em {
  color: var(--green-dark);
  font-style: italic;
  font-weight: 500;
}
.split-grid__copy p {
  font-size: 1.02rem;
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 18px;
}
.split-grid__copy p strong {
  color: var(--purple-deep);
  font-weight: 600;
}
.split-grid__copy a {
  color: var(--green-dark);
  border-bottom: 1px solid rgba(122,182,72,0.4);
  transition: all 0.25s ease;
}
.split-grid__copy a:hover {
  color: var(--purple-deep);
  border-color: var(--purple-deep);
}
.split-grid__copy .btn-primary,
.split-grid__copy .btn-secondary {
  margin-top: 12px;
}
.split-grid__media {
  position: relative;
}
.split-grid__media img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(45,26,110,0.18);
}
.split-grid__media--illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.split-grid__media--illustration::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,182,72,0.16), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.split-grid__media--illustration img {
  width: 100%;
  max-width: 440px;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 30px 50px rgba(45,26,110,0.18));
  animation: floatGentle 8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.split-grid__caption {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}
@keyframes floatGentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

/* ===== CTA CARD (mid-page action block) ===== */
.cta-card {
  background: linear-gradient(135deg, var(--purple-deep) 0%, #1E1252 50%, var(--purple-mid) 100%);
  border-radius: 28px;
  padding: 64px 56px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(45,26,110,0.18);
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 30% 70%, var(--green-primary) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, var(--green-primary) 1px, transparent 1px);
  background-size: 50px 50px, 70px 70px;
  pointer-events: none;
}
.cta-card__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.cta-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 14px;
}
.cta-card h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
}
.cta-card h2 em {
  color: var(--green-light);
  font-style: italic;
  font-weight: 500;
}
.cta-card p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 14px;
}
.cta-card p strong { color: var(--white); font-weight: 500; }
.cta-card p a {
  color: var(--green-light);
  border-bottom: 1px solid rgba(142,201,94,0.4);
  transition: all 0.25s ease;
}
.cta-card p a:hover {
  color: var(--white);
  border-color: var(--white);
}
.cta-card__buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ===== CONTACT CALLOUT (compact phone/email block) ===== */
.contact-callout {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border-radius: 22px;
  padding: 36px 44px;
  border: 1px solid rgba(45,26,110,0.06);
  box-shadow: 0 14px 40px rgba(45,26,110,0.06);
  max-width: 880px;
  margin: 0 auto;
}
.contact-callout__icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(122,182,72,0.3);
}
.contact-callout__icon svg { width: 28px; height: 28px; }
.contact-callout__copy h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--purple-deep);
  margin-bottom: 8px;
}
.contact-callout__copy p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}
.contact-callout__phone {
  color: var(--purple-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(45,26,110,0.3);
  transition: all 0.25s ease;
}
.contact-callout__phone:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

/* ===== INNER-PAGE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .split-grid { grid-template-columns: 1fr; gap: 56px; }
  .split-grid--reverse .split-grid__copy { order: 1; }
  .split-grid--reverse .split-grid__media { order: 2; }
  .split-grid__media--illustration { min-height: 320px; }
  .split-grid__media--illustration::before { width: 280px; height: 280px; }
  .cta-card { padding: 48px 40px; }
}
@media (max-width: 768px) {
  .page-hero { padding: 140px 0 70px; min-height: 0; }
  .page-hero__title { font-size: 2rem; }
  .page-hero__subtitle { font-size: 1rem; }
  .split-grid__copy h2 { font-size: 1.8rem; }
  .cta-card { padding: 40px 28px; border-radius: 22px; }
  .cta-card h2 { font-size: 1.6rem; }
  .cta-card__buttons { flex-direction: column; align-items: stretch; }
  .contact-callout { flex-direction: column; text-align: center; padding: 32px 24px; gap: 20px; }
}

/* ============================================================
   TUTORIAL PAGE COMPONENTS
   Used on /online-{math,english,numericals}-tutorials/.
   ============================================================ */

/* ===== TIP LIST (numbered tip cards in a 2-col grid) ===== */
.tip-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.tip-list__item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid rgba(45, 26, 110, 0.06);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.tip-list__item:hover {
  border-color: rgba(122, 182, 72, 0.3);
  box-shadow: 0 14px 36px rgba(45, 26, 110, 0.06);
  transform: translateY(-3px);
}
.tip-list__check {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(122,182,72,0.25);
}
.tip-list__check svg { width: 18px; height: 18px; }
.tip-list__item p {
  font-size: 0.96rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}
.tip-list__item p strong {
  color: var(--purple-deep);
  font-weight: 600;
}

/* ===== VIDEO GRID + CARDS ===== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
}
.video-grid--single {
  grid-template-columns: 1fr;
  max-width: 800px;
}
.video-card {
  display: flex;
  flex-direction: column;
}
.video-card__title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--purple-deep);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}
.video-card__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(45, 26, 110, 0.15);
  background: var(--purple-deep);
  transition: all 0.4s ease;
}
.video-card__embed:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(45, 26, 110, 0.22);
}
.video-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== TUTORIAL RESPONSIVE ===== */
@media (max-width: 768px) {
  .tip-list { grid-template-columns: 1fr; gap: 14px; }
  .tip-list__item { padding: 20px 22px; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
  .video-card__title { font-size: 1.2rem; }
}

/* ============================================================
   WP-PREP UTILITY COMPONENTS
   Small classes that replace previously inline style=""
   attributes. Keeps every page free of inline styles so the
   WordPress theme dev can scope cleanly via stylesheet only.
   ============================================================ */

/* Reduced-padding section (used on the "want to speak to someone"
   row in formerly-mathwizard so it sits tighter to the CTA above) */
.section--compact { padding: 60px 0; }
.section--flush-top    { padding-top: 0 !important; }
.section--flush-bottom { padding-bottom: 0 !important; }

/* Centered CTA wrapper that sits below a section's main content
   (replaces several `text-align: center; margin-top: 56px` inlines) */
.section__cta {
  text-align: center;
  margin-top: 56px;
}

/* Author/citation line inside an image-break quote */
.image-break__cite {
  font-size: 0.6em;
  font-style: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 16px;
  display: inline-block;
  font-weight: 400;
}
/* Tighter variant for longer attributions (e.g. founder + role) */
.image-break__cite--tight {
  font-size: 0.55em;
  opacity: 0.7;
  margin-top: 18px;
}

/* ===== GRADE PILLS ===== */
.grade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.grade-pills__item {
  background: var(--warm-grey);
  color: var(--purple-deep);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(45, 26, 110, 0.08);
}
.welcome__subheading {
  font-size: 1.15rem;
  color: var(--purple-deep);
  margin: 16px 0 0;
  font-weight: 700;
}

/* ===== NUMBERED STEPS ===== */
.numbered-steps {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
.numbered-steps__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border: 1px solid rgba(45, 26, 110, 0.08);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(45, 26, 110, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.numbered-steps__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 26, 110, 0.08);
}
.numbered-steps__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.numbered-steps__body {
  padding-top: 6px;
}
.numbered-steps__body p {
  margin: 0;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
}
.numbered-steps__body p + p { margin-top: 12px; }
.numbered-steps__body strong { color: var(--text-dark); font-weight: 600; }
.numbered-steps__body a { color: var(--purple-mid); text-decoration: underline; }
.numbered-steps__body a:hover { color: var(--green-dark); }

/* ===== COMPONENTS LIST ===== */
.components-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}
.components-list__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
}
.components-list__icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(122, 182, 72, 0.25);
}
.components-list__icon svg { width: 44px; height: 44px; }
.components-list__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin: 4px 0 12px;
}
.components-list__text,
.components-list__item > div > p {
  margin: 0;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
}
.components-list__text + .components-list__text,
.components-list__item > div > p + p { margin-top: 10px; }
.components-list__text strong,
.components-list__item > div > p strong { color: var(--text-dark); font-weight: 600; }

/* ===== FAQ ACCORDION ===== */
.faq {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq__item {
  background: var(--white);
  border: 1px solid rgba(45, 26, 110, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.faq__item[open] {
  box-shadow: 0 8px 24px rgba(45, 26, 110, 0.08);
  border-color: rgba(122, 182, 72, 0.35);
}
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--purple-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: color 0.2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }
.faq__q:hover { color: var(--green-dark); }
.faq__q::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq__item[open] .faq__q::after { transform: rotate(180deg); }
.faq__a {
  padding: 0 28px 24px;
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 0.98rem;
}
.faq__a p { margin: 0; }
.faq__a p + p { margin-top: 12px; }
.faq__a strong { color: var(--text-dark); font-weight: 600; }

/* ===== GLOSSARY ===== */
.glossary {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}
.glossary__item { padding-left: 0; }
.glossary__term {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  padding: 8px 20px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.glossary__def {
  margin: 0;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
}
.glossary__def + .glossary__def { margin-top: 10px; }
.glossary__def p { margin: 0; }
.glossary__def p + p { margin-top: 10px; }
.glossary__def strong { color: var(--text-dark); font-weight: 600; }
.glossary__def a { color: var(--purple-mid); text-decoration: underline; }
.glossary__def a:hover { color: var(--green-dark); }

/* ===== SCREENS GRID ===== */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 40px auto 0;
}
.screens-grid__item {
  background: var(--white);
  border: 1px solid rgba(45, 26, 110, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(45, 26, 110, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.screens-grid__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45, 26, 110, 0.1);
}
.screens-grid__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== SECTION NOTE ===== */
.section__note {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

/* ===== RESPONSIVE: new components ===== */
@media (max-width: 768px) {
  .numbered-steps__item {
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 22px 24px;
  }
  .numbered-steps__number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  .components-list__item {
    grid-template-columns: 72px 1fr;
    gap: 20px;
  }
  .components-list__icon { width: 72px; height: 72px; }
  .components-list__icon svg { width: 34px; height: 34px; }
  .faq__q { padding: 18px 20px; font-size: 1rem; }
  .faq__a { padding: 0 20px 20px; }
  .screens-grid { grid-template-columns: 1fr; }
  .glossary__term { font-size: 1.1rem; }
}

/* ===== GUTENBERG / PLAIN CONTENT PAGES (privacy, terms, etc.) ===== */
.page-content {
  padding: 60px 0;
}

/* Sensible typography defaults for Gutenberg-authored content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--purple-deep);
  font-weight: 700;
  line-height: 1.3;
  margin: 1.5em 0 0.5em;
}
.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.2em;
}
.entry-content p:last-child { margin-bottom: 0; }
.entry-content ul,
.entry-content ol {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.2em;
  padding-left: 1.5em;
}
.entry-content li { margin-bottom: 0.4em; }
.entry-content a { color: var(--purple-mid); text-decoration: underline; }
.entry-content a:hover { color: var(--green-dark); }
.entry-content strong { color: var(--text-dark); font-weight: 700; }
.entry-content hr {
  border: none;
  border-top: 1px solid rgba(45, 26, 110, 0.1);
  margin: 2em 0;
}
.entry-content blockquote {
  border-left: 4px solid var(--green-primary);
  margin: 1.5em 0;
  padding: 0.5em 1.5em;
  color: var(--text-mid);
  font-style: italic;
}

@media (max-width: 768px) {
  .page-content { padding: 40px 0; }
  .entry-content h1 { font-size: 1.6rem; }
  .entry-content h2 { font-size: 1.3rem; }
  .entry-content h3 { font-size: 1.1rem; }
}

/* ===== GROWTH PATH ===== */
.growth-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  padding-top: 8px;
}
.growth-path::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-dark));
  opacity: 0.3;
  z-index: 0;
}
.growth-path__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.growth-path__num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: 0 6px 18px rgba(122, 182, 72, 0.3);
}
.growth-path__label {
  background: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple-deep);
  border: 1px solid rgba(45, 26, 110, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 10px rgba(45, 26, 110, 0.06);
  line-height: 1.3;
}

/* ===== CURRICULUM LIST ===== */
.curriculum-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
  list-style: none;
  padding: 0;
}
.curriculum-list__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
}
.curriculum-list__check {
  width: 24px;
  height: 24px;
  color: var(--green-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.curriculum-list__check svg { width: 100%; height: 100%; }
.curriculum-list__item p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.6;
}
.curriculum-list__item p a { color: var(--green-dark); text-decoration: underline; }
.curriculum-list__item p a:hover { color: var(--purple-deep); }

/* ===== PROGRAM CIRCLES ===== */
.program-circles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.program-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(45, 26, 110, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.program-circle:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(45, 26, 110, 0.35);
}
.program-circle__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.15;
}
.program-circle__grade {
  font-size: 0.7rem;
  margin-top: 6px;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

/* ===== RESPONSIVE: programs page components ===== */
@media (max-width: 768px) {
  .growth-path { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .growth-path::before { display: none; }
  .curriculum-list { grid-template-columns: 1fr; gap: 18px; }
  .program-circle { width: 110px; height: 110px; padding: 10px; }
  .program-circle__title { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .growth-path { grid-template-columns: 1fr; }
}

/* ===== FORMULA ROW ===== */
.formula-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.formula-row__item {
  text-align: center;
  flex: 0 0 auto;
  width: 140px;
}
.formula-row__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin: 0 0 18px;
  min-height: 42px;
  line-height: 1.3;
}
.formula-row__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  color: var(--purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.formula-row__icon svg { width: 100%; height: 100%; }
.formula-row__op {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
  margin-top: 80px;
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .formula-row__op { font-size: 2.25rem; margin-top: 64px; }
  .formula-row__item { width: 110px; }
  .formula-row__icon { width: 64px; height: 64px; }
  .formula-row__label { font-size: 0.78rem; margin-bottom: 12px; min-height: 36px; }
}

/* ===== GRADE LIST ===== */
.grade-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.grade-list__item { margin: 0; }
.grade-list__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--green-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(122, 182, 72, 0.2);
}
.grade-list__btn:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 22px rgba(122, 182, 72, 0.35);
}
.grade-list__btn::after {
  content: '›';
  font-size: 1.6rem;
  line-height: 1;
}

/* ===== PROGRAM DETAIL ===== */
.program-detail {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.program-detail__heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin: 0 0 28px;
  line-height: 1.3;
}
@media (max-width: 900px) {
  .program-detail { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== FORM CARD ===== */
.form-card--centered {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTENT BLOCK ===== */
.content-block {
  max-width: 760px;
  margin: 0 auto;
}
.content-block p {
  margin: 0 0 22px;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.75;
}
.content-block p:last-child { margin-bottom: 0; }
.content-block p strong { font-weight: 700; color: var(--purple-deep); }
.content-block a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
}
.content-block a:hover { color: var(--purple-deep); }
