/* ==========================================================================
   ILM.SG — Learn · Grow · Excel
   Shared stylesheet for all pages
   ========================================================================== */

:root {
  /* Brand */
  --aqua-50: #effcfb;
  --aqua-100: #d4f7f5;
  --aqua-300: #62e6e2;
  --aqua-500: #1fc2bd;
  --aqua-700: #08696a;
  --sun-100: #fdf4d3;
  --sun-400: #f1cd4b;
  --sun-500: #ecc53a;
  --sun-700: #7a5f00;
  --navy-900: #0f1b2d;
  --ink: #14171c;
  --ink-soft: #4a5260;
  --line: #ecdfc2;
  --paper: #f8edd2;      /* tinted fill for elements inside cards */
  --white: #fff;

  /* Backgrounds */
  --bg: #fff8e7;         /* page: warm cream */
  --bg-alt: #fdefc7;     /* alternate bands: pale sun */
  --surface: #fffdf6;    /* cards, menus, inputs: off-white */
  --bg-glass: rgba(255, 248, 231, 0.88);
  --danger: #c62828;

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 2px 8px rgba(15, 27, 45, 0.05);
  --shadow: 0 10px 30px -12px rgba(15, 27, 45, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 27, 45, 0.28);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Utilities ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--aqua-500); outline-offset: 3px; border-radius: 6px; }

.section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.section--paper { background: var(--bg-alt); }
.section--aqua { background: linear-gradient(180deg, var(--aqua-50), var(--aqua-100)); }
.section--dark { background: var(--navy-900); color: var(--white); }

