/* Next Level Enrichment — portable stylesheet. No frameworks, no build step. */

:root {
  --pink: #e10087;
  --pink-dark: #b0006a;
  --blue: #3489e5;
  --blue-dark: #1f6ac0;
  --mint: #26e8b1;
  --ink: #16202c;
  --body: #4a5568;
  --muted: #7b8794;
  --line: #e5e9ef;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(22, 32, 44, .04), 0 12px 32px rgba(22, 32, 44, .07);
  --wrap: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--pink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(2.2rem, 4.5vw, 3.6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto clamp(1.4rem, 3vw, 2.2rem); text-align: center; }
.section__head p { font-size: 1.02rem; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pink); color: #fff; box-shadow: 0 6px 20px rgba(225, 0, 135, .3); }
.btn--primary:hover { background: var(--pink-dark); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--pink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; max-width: 62vw; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; margin-left: auto; color: var(--ink);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); color: var(--pink); }
.nav a[aria-current="page"] { color: var(--pink); font-weight: 600; }
.nav .btn { margin-left: .5rem; padding: .6em 1.3em; }
.nav .btn:hover { background: var(--pink-dark); color: #fff; }

/* ---------- Nav dropdown (Programmes) ---------- */
.navdrop { position: relative; }
.navdrop__btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 0; cursor: pointer; font: inherit;
  font-size: .95rem; font-weight: 500; color: var(--ink);
  padding: .5rem .7rem; border-radius: 8px; white-space: nowrap;
}
.navdrop__btn:hover { background: var(--bg-soft); color: var(--pink); }
.navdrop[data-active="true"] > .navdrop__btn { color: var(--pink); font-weight: 600; }
.navdrop__caret {
  width: 0; height: 0; border-style: solid; border-width: 5px 4px 0 4px;
  border-color: currentColor transparent transparent transparent; transition: transform .2s ease;
}
.navdrop:hover .navdrop__caret, .navdrop.open .navdrop__caret { transform: rotate(180deg); }
.navdrop__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .4rem; z-index: 60;
  display: none; flex-direction: column;
}
.navdrop:hover .navdrop__menu, .navdrop.open .navdrop__menu { display: flex; }
.navdrop__menu a {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .55rem .8rem; border-radius: 8px; white-space: nowrap;
}
.navdrop__menu a:hover { background: var(--bg-soft); color: var(--pink); }
.navdrop__menu a[aria-current="page"] { color: var(--pink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.4rem, 5.5vw, 4.2rem) 0;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(38, 232, 177, .18), transparent 60%),
    radial-gradient(800px 500px at 0% 10%, rgba(52, 137, 229, .14), transparent 60%),
    var(--bg-soft);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pink);
  background: rgba(225, 0, 135, .09); padding: .45em 1em; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero__lead { font-size: 1.2rem; max-width: 32em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.8rem; }
.stats div strong { display: block; font-size: 2rem; color: var(--pink); line-height: 1; }
.stats div span { font-size: .9rem; color: var(--muted); }