.section-head { max-width: 680px; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.5rem); text-align: center; }
.section-head h2 { font-size: var(--fs-xl); }
.section-head p { margin-top: 0.85rem; color: var(--ink-soft); }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.75); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--aqua-700); margin-bottom: 0.85rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--sun-400); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--sun-500); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(161, 126, 8, 0.6); }
.btn svg { width: 18px; height: 18px; }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--dark:hover { box-shadow: 0 8px 20px -8px rgba(20, 23, 28, 0.6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: rgba(20, 23, 28, 0.18); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--sm { padding: 0.55rem 1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
html.is-compact { --header-h: 60px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
/* Animated background: a slow aqua/sun shimmer behind the nav, plus a moving accent line */
.site-header::before, .site-header::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.site-header::before {
  top: 0; bottom: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(98, 230, 226, 0.22) 25%, rgba(236, 197, 58, 0.2) 50%, rgba(98, 230, 226, 0.22) 75%, transparent 100%);
  background-size: 200% 100%;
  animation: header-shimmer 14s linear infinite;
}
.site-header::after {
  bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--aqua-500), var(--sun-500), var(--aqua-300), var(--sun-500), var(--aqua-500));
  background-size: 200% 100%;
  animation: header-shimmer 8s linear infinite;
  opacity: 0.7;
}
@keyframes header-shimmer { from { background-position: 0% 0; } to { background-position: -200% 0; } }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height 0.25s ease; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand__name { position: relative; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--navy-900); transition: font-size 0.25s ease; }
.brand__name span { color: var(--sun-500); }
.brand__name::before {
  content: "★"; position: absolute; left: -2px; top: -12px; font-size: 0.7rem; color: var(--sun-500);
}
.brand__tag { margin-top: 0.3rem; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em; color: var(--ink-soft); transition: opacity 0.2s ease, margin 0.25s ease; }
.is-compact .site-header .brand__name { font-size: 1.4rem; }
.is-compact .site-header .brand__tag { opacity: 0; margin-top: -0.6rem; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__head, .nav__home, .nav__call, .nav-backdrop { display: none; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; list-style: none; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.85rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem; height: 3px; border-radius: 3px;
  background: var(--sun-500); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-open > .nav__link::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 600; }
.nav__link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__actions { display: flex; gap: 0.5rem; margin-left: 0.75rem; }
.nav__actions .btn svg { width: 16px; height: 16px; }

/* Mega menu */
.nav__item { position: static; }
.mega {
  position: absolute; left: 50%; top: calc(100% + 1px); translate: -50% 0;
  width: min(100vw - 2.5rem, var(--container));
  display: grid; grid-template-columns: 1fr 1.35fr 1.35fr; gap: 1.5rem;
  padding: 1.5rem; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s; }
.mega__intro { padding: 1.25rem; border-radius: var(--radius); background: var(--bg-alt); display: flex; flex-direction: column; gap: 0.5rem; }
.mega__title { font-size: 1.25rem; font-weight: 700; }
.mega__intro > p:not(.mega__title) { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 0.5rem; }
.mega__cta { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.mega__cta svg { width: 16px; height: 16px; color: var(--aqua-700); transition: transform 0.15s ease; }
.mega__cta:hover { color: var(--aqua-700); }
.mega__cta:hover svg { transform: translateX(3px); }
.mega__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding: 0 0.6rem 0.5rem; }
.mega__group ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.mega__link {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.45rem 0.6rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: background-color 0.15s ease;
}
.mega__link img { width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: cover; object-position: top; background: var(--sun-500); }
.mega__link strong { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.mega__link small { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.mega__link:hover { background: var(--bg-alt); }
.mega__link[aria-current="page"] { background: var(--aqua-50); box-shadow: inset 3px 0 0 var(--aqua-500); }
.mega__link[aria-current="page"] strong { color: var(--aqua-700); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
@media (max-width: 1023px) {
  .nav-toggle { display: grid; }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 60; background: rgba(15, 27, 45, 0.45);
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
  }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(420px, 100%);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0;
    background: var(--bg); box-shadow: var(--shadow-lg);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s;
  }
  .site-header.nav-open .nav { transform: none; visibility: visible; }
  .site-header.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; } /* keeps fixed drawer relative to viewport */
  .site-header:not(.is-scrolled) { background: var(--bg); }
  .site-header.is-scrolled { background: rgba(255, 248, 231, 0.97); }

  .nav__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
  .nav__close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
  .nav__close svg { width: 22px; height: 22px; }
  .nav__home { display: block; }

  .nav .nav__list { flex: 1; overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 1rem 1.25rem; }
  .nav__link { width: 100%; justify-content: space-between; padding: 0.95rem 1rem; font-size: var(--fs-md); border-radius: var(--radius-sm); }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__item.is-open > .nav__link { background: var(--surface); }
  .nav__link[aria-current="page"] { background: var(--surface); box-shadow: inset 4px 0 0 var(--sun-500); }

  .mega {
    position: static; translate: none; width: auto; display: none; grid-template-columns: 1fr;
    gap: 0.75rem; padding: 0.25rem 0.25rem 0.75rem; border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__item.is-open .mega { display: grid; animation: pop 0.25s ease; }
  .mega__intro { display: none; }
  .mega__label { padding: 0.25rem 0.25rem 0.4rem; }
  .mega__group ul { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .mega__link { padding: 0.55rem 0.75rem; background: var(--surface); border: 1px solid var(--line); }
  .mega__link img, .mega__link small { display: none; }
  .mega__link[aria-current="page"] { border-color: var(--aqua-500); box-shadow: none; }

  .nav__actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface);
  }
  .nav__actions .btn { padding-block: 0.85rem; }
  .nav__actions .btn:last-child { grid-column: 1 / -1; }
  .nav__call { display: inline-flex; }
  body.nav-locked { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(236, 197, 58, 0.35), transparent 60%),
    linear-gradient(160deg, var(--aqua-100) 0%, var(--aqua-300) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem);
}
.hero h1 { font-size: var(--fs-2xl); letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.08em; height: 0.32em; z-index: -1;
  background: var(--sun-500); border-radius: 4px; opacity: 0.85;
}
.hero h1 em { z-index: 0; }
.hero__lead { margin-top: 1.25rem; max-width: 540px; font-size: var(--fs-lg); color: #1d3a3a; line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__ctas .btn--ghost { background: rgba(255, 255, 255, 0.55); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; padding: 0; list-style: none; }
.hero__stats strong { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.hero__stats span { font-size: var(--fs-xs); color: #1d3a3a; }

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

/* Animated background shared by the home hero and inner-page heroes:
   drifting colour blobs (::before) and slowly sliding study doodles (::after) */
.hero::before, .page-hero::before, .hero::after, .page-hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
}
.hero::before, .page-hero::before {
  inset: -25%;
  background:
    radial-gradient(closest-side, rgba(236, 197, 58, 0.45), transparent) 10% 20% / 38% 45% no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent) 80% 70% / 42% 50% no-repeat,
    radial-gradient(closest-side, rgba(31, 194, 189, 0.4), transparent) 60% 15% / 34% 40% no-repeat;
  animation: hero-drift 24s ease-in-out infinite alternate;
}
.hero::after, .page-hero::after {
  inset: -200px 0 0 -200px;
  /* Study doodles: + atom ÷ √ pencil = book × flask star. Each icon has its own
     motion inside the SVG (bob, spin, wiggle, tilt, twinkle) while the layer slides. */
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><style>.b,.s,.w,.f,.t{transform-box:fill-box;transform-origin:center}.b{animation:b 3s ease-in-out infinite alternate}.s{animation:s 12s linear infinite}.w{animation:w 1.6s ease-in-out infinite alternate}.f{animation:f 2.4s ease-in-out infinite alternate}.t{animation:t 1.8s ease-in-out infinite alternate}@keyframes b{to{transform:translateY(-6px)}}@keyframes s{to{transform:rotate(360deg)}}@keyframes w{from{transform:rotate(-8deg)}to{transform:rotate(8deg)}}@keyframes f{from{transform:rotate(-10deg)}to{transform:rotate(10deg)}}@keyframes t{from{transform:scale(.7);opacity:.4}to{transform:scale(1.15);opacity:1}}@media (prefers-reduced-motion:reduce){*{animation:none!important}}</style><g fill='none' stroke='%2308696a' stroke-opacity='.2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path class='b' d='M15 30h20M25 20v20'/><g transform='translate(110 38)'><g class='s'><ellipse rx='15' ry='5.5'/><ellipse rx='15' ry='5.5' transform='rotate(60)'/><ellipse rx='15' ry='5.5' transform='rotate(120)'/></g></g><g class='b' style='animation-delay:-1.2s'><path d='M164 32h22'/><circle cx='175' cy='24' r='1.6' fill='%2308696a'/><circle cx='175' cy='40' r='1.6' fill='%2308696a'/></g><path class='b' style='animation-delay:-2.1s' d='M52 74l5 7 7-17h16'/><path class='w' d='M28 128l22-22 7 7-22 22-9 2zM45 111l7 7'/><path class='b' style='animation-delay:-0.6s' d='M100 106h20M100 114h20'/><path class='b' style='animation-delay:-1.8s' d='M155 103c6-3 11-3 15 0 4-3 9-3 15 0v18c-6-3-11-3-15 0-4-3-9-3-15 0zM170 103v18'/><path class='s' style='animation-delay:-3s' d='M22 166l16 16M38 166l-16 16'/><path class='f' d='M100 158v11l-10 17h30l-10-17v-11M97 158h16M94 179h22'/><path class='t' d='M172 161l3.2 6.6 7.2.9-5.3 5 1.4 7.2-6.5-3.6-6.5 3.6 1.4-7.2-5.3-5 7.2-.9z'/></g></svg>");
  background-size: 200px 200px;
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 40%, #000 75%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 40%, #000 75%);
  animation: hero-doodles 30s linear infinite;
}
/* Animations inside an SVG image ignore page CSS, so swap in a still version */
@media (prefers-reduced-motion: reduce) {
  .hero::after, .page-hero::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%2308696a' stroke-opacity='.2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 30h20M25 20v20'/><g transform='translate(110 38)'><g><ellipse rx='15' ry='5.5'/><ellipse rx='15' ry='5.5' transform='rotate(60)'/><ellipse rx='15' ry='5.5' transform='rotate(120)'/></g></g><g><path d='M164 32h22'/><circle cx='175' cy='24' r='1.6' fill='%2308696a'/><circle cx='175' cy='40' r='1.6' fill='%2308696a'/></g><path d='M52 74l5 7 7-17h16'/><path d='M28 128l22-22 7 7-22 22-9 2zM45 111l7 7'/><path d='M100 106h20M100 114h20'/><path d='M155 103c6-3 11-3 15 0 4-3 9-3 15 0v18c-6-3-11-3-15 0-4-3-9-3-15 0zM170 103v18'/><path d='M22 166l16 16M38 166l-16 16'/><path d='M100 158v11l-10 17h30l-10-17v-11M97 158h16M94 179h22'/><path d='M172 161l3.2 6.6 7.2.9-5.3 5 1.4 7.2-6.5-3.6-6.5 3.6 1.4-7.2-5.3-5 7.2-.9z'/></g></svg>"); }
}
.hero__inner, .page-hero__inner { position: relative; z-index: 1; }
@keyframes hero-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(6%, 4%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-5%, 6%, 0) rotate(-6deg) scale(1.02); }
}
@keyframes hero-doodles { to { transform: translate3d(200px, 200px, 0); } }

/* Page hero (inner pages) */
.page-hero { position: relative; background: linear-gradient(160deg, var(--aqua-100), var(--aqua-300)); overflow: hidden; }
.page-hero__inner {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.page-hero h1 { font-size: var(--fs-2xl); letter-spacing: -0.025em; }
.page-hero p { margin-top: 1rem; max-width: 560px; font-size: var(--fs-lg); color: #1d3a3a; line-height: 1.55; }
.page-hero__media {
  justify-self: end; width: min(100%, 420px); aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow-lg); rotate: 2deg;
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media--portrait { aspect-ratio: 1 / 1; width: min(100%, 340px); }
@media (max-width: 799px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { justify-self: start; rotate: 0deg; }
  .page-hero__media--portrait { width: min(100%, 220px); }
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin-bottom: 1rem; font-size: var(--fs-xs); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.breadcrumb a { text-decoration: none; color: #1d3a3a; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; background: rgba(255, 255, 255, 0.7); color: var(--aqua-700);
}
.chip--sun { background: var(--sun-100); color: var(--sun-700); }

/* ---------- Announcement (PSLE mock) ---------- */
.announce {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.announce__info { padding: clamp(1.75rem, 1rem + 3vw, 3rem); background: var(--navy-900); color: var(--white); }
.announce__info h2 { font-size: var(--fs-xl); }
.announce__info h2 span { color: var(--sun-400); display: block; }
.announce__date {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding: 0.4rem 0.9rem;
  border-radius: 999px; background: rgba(98, 230, 226, 0.15); color: var(--aqua-300); font-weight: 600; font-size: var(--fs-sm);
}
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.rates__card { padding: 1.1rem 1.25rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.rates__card h3 { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua-300); margin-bottom: 0.75rem; }
.rates__card ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; font-size: var(--fs-sm); }
.rates__card b { color: var(--sun-400); }
.rates__card small { display: block; opacity: 0.65; font-size: 0.75rem; }
.timeline { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 0.85rem; font-size: var(--fs-sm); }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; align-items: start; }
.timeline svg { width: 22px; height: 22px; color: var(--aqua-300); margin-top: 2px; }
.timeline b { color: var(--white); }
.timeline span { color: rgba(255, 255, 255, 0.78); }
.announce__form { padding: clamp(1.75rem, 1rem + 3vw, 3rem); align-self: center; }
.announce__form h3 { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.announce__form > p { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: 1.5rem; }
@media (max-width: 899px) { .announce { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .rates { grid-template-columns: 1fr; } }

/* ---------- Course grid ---------- */
.tabs { display: inline-flex; padding: 0.35rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); margin: 0 auto 2.5rem; }
.tabs button {
  padding: 0.6rem 1.4rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink-soft);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; list-style: none; padding: 0; }
.course-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sun-500); }
.course-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.course-card:hover .course-card__img img { transform: scale(1.04); }
.course-card__body { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.15rem 1.15rem; flex: 1; }
.course-card__body h3 { font-size: 1.05rem; }
.course-card__body p { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 0.15rem; }
.course-card__arrow {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); transition: background-color 0.2s ease, color 0.2s ease;
}
.course-card__arrow svg { width: 18px; height: 18px; }
.course-card:hover .course-card__arrow { background: var(--sun-500); }
.course-card--alt .course-card__img { background: #2b9cc0; }


/* ---------- Feature icons (homepage "why" cards) ---------- */
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--aqua-100); color: var(--aqua-700);
}
.feature__icon svg { width: 24px; height: 24px; }