/* ---------- Generic card grid ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35rem; }
.card p { margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px; object-fit: cover;
  margin-bottom: .9rem; background: var(--bg-soft);
}
.card__num {
  font-size: .72rem; font-weight: 700; color: var(--pink);
  letter-spacing: .08em; text-transform: uppercase; display: inline-block; margin-bottom: .5rem;
  background: rgba(225,0,135,.08); padding: .25em .7em; border-radius: 999px;
}

/* Coloured top-accent on feature-grid cards — cycles the brand palette */
.grid--3 > .card, .grid--4 > .card { border-top: 3px solid var(--line); }
.grid > .card:nth-child(4n+1) { border-top-color: var(--pink); }
.grid > .card:nth-child(4n+2) { border-top-color: var(--blue); }
.grid > .card:nth-child(4n+3) { border-top-color: var(--mint); }
.grid > .card:nth-child(4n+4) { border-top-color: #f6a609; }
.grid--3 > .card.prog, .grid--4 > .card.prog { border-top-width: 1px; }

/* ---------- Stat / KPI tiles (coloured widgets) ---------- */
.tilerow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile {
  border-radius: var(--radius); padding: 1.3rem 1.4rem; color: #fff;
  display: flex; flex-direction: column; gap: .2rem; box-shadow: var(--shadow);
}
.tile strong { font-size: 1.9rem; line-height: 1; font-weight: 800; }
.tile span { font-size: .85rem; opacity: .92; }
.tile--brand-pink  { background: linear-gradient(135deg, #e10087, #b0006a); }
.tile--brand-blue  { background: linear-gradient(135deg, #3489e5, #1f6ac0); }
.tile--brand-mint  { background: linear-gradient(135deg, #1fb488, #26e8b1); }
.tile--brand-amber { background: linear-gradient(135deg, #f6a609, #e07a00); }

/* ---------- Accordion (Edu Apps categories) ---------- */
.acc {
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  margin-bottom: 1rem; overflow: hidden; box-shadow: 0 1px 2px rgba(22,32,44,.04);
}
.acc__head {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; user-select: none;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head:hover .acc__title { color: var(--pink); }
.acc__title { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.acc__hint { color: var(--muted); font-size: .85rem; margin-right: auto; }
.acc__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); flex: none; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--pink);
  transform: translate(-50%,-50%);
}
.acc__icon::before { width: 12px; height: 2px; }
.acc__icon::after { width: 2px; height: 12px; transition: transform .2s ease; }
.acc[open] .acc__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.acc__body { padding: 0 1.4rem 1.4rem; }
.acc__group {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  margin: 1.5rem 0 .9rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.acc__body > .acc__group:first-child { border-top: 0; padding-top: .3rem; margin-top: .3rem; }
@media (max-width: 620px) {
  .acc__hint { display: none; }
  .acc__head { padding: 1rem 1.1rem; }
}

/* ---------- Programme cards ---------- */
.prog { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.prog img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.prog__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.prog__body ul { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.prog__body li { padding: .45rem 0 .45rem 1.6rem; position: relative; font-size: .96rem; border-bottom: 1px solid var(--line); }
.prog__body li:last-child { border-bottom: 0; }
.prog__body li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
}
.prog__body h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem 0 .3rem; }
.prog__body h4:first-child { margin-top: 0; }

/* ---------- Lite YouTube (click to play) ---------- */
.ytlite::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); transition: background .2s; }
.ytlite:hover::after { background: rgba(0,0,0,0); }
.ytlite__btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1;
  width: 62px; height: 44px; border-radius: 12px; background: rgba(225,0,135,.92);
  transition: transform .15s ease, background .15s ease;
}
.ytlite__btn::before {
  content: ""; position: absolute; top: 50%; left: 52%; transform: translate(-50%,-50%);
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.ytlite:hover .ytlite__btn { transform: translate(-50%,-50%) scale(1.08); background: var(--pink); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pink); }
.crumbs > span[aria-hidden] { color: var(--line); }
.crumbs > span:not([aria-hidden]) { color: var(--muted); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- eLearning: subject headings + course cards ---------- */
.subj-head { display: flex; align-items: center; gap: .6rem; font-size: 1.4rem; margin: 2rem 0 1rem; }
.subj-head:first-of-type { margin-top: 0; }
.subj-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.course-card { display: block; text-decoration: none; color: inherit; border-top: 3px solid var(--line); }
.course-card__lvl {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: .35rem;
}
.course-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.course-card__meta { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- eLearning: course player (master / detail) ---------- */
.course-app { display: grid; grid-template-columns: 300px 1fr; gap: 1.2rem; align-items: start; }

/* progress + left list */
.lesson-list { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.progress { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.progress__row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.progress__pct { font-size: 1.35rem; color: var(--pink); }
.progress__count { font-size: .8rem; color: var(--muted); }
.progress__bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress__bar > i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--mint), #12b886); transition: width .3s ease; }
.lesson-scroll { max-height: 68vh; overflow-y: auto; padding: .5rem; }
.lgroup__t { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: .7rem .5rem .3rem; }
.lrow {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer; padding: .4rem; border-radius: 10px; color: inherit;
}
.lrow:hover { background: var(--bg-soft); }
.lrow.is-active { background: rgba(225,0,135,.09); }
.lrow__thumb { width: 62px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; flex: none; background: #0b1220; position: relative; }
.lrow__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb--pdf { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#e5484d,#a4262c); font-size: 1.2rem; }
.lrow__body { flex: 1; min-width: 0; }
.lrow__title { display: block; font-size: .83rem; line-height: 1.25; color: var(--ink); }
.lrow__kind { display: block; font-size: .68rem; color: var(--muted); margin-top: .1rem; }
.lrow.is-active .lrow__title { color: var(--pink); font-weight: 600; }
.lrow__tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; position: relative; }
.lrow.is-done .lrow__tick { background: var(--mint); border-color: var(--mint); }
.lrow.is-done .lrow__tick::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* right viewer */
.viewer { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0b1220; }
.viewer__stage { position: relative; aspect-ratio: 16/9; background: #0b1220; }
.viewer__stage:fullscreen { aspect-ratio: auto; }
.viewer__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8fa0bd; font-size: .95rem; }
.ytbox { position: absolute; inset: 0; }
.ytbox #ytmount, .ytbox iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.ytoverlay { position: absolute; inset: 0 0 46px 0; z-index: 2; cursor: pointer; }         /* blocks click-through to YouTube; leaves our control bar free */
.vctrl { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; z-index: 3;
  display: flex; align-items: center; gap: .7rem; padding: 0 .9rem;
  background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.35)); }
.vctrl__pp { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--pink); color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }
.vctrl__seek { flex: 1; accent-color: var(--pink); height: 4px; cursor: pointer; }
.vctrl__time { flex: none; color: #dce4f0; font-size: .75rem; font-variant-numeric: tabular-nums; }
.pdfframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.viewer__bar { display: flex; align-items: center; gap: 1rem; padding: .6rem .9rem; background: #fff; }
.viewer__hint { font-size: .8rem; color: var(--muted); margin-right: auto; }
.viewer__fs { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: .4rem .8rem; font: inherit; font-size: .82rem; cursor: pointer; }
.viewer__fs:hover { background: var(--bg-soft); color: var(--pink); border-color: var(--pink); }

@media (max-width: 820px) {
  .course-app { grid-template-columns: 1fr; }
  .viewer { order: -1; position: static; }
  .lesson-scroll { max-height: none; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery img:hover { transform: scale(1.03); }

/* ---------- Testimonials carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: .9rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .4rem .15rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .quote { flex: 0 0 calc((100% - 2 * .9rem) / 3); scroll-snap-align: start; }
.carousel__nav { display: flex; justify-content: center; gap: .6rem; margin-top: 1.2rem; }
.carousel__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.carousel__btn:hover { background: var(--pink); color: #fff; border-color: var(--pink); transform: translateY(-2px); }

.quote {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem 1.4rem 1.3rem; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(22,32,44,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quote::before {
  content: "\201C"; position: absolute; top: -.3rem; right: .9rem;
  font-family: Georgia, "Times New Roman", serif; font-size: 4.2rem; line-height: 1;
  color: rgba(225,0,135,.10); pointer-events: none;
}
.quote__stars { color: #f6a609; letter-spacing: 2px; margin-bottom: .7rem; font-size: .95rem; }
.quote blockquote { margin: 0 0 1.2rem; font-size: .94rem; line-height: 1.6; color: var(--body); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .7rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.quote__avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em;
}
.quote__who { display: flex; flex-direction: column; line-height: 1.25; }
.quote__who strong { color: var(--ink); font-size: .93rem; }
.quote__who span { font-size: .82rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.band {
  background: linear-gradient(120deg, var(--pink) 0%, #a3009e 55%, var(--blue-dark) 100%);
  color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.band h2 { color: #fff; }
.band p { max-width: 44em; margin-inline: auto; opacity: .92; }
.band__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a8b3c1; padding: 3.5rem 0 0; font-size: .93rem; }
.site-footer a { color: #a8b3c1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: .55rem; }
.footer__brand img { height: 40px; margin-bottom: 1rem; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem;
  padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 1rem 20px 1.6rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .25s ease; max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: .85rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 1rem 0 0; text-align: center; border-bottom: 0; }

  /* Dropdown becomes an always-open indented group in the mobile panel */
  .navdrop { width: 100%; }
  .navdrop__btn {
    width: 100%; justify-content: space-between; padding: .85rem .4rem;
    border-bottom: 1px solid var(--line); border-radius: 0;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  }
  .navdrop__btn:hover { background: none; color: var(--muted); }
  .navdrop__caret { display: none; }
  .navdrop__menu {
    position: static; display: flex; box-shadow: none; border: 0;
    padding: 0 0 0 .8rem; min-width: 0;
  }
  .navdrop__menu a { border-bottom: 1px solid var(--line); border-radius: 0; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid--3, .grid--4, .tilerow { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .carousel__track > .quote { flex-basis: calc((100% - .9rem) / 2); }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .tilerow { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 1.5rem 2rem; }
  .hero__cta .btn, .band__cta .btn { flex: 1 1 100%; text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .carousel__track > .quote { flex-basis: 100%; }
}

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

/* Students-only notice on the eLearning listing */
.notice{
  margin:0;padding:.9rem 1.1rem;border-radius:12px;
  background:color-mix(in srgb, var(--blue) 8%, #fff);
  border:1px solid color-mix(in srgb, var(--blue) 25%, #fff);
  color:var(--ink);font-size:.95rem;line-height:1.5;
}
.notice a{color:var(--pink);font-weight:600}
@media (prefers-color-scheme: dark){
  .notice{background:color-mix(in srgb, var(--blue) 18%, transparent)}
}

/* Local landing pages: prose, fact tables, breadcrumbs */
.prose{max-width:70ch}
.prose h2{margin:2rem 0 .6rem;font-size:1.3rem;line-height:1.3}
.prose h2:first-child{margin-top:0}
.prose p{margin:0 0 1rem;line-height:1.7}
.tablewrap{overflow-x:auto;margin:0 0 1.5rem}
.ftable{width:100%;border-collapse:collapse;font-size:.95rem}
.ftable th,.ftable td{padding:.7rem .9rem;text-align:left;vertical-align:top;
  border-bottom:1px solid var(--line)}
.ftable th{width:34%;font-weight:700;color:var(--ink);background:rgba(0,0,0,.02)}
.updated{font-size:.85rem;opacity:.65;margin-top:2rem}
@media (max-width:600px){
  .ftable,.ftable tbody,.ftable tr,.ftable th,.ftable td{display:block;width:auto}
  .ftable th{border-bottom:0;padding-bottom:.2rem;background:none}
  .ftable td{padding-top:0;padding-bottom:1rem}
}

/* ============ Programme pages (subject-themed) ============ */
.prog { --accent: var(--pink); --accent-dark: var(--pink-dark); }
.prog .eyebrow { color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, #fff); }
.prog .hero {
  background:
    radial-gradient(900px 480px at 82% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(700px 480px at 0% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--bg-soft);
}
.prog .btn--primary { background: var(--accent); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 32%, transparent); }
.prog .btn--primary:hover { background: var(--accent-dark); }
.prog .btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* section heading with a coloured accent bar */
.prog-h { display: flex; align-items: center; gap: .65rem; font-size: clamp(1.3rem, 3vw, 1.65rem); margin: 0 0 1.4rem; }
.prog-h::before { content: ""; flex: 0 0 auto; width: .5rem; height: 1.25em; border-radius: 999px; background: var(--accent); }
.prog-lead { max-width: 60ch; font-size: 1.05rem; color: var(--ink); margin: 0 0 1.1rem; }

/* "What your child learns" — coloured card grid (semantic <dl>) */
.learn { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0; }
.learn > div {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.learn > div:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.learn dt { font-weight: 700; color: var(--accent-dark); margin-bottom: .3rem; }
.learn dd { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* FAQ accordion — collapsed by default, tap a question to reveal its answer */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.45rem; font-weight: 700;
  font-size: 1.05rem; line-height: 1.35; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: 0 0 auto; width: .7rem; height: .7rem;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -.2rem;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: .2rem; }
.faq__item summary:hover { color: var(--accent-dark); }
.faq__a { padding: 0 1.45rem 1.3rem; }
.faq__a p { margin: 0; line-height: 1.7; color: var(--muted); }
.faq__a p + p { margin-top: .8rem; }

/* chip / pill buttons (game & app links) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
  padding: .55em 1.05em; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--accent-dark); background: color-mix(in srgb, var(--accent) 8%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--accent) 32%, #fff);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.chip::before { content: "\25B6"; font-size: .62em; opacity: .75; }
.chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }

/* subtle cross-link banner */
.xlink {
  display: block; margin: 0 0 1rem; padding: .95rem 1.2rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  border: 1px dashed color-mix(in srgb, var(--accent) 38%, #fff);
}
.xlink a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.xlink a:hover { text-decoration: underline; }

/* animated arrow link — used for "More about ..." on parent pages */
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--blue-dark); }
.arrow-link::after { content: "\2192"; transition: transform .15s ease; }
.arrow-link:hover { color: var(--pink); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ticked differentiator list (programme pages) */
.ticks { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 2rem; line-height: 1.6; }
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: .1em;
  width: 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; color: #fff; border-radius: 999px; background: var(--accent);
}

/* ============ Grammar eLearning module (Test) ============ */
.gm-head{margin:0 0 1.2rem}
.gm-term{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--blue-dark)}
.gm-head h2{margin:.2rem 0 .1rem;font-size:1.4rem}
.gm-theme{margin:0;color:var(--muted);font-weight:600}
.gm-sec{margin:0 0 1.6rem;padding:0 0 1.4rem;border-bottom:1px solid var(--line)}
.gm-sec:last-child{border-bottom:0}
.gm-sec>h3{font-size:1.05rem;margin:0 0 .7rem}
.gm-note{color:var(--muted);margin:0 0 .8rem;font-size:.95rem}
.gm-vwrap{position:relative;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;margin-bottom:.6rem}
.gm-video,.gm-yt{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#000}
/* quiz */
.quiz{display:flex;flex-direction:column;gap:.9rem}
.qcard{border:1px solid var(--line);border-radius:12px;padding:1rem 1.1rem;background:#fff}
.qq{margin:0 0 .7rem;line-height:1.5}
.qopts{display:grid;gap:.5rem}
.qopt{text-align:left;border:1.5px solid var(--line);background:#fbfcfe;border-radius:10px;padding:.6rem .85rem;font:inherit;cursor:pointer;transition:border-color .12s,background .12s}
.qopt:hover{border-color:var(--blue)}
.qcard.answered .qopt{cursor:default}
.qopt.right{background:#e7fbf3;border-color:var(--mint);color:#0b7c5e;font-weight:600}
.qopt.wrong{background:#ffeef4;border-color:var(--pink);color:var(--pink)}
.qex{margin:.7rem 0 0;font-size:.92rem;color:var(--ink);background:var(--bg-soft);border-radius:8px;padding:.55rem .7rem}
.quiz-score{margin:.9rem 0 0;font-weight:700;color:var(--blue-dark)}

/* ---- Grammar module: collapsible lesson nav ---- */
.llesson{border-bottom:1px solid var(--line)}
.llesson__h{width:100%;text-align:left;background:none;border:0;cursor:pointer;padding:.65rem .3rem;display:flex;flex-direction:column;gap:.05rem;font:inherit;position:relative}
.llesson__t{font-weight:700;color:var(--ink);font-size:.92rem;padding-right:1.3rem}
.llesson__theme{font-size:.78rem;color:var(--muted)}
.llesson__caret{position:absolute;right:.4rem;top:1rem;width:.5rem;height:.5rem;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s}
.llesson.open .llesson__caret{transform:rotate(-135deg)}
.litems{display:none;padding:0 0 .5rem}
.llesson.open .litems{display:block}
.lrow--sub{padding:.5rem .6rem;margin-left:.4rem;border-left:2px solid var(--line);border-radius:0 8px 8px 0}
.lrow--sub .lrow__title{font-size:.9rem;font-weight:600}
.lrow--sub.is-active{background:color-mix(in srgb,var(--blue) 9%,#fff);border-left-color:var(--blue)}
.lrow--sub.is-done .lrow__tick{background:var(--mint);border-color:var(--mint)}

/* ---- Grammar module: one-at-a-time quiz widget ---- */
.qw{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem 1.3rem}
.qw-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}
.qw-count{font-weight:700;color:var(--blue-dark);font-size:.85rem;white-space:nowrap}
.qw-dots{display:flex;gap:.3rem;flex-wrap:wrap;justify-content:flex-end}
.qw-dot{width:.55rem;height:.55rem;border-radius:50%;background:var(--line);transition:.15s}
.qw-dot.done{background:var(--mint)}
.qw-dot.cur{background:var(--blue);transform:scale(1.3)}
.qw .qq{font-size:1.12rem;line-height:1.5;margin:0 0 1rem}
.qw .qopts{display:grid;gap:.55rem}
.qw-nav{display:flex;justify-content:space-between;align-items:center;margin-top:1.2rem}
.qw-nav .mini{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:.5rem 1.1rem;font:inherit;font-weight:700;cursor:pointer}
.qw-nav .mini:disabled{opacity:.4;cursor:default}
.qw-nav .btn:disabled{opacity:.45;cursor:default;transform:none}
.qw-done{text-align:center;padding:1.4rem .5rem}
.qw-done h3{margin:0 0 .3rem}

/* Grammar module points banner */
.gm-pts-row{margin:.6rem 0 .2rem;font-weight:700;color:var(--amber,#f6a609);font-size:.95rem}
.gm-pts-row .gm-pts{color:var(--ink);font-size:1.05rem}

/* ---- Grammar module: interactive spelling test ---- */
.sp-toggle{display:flex;gap:.5rem;margin:0 0 1rem}
.sp-tab{flex:1;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:.55rem .7rem;font:inherit;font-weight:700;cursor:pointer;color:var(--muted)}
.sp-tab.is-on{border-color:var(--blue);color:var(--blue-dark);background:color-mix(in srgb,var(--blue) 8%,#fff)}
.sp-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem}
.sp-controls{display:flex;flex-wrap:wrap;gap:.6rem;margin:.6rem 0 1rem}
.sp-input{width:100%;padding:.85rem 1rem;border:2px solid var(--line);border-radius:12px;font:inherit;font-size:1.3rem;text-align:center;letter-spacing:.02em}
.sp-input:focus{outline:none;border-color:var(--blue)}
.sp-input:disabled{background:var(--bg-soft)}
.sp-fb{min-height:1.6em;margin:.7rem 0 0;text-align:center;font-weight:700}
.sp-right{color:#0b7c5e;margin:0}
.sp-wrong{color:var(--pink);margin:0}
.sp-body .qw-done{padding:1.4rem .5rem}

/* ---- Grammar module: video watermark (deters redistribution) ---- */
.gm-vwrap::after{content:"Next Level Enrichment";position:absolute;top:.55rem;right:.85rem;z-index:3;
  color:rgba(255,255,255,.5);font-size:.72rem;font-weight:800;letter-spacing:.04em;pointer-events:none;text-shadow:0 1px 4px rgba(0,0,0,.65)}

/* ---- Spelling: activity tabs ---- */
.sp-lists{display:flex;gap:.5rem;margin:0 0 .7rem}
.sp-acts{display:flex;gap:.4rem;margin:0 0 1.1rem;flex-wrap:wrap}
.sp-act{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:.45rem .95rem;font:inherit;font-weight:700;font-size:.85rem;cursor:pointer;color:var(--muted)}
.sp-act.is-on{border-color:var(--blue);color:#fff;background:var(--blue)}

/* ---- Spelling: flashcards (3D flip) ---- */
.fc{perspective:1100px;cursor:pointer;margin:0 auto;max-width:440px}
.fc-in{position:relative;width:100%;min-height:210px;transition:transform .55s cubic-bezier(.4,.2,.2,1);transform-style:preserve-3d}
.fc.flip .fc-in{transform:rotateY(180deg)}
.fc-face{position:absolute;inset:0;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.6rem;text-align:center;box-shadow:0 10px 28px rgba(22,32,44,.12)}
.fc-front{background:radial-gradient(circle at 30% 25%,#63acff,var(--blue));color:#fff}
.fc-back{background:#fff;border:1px solid var(--line);transform:rotateY(180deg)}
.fc-word{font-size:clamp(2rem,7vw,2.6rem);font-weight:800;letter-spacing:.01em}
.fc-hint{margin-top:.6rem;font-size:.78rem;opacity:.85;text-transform:uppercase;letter-spacing:.08em}
.fc-mean{font-size:1.2rem;font-weight:700;color:var(--ink)}
.fc-eg{margin-top:.8rem;color:var(--muted);font-style:italic;line-height:1.5}
.sp-spk{position:absolute;top:.7rem;left:.7rem;background:rgba(255,255,255,.25);border:0;color:#fff;width:40px;height:40px;border-radius:50%;cursor:pointer;font-size:1.1rem}

/* ---- Spelling: matching game ---- */
.mt{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:.4rem 0 .6rem}
.mt-col{display:flex;flex-direction:column;gap:.5rem}
.mt-item{border:1.5px solid var(--line);background:#fff;border-radius:11px;padding:.6rem .75rem;font:inherit;font-size:.9rem;line-height:1.35;cursor:pointer;text-align:left;transition:border-color .12s,background .12s}
.mt-w{font-weight:800;text-align:center}
.mt-item.sel{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 11%,#fff)}
.mt-item.done{border-color:var(--mint);background:#e7fbf3;color:#0b7c5e;pointer-events:none}
.mt-item.bad{border-color:var(--pink);background:#ffeef4;animation:shake .4s ease}

/* ---- Spelling: advanced meaning prompt ---- */
.sp-prompt{background:var(--bg-soft);border:1px solid var(--line);border-radius:11px;padding:.75rem .95rem;font-weight:600;color:var(--ink);margin:0 0 .6rem;width:100%;line-height:1.45}

/* ---- Grammar module: interactive grammar app embed ---- */
.gm-appwrap{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.gm-app{width:100%;height:min(80vh,760px);min-height:600px;border:0;display:block}
.gm-actions{margin:1rem 0 0;text-align:center}
@media(max-width:820px){.gm-app{height:min(84vh,660px);min-height:540px}}
/* spelling 'usage in a sentence' — proper secondary button */
.sp-sent{border:1.5px solid var(--blue);background:#fff;color:var(--blue-dark);border-radius:999px;padding:.7rem 1.2rem;font:inherit;font-weight:700;cursor:pointer;transition:background .15s,color .15s}
.sp-sent:hover{background:var(--blue);color:#fff}


/* ---- Grammar module: padded, light viewer (its own, not the video player's) ---- */
.gm-viewer{border:1px solid var(--line);border-radius:16px;background:#fff;padding:clamp(1.1rem,2.4vw,1.9rem);box-shadow:0 2px 4px rgba(22,32,44,.04),0 10px 26px rgba(22,32,44,.05)}
.gm-empty{display:flex;align-items:center;justify-content:center;min-height:320px;color:var(--muted);text-align:center;padding:1rem}

/* ---- Grammar module: pinned progress + scrollable lesson list ---- */
#gmod .ll-head{padding:.9rem 1rem;border-bottom:1px solid var(--line);flex:0 0 auto;background:#fff}
@media(min-width:821px){
  #gmod{align-items:start}
  #gmod .lesson-list{position:sticky;top:88px;max-height:calc(100vh - 104px);display:flex;flex-direction:column;overflow:hidden}
  #gmod .ll-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto}
}

/* ---- Grammar module: distinct coloured term bands ---- */
#gmod .lgroup__t{position:sticky;top:0;z-index:2;font-size:.82rem;letter-spacing:.09em;font-weight:800;padding:.6rem .9rem;margin:0}
#gmod .lgroup--t1 .lgroup__t{background:color-mix(in srgb,var(--blue) 13%,#fff);color:var(--blue-dark);border-bottom:2px solid color-mix(in srgb,var(--blue) 38%,#fff)}
#gmod .lgroup--t2 .lgroup__t{background:color-mix(in srgb,var(--pink) 11%,#fff);color:var(--pink-dark);border-bottom:2px solid color-mix(in srgb,var(--pink) 38%,#fff)}
#gmod .lgroup--t2{margin-top:.5rem;border-top:7px solid var(--bg-soft)}
#gmod .lgroup--t1 .llesson.open .litems{border-left-color:var(--blue)}
#gmod .lgroup--t2 .llesson.open .litems{border-left-color:var(--pink)}

/* ---- Grammar module: fullscreen button ---- */
.gm-appwrap{position:relative}
.gm-fs{position:absolute;top:.55rem;right:.55rem;z-index:5;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;border:2px solid #fff;width:44px;height:44px;border-radius:12px;cursor:pointer;font-size:1.3rem;line-height:1;display:grid;place-items:center;box-shadow:0 4px 14px rgba(245,158,11,.55);transition:transform .15s,box-shadow .15s,filter .15s}
.gm-fs:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 6px 18px rgba(245,158,11,.7)}
.gm-fs:active{transform:translateY(0)}
.gm-appwrap:fullscreen{background:#0b1220}
.gm-appwrap:fullscreen .gm-app,.gm-appwrap:-webkit-full-screen .gm-app{height:100vh;min-height:100vh}

/* ---- eLearning points: help button, goal hints, reward popup, guide modal ---- */
.gm-help{margin-left:.5rem;border:0;background:transparent;color:var(--blue-dark);font:inherit;font-size:.8rem;font-weight:700;text-decoration:underline;cursor:pointer;padding:0}
.gm-help:hover{color:var(--blue)}
.gm-goal{background:color-mix(in srgb,var(--blue) 8%,#fff);border:1px solid color-mix(in srgb,var(--blue) 22%,#fff);border-radius:12px;padding:.6rem .9rem;margin:.2rem 0 1rem}

.gm-modal,.gm-reward{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1.2rem;background:rgba(11,18,32,.55);animation:gmFade .2s ease;overflow-y:auto}
.gm-modal.out,.gm-reward.out{opacity:0;transition:opacity .25s}
@keyframes gmFade{from{opacity:0}to{opacity:1}}
.gm-modal__card{position:relative;background:#fff;border-radius:20px;max-width:440px;width:100%;padding:1.9rem 1.6rem 1.6rem;box-shadow:0 24px 60px rgba(11,18,32,.35);text-align:center;animation:gmPop .3s cubic-bezier(.2,1.2,.3,1);max-height:calc(100dvh - 2.4rem);overflow-y:auto}
@keyframes gmPop{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
.gm-modal__x{position:absolute;top:.5rem;right:.7rem;border:0;background:transparent;font-size:1.7rem;line-height:1;color:var(--muted);cursor:pointer}
.gm-modal__star{font-size:2.6rem;line-height:1}
.gm-modal h2{margin:.3rem 0 .5rem;font-size:1.35rem}
.gm-modal__lead{color:var(--muted);margin:0 0 1rem}
.gm-earn{list-style:none;margin:0 0 1rem;padding:0;text-align:left;display:grid;gap:.55rem}
.gm-earn li{display:flex;align-items:center;gap:.7rem;background:var(--bg-soft);border-radius:12px;padding:.6rem .8rem}
.gm-earn__i{font-size:1.35rem;flex:0 0 auto}
.gm-earn__t{flex:1 1 auto;font-size:.94rem}
.gm-earn__p{flex:0 0 auto;font-weight:800;color:var(--blue-dark);background:#fff;border-radius:999px;padding:.15rem .6rem;border:1.5px solid color-mix(in srgb,var(--blue) 30%,#fff)}
.gm-modal__now{margin:0 0 1.1rem;font-size:1.02rem}
.gm-modal__go{width:100%}

.gm-reward__card{position:relative;z-index:2;background:#fff;border-radius:22px;max-width:340px;width:100%;padding:1.7rem 1.4rem;text-align:center;box-shadow:0 24px 60px rgba(11,18,32,.4);animation:gmPop .35s cubic-bezier(.2,1.4,.3,1)}
.gm-reward__em{font-size:3rem;animation:gmBounce .6s ease}
@keyframes gmBounce{0%{transform:scale(0) rotate(-20deg)}60%{transform:scale(1.25) rotate(8deg)}100%{transform:scale(1) rotate(0)}}
.gm-reward h3{margin:.3rem 0 .2rem;font-size:1.4rem}
.gm-reward__pts{font-size:2rem;font-weight:900;color:#f59e0b;margin:.2rem 0}
.gm-reward__again{color:var(--muted);margin:.3rem 0}
.gm-reward__now{margin:.2rem 0 1rem}
.gm-conf-wrap{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.gm-conf{position:absolute;top:-8%;font-size:1.5rem;animation:gmFall linear forwards;animation-duration:2.8s}
@keyframes gmFall{0%{transform:translateY(-10vh) rotate(0);opacity:1}100%{transform:translateY(112vh) rotate(360deg);opacity:.9}}
@media (prefers-reduced-motion: reduce){.gm-conf{display:none}.gm-reward__em{animation:none}}

/* ---- eLearning: weekly homework panel + points max banner ---- */
.hw-card{text-align:center;max-width:520px;margin:0 auto;padding:.5rem 0}
.hw-emoji{font-size:3rem;line-height:1}
.hw-card h3{margin:.4rem 0 .6rem;font-size:1.4rem}
.hw-card .gm-note{background:none;border:0;padding:0;margin:0 auto 1.2rem;max-width:440px}
.hw-state{display:flex;flex-direction:column;align-items:center;gap:.7rem}
.hw-pledge{color:var(--muted);max-width:420px;margin:0}
.gm-earn--star{background:color-mix(in srgb,#f59e0b 12%,#fff)!important;border:1.5px solid color-mix(in srgb,#f59e0b 40%,#fff)}
.gm-earn--star .gm-earn__p{color:#b45309;border-color:color-mix(in srgb,#f59e0b 45%,#fff)}
.gm-earn--rev{background:color-mix(in srgb,var(--blue,#3489e5) 10%,#fff)!important;border:1.5px solid color-mix(in srgb,var(--blue,#3489e5) 35%,#fff)}
.gm-earn--rev .gm-earn__p{color:#1f66c2;border-color:color-mix(in srgb,var(--blue,#3489e5) 45%,#fff)}
.gm-earn__max{text-align:center;font-size:1.05rem;background:color-mix(in srgb,#f59e0b 12%,#fff);border-radius:12px;padding:.55rem .8rem;margin:0 0 1rem}

/* ---- eLearning: per-term points badge in the term band ---- */
.lgroup__pts{font-weight:800;font-size:.72rem;letter-spacing:.02em;text-transform:none;opacity:.9;margin-left:.2rem;white-space:nowrap}

/* ---- Grammar module: time-locked (greyed) lessons ---- */
.llesson.is-locked{filter:grayscale(1);opacity:.6;pointer-events:none}
.llesson__lock{display:none;font-size:.6rem;font-weight:700;color:var(--muted);background:var(--bg-soft);border:1px solid var(--line);border-radius:6px;padding:1px 6px;margin-left:6px;white-space:nowrap;vertical-align:middle}
.llesson.is-locked .llesson__lock{display:inline-block}
.gm-locked{text-align:center;padding:44px 22px;color:var(--muted);max-width:460px;margin:0 auto}
.gm-locked__i{font-size:2.8rem;line-height:1}
.gm-locked h3{margin:.5rem 0 .3rem;color:#334155;font-size:1.3rem}

/* ---- Grammar module: server-validated quiz (selection + review) ---- */
.qopt.sel{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,#fff);font-weight:700}
.qrev-list{margin-top:16px;display:flex;flex-direction:column;gap:8px}
.qrev{display:flex;gap:10px;align-items:flex-start;background:var(--bg-soft);border:1px solid var(--line);border-radius:12px;padding:10px 12px;text-align:left}
.qrev-i{font-size:1rem;flex:0 0 auto;margin-top:1px}
.qrev-b b{font-size:.92rem}
.qrev-a{font-size:.82rem;color:var(--muted);margin-top:2px}


/* ---------- Phonics Level 1 player ---------- */
.phx-methods{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 6px}
.phx-m{flex:1 1 120px;min-height:48px;border:2px solid #cfdcef;background:#fff;border-radius:12px;
  padding:10px 12px;font:inherit;font-weight:700;color:#12233d;cursor:pointer}
.phx-m.is-on{background:#0D47A1;border-color:#0D47A1;color:#fff}
.phx-wrap{text-align:center;padding:14px 6px}
.phx-count{font-size:.86rem;color:#6b7c96;letter-spacing:.06em;text-transform:uppercase}
.phx-say{margin:12px auto;display:block;background:#FFC107;border:0;border-radius:999px;
  padding:16px 30px;font:inherit;font-size:1.12rem;font-weight:800;color:#12233d;cursor:pointer;min-height:56px}
.phx-say:active{transform:translateY(1px)}
.phx-hint{color:#6b7c96;margin:4px 0 14px}
.phx-opts{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.phx-opt{flex:1 1 130px;max-width:200px;min-height:64px;border:2px solid #cfdcef;background:#fff;
  border-radius:14px;font:inherit;font-size:1.5rem;font-weight:800;color:#0D47A1;cursor:pointer}
.phx-opt:disabled{opacity:.55}
.phx-slots{display:flex;gap:8px;justify-content:center;margin-bottom:16px}
.phx-slot{width:52px;height:62px;border-bottom:5px solid #0D47A1;display:flex;align-items:center;
  justify-content:center;font-size:2rem;font-weight:800;color:#0D47A1}
.phx-slot.is-set{background:#eaf2ff;border-radius:10px 10px 0 0}
.phx-tiles{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}
.phx-tile{width:56px;height:56px;border:0;border-radius:12px;background:#0D47A1;color:#fff;
  font:inherit;font-size:1.6rem;font-weight:800;cursor:pointer;box-shadow:0 3px 0 #08306b}
.phx-tile:disabled{background:#c7d6ee;box-shadow:none;color:#eaf2ff}
.phx-acts{margin-top:14px}
.phx-undo{background:none;border:2px solid #cfdcef;border-radius:999px;padding:9px 20px;
  font:inherit;font-weight:700;color:#12233d;cursor:pointer;min-height:44px}
.phx-typef{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}
.phx-input{width:min(280px,70vw);min-height:56px;border:2px solid #cfdcef;border-radius:12px;
  padding:10px 14px;font:inherit;font-size:1.7rem;font-weight:800;text-align:center;color:#0D47A1}
.phx-fb{margin-top:14px;font-size:1.1rem;font-weight:700}
.phx-fb.ok{color:#1e7a4d}
.phx-fb.no{color:#b3261e}
@media(max-width:520px){
  .phx-slot{width:44px;height:54px;font-size:1.6rem}
  .phx-tile{width:48px;height:48px;font-size:1.35rem}
  .phx-say{padding:14px 22px;font-size:1rem}
}