/* ---------- Testimonials carousel ---------- */
.section-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  max-width: none; text-align: left;
}
.section-head--split > div:first-child { max-width: 620px; }
.carousel__controls { display: flex; gap: 0.5rem; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover:not(:disabled) { background: var(--sun-500); border-color: var(--sun-500); transform: translateY(-1px); }
.carousel__btn:disabled { opacity: 0.4; cursor: default; }

.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 0.5rem 0.25rem 1.5rem; margin: -0.5rem -0.25rem 0; scrollbar-width: none; align-items: start;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (max-width: 999px) { .carousel__track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 639px) { .carousel__track { grid-auto-columns: 88%; } }

.quote-card { scroll-snap-align: start; display: flex; }
.quote-card figure {
  position: relative; display: flex; flex-direction: column; width: 100%; margin: 0;
  padding: 2.75rem 1.75rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.quote-card figure:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.quote-card figure::before {
  content: "\201C"; position: absolute; top: 0.4rem; left: 1.4rem; font: 700 4.5rem/1 Georgia, serif; color: var(--sun-500);
}
.quote-card__text { margin: 0; font-style: italic; color: var(--ink); font-size: var(--fs-sm); line-height: 1.7; }
.quote-card__text p + p { margin-top: 0.75rem; }
.quote-card__text.is-clamped {
  max-height: calc(1.7em * 9); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.quote-card__more {
  align-self: flex-start; margin-top: 0.5rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--aqua-700); font-weight: 600; font-size: var(--fs-xs); text-decoration: underline; text-underline-offset: 3px;
}
.quote-card figcaption { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.quote-card__more + figcaption, .quote-card__text + figcaption { margin-top: 1.25rem; }
.quote-card figure > :nth-last-child(1) { margin-top: auto; }
.quote-card .avatar {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--aqua-100); color: var(--aqua-700); font-weight: 700; font-size: var(--fs-sm);
}
.quote-card:nth-child(even) .avatar { background: var(--sun-100); color: var(--sun-700); }
/* Optional consented photo: <span class="avatar"><img src="assets/img/testimonials/…" alt=""></span> */
.quote-card .avatar:has(img) { padding: 0; overflow: hidden; border-radius: 50%; width: 52px; height: 52px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--sun-400); }
.quote-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-card cite { display: block; font-style: normal; font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.quote-card figcaption span span { font-size: var(--fs-xs); color: var(--ink-soft); }

.carousel__dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.25rem; }
.carousel__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.carousel__dots button[aria-current="true"] { width: 26px; background: var(--sun-500); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.5rem; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); font-size: 1.25rem; font-weight: 400; transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sun-500); }
.faq details[open] { border-color: var(--sun-400); }
.faq details > div { padding: 0 1.5rem 1.35rem; color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--aqua-500); box-shadow: 0 0 0 4px rgba(31, 194, 189, 0.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-soft); }
.consent input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--aqua-700); flex: none; }
.form__status { font-size: var(--fs-sm); min-height: 1.5em; }
.form__status.is-error { color: var(--danger); }
.form__status.is-ok { color: var(--aqua-700); }
@media (max-width: 559px) { .form { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(98, 230, 226, 0.25), transparent 70%),
    var(--navy-900);
  color: var(--white);
}
.cta h2 { font-size: var(--fs-xl); }
.cta p { margin-top: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.cta .card { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
@media (max-width: 899px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Generic cards / content ---------- */
.card { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card h2 { font-size: var(--fs-lg); margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; }
.prose p + p { margin-top: 0.85rem; }
.prose p { color: var(--ink-soft); }

/* About */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; list-style: none; padding: 0; }
.pillar { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.pillar h3 { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua-700); margin-bottom: 0.75rem; }
.pillar ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.pillar li { display: flex; gap: 0.5rem; align-items: baseline; font-weight: 500; }
.pillar li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun-500); flex: none; translate: 0 -2px; }
.pillar--lead { background: var(--sun-500); }
.pillar--lead h3 { color: var(--ink); }
.pillar--lead p { font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; }
@media (max-width: 899px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 499px) { .pillars { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; list-style: none; padding: 0; }
.value { padding: 1.75rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.value__num { font-size: var(--fs-xs); font-weight: 600; color: var(--sun-400); letter-spacing: 0.1em; }
.value h3 { font-size: 1.15rem; margin: 0.5rem 0; }
.value p { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.75); }
@media (max-width: 899px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .values { grid-template-columns: 1fr; } }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.story__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.story__media figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story__media figure:nth-child(2) { margin-top: 3rem; }
.story__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.story h2 { font-size: var(--fs-xl); margin-bottom: 1.25rem; }
.story__year {
  display: inline-flex; align-items: baseline; gap: 0.5rem; margin-top: 1.5rem; padding: 0.75rem 1.25rem;
  border-radius: var(--radius); background: var(--aqua-50); color: var(--aqua-700); font-weight: 600;
}
.story__year strong { font-size: 2rem; line-height: 1; }
@media (max-width: 799px) { .story { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.5rem; align-items: start; }
.contact__aside { display: grid; gap: 1.25rem; }
.contact__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.contact-item { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.contact-item__icon { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--sun-100); color: var(--sun-700); }
.contact-item__icon svg { width: 24px; height: 24px; }
.contact-item small { display: block; font-size: var(--fs-xs); color: var(--ink-soft); }
.contact-item strong { font-size: var(--fs-lg); }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Course detail ---------- */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.course-main { display: grid; gap: 1.5rem; }
.course-aside { position: sticky; top: calc(var(--header-h) + 76px); display: grid; gap: 1.25rem; }
@media (max-width: 999px) {
  .course-layout { grid-template-columns: 1fr; }
  .course-aside { position: static; }
}

.aims { list-style: none; padding: 0; counter-reset: aim; display: grid; gap: 0.85rem; }
.aims li { counter-increment: aim; display: grid; grid-template-columns: 36px 1fr; gap: 0.85rem; align-items: start; color: var(--ink-soft); }
.aims li::before {
  content: counter(aim); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--aqua-100); color: var(--aqua-700); font-weight: 700; font-size: var(--fs-sm);
}


.topics { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.topics li { position: relative; padding: 0.45rem 0 0.45rem 1.25rem; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); color: var(--ink-soft); }
.topics li:last-child { border-bottom: 0; }
.topics li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 2px; background: var(--aqua-500); }

.note { display: flex; gap: 0.85rem; padding: 1.1rem 1.35rem; border-radius: var(--radius); background: var(--aqua-50); border: 1px solid var(--aqua-100); font-size: var(--fs-sm); }
.note svg { width: 22px; height: 22px; flex: none; color: var(--aqua-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.78); padding-top: clamp(3.5rem, 3rem + 2vw, 5rem); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sun-400); }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__tag { color: rgba(255, 255, 255, 0.6); }
.site-footer__mission { margin-top: 1.25rem; max-width: 340px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: var(--fs-xs);
}
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 499px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Registration ---------- */
.register { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.register__form { display: grid; gap: 2rem; }
.register__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.register__aside h2 { font-size: 1.05rem; margin-bottom: 0.85rem; }
@media (max-width: 999px) {
  .register { grid-template-columns: 1fr; }
  .register__aside { position: static; }
}
.form-section { border: 0; padding: 0; min-width: 0; }
.form-section > legend {
  display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0 0 0.85rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 600;
}
.form-section__num {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--sun-500); font-size: var(--fs-sm); font-weight: 700;
}
.form__divider { padding-top: 1rem; border-top: 1px dashed var(--line); }
.optional { font-weight: 400; color: var(--ink-soft); font-size: var(--fs-xs); }
.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { font-size: var(--fs-sm); font-weight: 500; margin-bottom: 0.5rem; padding: 0; }
.choice__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.choice__row label {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); background: var(--surface);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice__row label:has(input:checked) { border-color: var(--aqua-500); background: var(--aqua-50); }
.choice__row input { accent-color: var(--aqua-700); width: 16px; height: 16px; }
.register__submit { display: grid; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; display: grid; gap: 0.65rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua-700); font-weight: 700; }

/* ==========================================================================
   Interactive UI (v2)
   ========================================================================== */
:root { interpolate-size: allow-keywords; }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.rot-up { rotate: -90deg; }
.rot-180 { rotate: 180deg; }
mark { background: var(--sun-100); color: inherit; border-radius: 3px; padding: 0 1px; box-shadow: 0 -2px 0 var(--sun-400) inset; }

/* Smooth open/close for every <details> (Chromium 131+; others open instantly) */
details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}
details[open]::details-content { block-size: auto; }

/* Scroll progress */
.progress { position: absolute; inset: 0 0 auto; height: 3px; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--aqua-500), var(--sun-500));
}

/* Nav hover affordance */

/* Back to top */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--aqua-700); }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 2fr; gap: 0.6rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--bg-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { padding-block: 0.75rem; }
  .to-top { bottom: 5.5rem; }
  .site-footer { padding-bottom: 4.5rem; }
}

/* ---------- Hero course finder ---------- */
.finder { position: relative; display: grid; }
.finder__img {
  border-radius: var(--radius-lg); overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; margin-left: 12%;
}
.finder__img img { width: 100%; height: 100%; object-fit: cover; }
.finder__card {
  position: relative; margin: -22% 8% 0 0; padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.finder__title { font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.finder__title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun-500); box-shadow: 0 0 0 4px var(--sun-100); }
.finder__group { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.finder__group legend { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); margin-bottom: 0.5rem; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pills label, .pills > a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 0.95rem; min-width: 48px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: 600;
  text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.pills label:hover { border-color: var(--aqua-500); transform: translateY(-1px); }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.pills label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pills label:has(input:focus-visible) { outline: 3px solid var(--aqua-500); outline-offset: 2px; }
.pills--levels label { padding-inline: 0.75rem; }
.finder__result {
  display: grid; grid-template-columns: 72px 1fr; gap: 0.5rem 1rem; align-items: center;
  margin-top: 0.5rem; padding: 1rem; border-radius: var(--radius); background: var(--aqua-50); border: 1px solid var(--aqua-100);
}
.finder__result.is-in { animation: pop 0.35s ease; }
.finder__result img { width: 72px; height: 66px; border-radius: 12px; object-fit: cover; object-position: top; background: var(--sun-500); }
.finder__name { font-weight: 700; line-height: 1.3; }
.finder__facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.85rem; font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 0.2rem; }
.finder__facts strong { color: var(--ink); }
.finder__actions { grid-column: 1 / -1; display: flex; gap: 0.5rem; }
.finder__actions .btn { flex: 1; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  .finder__img { margin-left: 0; aspect-ratio: 16 / 9; }
  .finder__card { margin: -12% 4% 0; }
}

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: none; }
.step {
  position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem;
  border-radius: var(--radius); background: var(--paper);
}
.step__num {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 700; color: var(--aqua-700);
}
.step h3 { font-size: 1rem; }
.step p { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 0.2rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -1.05rem; top: 50%; width: 0.85rem; height: 2px; background: var(--line);
}
@media (max-width: 799px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

/* ---------- Course grid controls ---------- */
.course-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2.25rem; }
.course-controls .tabs { margin: 0; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.chips button {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: all 0.15s ease;
}
.chips button:hover { border-color: var(--aqua-500); }
.chips button[aria-pressed="true"] { background: var(--aqua-100); border-color: var(--aqua-500); color: var(--aqua-700); font-weight: 600; }
.course-grid > li[hidden] { display: none; }
.course-card__img { position: relative; }
.course-card__badge {
  position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(255, 253, 246, 0.94); font-size: var(--fs-xs); font-weight: 700; box-shadow: var(--shadow-sm);
}
.course-card__badge small { font-weight: 500; color: var(--ink-soft); }
.course-card__badge--muted { color: var(--ink-soft); }
[role="tabpanel"] > .course-grid { animation: pop 0.35s ease; }

/* ---------- Course page ---------- */
.hero-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-facts li {
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs); color: #1d3a3a; line-height: 1.3;
}
.hero-facts strong { display: block; font-size: 1.15rem; color: var(--ink); }

.subnav {
  position: sticky; top: var(--header-h); z-index: 30;
  background: var(--bg-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.subnav ul { list-style: none; padding: 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.subnav a:not(.btn) {
  position: relative; display: block; padding: 0.95rem 0.9rem; white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--ink-soft);
}
.subnav a:not(.btn)::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--sun-500); transform: scaleX(0); transition: transform 0.2s ease;
}
.subnav a[aria-current] { color: var(--ink); }
.subnav a[aria-current]::after, .subnav a:not(.btn):hover::after { transform: none; }
@media (max-width: 599px) { .page-hero__media { display: none; } }

.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card__head h2 { margin: 0; }
.search {
  display: flex; align-items: center; gap: 0.5rem; padding: 0 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search:focus-within { border-color: var(--aqua-500); box-shadow: 0 0 0 4px rgba(31, 194, 189, 0.18); background: var(--surface); }
.search svg { width: 18px; height: 18px; color: var(--ink-soft); flex: none; }
.search input { border: 0; background: none; padding: 0.6rem 0; outline: none; width: 200px; font-size: var(--fs-sm); }

.segmented { display: flex; padding: 0.3rem; gap: 0.25rem; border-radius: 999px; background: var(--paper); margin-bottom: 1.25rem; }
.segmented[hidden] { display: none; }
.segmented button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.6rem 1rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented .count { min-width: 22px; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--line); font-size: 0.72rem; }
.segmented button[aria-selected="true"] .count { background: var(--sun-500); }

.topics-panel { animation: pop 0.3s ease; }
.topics-panel__title { display: none; font-size: var(--fs-sm); color: var(--aqua-700); margin: 0.5rem 0; }
.topics-panel.is-searching .topics-panel__title { display: block; }
.no-js .topics-panel__title { display: block; }
.topics { display: block; counter-reset: topic; columns: 2 260px; column-gap: 2rem; }
.topics li { break-inside: avoid; counter-increment: topic; padding-left: 2.2rem; }
.topics li::before {
  content: counter(topic); top: 0.5rem; width: 1.6rem; height: 1.6rem; border-radius: 8px; display: grid; place-items: center;
  background: var(--aqua-50); color: var(--aqua-700); font-size: 0.72rem; font-weight: 700;
}
.topics-empty { padding: 1rem; text-align: center; color: var(--ink-soft); font-size: var(--fs-sm); }

.assess-list { display: grid; gap: 0.75rem; }
.assess-item { border-radius: var(--radius); background: var(--paper); border: 1px solid transparent; transition: border-color 0.2s ease, background-color 0.2s ease; }
.assess-item[open] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.assess-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.assess-item summary::-webkit-details-marker { display: none; }
.assess-item summary > span { display: grid; }
.assess-item .sub { font-size: var(--fs-xs); font-weight: 600; color: var(--aqua-700); }
.assess-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  rotate: 45deg; translate: 0 -3px; transition: rotate 0.2s ease, translate 0.2s ease;
}
.assess-item[open] summary::after { rotate: 225deg; translate: 0 3px; }
.assess-item ol { padding: 0 1.25rem 1.25rem 2.6rem; display: grid; gap: 0.5rem; font-size: var(--fs-sm); color: var(--ink-soft); }


.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pager__link {
  display: grid; gap: 0.15rem; padding: 1.1rem 1.35rem; border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pager__link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pager__link small { font-size: var(--fs-xs); color: var(--ink-soft); }
.pager__link--prev small::before { content: "← "; }
.pager__link--next { text-align: right; }
.pager__link--next small::after { content: " →"; }

/* ---------- Course fee card ---------- */
.fee-card { border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.fee-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.5rem 1rem; }
.fee-card__head h2 { font-size: 1.2rem; margin: 0; }
.fee-card__head p { font-size: var(--fs-xs); color: var(--ink-soft); text-align: right; }

.fee-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 1.5rem 0.25rem; padding: 0.3rem;
  border-radius: 16px; background: var(--paper);
}
.fee-switch button {
  position: relative; z-index: 1; display: grid; gap: 0.1rem; padding: 0.6rem 0.5rem; border: 0; border-radius: 12px;
  background: none; cursor: pointer; text-align: center; color: var(--ink-soft); transition: color 0.2s ease;
}
.fee-switch button span { font-weight: 600; font-size: var(--fs-sm); }
.fee-switch button small { font-size: 0.72rem; }
.fee-switch button[aria-selected="true"] { color: var(--ink); }
.fee-switch__thumb {
  position: absolute; top: 0.3rem; bottom: 0.3rem; left: 0.3rem; width: calc(50% - 0.3rem); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-sm); transition: translate 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fee-switch:has(button:nth-of-type(2)[aria-selected="true"]) .fee-switch__thumb { translate: 100% 0; }
.no-js .fee-switch { display: none; }

.fee-panel { padding: 1rem 1.5rem 1.5rem; animation: pop 0.3s ease; }
.no-js .fee-panel + .fee-panel { border-top: 1px dashed var(--line); }
.fee-panel__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aqua-700); }
.fee-price { display: flex; align-items: baseline; gap: 0.35rem; margin-top: 0.35rem; }
.fee-price__cur { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); align-self: flex-start; margin-top: 0.55rem; }
.fee-price__amt { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fee-price__per { font-size: var(--fs-sm); color: var(--ink-soft); }
.fee-alt { margin-top: 0.4rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.fee-alt strong { color: var(--ink); }
.fee-extras { margin: 1.1rem 0 1.25rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--bg-alt); display: grid; gap: 0.4rem; }
.fee-extras div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.fee-extras dt { font-size: var(--fs-sm); font-weight: 500; }
.fee-extras dt small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--ink-soft); }
.fee-extras dd { margin: 0; font-weight: 700; white-space: nowrap; }
.fee-panel > .btn { margin-top: 1.25rem; }
.fee-extras + .btn { margin-top: 0; }

.fee-card__includes { padding: 1.1rem 1.5rem 1.25rem; border-top: 1px solid var(--line); }
.fee-card__includes p { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
.fee-card__includes ul { display: grid; gap: 0.45rem; }
.fee-card__includes li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: var(--fs-sm); }
.fee-card__includes svg { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; padding: 3px; border-radius: 50%; background: var(--aqua-100); color: var(--aqua-700); }

.fee-card__foot { display: grid; gap: 0.6rem; padding: 1rem 1.5rem 1.25rem; background: var(--paper); font-size: var(--fs-xs); color: var(--ink-soft); }
.fee-card__foot p, .fee-card__foot a { display: flex; align-items: flex-start; gap: 0.5rem; }
.fee-card__foot svg { width: 16px; height: 16px; flex: none; margin-top: 0.1rem; color: var(--aqua-700); }
.fee-card__foot a { font-weight: 600; color: var(--ink); text-decoration: none; }
.fee-card__foot a:hover { color: var(--aqua-700); text-decoration: underline; }

/* ---------- Registration wizard ---------- */
.stepper { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; font-size: var(--fs-xs); color: var(--ink-soft); text-align: center; }
.stepper li.is-reachable { cursor: pointer; }
.stepper span {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--paper); border: 2px solid var(--line); transition: all 0.2s ease;
}
.stepper em { font-style: normal; font-weight: 500; }
.stepper .is-current span { background: var(--sun-500); border-color: var(--sun-500); color: var(--ink); box-shadow: 0 0 0 5px var(--sun-100); }
.stepper .is-current em { color: var(--ink); font-weight: 600; }
.stepper .is-done span { background: var(--aqua-700); border-color: var(--aqua-700); color: transparent; position: relative; }
.stepper .is-done span::after { content: "✓"; position: absolute; color: var(--white); }
@media (max-width: 479px) { .stepper em { display: none; } }
.stepper-bar { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; margin-top: -0.75rem; }
.stepper-bar span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua-500), var(--sun-500)); transition: transform 0.35s ease;
}
.is-wizard [data-step]:not([hidden]) { animation: pop 0.3s ease; }
.form-section__legend {
  display: flex; align-items: center; gap: 0.65rem; padding: 0 0 0.85rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 600;
}
.form-section legend:focus, .form-section__legend:focus { outline: none; }
.review { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.review__block { padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--paper); }
.review__block header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.review__block h3 { font-size: var(--fs-sm); }
.review__edit {
  border: 0; background: none; color: var(--aqua-700); font-weight: 600; font-size: var(--fs-xs); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.review dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6rem 1.25rem; }
.review dt { font-size: var(--fs-xs); color: var(--ink-soft); }
.review dd { margin: 0; font-size: var(--fs-sm); font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.is-wizard .register__submit { border-top: 0; padding-top: 0; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.wizard-nav[hidden] { display: none; }
.wizard-nav__count { font-size: var(--fs-xs); color: var(--ink-soft); }
.wizard-nav [hidden] { display: none; }

/* Button loading state */
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading svg { animation: nudge 0.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ==========================================================================
   Homepage
   ========================================================================== */

/* WhatsApp button variant (hero, FAQ) */
.btn--whatsapp { --btn-bg: #25d366; --btn-fg: var(--white); }
.btn--whatsapp:hover { --btn-bg: #128c7e; box-shadow: 0 8px 20px -8px rgba(18, 140, 126, 0.6); }

/* Hero */
.hero--home .hero__inner { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(4rem, 3rem + 5vw, 7rem); }
.hero--home h1 { font-weight: 700; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; padding: 0.4rem 0.95rem 0.4rem 0.5rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); font-weight: 600; color: var(--aqua-700);
}
.hero__badge span {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun-500); color: var(--ink); font-size: 0.75rem;
}
.hero__checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; padding: 0; list-style: none; font-size: var(--fs-sm); font-weight: 500; color: #1d3a3a; }
.hero__checks li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__checks svg, .cta__next svg {
  width: 20px; height: 20px; padding: 3px; border-radius: 50%; flex: none;
  background: var(--aqua-700); color: var(--white);
}
.hero--home .hero__stats { gap: 0.75rem; margin-top: 2rem; }
.hero--home .hero__stats li {
  padding: 0.85rem 1.1rem; border-radius: var(--radius); min-width: 120px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 559px) {
  .hero--home .hero__stats li { flex: 1 1 0; min-width: 0; padding: 0.7rem 0.8rem; }
  .hero--home .hero__stats strong { font-size: 1.3rem; }
}

/* Floating cards around the course finder photo */
.hero-float {
  position: absolute; z-index: 2; display: flex; gap: 0.6rem; padding: 0.75rem 1rem;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.hero-float small { display: block; font-size: 0.72rem; color: var(--ink-soft); }
.hero-float--quote { flex-direction: column; gap: 0.2rem; max-width: 220px; left: 2%; top: 14%; animation-delay: -2.5s; }
.hero-float--quote p { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.hero-float__stars { color: var(--sun-500); font-size: 0.8rem; letter-spacing: 0.1em; }
.hero-float--quiz { align-items: center; right: -0.75rem; top: -1.25rem; }
.hero-float--quiz strong { display: block; font-size: var(--fs-sm); line-height: 1.2; }
.hero-float__icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-500); }
.hero-float__icon svg { width: 20px; height: 20px; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 899px) {
  .hero-float--quote { left: auto; right: 0.5rem; top: 1rem; }
  .hero-float--quiz { display: none; }
}
@media (max-width: 479px) { .hero-float--quote { display: none; } }

/* Why parents choose us */
.why { overflow-x: clip; }
.why__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.why__media { position: relative; }
.why__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg);
}
.why__media::before {
  content: ""; position: absolute; inset: 8% -6% -5% 10%; z-index: -1;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg); background: var(--aqua-100);
}
.why__sticker {
  position: absolute; left: -1rem; bottom: 2rem; width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; rotate: -8deg;
  background: var(--sun-500); box-shadow: var(--shadow);
}
.why__sticker strong { font-size: 1.5rem; line-height: 1; }
.why__sticker span { font-size: 0.7rem; font-weight: 600; }
.why h2 { font-size: var(--fs-xl); }
.why__lead { margin-top: 0.85rem; color: var(--ink-soft); max-width: 520px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding: 0; list-style: none; }
.why-item {
  padding: 1.35rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--aqua-300); }
.why-item:nth-child(even) .feature__icon { background: var(--sun-100); color: var(--sun-700); }
.why-item__ask { font-size: var(--fs-xs); font-style: italic; color: var(--aqua-700); margin-bottom: 0.35rem; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.why-item p:not(.why-item__ask) { font-size: var(--fs-sm); color: var(--ink-soft); }
@media (max-width: 899px) {
  .why__inner { grid-template-columns: 1fr; }
  .why__media { max-width: 380px; margin-inline: auto; }
}
@media (max-width: 559px) { .why__list { grid-template-columns: 1fr; } }

/* Getting started steps */
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.steps--home { gap: 1.5rem; }
.steps--home .step { flex-direction: column; gap: 0.85rem; padding: 1.75rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.steps--home .step__num {
  width: 52px; height: 52px; border-radius: 16px; font-size: 1.25rem; color: var(--ink);
  background: linear-gradient(135deg, var(--sun-400), var(--sun-500)); box-shadow: 0 8px 18px -8px rgba(161, 126, 8, 0.7);
}
.steps--home .step:nth-child(2) .step__num { background: linear-gradient(135deg, var(--aqua-300), var(--aqua-500)); box-shadow: 0 8px 18px -8px rgba(8, 105, 106, 0.6); }
.steps--home .step h3 { font-size: 1.1rem; }
.steps--home .step:not(:last-child)::after {
  right: -1.4rem; top: 3.1rem; width: 1.3rem; height: 0; background: none; border-top: 2px dashed var(--aqua-500);
}

/* Courses */
.courses__help { margin-top: 2.5rem; text-align: center; color: var(--ink-soft); font-size: var(--fs-sm); }
.courses__help a { color: var(--aqua-700); font-weight: 600; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.faq-layout .faq { max-width: none; margin: 0; }
.faq-layout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.faq-layout__aside h2 { font-size: var(--fs-xl); }
.faq-layout__aside > p:not(.eyebrow) { margin-top: 0.85rem; color: var(--ink-soft); }
.help-card { display: grid; gap: 0.6rem; margin-top: 1.5rem; max-width: 300px; }
@media (max-width: 799px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout__aside { position: static; }
}

/* CTA */
.cta__next { display: grid; gap: 0.7rem; margin-top: 1.75rem; padding: 0; list-style: none; font-size: var(--fs-sm); }
.cta__next li { display: flex; align-items: center; gap: 0.6rem; }
.cta__next svg { background: var(--sun-500); color: var(--ink); }

/* ==========================================================================
   Inner pages (about, contact, register, courses) — homepage look
   ========================================================================== */
.page-hero h1 { font-weight: 700; }
.page-hero__inner { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.page-hero .hero__badge { margin-bottom: 1rem; }
.page-hero .breadcrumb + .hero__badge { margin-top: 1rem; }
.page-hero .hero__badge, .page-hero .hero-float p { margin-top: 0; font-size: var(--fs-xs); line-height: 1.4; }
.page-hero .hero__ctas { margin-top: 1.75rem; }

/* Photo + floating cards */
.page-hero__visual { position: relative; justify-self: end; width: min(100%, 420px); }
.page-hero__visual:has(.page-hero__media--portrait) { width: min(100%, 340px); }
.page-hero__visual .page-hero__media { width: 100%; justify-self: auto; }
.hero-float--tag { align-items: center; left: -2rem; bottom: 1.5rem; animation-delay: -2.5s; }
.hero-float--tag strong { display: block; font-size: var(--fs-sm); line-height: 1.2; }
.hero-float__icon--aqua { background: var(--aqua-100); color: var(--aqua-700); }
.hero-float__icon--wa { background: #25d366; color: var(--white); }
.hero-float__icon--aqua svg, .hero-float__icon--wa svg { width: 20px; height: 20px; }
@media (max-width: 799px) {
  .page-hero__visual { justify-self: start; }
  .page-hero__visual:has(.page-hero__media--portrait) { width: min(100%, 220px); }
  .hero-float--tag { display: none; }
}
@media (max-width: 599px) { .page-hero__visual { display: none; } }

/* Contact options (WhatsApp + phone) */
.contact-list { display: grid; gap: 1.25rem; }
.contact-item__icon--wa { background: #dcf8e6; color: #128c7e; }
.contact-item:hover strong { color: var(--aqua-700); }

/* "Not sure?" card under the course fee card */
.help-card--aside {
  max-width: none; margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px dashed var(--aqua-500);
}
.help-card--aside p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 0.4rem; }
.help-card--aside strong { display: block; color: var(--ink); }

/* About page */
.pillar, .value { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.08); }
.story__media figure { border-radius: 120px 120px var(--radius) var(--radius); }
/* The fee card + help card are taller than most laptop screens; only keep the aside sticky where it fits */
@media (max-height: 1099px) { .course-aside { position: static; } }
