/* === tokens === */
:root {
  --premium-ink: #162033;
  --premium-navy: #0f1d3a;
  --premium-gold: #e8a436;
  --premium-gold-deep: #c97f00;
  --premium-cream: #f8f2ec;
  --premium-white: #ffffff;
  --premium-line: rgba(15, 23, 42, 0.10);
  --premium-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --premium-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --premium-radius: 24px;
  --premium-max: 1180px;
}


/* === legacy === */
/* style.css */
/* =========================
   Magic Math Master - Clean style.css
   (Pill topbar + Screenshot hero)
   ========================= */

/* ============ TOKENS ============ */
:root{
  --bg: #f7f9fc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, .10);

  --brand: #0b5ed7;
  --brand2:#0a3d91;
  --accent:#f59e0b;
  --success:#16a34a;
  --red:#ba0921;
  --turquoise:#05464d;

  --success-hover: #15803d;
  --accent-hover:  #d97706;
  --brand-hover:   #0a4fb8;

  --radius: 16px;
  --shadow: 0 18px 40px rgba(2, 6, 23, .10);
  --shadow2: 0 10px 24px rgba(2, 6, 23, .08);

  --max: 1120px;

  /* ===== NAV sizing (tight) ===== */
  --nav-font: 16px;
  --nav-py: 6px;
  --nav-px: 12px;
  --nav-lh: 1;

  /* =========================
     Global responsive hero title sizing
     Applies to all pages that use .hero-snap-title
     ========================= */
  --hero-title-min: 30px;
  --hero-title-fluid: 3.2vw;
  --hero-title-max: 56px;
  --hero-title-line: 1.08;
}

/* ============ BASE ============ */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; overflow-x:hidden; }
img{ max-width:100%; height:auto; display:block; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(11,94,215,.12), transparent 55%),
    radial-gradient(1000px 700px at 85% 10%, rgba(245,158,11,.10), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height:1.6;
}

a{ color:inherit; }
.container{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }

/* ============ LANGUAGE LINKS ============ */
.lang-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
}

.lang-link:hover{
  text-decoration:underline;
}

/* Small badge for page-content language links (emoji version) */
.lang-flag-badge{
  width:16px;
  height:16px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 16px;
  background:#fff;
  box-shadow: 0 0 0 1px rgba(15,23,42,.08);
  font-size:10px;
  line-height:1;
  overflow:hidden;
  transform: translateY(1px);
}

/* Optional: if you use inline SVG flags */
.lang-flag-svg{
  width:16px;
  height:16px;
  display:block;
  flex:0 0 16px;
  border-radius:50%;
  overflow:hidden;
  box-shadow: 0 0 0 1px rgba(15,23,42,.08);
}

/* Optional: if you ever use image-based flags */
.lang-flag-icon{
  width:16px;
  height:16px;
  border-radius:50%;
  object-fit:cover;
  display:inline-block;
  flex:0 0 16px;
  box-shadow: 0 0 0 1px rgba(15,23,42,.08);
}

/* ============ TOP BAR (pill nav) ============ */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247,249,252,.78);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
}

/* top-left logo */
.brand-logo{
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  border-radius: 999px;
}

.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand-title b{
  font-size: 22px;
  font-weight: 1000;
  color: var(--brand2);
}
.brand-title span{
  font-size: 14px;
  font-weight: 800;
  color: rgba(15,23,42,.70);
}

/* =========================
   NAV pills (UPDATED)
   Desktop: 1 row
   iPad/Mobile: wrap to 2–3 lines (no hidden buttons)
   ========================= */
.nav{
  display:flex;
  align-items:center;
  gap: 8px;
  justify-content:flex-end;
  flex-wrap: nowrap;
}

.nav a{
  text-decoration:none;
  font-weight: 1000;
  font-size: var(--nav-font);
  line-height: var(--nav-lh);
  color:#0f172a;

  padding: var(--nav-py) var(--nav-px);
  border-radius: 999px;

  background: rgba(255,255,255,.92);
  border: 2px solid rgba(15,23,42,.14);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav a:hover{
  background: rgba(11,94,215,.08);
  border-color: rgba(11,94,215,.18);
  transform: translateY(-1px);
}
.nav a.active,
.nav a[aria-current="page"]{
  background: rgba(11,94,215,.18);
  border-color: rgba(11,94,215,.35);
  box-shadow: 0 10px 18px rgba(11,94,215,.12);
}

/* old language pill link style (kept if used elsewhere) */
.nav a.nav-lang{
  border-color: rgba(11,94,215,.22);
  gap: 7px;
  padding-left: 12px;
  padding-right: 14px;
}

.nav-lang-badge{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15,23,42,.10);
  font-size: 10px;
  line-height: 1;
  overflow: hidden;
  transform: translateY(1px);
}

.nav-lang-flag{
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15,23,42,.10);
}

/* ===== KEY FIX: iPad + mobile wrap (show ALL buttons) ===== */
@media (max-width: 1024px){
  .topbar-inner{
    flex-direction: column;
    align-items:flex-start;
  }

  .nav{
    width: 100%;
    justify-content:flex-start;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }

  .nav a{
    font-size: 15px;
    padding: 7px 12px;
  }
}

/* smaller phones: even tighter to reduce lines */
@media (max-width: 520px){
  .nav{ gap: 6px; }
  .nav a{
    font-size: 14px;
    padding: 6px 10px;
  }
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none;
  font-weight: 900;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid transparent;
  cursor:pointer;
  white-space: nowrap;
  line-height: 1;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, .14);
}
.btn:active{ transform: translateY(0); }
.btn:focus-visible{
  outline: 3px solid rgba(11, 94, 215, .45);
  outline-offset: 3px;
}

.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  box-shadow: 0 14px 28px rgba(11,94,215,.18);
}
.btn-primary:hover{ filter: brightness(1.03); }

.btn-outline{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(11,94,215,.28);
  color: var(--brand2);
}
.btn-outline:hover{ background: rgba(11,94,215,.06); }

.btn-success{ background: var(--success); color:#fff; }
.btn-amber{ background: var(--accent); color:#111827; }
.btn-red{ background: var(--red); color:#fff; }
.btn-cyan{ background: var(--turquoise); color:#fff; }

.btn-success:hover{ background: var(--success-hover); }
.btn-amber:hover{ background: var(--accent-hover); }

/* Force purple button (Email app) */
.policy-email-cta .btn-purple{
  background: #7c3aed !important;
  color: #fff !important;
  border: 2px solid rgba(0,0,0,.10) !important;
}
.policy-email-cta .btn-purple:hover{
  filter: brightness(.96);
}
.btn-purple:hover{
  filter: brightness(.96);
}

/* =========================
   Register-style HERO (banner card)
   Used by: register.html, enquiry.html, club-register.html
   ========================= */
.hero-card{
  overflow:hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  margin: 16px 0;
}

.hero-banner{
  display:block;
  width:100%;
  height:auto;
}

.hero-copy{
  background: rgba(255,255,255,.95);
  border-top: 1px solid var(--line);
  padding: 18px;
}

.hero-title{
  margin: 0 0 8px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
  color: var(--brand2);
  font-weight: 1000;
  letter-spacing: -0.2px;
}

.hero-desc{
  margin: 0;
  color: rgba(15,23,42,.72);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.7;
}

.hero-pills{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.hero-pill{
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(11,94,215,.08);
  color: var(--brand2);
  font-weight: 900;
  border: 1px solid rgba(11,94,215,.18);
  font-size: .95rem;
}

/* =========================
   Shared CTA styles (SITE-WIDE)
   ========================= */
.hero-actions{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

/* Secondary button (blue-tinted) */
.btn-secondary{
  background: rgba(11,94,215,.08);
  color: var(--brand2);
  border: 1px solid rgba(11,94,215,.25);
  box-shadow: none;
}
.btn-secondary:hover{
  background: rgba(11,94,215,.14);
}

/* Badge styled to match “pills” */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 900;
  background: rgba(11,94,215,.10);
  color: var(--brand2);
  border: 1px solid rgba(11,94,215,.22);
  line-height: 1.1;
}

/* Optional: strong link */
.link-strong{
  color: var(--brand);
  font-weight: 900;
  text-decoration: underline;
}
.link-strong:hover{
  text-decoration-thickness: 2px;
}

/* ============ HERO (screenshot style) ============ */
.hero{ padding: 18px 0 24px; }

.hero-snap{
  background: #fff;
  border: 2px solid rgba(11,94,215,.18);
  border-radius: 34px;
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
  padding: 34px 30px;
}

.hero-snap-grid{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px){
  .hero-snap-grid{ grid-template-columns: 1fr; }
}

/* ===== Hero title/tagline (single source of truth) ===== */
.hero-snap-title{
  margin: 0 0 10px;
  text-align:center;
  font-weight: 1000;
  color: var(--brand2);
  font-size: clamp(var(--hero-title-min), var(--hero-title-fluid), var(--hero-title-max));
  line-height: var(--hero-title-line);
  letter-spacing: -0.01em;
}

.hero-snap-tagline{
  margin: 10px 0 0;
  text-align:center;
  font-weight: 900;
  color: rgba(15,23,42,.72);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.45;
}

.hero-snap-desc{
  margin: 24px auto 0;
  max-width: 1200px;
  text-align:center;
  color: rgba(15,23,42,.72);
  font-weight: 650;
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.65;
}
.hero-snap-desc b{ color: rgba(15,23,42,.92); font-weight: 900; }

.hero-snap-checks{
  margin: 22px 0 0;
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--brand);
  font-weight: 1000;
  font-size: clamp(14px, 1.2vw, 24px);
}

.hero-snap-pills{
  margin: 18px 0 0;
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-snap-pill{
  background: rgba(245,158,11,.10);
  border: 4px solid rgba(245,158,11,.45);
  border-radius: 999px;
  padding: 16px 26px;
  font-weight: 1000;
  color: rgba(122,74,0,.95);
  font-size: clamp(14px, 1.15vw, 22px);
}

.hero-snap-cta{
  margin: 20px 0 0;
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
}

/* HERO logo box (single source of truth) */
.hero-snap-logoBox{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;

  display:flex;
  justify-content:flex-end;
  align-items:flex-start;

  width: max-content;
  justify-self: end;
  margin-left: auto;
}

.hero-snap-logoBox img{
  width: 240px;
  max-width: 100%;
  height: auto;
  display:block;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

@media (max-width: 980px){
  .hero-snap-logoBox{
    justify-self: end;
    margin-left: auto;
  }
}

/* =========================================
   OPTIONAL SPLIT HERO LAYOUT
   For pages like mathclub.html:
   - title + tagline + description on left of logo
   - text stays centered inside left column
   - checks + pills + buttons stay full width below
   ========================================= */
.hero-snap-grid-split{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.hero-snap-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero-snap-grid-split .hero-snap-title,
.hero-snap-grid-split .hero-snap-tagline,
.hero-snap-grid-split .hero-snap-desc-left{
  text-align:center;
}

.hero-snap-grid-split .hero-snap-desc-left{
  margin: 18px 0 0;
  max-width: 720px;
}

.hero-snap-full{
  margin-top: 20px;
}

.hero-snap-full .hero-snap-checks,
.hero-snap-full .hero-snap-pills,
.hero-snap-full .hero-snap-cta{
  justify-content:center;
}

@media (max-width: 980px){
  .hero-snap-grid-split{
    grid-template-columns: 1fr;
  }

  .hero-snap-copy{
    align-items:center;
  }

  .hero-snap-grid-split .hero-snap-title,
  .hero-snap-grid-split .hero-snap-tagline,
  .hero-snap-grid-split .hero-snap-desc-left{
    text-align:center;
  }

  .hero-snap-logoBox{
    justify-self:center;
    margin: 0 auto;
  }
}

/* ============ SECTIONS / CARDS ============ */
.section{ padding: 26px 0; }

.section-title{
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.4px;
}
.section-sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 650;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: rgba(255,255,255,.80);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.card h3{
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.2px;
}
.card p{ margin:0; color: var(--muted); font-weight: 650; }

/* =========================================
   Global: colour ALL card titles (text only)
   - BUT do NOT force emojis/icons to be colored
   ========================================= */
.card h3,
.info-card h3,
.club-card h3,
.discount-card h3,
.discount-card-wide h3,
.discount-card-green h3,
.qr-card h3,
.price-card h3{
  font-size: 22px;
  font-weight: 1000;
  margin: 0 0 10px;
  letter-spacing: .2px;
  color: #2563eb;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .card h3,
  .info-card h3,
  .club-card h3,
  .discount-card h3,
  .discount-card-wide h3,
  .discount-card-green h3,
  .qr-card h3,
  .price-card h3{
    background-image: linear-gradient(90deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Icons/emoji inside headings should remain normal color */
h3 .ico{
  color: var(--ink) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

/* Escape hatch: add class="no-title-color" to a card to keep it plain */
.no-title-color h3{
  color: #1f2937 !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

.icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(245,158,11,.14);
  border: 1px solid rgba(245,158,11,.22);
  font-size: 20px;
  margin-bottom: 10px;
}

/* linkable cards */
a.card{
  display:block;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}
a.card:hover{
  transform: none;
  box-shadow: none;
  border-color: inherit;
  background: inherit;
}
a.card:focus-visible{
  outline: 3px solid rgba(11, 94, 215, .45);
  outline-offset: 3px;
  border-radius: 16px;
}

/* program chips */
.prog-chip{
  display:inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  border: 2px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.75);
  color: var(--ink);
}

/* chips hover only inside clickable chooser cards */
a.card .prog-chip{
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease, transform .14s ease,
              box-shadow .14s ease, border-color .14s ease;
}
a.card .prog-chip:hover{
  background: var(--brand);
  color: #fff;
  border-color: rgba(11,94,215,.20);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(2, 6, 23, .12);
}

/* ============ CONTENT HELPERS (NEW: shared for about.html etc.) ============ */
.clean-list{
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  font-weight: 650;
  color: var(--muted);
}
.clean-list li{ margin: 8px 0; }

.note{
  background:#e7f4ff;
  border-left:6px solid #42a5f5;
  border-radius:14px;
  padding:14px 16px;
  font-weight: 750;
  line-height: 1.7;
  color: #0f172a;
}

/* ============ FORMS ============ */
.form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 860px){
  .form{ grid-template-columns: 1fr; }
}

.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

label{
  font-weight: 900;
  font-size: 13px;
}

input, select, textarea{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  background: rgba(255,255,255,.88);
}
textarea{
  min-height: 120px;
  resize: vertical;
}
.helper{
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  margin-top: 10px;
}

/* ============ FOOTER ============ */
.footer{
  margin-top: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.footer a{
  color: var(--brand2);
  text-decoration: none;
  font-weight: 900;
  opacity: .9;
}
.footer a:hover{ text-decoration: underline; opacity: 1; }

/* ✅ 3 equal columns so the right side never gets “squeezed” */
.footer-inner{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 14px;
}

.footer-left{ justify-self: start; }

/* Center links truly centered */
.footer-center{
  justify-self: center;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

/* ✅ Emails pinned to the right edge and stacked */
.footer-right{
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
  white-space: nowrap; /* prevents ugly wraps */
}

/* Active link styling (works with your script.js adding aria-current + .active) */
.footer a.active,
.footer a[aria-current="page"]{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  opacity: 1;
}

/* Responsive: stack cleanly */
@media (max-width: 820px){
  .footer-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-left,
  .footer-center,
  .footer-right{
    justify-self: center;
  }
  .footer-right{
    align-items: center;
    text-align: center;
    white-space: normal;
  }
}

/* Current page styling */
.footer a.active,
.footer a[aria-current="page"]{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  opacity: 1;
}

/* Responsive: stack cleanly */
@media (max-width: 820px){
  .footer-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-left,
  .footer-center,
  .footer-right{
    justify-self: center;
  }
  .footer-center{
    justify-content: center;
  }
  .footer-right{
    justify-content: center;
    text-align: center;
    gap: 14px;
  }
}
/* ============ QUICK LINKS (panel) ============ */
.quicklinks{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 14px;
  margin: 14px 0 18px;
}

.quicklinks h2{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 1000;
  text-align: center;
  color: var(--brand2);
}

/* ===== Quick Links: up to 4 buttons per row ===== */
.ql-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px){
  .ql-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px){
  .ql-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .ql-grid{ grid-template-columns: 1fr; }
}

.ql-btn{
  display:block;
  text-align:center;
  text-decoration:none;
  font-weight: 1000;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(11,94,215,.06);
  border: 1px solid rgba(11,94,215,.18);
  color: var(--brand2);
  cursor:pointer;
  user-select:none;
  transition: background-color .14s ease, color .14s ease, transform .14s ease,
              box-shadow .14s ease, border-color .14s ease;
}

.ql-btn:hover{
  background: var(--brand);
  color: #fff;
  border-color: rgba(0,0,0,.10);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(2, 6, 23, .12);
}
.ql-btn:active{ transform: translateY(0); }

.ql-btn:focus-visible{
  outline: 3px solid rgba(11, 94, 215, .45);
  outline-offset: 3px;
}

/* ============ QUICK JUMP (chip row) ============ */
.quick-jump{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 14px 0 6px;
}

.quick-jump a,
.quick-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 14px;
  line-height: 1;
  text-decoration:none;
  color: inherit;
  border: 2px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
  cursor:pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background-color .14s ease;
}

.quick-jump a:hover,
.quick-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, .10);
  border-color: rgba(11, 94, 215, .35);
  background: rgba(255,255,255,.92);
}
.quick-jump a:active,
.quick-link:active{
  transform: translateY(0);
}
.quick-jump a:focus-visible,
.quick-link:focus-visible{
  outline: 3px solid rgba(11, 94, 215, .45);
  outline-offset: 3px;
}

/* ============ ANCHOR TARGET OFFSET ============ */
.anchor-target{
  scroll-margin-top: 110px;
}

/* =========================================================
   Email button visibility helpers (3 tiers)
   - Desktop/Laptop (>= 981px): show .desktop-only
   - Tablet/iPad (601px–980px): show .tablet-only
   - Phone (<= 600px): show .phone-only
   ========================================================= */
.desktop-only{ display: inline-flex; }
.tablet-only{ display: none; }
.phone-only{ display: none; }

@media (max-width: 980px){
  .desktop-only{ display: none !important; }
  .tablet-only{ display: inline-flex !important; }
}

@media (max-width: 600px){
  .tablet-only{ display: none !important; }
  .phone-only{ display: inline-flex !important; }
}

/* IMPORTANT:
   Removed old .mobile-only rules because they caused duplicate buttons on phones.
*/
@media (hover: none) and (pointer: coarse){
  .desktop-only{ display: none !important; }
  .mobile-only{ display: inline-flex !important; }
}

.best-value{
  display:inline-block;
  margin-left: 8px;
  background: rgba(229,57,53,.95);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 12px;
  vertical-align: middle;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* =========================================
   LANGUAGE DROPDOWN (NEW IMAGE-FLAG VERSION)
   ========================================= */
.lang-menu{
  position: relative;
  display: inline-block;
}

.lang-btn{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b5ed7, #38bdf8);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 94, 215, .25);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.lang-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.lang-btn:focus-visible{
  outline: 3px solid rgba(11, 94, 215, .35);
  outline-offset: 3px;
}

.lang-btn-text{
  line-height: 1;
}

.lang-btn-caret{
  font-size: 12px;
  opacity: .9;
  line-height: 1;
}

/* Rectangular flag images */
.lang-btn-flag-img,
.lang-flag-img{
  width: 30px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
  display: inline-block;
  flex: 0 0 30px;
  vertical-align: middle;
}

.lang-dropdown{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #ffffff;
  border: 1px solid rgba(11,94,215,.18);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(2, 6, 23, .14);
  padding: 10px;
  z-index: 999;
}

.lang-option{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(15,23,42,.14);
  border-radius: 999px;
  background: #ffffff;
  color: #0b3b91;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.lang-option + .lang-option{
  margin-top: 8px;
}

.lang-option:hover{
  background: rgba(11,94,215,.06);
  border-color: rgba(11,94,215,.22);
  transform: translateY(-1px);
}

.lang-option.active{
  background: rgba(11,94,215,.12);
  border-color: rgba(11,94,215,.35);
  box-shadow: 0 8px 16px rgba(11,94,215,.08);
}

.lang-label{
  line-height: 1;
}

/* smaller sizing on phones */
@media (max-width: 520px){
  .lang-btn{
    padding: 9px 12px;
    font-size: 13px;
  }

  .lang-btn-flag-img,
  .lang-flag-img{
    width: 28px;
    height: 18px;
    flex-basis: 28px;
  }

  .lang-dropdown{
    min-width: 156px;
    padding: 8px;
  }

  .lang-option{
    padding: 10px 12px;
    font-size: 15px;
    gap: 10px;
  }
}

.lang-flag-svg-rect{
  width: 30px;
  height: 20px;
  display: inline-block;
  flex: 0 0 30px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
  vertical-align: middle;
}

/* ===== Optional: club summary (kept as you had) ===== */
.club-summary-wrap{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(11,94,215,.14);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: var(--shadow2);
}

.club-badge{
  display: table;
  margin: 0 auto 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(245,158,11,.12);
  border: 2px solid rgba(245,158,11,.45);
  color: #6b4b00;
  font-weight: 1000;
  font-size: 16px;
}

.club-summary-title{
  margin: 0 0 10px;
  text-align: center;
  color: var(--brand2);
  font-size: 28px;
  font-weight: 1100;
}

.club-summary-desc{
  margin: 0 auto 18px;
  max-width: 980px;
  text-align: center;
  color: #334155;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.7;
}

.club-summary-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  max-width: 1250px;
  margin: 0 auto;
}

.club-summary-pill{
  background: #eef3fb;
  border: 1px solid rgba(11,94,215,.16);
  border-radius: 18px;
  padding: 14px 16px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 650;
}

.club-summary-pill strong{
  font-weight: 1000;
  color: #111827;
}

.club-summary-cta{
  margin: 18px 0 0;
  text-align: center;
}

@media (max-width: 900px){
  .club-summary-grid{
    grid-template-columns: 1fr;
  }

  .club-summary-title{
    font-size: 24px;
  }

  .club-summary-desc{
    font-size: 16px;
  }
}

/* =========================================================
   GLOBAL MOBILE OVERFLOW FIX (put at END of style.css)
   Stops cards/sections from being wider than the screen
   ========================================================= */

/* 1) Prevent any accidental horizontal overflow */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* 2) Let grid/flex children shrink (CRITICAL fix) */
.grid > *,
.form > *,
.footer-inner > *,
.hero-actions > *,
.nav > * {
  min-width: 0;
}

/* 3) Long text must wrap instead of pushing layout */
.section-sub,
.card,
.card p,
.card h3,
.hero-desc,
.hero-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 4) Buttons: allow wrapping on small screens to avoid overflow */
@media (max-width: 600px) {
  .btn {
    white-space: normal;   /* overrides nowrap */
    max-width: 100%;
    text-align: center;
  }

  /* Where buttons are in rows, allow wrapping safely */
  .hero-actions,
  .hero-snap-cta,
  .footer-inner,
  .quick-jump {
    flex-wrap: wrap;
    max-width: 100%;
  }
}

/* 5) Generic table safety: tables should scroll inside a wrapper */
.table-wrap,
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* If any table exists without a wrapper, at least don’t let it break the page */
table {
  max-width: 100%;
}
/* ===== Emoji fix for gradient headings ===== */
.emoji{
  color: initial !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  margin-right: 6px;
}
/* ===== Nice Thank-you Modal (Club Register) ===== */
#clubThankYouModal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  padding: 18px;
}

#clubThankYouModal .modal-card{
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  width: min(440px, 100%);
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  border: 1px solid rgba(0,0,0,.08);
}

#clubThankYouModal .modal-title{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 1000;
  color: var(--accent); /* blue */
}

#clubThankYouModal .modal-text{
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.6;
}

.about-card{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: center;

  background: #f6ecd4;
  border: 2px solid #f0b44c;
  border-radius: 22px;
  padding: 20px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.about-img{
  width: 100%;
  max-width: 200px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid #ffffff;
}

.about-title{
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 1100;
  color: #e58a00;
}

.about-text{
  color: #334155;
  font-weight: 650;
  line-height: 1.7;
}

.about-link{
  display: inline-block;
  margin-top: 10px;
  font-weight: 1000;
  color: var(--brand2);
  text-decoration: none;
  border-bottom: 1px solid rgba(11,94,215,.3);
}

.about-link:hover{
  border-bottom-color: rgba(11,94,215,.6);
}

/* mobile */
@media (max-width: 700px){
  .about-card{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-img{
    margin: 0 auto;
  }
}
/* ===== COLOURED SECTION WRAPS ===== */

/* Programs */
.programs-wrap{
  background: rgba(59,130,246,.06); /* soft blue */
  border: 1px solid rgba(59,130,246,.18);
  border-radius: 20px;
  padding: 18px;
}

/* Philosophy */
.philosophy-wrap{
  background: rgba(16,185,129,.06); /* soft green */
  border: 1px solid rgba(16,185,129,.20);
  border-radius: 20px;
  padding: 18px;
}

/* Make mini cards nicer inside coloured sections */
.programs-wrap .mini-card,
.philosophy-wrap .mini-card{
  background: rgba(255,255,255,.9);
  border-radius: 16px;
}

/* Optional: nicer headings */
.programs-wrap h3{
  color: #1d4ed8;
}

.philosophy-wrap h3{
  color: #047857;
}
/* ===== MAKE PROGRAMS STAND OUT ===== */

.programs-wrap{
  background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(11,94,215,.08));
  border: 2px solid rgba(59,130,246,.25);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(2,6,23,.08);
  position: relative;
}

/* top badge */
.programs-badge{
  position: absolute;
  top: -12px;
  left: 20px;
  background: #2563eb;
  color: white;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(37,99,235,.25);
}

/* make cards nicer */
.programs-wrap .mini-card{
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(2,6,23,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.programs-wrap .mini-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(2,6,23,.12);
}

/* stronger headings */
.programs-wrap .mini-card h3{
  color: #1d4ed8;
}
/* ===== MATH CLUB STANDOUT ===== */

.club-highlight{
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(255,193,7,.10));
  border: 2px solid rgba(245,158,11,.35);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 14px 32px rgba(2,6,23,.10);
  position: relative;
  overflow: hidden;
}

/* floating badge */
.club-highlight-badge{
  position: absolute;
  top: -12px;
  left: 20px;
  background: #f59e0b;
  color: white;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(245,158,11,.35);
}

/* slightly stronger title */
.club-highlight .club-summary-title{
  font-size: 30px;
}

/* nicer pills */
.club-highlight .club-summary-pill{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.club-highlight .club-summary-pill:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(2,6,23,.08);
}

/* CTA stronger */
.club-highlight .btn-primary{
  box-shadow: 0 8px 18px rgba(245,158,11,.25);
}
/* ===== STRONG "RECOMMENDED" BADGE ===== */

.club-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin: 0 auto 18px;
  padding: 10px 18px;

  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;

  font-weight: 1000;
  font-size: 15px;
  letter-spacing: 0.3px;

  box-shadow: 0 8px 20px rgba(245,158,11,.35);
}

/* subtle pulse to draw attention */
.club-badge::before{
  content: "⭐";
  font-size: 16px;
}

/* optional: gentle animation */
@keyframes badgePulse{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.05); }
  100%{ transform: scale(1); }
}

.club-badge{
  animation: badgePulse 2.5s ease-in-out infinite;
}
.club-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin: 0 auto 18px;
  padding: 12px 20px;

  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;

  font-weight: 1100;          /* stronger */
  font-size: 16px;            /* bigger */
  letter-spacing: 0.4px;      /* clearer */

  text-transform: uppercase;  /* makes it stand out */
  
  box-shadow: 0 10px 24px rgba(245,158,11,.35);
}

/* star icon */
.club-badge::before{
  content: "⭐";
  font-size: 18px;
}
.club-badge:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245,158,11,.45);
}
/* ===== STRONG POLICY BUTTON ===== */

.note-btn{
  display: inline-block;
  padding: 10px 16px;

  background: linear-gradient(135deg, #0b5ed7, #2563eb);
  color: #fff;

  font-weight: 900;
  font-size: 14px;

  border-radius: 10px;
  text-decoration: none;

  box-shadow: 0 8px 18px rgba(11,94,215,.25);
  transition: all .15s ease;
}

/* hover effect */
.note-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(11,94,215,.35);
}

/* optional: make it slightly larger on mobile */
@media (max-width: 600px){
  .note-btn{
    width: 100%;
    text-align: center;
  }
}


/* === base === */
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at top, rgba(232,164,54,.10), transparent 34%), linear-gradient(180deg, #fffaf5 0%, #f6eee7 100%);
  color: var(--premium-ink);
}
.container { width: min(var(--premium-max), calc(100% - 32px)); }
h1,h2,h3,h4 { letter-spacing: -0.02em; }
.section { padding-top: 22px; padding-bottom: 22px; }


/* === layout === */
.premium-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 10px 28px rgba(15,23,42,.04);
}
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15,29,58,.98), rgba(11,94,215,.92));
  color: white;
  padding: 52px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto -80px -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(232,164,54,.30), transparent 60%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__kicker {
  margin: 0 0 10px;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 900;
}
.page-hero h1 { margin: 0 0 12px; font-size: clamp(2rem,4.4vw,3.5rem); }
.page-hero p { max-width: 760px; margin: 0; font-size: 1.06rem; color: rgba(255,255,255,.88); }
.page-hero__actions { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.footer-grid {
  display:grid; grid-template-columns: 1.35fr .95fr; gap: 28px; padding: 32px 0 20px;
}
.footer-bottom { padding: 16px 0 28px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
@media (max-width: 900px){ .footer-grid{ grid-template-columns:1fr; } }


/* === components === */
.brand { gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 14px; box-shadow: var(--premium-shadow-soft); }
.brand-title b { display:block; color: var(--premium-navy); font-size: 1.02rem; }
.brand-title span { display:block; color: #5a6577; font-size: .78rem; }
.premium-nav { display:flex; gap: 10px; flex-wrap: wrap; align-items:center; }
.premium-nav a {
  color: var(--premium-ink); text-decoration:none; font-weight: 850; padding: 10px 14px; border-radius: 999px;
}
.premium-nav a:hover { background: rgba(15,29,58,.05); }
.premium-nav .nav-cta, .btn-amber {
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-deep)); color: white; box-shadow: var(--premium-shadow-soft);
}
.premium-nav .nav-login, .btn-outline {
  border: 1px solid rgba(11,94,215,.18); background: rgba(255,255,255,.88); color: #0b5ed7;
}
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:0 18px; border-radius:999px; text-decoration:none; font-weight:900; border:0; }
.premium-footer { margin-top: 40px; background: linear-gradient(180deg, #0f1d3a, #142650); color: white; }
.premium-footer h3, .premium-footer h4 { margin-top: 0; color: white; }
.footer-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.footer-list a { color: rgba(255,255,255,.86); text-decoration:none; }
.footer-list a:hover { color: white; text-decoration: underline; }
.premium-section-head { text-align:center; margin-bottom: 18px; }
.premium-section-head h2 { margin:0 0 10px; color: var(--premium-navy); font-size: clamp(1.7rem,3.5vw,2.5rem); }
.premium-section-head p { margin:0 auto; max-width: 760px; color: #576273; font-weight: 650; }
.premium-card-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.premium-card-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.premium-card {
  background: rgba(255,255,255,.92); border: 1px solid var(--premium-line); border-radius: var(--premium-radius); padding: 20px;
  box-shadow: var(--premium-shadow-soft);
}
.premium-card__icon { width: 52px; height: 52px; border-radius: 16px; display:grid; place-items:center; font-size: 26px; background: rgba(11,94,215,.09); margin-bottom: 12px; }
.premium-card h3 { margin:0 0 10px; color: var(--premium-navy); }
.premium-card p { margin:0 0 12px; color:#5a6577; font-weight:650; }
.premium-price { font-size: 1.2rem; font-weight: 1000; color: var(--premium-gold-deep); margin-bottom: 8px; }
.premium-inclusions { margin-top: 18px; background: rgba(255,255,255,.86); border:1px solid var(--premium-line); border-radius: var(--premium-radius); padding: 22px; }
.premium-inclusions ul { margin: 10px 0 0; }
.premium-booking { display:grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.premium-panel { background: rgba(255,255,255,.92); border:1px solid var(--premium-line); border-radius: var(--premium-radius); padding: 24px; box-shadow: var(--premium-shadow-soft); }
.premium-badge { display:inline-block; padding: 8px 12px; border-radius: 999px; font-weight: 900; background: rgba(11,94,215,.08); color: #0b5ed7; }
@media (max-width: 1100px){ .premium-card-grid,.premium-card-grid--4{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 820px){ .premium-booking{ grid-template-columns:1fr; } .premium-nav{ display:none; } }
@media (max-width: 640px){ .premium-card-grid,.premium-card-grid--4{ grid-template-columns: 1fr; } }


.nav-wrap{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;justify-content:flex-end;}
.lang-flag-icon{width:60px;height:40px;display:block;object-fit:cover;border-radius:10px;}
@media (max-width: 980px){.nav-wrap{width:100%;justify-content:flex-start;}}


/* === utilities === */
.u-center{text-align:center;}
.u-muted{color:#5a6577;}


/* === pages/booking === */
.booking-steps{display:grid;gap:14px;margin-top:16px}.booking-step{padding:14px 16px;border-radius:18px;background:rgba(11,94,215,.05);border:1px solid rgba(11,94,215,.12)}


/* === pages/index === */
.brand-title span{ display:none !important; }

    details.acc{
      background: rgba(255,255,255,.82);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow2);
      margin: 0 0 12px;
      overflow:hidden;
      scroll-margin-top: 180px;
    }
    summary.acc-sum{
      list-style:none;
      cursor:pointer;
      padding: 14px 16px;
      font-weight: 1000;
      color: var(--brand2);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      user-select:none;
    }
    summary.acc-sum::-webkit-details-marker{ display:none; }
    .caret{ font-weight: 1000; opacity:.85; transition: transform .12s ease; }
    details[open] summary .caret{ transform: rotate(180deg); }
    .acc-body{ padding: 0 16px 16px; }

    .h2-center{
      margin: 14px 0 8px;
      text-align:center;
      font-size: 24px;
      font-weight: 1000;
      letter-spacing: -0.3px;
      color: var(--brand2);
    }
    .sub-center{
      margin: 0 0 14px;
      text-align:center;
      color: var(--muted);
      font-weight: 650;
    }

    .two-grid{
      display:grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 14px;
    }
    @media (max-width: 900px){
      .two-grid{ grid-template-columns: 1fr; }
    }

    .mini-card{
      background: rgba(255,255,255,.86);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 16px;
    }
    .mini-card h3{
      margin: 0 0 8px;
      color: #7a4a00;
      font-size: 18px;
      font-weight: 1000;
    }
    .mini-card ul{
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
      font-weight: 650;
      line-height: 1.7;
    }

    .link-strong{
      color: var(--brand2);
      font-weight: 1000;
      text-decoration:none;
      border-bottom: 1px solid rgba(11,94,215,.30);
    }
    .link-strong:hover{ border-bottom-color: rgba(11,94,215,.60); }

    .diff-wrap{
      background: rgba(255,255,255,.72);
      border: 1px solid var(--line);
      border-radius: calc(var(--radius) + 6px);
      box-shadow: var(--shadow2);
      padding: 18px;
    }
    .diff-head{
      text-align:center;
      padding: 8px 6px 6px;
    }
    .diff-title{
      margin: 0 0 8px;
      font-size: 34px;
      font-weight: 1100;
      letter-spacing: -0.4px;
      color: var(--brand2);
      display:flex;
      align-items:center;
      justify-content:center;
      gap: 10px;
      line-height: 1.15;
    }
    .diff-title .spark{
      font-size: 22px;
      line-height: 1;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: rgba(245,158,11,.15);
      border: 1px solid rgba(245,158,11,.28);
    }
    .diff-sub{
      margin: 0;
      color: var(--muted);
      font-weight: 700;
      line-height: 1.6;
      font-size: 17px;
    }

    .diff-note{
      margin: 14px auto 16px;
      max-width: 980px;
      background: rgba(11,94,215,.06);
      border: 1px solid rgba(11,94,215,.22);
      border-radius: 16px;
      padding: 12px 14px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .diff-note strong{
      color: var(--brand2);
      font-weight: 1100;
    }
    .diff-note .note-text{
      color: var(--muted);
      font-weight: 700;
      line-height: 1.55;
      flex: 1 1 520px;
      min-width: 240px;
    }
    .diff-note .note-link{
      white-space: nowrap;
      font-weight: 1100;
      text-decoration:none;
      color: var(--brand2);
      border-bottom: 1px solid rgba(11,94,215,.30);
    }
    .diff-note .note-link:hover{
      border-bottom-color: rgba(11,94,215,.60);
    }

    .diff-grid{
      display:grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 14px;
    }
    @media (max-width: 1100px){
      .diff-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 760px){
      .diff-grid{ grid-template-columns: 1fr; }
      .diff-title{ font-size: 28px; }
    }

    .diff-card{
      background: rgba(255, 248, 231, .92);
      border: 1px solid rgba(245,158,11,.30);
      border-radius: calc(var(--radius) + 6px);
      padding: 14px;
      box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
      min-height: 170px;
    }
    .diff-card .diff-top{
      display:flex;
      align-items:center;
      gap: 10px;
      margin-bottom: 8px;
    }
    .diff-ico{
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: rgba(255,255,255,.92);
      border: 1px solid rgba(245,158,11,.30);
      display:flex;
      align-items:center;
      justify-content:center;
      font-size: 22px;
      flex: 0 0 42px;
    }
    .diff-card h3{
      margin: 0;
      color: #cc7a00;
      font-size: 18px;
      font-weight: 1100;
      line-height: 1.15;
    }
    .diff-card p{
      margin: 0;
      color: var(--muted);
      font-weight: 700;
      line-height: 1.65;
    }

    .club-summary-wrap{
      background: rgba(255,255,255,.82);
      border: 1px solid rgba(11,94,215,.14);
      border-radius: 24px;
      padding: 26px 22px;
      box-shadow: var(--shadow2);
    }
    .club-badge{
      display: table;
      margin: 0 auto 16px;
      padding: 10px 18px;
      border-radius: 999px;
      background: rgba(245,158,11,.12);
      border: 2px solid rgba(245,158,11,.45);
      color: #6b4b00;
      font-weight: 1000;
      font-size: 16px;
    }
    .club-summary-title{
      margin: 0 0 10px;
      text-align: center;
      color: var(--brand2);
      font-size: 28px;
      font-weight: 1100;
    }
    .club-summary-desc{
      margin: 0 auto 18px;
      max-width: 980px;
      text-align: center;
      color: #334155;
      font-weight: 650;
      font-size: 17px;
      line-height: 1.7;
    }
    .club-summary-grid{
      display: grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 12px;
      max-width: 1250px;
      margin: 0 auto;
    }
    .club-summary-pill{
      background: #eef3fb;
      border: 1px solid rgba(11,94,215,.16);
      border-radius: 18px;
      padding: 14px 16px;
      color: #1f2937;
      font-size: 16px;
      line-height: 1.6;
      font-weight: 650;
    }
    .club-summary-pill strong{
      font-weight: 1000;
      color: #111827;
    }
    .club-summary-cta{
      margin: 18px 0 0;
      text-align: center;
    }

    .footer-links{
      display:flex;
      gap:14px;
      flex-wrap:wrap;
      justify-content:center;
      margin-top:10px;
      font-weight:700;
    }
    .footer-links a{
      text-decoration:none;
      color:inherit;
      opacity:.9;
    }
    .footer-links a:hover{
      opacity:1;
      text-decoration:underline;
    }

    @media (max-width: 900px){
      .club-summary-grid{ grid-template-columns: 1fr; }
      .club-summary-title{ font-size: 24px; }
      .club-summary-desc{ font-size: 16px; }
    }
  


    .club-note{
      margin-top: 14px;
      padding: 16px 18px;
      background: rgba(245,158,11,.08);
      border: 1px solid rgba(245,158,11,.22);
      border-radius: 18px;
      color: #6b4b00;
      font-weight: 800;
      line-height: 1.65;
      text-align: center;
    }
    .club-note span{
      display: block;
      margin-bottom: 8px;
    }
    .club-note .link-strong{
      display: inline-block;
      margin-top: 2px;
      font-size: 18px;
    }


.club-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8e7, #fff1c4);
  border: 3px solid rgba(245,158,11,.35);
  color: #7b5600;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 1100;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(245,158,11,.18);
  text-align: center;
}
.club-eyebrow::before{
  content: "⭐ ⭐";
  font-size: 1em;
  letter-spacing: .12em;
}

.club-banner{
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7df, #fff1c7);
  border: 3px solid rgba(245,158,11,.34);
  box-shadow: 0 18px 34px rgba(245,158,11,.16);
}
.club-banner::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.30) 46%, transparent 62%);
  transform: translateX(-120%);
  animation: clubBannerSweep 4.5s ease-in-out infinite;
}
@keyframes clubBannerSweep{
  0%, 12% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.club-banner__lead,
.club-banner__actions{
  position: relative;
  z-index: 1;
}
.club-banner__lead{
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  color: #7b5600;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 1100;
  line-height: 1.25;
  text-transform: uppercase;
}
.club-banner__icon,
.club-banner__pointer{
  flex: 0 0 auto;
  font-size: clamp(22px, 2.3vw, 34px);
}
.club-banner__actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.club-banner .btn{
  white-space: nowrap;
}

@media (max-width: 900px){
  .club-banner{
    border-radius: 28px;
    flex-direction: column;
    text-align: center;
  }
  .club-banner__lead,
  .club-banner__actions{
    justify-content: center;
  }
  .club-banner__lead{
    font-size: 18px;
  }
}


/* === pages/contact === */
/* =========================
       FIX: keep hero + main the same width (even when zooming)
       ========================= */
    .hero{
      width: 100% !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      overflow-x: clip;
      padding: 22px 0 18px;
    }
    html, body{ max-width:100%; overflow-x: clip; }

    /* HERO: remove square frame around logo (template default) */
    .hero-snap-logoBox{
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      border-radius: 0 !important;
    }
    .hero-snap-logoBox img{
      padding: 0 !important;
      border: none !important;
      box-shadow: none !important;
      background: transparent !important;
      border-radius: 0 !important;
    }

    /* Buttons hover */
    .btn{
      transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
      will-change: transform, filter;
    }
    .btn:hover{
      transform: translateY(-1px);
      filter: brightness(0.96);
      box-shadow: 0 10px 22px rgba(2, 6, 23, .12);
    }

    /* Blue button */
    .btn-blue{
      background: #2563eb;
      color: #fff;
      border: 2px solid rgba(0,0,0,.10);
    }
    .btn-blue:hover{ filter: brightness(.96); }

    /* =========================
       Device-aware buttons (ROBUST)
       Desktop/Laptop: show .desktop-only (Gmail)
       Touch devices (phones/tablets): show .app-only (mailto)
       iPad: show BOTH (Gmail + App)
       ========================= */
    .desktop-only{ display: inline-flex !important; }
    .app-only{ display: none !important; }

    /* Phones/tablets (touch): prefer email app */
    @media (pointer: coarse){
      .desktop-only{ display: none !important; }
      .app-only{ display: inline-flex !important; }
    }

    /* iPad override: show Gmail button too */
    body.is-ipad .desktop-only{ display: inline-flex !important; }
    body.is-ipad .app-only{ display: inline-flex !important; }

    /* FORCE: contact cards full width, equal columns */
    .grid{
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 18px !important;
      width: 100% !important;
      max-width: none !important;
      align-items: stretch !important;
    }
    .grid > .card{
      width: 100% !important;
      max-width: none !important;
    }
    @media (max-width: 980px){
      .grid{ grid-template-columns: 1fr !important; }
    }

    /* QR/workflow layout */
    .qr-grid{
      display:grid;
      gap:18px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: stretch;
      width: 100%;
    }
    @media (max-width: 980px){
      .qr-grid{ grid-template-columns: 1fr; }
    }
    .qr-card{
      border-radius: 18px;
      padding: 18px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.75);
    }
    .qr-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
      margin-bottom: 10px;
    }
    .qr-title{
      margin:0;
      font-size: 22px;
      font-weight: 1000;
    }
    .qr-badge{
      display:inline-block;
      padding: 6px 10px;
      border-radius: 999px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.70);
      font-weight: 900;
      font-size: 13px;
      line-height: 1;
      white-space: nowrap;
    }
    .qr-body{
      display:grid;
      grid-template-columns: 150px 1fr;
      gap: 14px;
      align-items:center;
    }
    @media (max-width: 520px){
      .qr-body{ grid-template-columns: 1fr; }
    }
    .qr-img{
      width: 150px;
      height: 150px;
      object-fit: contain;
      border-radius: 14px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.75);
      padding: 10px;
    }
    .qr-actions{
      margin-top: 10px;
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }

    /* Contact details list */
    .contact-list{
      margin:0;
      padding-left: 18px;
      line-height: 1.8;
      font-weight: 650;
      opacity: .95;
    }

    /* Helper block */
    .help-box{
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      font-weight: 800;
      line-height: 1.55;
    }

    /* Anchor offset */
    [id]{ scroll-margin-top: 110px; }


/* === pages/enquiry === */
html, body { overflow-x:hidden; }

    main { padding: 18px 0 40px; }

    /* ===== Hero actions ===== */
    .hero-actions{
      margin-top: 14px;
      display:flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items:center;
    }

    .btn-secondary{
      background: rgba(11,94,215,.08);
      color: var(--accent);
      border: 1px solid rgba(11,94,215,.25);
      box-shadow: none;
    }

    .badge{
      display:inline-block;
      margin-left: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: .8rem;
      font-weight: 900;
      background: var(--accent-soft);
      color: var(--accent);
      border: 1px solid rgba(11,94,215,.2);
    }

    /* ===== Form card ===== */
    .wrap{
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 18px;
    }

    .form-card{
      background: rgba(255,255,255,.86);
      border-radius: 18px;
      box-shadow: 0 10px 26px rgba(0,0,0,.08);
      border: 1px solid rgba(0,0,0,.12);
      overflow:hidden;
    }

    .form-card-head{
      padding: 14px 16px;
      border-bottom: 1px solid rgba(0,0,0,.08);
    }

    .form-card-title{
      margin: 0;
      font-size: 18px;
      font-weight: 1000;
    }

    .form-card-body{
      padding: 16px;
    }

    form{
      display:grid;
      gap: 16px;
    }

    .grid-2{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

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

    /* ===== Inputs (match club-register.html) ===== */
    .form-card label{
      display:block;
      margin-bottom: 6px;
      font-size: 14px;
      font-weight: 1000;
      color: var(--brand-dark);
    }

    .form-card input[type="text"],
    .form-card input[type="email"],
    .form-card input[type="tel"],
    .form-card textarea{
      width:100%;
      padding: 11px 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,.92);
      color: var(--ink);
      font: inherit;
      outline:none;
    }

    .form-card textarea{
      min-height: 120px;
      resize: vertical;
    }

    .form-card input:focus,
    .form-card textarea:focus{
      border-color: rgba(11,94,215,.45);
      box-shadow: 0 0 0 4px rgba(11,94,215,.10);
    }

    .note{
      margin-top: 6px;
      color: var(--muted);
      font-size: .95rem;
      font-weight: 650;
      line-height: 1.6;
    }

    .option{
      display:flex;
      align-items:flex-start;
      gap: 10px;
      color: var(--muted);
      font-weight: 700;
      line-height: 1.65;
      margin-top: 8px;
    }

    .option input{
      margin-top: 3px;
      accent-color: var(--accent);
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
    }

    /* ===== Thank you modal ===== */
    #thankYouModal,
#registerThankYouModal{
      position: fixed;
      inset: 0;
      display:none;
      align-items:center;
      justify-content:center;
      background: rgba(0,0,0,.45);
      z-index:9999;
      padding:18px;
    }

    #thankYouModal .modal-card,
#registerThankYouModal .modal-card{
      background:#fff;
      border-radius:18px;
      padding:22px;
      width:min(420px,100%);
      text-align:center;
      box-shadow:0 18px 40px rgba(0,0,0,.22);
    }


/* === pages/mathclub === */
.brand-title span{ display:none !important; }

    .club-wrap{
      display: grid;
      gap: 16px;
    }

    .club-card{
      background: rgba(255,255,255,.84);
      border: 1px solid var(--line);
      border-radius: calc(var(--radius) + 4px);
      box-shadow: var(--shadow2);
      padding: 18px;
    }

    .club-grid{
      display: grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 16px;
    }
    @media (max-width: 900px){
      .club-grid{ grid-template-columns: 1fr; }
    }

    .club-panel{
      background: rgba(255, 248, 231, .94);
      border: 1px solid rgba(245,158,11,.28);
      border-radius: calc(var(--radius) + 4px);
      padding: 18px;
      box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
    }
    .club-panel.blue{
      background: rgba(237, 246, 255, .94);
      border-color: rgba(11,94,215,.20);
    }
    .club-panel h3{
      margin: 0 0 12px;
      font-size: 20px;
      font-weight: 1100;
      color: #f59e0b;
    }
    .club-panel.blue h3{
      color: #2563eb;
    }
    .club-panel ul{
      margin: 0;
      padding-left: 20px;
      color: #334155;
      font-weight: 650;
      line-height: 1.8;
      font-size: 16px;
    }
    .club-panel li + li{
      margin-top: 6px;
    }
    .club-panel strong{
      color: #111827;
      font-weight: 1000;
    }
    .club-panel em{
      font-style: italic;
    }

    .club-note{
      margin-top: 2px;
      background: rgba(11,94,215,.06);
      border: 1px solid rgba(11,94,215,.20);
      border-radius: 16px;
      padding: 14px;
      color: var(--muted);
      font-weight: 700;
      line-height: 1.65;
    }
    .club-note strong{
      color: var(--brand2);
      font-weight: 1100;
    }

    .club-links{
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 14px;
    }

    .btn.btn-blue{
      background: #0b5ed7;
      color: #fff;
    }
    .btn.btn-cyan{
      background: #0ea5b7;
      color: #fff;
    }

    .club-bottom{
      text-align: center;
    }
    .club-bottom h3{
      margin: 0 0 8px;
      color: var(--brand2);
      font-size: 24px;
      font-weight: 1100;
    }
    .club-bottom p{
      margin: 0;
      color: var(--muted);
      font-weight: 700;
      line-height: 1.7;
    }

    .club-small-links{
      margin-top: 14px;
      text-align: center;
      color: var(--muted);
      font-weight: 800;
    }
    .club-small-links a{
      color: var(--brand2);
      text-decoration: none;
      border-bottom: 1px solid rgba(11,94,215,.28);
    }
    .club-small-links a:hover{
      border-bottom-color: rgba(11,94,215,.60);
    }

    .footer-links{
      display:flex;
      gap:14px;
      flex-wrap:wrap;
      justify-content:center;
      margin-top:10px;
      font-weight:700;
    }
    .footer-links a{
      text-decoration:none;
      color:inherit;
      opacity:.9;
    }
    .footer-links a:hover{
      opacity:1;
      text-decoration:underline;
    }


/* === pages/philosophy === */
/* Sections */
    .philo-list{
      margin: 0;
      padding-left: 20px;
      line-height: 1.85;
      font-weight: 650;
    }
    .philo-list li{ margin: 8px 0; }

    /* Teaching grid (uses your style.css grid/card vibe) */
    .teach-grid{
      display:grid;
      gap: 16px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-top: 10px;
    }
    @media (max-width: 1050px){
      .teach-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 700px){
      .teach-grid{ grid-template-columns: 1fr; }
    }

    /* Small note card */
    .note{
      background: rgba(255,255,255,.72);
      border: 2px solid rgba(0,0,0,.10);
      border-radius: 18px;
      padding: 14px 16px;
      font-weight: 750;
      line-height: 1.7;
    }

    /* ===== Quick links: “Programs-like” behaviour ===== */
    .ql-btn.is-active{
      background: rgba(11,94,215,.18);
      border-color: rgba(11,94,215,.35);
      box-shadow: 0 10px 18px rgba(11,94,215,.12);
      color: var(--brand2);
    }

    @keyframes mmmFlash {
      0%   { box-shadow: 0 0 0 rgba(11,94,215,0); border-color: rgba(11,94,215,.12); }
      35%  { box-shadow: 0 0 0 6px rgba(11,94,215,.18); border-color: rgba(11,94,215,.55); }
      100% { box-shadow: 0 0 0 rgba(11,94,215,0); border-color: rgba(11,94,215,.12); }
    }
    .anchor-flash.card{ animation: mmmFlash 1.15s ease; }

    /* Anchor jump offset (topbar height) */
    .anchor-target{ scroll-margin-top: 110px; }


/* === pages/policies === */
.policy-grid{
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
    @media (max-width: 980px){
      .policy-grid{ grid-template-columns: 1fr; }
    }

    .policy-list{
      margin: 0;
      padding-left: 20px;
      line-height: 1.75;
      font-weight: 650;
      color: var(--muted);
    }
    .policy-list li{ margin: 8px 0; }

    .note{
      background:#e7f4ff;
      border-left:6px solid #42a5f5;
      border-radius:14px;
      padding:14px 16px;
      font-weight: 750;
      line-height: 1.7;
      color: #1f2937;
    }

    /* Optional: make section jump feel nice under sticky topbar */
    .anchor-target{ scroll-margin-top: 110px; }


/* === pages/pricing === */
html { scroll-behavior: smooth; }
    #detailed-fees, #maths-club-fee, #discounts-rewards { scroll-margin-top: 110px; }
    .brand-title span{ display:none !important; }

    .section-title{
      font-size: clamp(26px, 2.2vw, 34px);
      font-weight: 1000;
      letter-spacing: .2px;
      margin: 0 0 8px;
      color: #2563eb;
    }
    .section-sub{
      font-size: 16px;
      line-height: 1.6;
      opacity: .9;
      margin: 0 0 14px;
    }

    .card h3,
    .qr-title,
    .club-card h3,
    .discount-card h3,
    .discount-card-wide h3,
    .discount-card-green h3,
    .info-card h3{
      font-size: clamp(18px, 1.4vw, 22px);
      font-weight: 1000;
      margin: 0 0 10px;
      color: #0b1a2b;
    }

    #detailed-fees .section-title{ color:#2563eb; }
    #fees-glance .section-title{ color:#7c3aed; }
    #maths-club-fee .section-title{ color:#16a34a; }
    #discounts-rewards .section-title{ color:#f59e0b; }
    #policies-summary .section-title{ color:#0ea5e9; }
    #cta-bottom .section-title{ color:#2563eb; }

    .chip-links{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }
    .chip-link{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding: 10px 14px;
      border-radius: 999px;
      font-weight: 1000;
      font-size: 14px;
      line-height: 1;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.70);
      color: inherit;
      text-decoration: none;
      transition: background-color .14s ease, color .14s ease, transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    }
    .chip-link:hover{
      background: var(--brand);
      color: #fff;
      border-color: rgba(0,0,0,.10);
      transform: translateY(-1px);
      box-shadow: 0 10px 18px rgba(2, 6, 23, .12);
    }
    .chip-link:focus-visible{
      outline: 3px solid rgba(11, 94, 215, .45);
      outline-offset: 3px;
    }

    .hero-snap-logoBox{
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      border-radius: 0 !important;
    }
    .hero-snap-logoBox img{
      padding: 0 !important;
      border: none !important;
      box-shadow: none !important;
      background: transparent !important;
      border-radius: 0 !important;
    }
    .hero { padding: 22px 0 18px; }

    .btn{
      transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
      will-change: transform, filter;
    }
    .btn:hover{
      transform: translateY(-1px);
      filter: brightness(0.96);
      box-shadow: 0 10px 22px rgba(2, 6, 23, .12);
    }

    .price-grid{
      display:grid;
      gap:18px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    @media (max-width: 1100px){
      .price-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
    }
    @media (max-width: 700px){
      .price-grid{ grid-template-columns: 1fr; }
    }
    .price-card{
      border-radius: 18px;
      padding: 18px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.75);
      min-width: 0;
    }
    .price-card.featured{
      border-width: 3px;
      box-shadow: 0 10px 22px rgba(0,0,0,.08);
    }
    .price-top{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:12px;
      margin-bottom: 6px;
      min-width:0;
    }
    .price-top h3{ margin:0; font-size: 22px; }

    .kicker{
      display:inline-block;
      padding: 6px 10px;
      border-radius: 999px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      font-weight: 1000;
      font-size: 13px;
      line-height: 1.2;
      white-space: normal;
      text-align: center;
      max-width: 100%;
    }

    .price{
      font-size: 44px;
      font-weight: 1000;
      line-height: 1;
      margin: 10px 0 4px;
      overflow-wrap:anywhere;
    }
    .per{
      opacity: .85;
      font-weight: 800;
      margin-bottom: 10px;
      line-height: 1.35;
    }
    .fee-chips{ display:flex; flex-wrap:wrap; gap:8px; margin: 8px 0 10px; }
    .fee-chip{
      display:inline-block;
      padding: 6px 10px;
      border-radius:999px;
      font-weight: 900;
      font-size: 13px;
      line-height: 1;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      overflow-wrap:anywhere;
    }
    .parents-get{
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      font-weight: 800;
      font-size: 15px;
      line-height: 1.5;
      overflow-wrap:anywhere;
    }

    .imp-box{
      margin-top: 14px;
      background: #eaf4ff;
      border: 3px solid #9ec9ff;
      border-radius: 26px;
      padding: 18px 18px 16px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    }
    .imp-head{
      display:flex;
      align-items:center;
      gap: 12px;
      margin: 0 0 10px;
    }
    .imp-pin{ font-size: 30px; line-height: 1; }
    .imp-title{
      margin: 0;
      font-size: 28px;
      font-weight: 900;
      letter-spacing: 0.2px;
      color:#1e40af;
    }
    .imp-list{
      margin: 0 0 12px;
      padding-left: 22px;
      font-size: 16px;
      line-height: 1.7;
      color: #222;
    }
    .imp-list li{ margin: 10px 0; }
    .imp-list b{ font-weight: 900; }
    .imp-footer{
      margin: 0;
      font-size: 16px;
      line-height: 1.6;
      color: #222;
    }
    .imp-link{
      font-weight: 900;
      text-decoration: none;
      border-bottom: 1px solid rgba(30,136,229,0.35);
    }

    .price-tool{
      --line: rgba(15, 23, 42, .10);
      --text: #0b1a2b;
      --muted: #4b6078;
      --accent: #2563eb;
      --accent2:#7c3aed;
      --online:#0ea5e9;
      --inperson:#f97316;
      --shadow: 0 10px 28px rgba(2, 8, 23, .10);
      --yellow:#FFE66D;
      --yellow2:#FFD54D;
    }

    .price-tool .wrap{
      max-width: 1200px;
      margin: 0 auto;
      padding: 0;
    }

    .price-tool p{ margin: 0 0 14px; color: var(--muted); line-height: 1.45; }

    .price-tool .bar{
      display:flex;
      gap:12px;
      flex-wrap:wrap;
      align-items:stretch;
      margin:14px 0 18px;
    }
    .price-tool .seg{
      display:flex;
      gap:6px;
      align-items:center;
      background:rgba(255,255,255,.7);
      border:1px solid var(--line);
      border-radius:16px;
      padding:6px;
      box-shadow: 0 6px 16px rgba(2,8,23,.06);
      backdrop-filter: blur(8px);
    }
    .price-tool .seg button{
      border:0;
      background:transparent;
      padding:10px 12px;
      border-radius:12px;
      cursor:pointer;
      color:var(--muted);
      font-weight:900;
      font-size:16px;
      transition: transform .12s ease, background .12s ease, color .12s ease, outline .12s ease;
      white-space: nowrap;
    }
    .price-tool .seg button:hover{ transform: translateY(-1px); }
    .price-tool .seg button.active{
      color:#0b1a2b;
      background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(124,58,237,.12));
      outline:2px solid rgba(37,99,235,.22);
    }

    .price-tool .note{
      flex:1; min-width:300px;
      background:rgba(255,255,255,.78);
      border:1px solid var(--line);
      border-radius:16px;
      padding:12px 14px;
      box-shadow: 0 6px 16px rgba(2,8,23,.06);
      backdrop-filter: blur(8px);
    }
    .price-tool .badge-row{
      display:flex;
      align-items:center;
      gap: 10px;
      flex-wrap:wrap;
      margin-bottom: 8px;
    }
    .price-tool .badge{
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-size:13px;
      font-weight:950;
      color:#0b1a2b;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid rgba(2,8,23,.10);
      background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(14,165,233,.10));
      white-space: nowrap;
    }
    .price-tool .badge.warn{
      background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(245,158,11,.12));
    }
    .price-tool .note strong{ color:#0b7a2a; }
    .price-tool .sub{ font-size:14px; color:var(--muted); margin-top:8px; line-height:1.35; }

    .price-tool .vceBox{
      min-width:280px;
      background:rgba(255,255,255,.78);
      border:1px solid var(--line);
      border-radius:16px;
      padding:12px 14px;
      box-shadow: 0 6px 16px rgba(2,8,23,.06);
      backdrop-filter: blur(8px);
      display:none;
    }
    .price-tool .vceBox .title{
      font-weight:1000;
      margin-bottom:8px;
      font-size:16px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      background-clip:text;
      color:transparent;
    }
    .price-tool .vceBox .hint{ font-size:14px; color:var(--muted); margin-top:8px; line-height:1.35; }

    .price-tool table.fees-table{
      width:100%;
      border-collapse:separate;
      border-spacing:0;
      border-radius:18px;
      overflow:hidden;
      border:1px solid var(--line);
      box-shadow: var(--shadow);
      background: #fff;
      table-layout: fixed;
    }
    .price-tool table.fees-table thead th{
      padding:16px 12px;
      font-size:18px;
      font-weight:1000;
      text-align:left;
      color:#1f2937;
      border-bottom:1px solid rgba(2,8,23,.10);
      background: linear-gradient(180deg, var(--yellow), var(--yellow2));
    }
    .price-tool table.fees-table tbody td{
      padding:14px 12px;
      border-bottom:1px solid rgba(2,8,23,.08);
      vertical-align:top;
      font-size:16px;
      min-width:0;
      overflow-wrap:anywhere;
      word-break: break-word;
    }
    .price-tool table.fees-table tbody tr:last-child td{ border-bottom:0; }

    .price-tool tbody tr{ transition: transform .12s ease; }
    .price-tool tbody tr:hover{ transform: translateY(-1px); }

    .price-tool .program{ font-weight:1000; font-size:18px; }
    .price-tool .icon{ font-size:22px; }

    .price-tool .cells{
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      align-items: stretch;
    }
    .price-tool .pricebox{
      border:1px solid rgba(2,8,23,.10);
      border-radius:16px;
      padding:10px 12px;
      background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
      box-shadow: 0 8px 18px rgba(2,8,23,.08);
      transition: transform .12s ease, box-shadow .12s ease;
      height: 100%;
      min-width: 0;
    }
    .price-tool .pricebox:hover{
      transform: translateY(-2px);
      box-shadow: 0 14px 26px rgba(2,8,23,.12);
    }
    .price-tool .price{ font-size:20px; font-weight:1000; }
    .price-tool .tag{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      margin-top:8px;
      font-weight:1000;
      font-size:12px;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid rgba(2,8,23,.10);
      width:fit-content;
      max-width: 100%;
      white-space: normal;
      line-height: 1.15;
      text-align:center;
    }
    .price-tool .tag.online{
      color:#044b61;
      background: linear-gradient(135deg, rgba(14,165,233,.22), rgba(34,211,238,.14));
    }
    .price-tool .tag.inperson{
      color:#5a2608;
      background: linear-gradient(135deg, rgba(249,115,22,.24), rgba(245,158,11,.14));
    }

    .price-tool .locked{
      border:1px dashed rgba(2,8,23,.25);
      border-radius:16px;
      padding:12px;
      background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(245,158,11,.06));
      color:var(--muted);
      min-width:0;
    }
    .price-tool .locked .label{ font-weight:1000; color:#1f2937; font-size:16px; }
    .price-tool .locked .small{ font-size:14px; margin-top:6px; line-height:1.35; }

    .price-tool .tool-footer{
      margin-top:14px;
      padding:14px;
      border:1px dashed rgba(37,99,235,.35);
      border-radius:16px;
      background: rgba(255,255,255,.72);
      color:var(--muted);
      line-height:1.5;
      box-shadow: 0 6px 16px rgba(2,8,23,.06);
      backdrop-filter: blur(8px);
      font-size:16px;
    }

    @media (max-width: 900px){
      .price-tool .cells{ grid-template-columns: 1fr; }
    }
    @media (max-width: 880px){
      .price-tool table.fees-table thead th:nth-child(1){ display:none; }
      .price-tool table.fees-table tbody td:nth-child(1){ display:none; }
    }
    @media (max-width: 700px){
      .price-tool .seg button{ font-size: 14px; }
      .price-tool table.fees-table thead th{ font-size: 16px; }
    }

    .triple-grid{
      margin-top: 14px;
      display:grid;
      gap: 14px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    @media (max-width: 950px){
      .triple-grid{ grid-template-columns: 1fr; }
    }
    .info-card{
      background: rgba(255,255,255,.75);
      border: 2px solid rgba(0,0,0,.10);
      border-radius: 18px;
      padding: 18px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
      min-width:0;
    }
    .quote-box{
      margin: 10px 0 12px;
      background: rgba(255,255,255,0.65);
      border-radius: 16px;
      padding: 14px 14px;
      border-left: 6px solid rgba(37,99,235,.75);
      font-size: 16px;
      line-height: 1.45;
      color: #333;
    }
    .notes-box{
      background: rgba(255,255,255,0.65);
      border-radius: 16px;
      padding: 14px 14px;
      border-left: 6px solid rgba(37,99,235,.75);
    }
    .notes-box ul{ margin:0; padding-left: 20px; line-height: 1.7; }

    .club-section, .discounts-section{
      margin-top: 16px;
      background: rgba(255,255,255,.75);
      border: 2px solid rgba(0,0,0,.10);
      border-radius: 18px;
      padding: 16px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    }
    .club-sub, .discounts-subtitle{
      text-align:center;
      margin: 0 0 14px;
      opacity: .9;
      line-height: 1.6;
    }

    .club-grid{
      display:grid;
      gap: 14px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    @media (max-width: 980px){
      .club-grid{ grid-template-columns: 1fr; }
    }

    .club-card{
      background: rgba(255,255,255,.65);
      border: 2px solid rgba(0,0,0,.08);
      border-radius: 18px;
      padding: 16px 18px;
    }
    .price-lines{ margin: 0; line-height: 1.8; font-size: 16px; font-weight: 800; }

    .discounts-row{
      display:flex;
      flex-wrap:wrap;
      gap: 14px;
      margin-bottom: 14px;
    }
    .discount-card{
      flex: 1 1 290px;
      background: rgba(255,255,255,.65);
      border: 2px solid rgba(0,0,0,.08);
      border-radius: 14px;
      padding: 16px 18px;
    }
    .discount-card p,
    .discount-card ul{
      font-size: 15px;
      margin: 0 0 8px 0;
      line-height: 1.55;
    }
    .discount-card ul{ padding-left: 20px; margin-top: 6px; }
    .example-box{
      margin-top: 10px;
      padding: 12px 14px;
      background: rgba(234,244,255,.85);
      border: 1px solid rgba(37,99,235,.25);
      border-radius: 10px;
      font-size: 14px;
      line-height: 1.55;
    }

    .discount-card-wide{
      background: rgba(255,255,255,.65);
      border:2px solid rgba(0,0,0,.08);
      border-radius:14px;
      padding: 16px 18px;
      margin-bottom: 14px;
    }
    .discount-card-wide ul{
      padding-left: 20px;
      margin: 8px 0 10px;
      line-height: 1.55;
      font-size: 15px;
    }
    .discount-card-green{
      background: rgba(232,245,233,.85);
      border:2px solid rgba(46,125,50,.20);
      border-radius: 14px;
      padding: 16px 18px;
    }
    .discount-card-green ul{ padding-left: 20px; margin: 0; line-height: 1.55; font-size: 15px; }

    .btn-row{
      display:flex;
      justify-content:center;
      gap: 12px;
      flex-wrap:wrap;
      margin: 18px 0 6px;
    }

    .policy-list{
      margin:0;
      padding-left:18px;
      font-weight:650;
      line-height:1.7;
      opacity: .92;
    }

    .footer-links{
      display:flex;
      gap:14px;
      flex-wrap:wrap;
      justify-content:center;
      margin-top:10px;
      font-weight:700;
    }
    .footer-links a{
      text-decoration:none;
      color:inherit;
      opacity:.9;
    }
    .footer-links a:hover{
      opacity:1;
      text-decoration:underline;
    }


/* === pages/programs === */
html{ scroll-behavior: smooth; }
    .brand-title span{ display:none !important; }

    .parents-get{
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      font-weight: 800;
      font-size: 15px;
      line-height: 1.5;
    }

    .page-programs .card{
      position: relative;
      overflow: hidden;
    }

    .page-programs .card::before{
      content:"";
      position:absolute;
      inset:-50px -60px auto auto;
      width:220px;
      height:220px;
      border-radius:999px;
      background: radial-gradient(circle at 30% 30%, rgba(11,94,215,.12), transparent 60%);
      transform: rotate(10deg);
      pointer-events:none;
    }
    .page-programs .card::after{
      content:"";
      position:absolute;
      inset:auto auto -60px -60px;
      width:240px;
      height:240px;
      border-radius:999px;
      background: radial-gradient(circle at 40% 40%, rgba(245,158,11,.14), transparent 62%);
      transform: rotate(-10deg);
      pointer-events:none;
    }

    .page-programs .prog-title{
      display:flex;
      align-items:center;
      gap:12px;
      margin-bottom: 8px;
      position: relative;
      z-index: 1;
    }
    .page-programs .prog-ico{
      width: 40px;
      height: 40px;
      border-radius: 14px;
      display:grid;
      place-items:center;
      font-size: 20px;
      font-weight: 900;
      border: 1px solid rgba(15,23,42,.12);
      background: rgba(255,255,255,.75);
      box-shadow: 0 10px 18px rgba(2, 6, 23, .08);
      flex: 0 0 auto;
    }

    .page-programs .card h3{
      margin: 0;
      font-size: 24px;
      line-height: 1.15;
      letter-spacing: -0.2px;
      font-weight: 1000;
    }

    .page-programs .theme-catchup h3{ color: var(--brand2); }
    .page-programs .theme-keepup h3{ color: var(--success); }
    .page-programs .theme-getahead h3{ color: var(--accent); }
    .page-programs .theme-comp h3{ color: #7c3aed; }

    .page-programs .theme-catchup .prog-ico{ background: rgba(11,94,215,.10); }
    .page-programs .theme-keepup .prog-ico{ background: rgba(22,163,74,.12); }
    .page-programs .theme-getahead .prog-ico{ background: rgba(245,158,11,.14); }
    .page-programs .theme-comp .prog-ico{ background: rgba(124,58,237,.12); }

    .page-programs .prog-chip{
      background: rgba(255,255,255,.75);
      border-color: rgba(15,23,42,.12);
      color: var(--ink);
    }
    .page-programs a.card .prog-chip:hover{
      background: rgba(11,94,215,.10);
      color: var(--ink);
      border-color: rgba(11,94,215,.22);
    }

    .program-link{
      margin-top: 12px;
      font-weight: 1000;
      position: relative;
      z-index: 1;
    }
    .link-strong{
      color: var(--brand2);
      font-weight: 1000;
      text-decoration: none;
      border-bottom: 1px solid rgba(11,94,215,.30);
    }
    .link-strong:hover{
      border-bottom-color: rgba(11,94,215,.60);
    }

    .prog-meta{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      margin-top: 14px;
      position: relative;
      z-index: 1;
    }

    .prog-actions{
      display:flex;
      flex-wrap:wrap;
      gap:12px;
      margin-top: 14px;
      position: relative;
      z-index: 1;
    }

    .footer-links{
      display:flex;
      gap:14px;
      flex-wrap:wrap;
      justify-content:center;
      margin-top:10px;
      font-weight:700;
    }
    .footer-links a{
      text-decoration:none;
      color:inherit;
      opacity:.9;
    }
    .footer-links a:hover{
      opacity:1;
      text-decoration:underline;
    }


/* === pages/register === */
:root {
      --bg: #efe7e3;
      --card: rgba(255,255,255,.94);
      --ink: #172033;
      --muted: #5f6b7a;
      --brand: #f28c28;
      --brand-dark: #a84300;
      --line: #e8d9cf;
      --accent: #0b5ed7;
      --accent-soft: rgba(11,94,215,.08);
      --hero: #08153e;
      --green: #138a48;
      --amber: #cc7a00;
      --red: #cf3d32;
      --radius: 18px;
      --shadow: 0 14px 34px rgba(2, 6, 23, .10);
      --shadow-soft: 0 8px 22px rgba(84, 37, 0, .06);
    }

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

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: linear-gradient(180deg, #f5efec 0%, var(--bg) 100%);
      color: var(--ink);
      line-height: 1.55;
    }

    a { color: var(--accent); }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(10px);
      background: rgba(255,255,255,.84);
      border-bottom: 1px solid rgba(232, 217, 207, .9);
    }

    .container {
      width: min(1040px, calc(100% - 28px));
      margin: 0 auto;
    }

    .topbar-inner {
      min-height: 66px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--ink);
      font-weight: 1000;
      letter-spacing: -.2px;
    }

    .top-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 900;
      border: 0;
      cursor: pointer;
      transition: transform .12s ease, filter .12s ease;
      box-shadow: 0 10px 20px rgba(2, 6, 23, .10);
      font: inherit;
    }

    .btn:hover {
      transform: translateY(-1px);
      filter: brightness(1.03);
    }

    .btn-success { background: linear-gradient(135deg, #1f9d58, var(--green)); color: #fff; }
    .btn-amber { background: linear-gradient(135deg, #f4a528, var(--amber)); color: #fff; }
    .btn-outline {
      background: rgba(255,255,255,.88);
      color: var(--accent);
      border: 1px solid rgba(11,94,215,.18);
      box-shadow: none;
    }

    main { padding: 18px 0 40px; }

    .hero-card {
      overflow: hidden;
      border-radius: calc(var(--radius) + 4px);
      box-shadow: 0 18px 36px rgba(2, 6, 23, .14);
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.08);
      margin-bottom: 16px;
    }

    .hero-banner {
      display: block;
      width: 100%;
      height: auto;
      background: var(--hero);
    }

    .hero-copy {
      background: rgba(255,255,255,.95);
      border-top: 1px solid var(--line);
      padding: 18px;
    }

    .hero-title {
      margin: 0 0 8px;
      font-size: clamp(1.7rem, 4vw, 2.5rem);
      line-height: 1.15;
      color: var(--brand-dark);
      font-weight: 1000;
      letter-spacing: -.3px;
    }

    .hero-desc {
      margin: 0;
      color: var(--muted);
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.7;
    }

    .hero-pills {
      margin-top: 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .hero-pill {
      padding: 9px 14px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 900;
      border: 1px solid rgba(11,94,215,.14);
      font-size: .95rem;
    }

    .page-card,
    .form-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-soft);
    }

    .page-card { padding: 22px; margin-bottom: 16px; }

    .page-title {
      margin: 0 0 12px;
      font-size: clamp(1.6rem, 3.5vw, 2.4rem);
      font-weight: 1000;
      line-height: 1.15;
      color: var(--ink);
      padding-bottom: 12px;
      border-bottom: 3px solid rgba(168,67,0,.85);
    }

    .lead { margin: 0 0 12px; font-size: 1.02rem; color: var(--ink); }
    .lead strong { font-weight: 1000; }

    .contact-list {
      display: grid;
      gap: 8px;
      margin: 10px 0 14px;
    }
    .contact-list a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 800;
    }
    .contact-list a:hover { text-decoration: underline; }

    form { display: grid; gap: 16px; }
    .form-card { padding: 20px; }

    .section-title {
      margin: 0 0 14px;
      color: var(--brand-dark);
      font-size: 1.12rem;
      font-weight: 1000;
      letter-spacing: -.15px;
    }

    .field-block + .field-block { margin-top: 18px; }

    label, legend {
      display: block;
      font-weight: 900;
      margin-bottom: 10px;
      font-size: 1.03rem;
      color: var(--ink);
    }

    .required::after { content: " *"; color: #d93025; font-weight: 1000; }

    /* =========================================================
       ✅ UPDATED INPUTS: match club-register.html (boxed + padded)
       ========================================================= */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
      width: 100%;
      padding: 12px 12px;            /* ✅ space on left */
      border: 1px solid var(--line); /* ✅ full border */
      border-radius: 14px;           /* ✅ rounded */
      background: rgba(255,255,255,.92);
      color: var(--ink);
      font: inherit;
      outline: none;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    select:focus,
    textarea:focus {
      border-color: rgba(11,94,215,.45);
      box-shadow: 0 0 0 4px rgba(11,94,215,.10);
    }

    textarea { min-height: 118px; resize: vertical; }

    /* Placeholder readability */
    ::placeholder{
      color: rgba(95,107,122,.78);
      font-weight: 650;
    }

    /* Keep select arrow clean */
    select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
      background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      padding-right: 40px;
      cursor: pointer;
    }

    .helper, .note, .small {
      margin-top: 8px;
      color: var(--muted);
      font-size: .96rem;
      font-weight: 650;
      line-height: 1.6;
    }

    fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

    .option-list { display: grid; gap: 12px; margin-top: 12px; }

    .option {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 34px;
      font-weight: 650;
      color: var(--ink);
    }

    .option input {
      width: 22px;
      height: 22px;
      margin: 0;
      flex: 0 0 auto;
      accent-color: var(--accent);
    }

    .inline-other { margin-top: 10px; display: none; }
    .inline-other.show { display: block; }

    .privacy {
      background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,251,253,.96));
    }

    .submit-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      margin-top: 20px;
    }

    .submit-row .btn { min-width: 150px; }

    .error { color: #b91c1c; font-weight: 800; margin-top: 8px; display: none; }
    .error.show { display: block; }

    .footer {
      padding: 22px 0 34px;
      color: var(--muted);
      font-weight: 700;
      text-align: center;
      font-size: .95rem;
    }

    /* Simple thank-you modal */
    #thankYouModal,
#registerThankYouModal{
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,.45);
      z-index: 9999;
      padding: 18px;
    }
    #thankYouModal .modal-card,
#registerThankYouModal .modal-card{
      background: #fff;
      border-radius: 18px;
      padding: 22px;
      width: min(420px, 100%);
      text-align: center;
      box-shadow: 0 18px 40px rgba(0,0,0,.22);
    }

    @media (max-width: 820px) {
      .container { width: min(100%, calc(100% - 18px)); }
      .topbar-inner { padding: 8px 0; align-items: flex-start; flex-direction: column; }
      .top-actions { width: 100%; }
      .top-actions .btn { flex: 1 1 auto; }
      .page-card, .form-card, .hero-copy { padding: 16px; }
    }

    @media (max-width: 560px) {
      .hero-banner {
        max-height: 185px;
        object-fit: cover;
        object-position: center;
      }
      .submit-row .btn { width: 100%; }
    }


/* === pages/club-register === */
/* =========================================================
       Club-register page ONLY
       (Do not redefine .container/.btn/.topbar here — use style.css)
       ========================================================= */

    /* Make sure nothing can push the page wider */
    .club-shell, .club-shell * { max-width: 100%; }
    .club-shell > * { min-width: 0; }
    .club-card, .form-card, .info-card, .success-card { min-width: 0; }

    /* Card look (match your site style but keep inside container) */
    .club-shell{
      display: grid;
      gap: 16px;
    }

    .club-card,
    .form-card,
    .info-card,
    .success-card{
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 22px;
      box-shadow: var(--shadow2);
      padding: 18px;
      overflow: hidden; /* prevents inner elements from spilling out */
    }

    .section-title{
      margin: 0 0 8px;
      font-size: 26px;
      font-weight: 1000;
      letter-spacing: -0.3px;
      color: var(--brand2);
    }

    .section-sub{
      margin: 0;
      color: rgba(15,23,42,.72);
      font-weight: 650;
      line-height: 1.7;
      overflow-wrap: anywhere;
    }

    /* Stream chooser */
    .club-options{
      margin-top: 16px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    @media (max-width: 980px){
      .club-options{ grid-template-columns: 1fr; }
    }

    .club-option{
      position: relative;
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 18px;
      background: rgba(255,255,255,.86);
      padding: 16px;
      cursor: pointer;
      transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
      min-width: 0;
    }
    .club-option:hover{
      transform: translateY(-1px);
      box-shadow: 0 12px 24px rgba(2, 6, 23, .08);
    }
    .club-option input[type="radio"]{
      position: absolute;
      top: 16px;
      right: 16px;
      width: 18px;
      height: 18px;
      accent-color: var(--brand);
      cursor: pointer;
    }
    .club-option.active{
      border-color: rgba(11,94,215,.35);
      background: rgba(11,94,215,.06);
      box-shadow: 0 12px 26px rgba(11,94,215,.10);
    }
    .club-badge{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: rgba(245,158,11,.14);
      border: 1px solid rgba(245,158,11,.22);
      font-size: 20px;
      margin-bottom: 10px;
      flex: 0 0 auto;
    }
    .club-option h3{
      margin: 0 0 8px;
      font-size: 18px;
      font-weight: 1000;
      color: rgba(15,23,42,.92);
      overflow-wrap: anywhere;
    }
    .club-option p{
      margin: 0;
      color: rgba(15,23,42,.72);
      font-weight: 650;
      line-height: 1.65;
      overflow-wrap: anywhere;
    }

    /* Primary subgroup */
    .subgroup-wrap{
      margin-top: 16px;
      padding: 14px;
      border-radius: 18px;
      background: rgba(11,94,215,.06);
      border: 1px solid rgba(11,94,215,.18);
      display: none;
    }
    .subgroup-wrap.show{ display: block; }

    .subgroup-title{
      margin: 0 0 10px;
      color: var(--brand2);
      font-weight: 1000;
    }
    .subgroup-grid{
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    @media (max-width: 760px){
      .subgroup-grid{ grid-template-columns: 1fr; }
    }
    .subgroup-item{
      display: flex;
      align-items: flex-start;
      gap: 10px;
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 16px;
      padding: 12px;
      cursor: pointer;
      min-width: 0;
    }
    .subgroup-item input{
      margin-top: 3px;
      accent-color: var(--brand);
      flex: 0 0 auto;
    }
    .subgroup-item span{ min-width: 0; }
    .subgroup-item b{
      display: block;
      margin-bottom: 2px;
      font-weight: 1000;
      color: rgba(15,23,42,.92);
    }
    .subgroup-item span{
      color: rgba(15,23,42,.72);
      font-weight: 650;
      line-height: 1.55;
      overflow-wrap: anywhere;
    }

    /* Form fields */
    .two-col{
      margin-top: 14px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
    @media (max-width: 900px){
      .two-col{ grid-template-columns: 1fr; }
    }

    .field-group label{
      display: block;
      margin-bottom: 6px;
      font-size: 14px;
      font-weight: 900;
      color: rgba(15,23,42,.90);
    }
    .field-group input,
    .field-group select,
    .field-group textarea{
      width: 100%;
      max-width: 100%;
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 14px;
      padding: 12px 12px;
      background: rgba(255,255,255,.92);
      font: inherit;
      color: var(--ink);
    }
    .field-group textarea{ min-height: 110px; resize: vertical; }

    /* Tools row */
    .register-tools{
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      justify-content: space-between;
      margin: 14px 0 12px;
    }
    .register-tools .tool-left,
    .register-tools .tool-right{
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      min-width: 0;
    }
    @media (max-width: 760px){
      .register-tools .tool-left,
      .register-tools .tool-right{ width: 100%; }
      .register-tools .btn{ width: 100%; }
    }

    /* Table: ALWAYS scroll inside wrapper, never push page */
    .table-wrap{
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 18px;
      background: rgba(255,255,255,.90);
    }
    table{
      border-collapse: collapse;
      width: max(980px, 100%); /* desktop fits; mobile scrolls */
    }
    thead{ background: rgba(11,94,215,.06); }
    th, td{
      border-bottom: 1px solid rgba(15,23,42,.10);
      padding: 10px;
      text-align: left;
      vertical-align: top;
    }
    th{
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
      color: rgba(15,23,42,.90);
    }
    td input, td select{
      width: 100%;
      max-width: 100%;
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 12px;
      padding: 10px;
      background: rgba(255,255,255,.96);
      font: inherit;
      min-width: 0;
    }
    .row-number{
      text-align: center;
      font-weight: 1000;
      color: rgba(15,23,42,.90);
      min-width: 40px;
    }
    .remove-btn{
      width: 100%;
      border: none;
      border-radius: 12px;
      padding: 10px 12px;
      background: rgba(220,38,38,.10);
      color: #b91c1c;
      font-weight: 900;
      cursor: pointer;
    }

    /* Consent */
    .consent-box{
      margin-top: 16px;
      padding: 16px;
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 18px;
      background: rgba(255,255,255,.78);
      display: grid;
      gap: 14px;
    }
    .check-line{
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: rgba(15,23,42,.72);
      font-weight: 650;
      line-height: 1.65;
      min-width: 0;
    }
    .check-line input{
      margin-top: 3px;
      accent-color: var(--brand);
      flex: 0 0 auto;
    }
    .small-note{
      margin: 0;
      color: rgba(15,23,42,.72);
      font-weight: 650;
      line-height: 1.65;
      font-size: 14px;
      overflow-wrap: anywhere;
    }

    /* Info grid */
    .info-grid{
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 14px;
    }
    @media (max-width: 980px){
      .info-grid{ grid-template-columns: 1fr; }
    }

    /* Success */
    .success-card{
      display: none;
      border-color: rgba(34,197,94,.28);
      background: rgba(34,197,94,.08);
    }
    .success-card strong{ font-weight: 1000; }

    /* ===== Nice Thank-you Modal (Club Register) ===== */
    #clubThankYouModal{
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,.45);
      z-index: 9999;
      padding: 18px;
    }

    #clubThankYouModal .modal-card{
      background: #fff;
      border-radius: 18px;
      padding: 22px;
      width: min(440px, 100%);
      text-align: center;
      box-shadow: 0 18px 40px rgba(0,0,0,.22);
      border: 1px solid rgba(0,0,0,.08);
    }

    #clubThankYouModal .modal-title{
      margin: 0 0 10px;
      font-size: 22px;
      font-weight: 1000;
      color: var(--brand2); /* coloured title */
    }

    #clubThankYouModal .modal-text{
      margin: 0 0 14px;
      color: rgba(15,23,42,.72);
      font-weight: 650;
      line-height: 1.6;
    }


/* === pages/vi === */
/* ✅ No subtitle under the brand name (index-only) */
    .brand-title span{ display:none !important; }

    /* ===== Accordion sections (index-only) ===== */
    details.acc{
      background: rgba(255,255,255,.82);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow2);
      margin: 0 0 12px;
      overflow:hidden;
      scroll-margin-top: 180px;
    }
    summary.acc-sum{
      list-style:none;
      cursor:pointer;
      padding: 14px 16px;
      font-weight: 1000;
      color: var(--brand2);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      user-select:none;
    }
    summary.acc-sum::-webkit-details-marker{ display:none; }
    .caret{ font-weight: 1000; opacity:.85; transition: transform .12s ease; }
    details[open] summary .caret{ transform: rotate(180deg); }
    .acc-body{ padding: 0 16px 16px; }

    .h2-center{
      margin: 14px 0 8px;
      text-align:center;
      font-size: 24px;
      font-weight: 1000;
      letter-spacing: -0.3px;
      color: var(--brand2);
    }
    .sub-center{
      margin: 0 0 14px;
      text-align:center;
      color: var(--muted);
      font-weight: 650;
    }

    .two-grid{
      display:grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 14px;
    }
    @media (max-width: 900px){
      .two-grid{ grid-template-columns: 1fr; }
    }

    .mini-card{
      background: rgba(255,255,255,.86);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 16px;
    }
    .mini-card h3{
      margin: 0 0 8px;
      color: #7a4a00;
      font-size: 18px;
      font-weight: 1000;
    }
    .mini-card ul{
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
      font-weight: 650;
      line-height: 1.7;
    }

    .link-strong{
      color: var(--brand2);
      font-weight: 1000;
      text-decoration:none;
      border-bottom: 1px solid rgba(11,94,215,.30);
    }
    .link-strong:hover{ border-bottom-color: rgba(11,94,215,.60); }

    /* ===== "What makes us different" block (index-only) ===== */
    .diff-wrap{
      background: rgba(255,255,255,.72);
      border: 1px solid var(--line);
      border-radius: calc(var(--radius) + 6px);
      box-shadow: var(--shadow2);
      padding: 18px;
    }
    .diff-head{
      text-align:center;
      padding: 8px 6px 6px;
    }
    .diff-title{
      margin: 0 0 8px;
      font-size: 34px;
      font-weight: 1100;
      letter-spacing: -0.4px;
      color: var(--brand2);
      display:flex;
      align-items:center;
      justify-content:center;
      gap: 10px;
      line-height: 1.15;
    }
    .diff-title .spark{
      font-size: 22px;
      line-height: 1;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: rgba(245,158,11,.15);
      border: 1px solid rgba(245,158,11,.28);
    }
    .diff-sub{
      margin: 0;
      color: var(--muted);
      font-weight: 700;
      line-height: 1.6;
      font-size: 17px;
    }

    .diff-note{
      margin: 14px auto 16px;
      max-width: 980px;
      background: rgba(11,94,215,.06);
      border: 1px solid rgba(11,94,215,.22);
      border-radius: 16px;
      padding: 12px 14px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .diff-note strong{
      color: var(--brand2);
      font-weight: 1100;
    }
    .diff-note .note-text{
      color: var(--muted);
      font-weight: 700;
      line-height: 1.55;
      flex: 1 1 520px;
      min-width: 240px;
    }
    .diff-note .note-link{
      white-space: nowrap;
      font-weight: 1100;
      text-decoration:none;
      color: var(--brand2);
      border-bottom: 1px solid rgba(11,94,215,.30);
    }
    .diff-note .note-link:hover{
      border-bottom-color: rgba(11,94,215,.60);
    }

    .diff-grid{
      display:grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 14px;
    }
    @media (max-width: 1100px){
      .diff-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 760px){
      .diff-grid{ grid-template-columns: 1fr; }
      .diff-title{ font-size: 28px; }
    }

    .diff-card{
      background: rgba(255, 248, 231, .92);
      border: 1px solid rgba(245,158,11,.30);
      border-radius: calc(var(--radius) + 6px);
      padding: 14px;
      box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
      min-height: 170px;
    }
    .diff-card .diff-top{
      display:flex;
      align-items:center;
      gap: 10px;
      margin-bottom: 8px;
    }
    .diff-ico{
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: rgba(255,255,255,.92);
      border: 1px solid rgba(245,158,11,.30);
      display:flex;
      align-items:center;
      justify-content:center;
      font-size: 22px;
      flex: 0 0 42px;
    }
    .diff-card h3{
      margin: 0;
      color: #cc7a00;
      font-size: 18px;
      font-weight: 1100;
      line-height: 1.15;
    }
    .diff-card p{
      margin: 0;
      color: var(--muted);
      font-weight: 700;
      line-height: 1.65;
    }


/* === pages/vi-about === */
/* HERO: remove square frame around logo (template default) */
    .hero-snap-logoBox{
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      border-radius: 0 !important;
    }
    .hero-snap-logoBox img{
      padding: 0 !important;
      border: none !important;
      box-shadow: none !important;
      background: transparent !important;
      border-radius: 0 !important;
    }
    .hero { padding: 22px 0 18px; }

    /* ===== TOP AREA (2 columns) ===== */
    .about-top-grid{
      display:grid;
      grid-template-columns: minmax(280px, 420px) 1fr; /* keep left from getting too wide */
      gap: 18px;
      align-items: stretch; /* both columns same height */
    }

    /* Left: make the founder card fill the full column height */
    .about-top-grid > .founder-card,
    .about-top-grid > .founder-card .card{
      height: 100%;
    }

    /* Right: 2 rows (story card + note) whose combined height equals left column */
    .right-stack{
      display: grid;
      grid-template-rows: 1fr auto; /* story fills, note natural height */
      gap: 14px;
      height: 100%;
    }
    .right-stack > .card{ height: 100%; }

    /* No sticky */
    .founder-card{
      position: static;
      top: auto;
    }

    /* Founder card styles */
    .founder-photo{
      border-radius: 18px;
      overflow:hidden;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.72);
    }
    .founder-photo img{
      width:100%;
      height:auto;
      display:block;
    }
    .founder-caption{
      padding: 12px 14px 14px;
      line-height: 1.6;
      font-weight: 750;
    }
    .founder-caption b{ display:block; font-size: 16px; margin-bottom: 6px; }

    .about-chips{ margin-top: 12px; display:flex; flex-wrap:wrap; gap:10px; }
    .about-chip{
      display:inline-block;
      padding: 6px 12px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 14px;
      line-height: 1;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.70);
    }

    /* Timeline list */
    .clean-list{
      margin: 0;
      padding-left: 20px;
      line-height: 1.8;
      font-weight: 650;
    }
    .clean-list li{ margin: 8px 0; }

    /* Note box */
    .note{
      background:#e7f4ff;
      border-left:6px solid #42a5f5;
      border-radius:14px;
      padding:14px 16px;
      font-weight: 750;
      line-height: 1.7;
    }

    /* Mini grid inside cards */
    .mini-grid{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
    @media (max-width: 780px){
      .mini-grid{ grid-template-columns: 1fr; }
    }

    .badge-row{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      margin-top: 10px;
    }
    .badge{
      display:inline-block;
      padding: 6px 10px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 13px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.70);
    }

    /* Make external links look like links (blue) */
    #real-world a{
      color: #1565c0 !important;
      font-weight: 800;
      text-decoration: underline;
    }
    #real-world a:hover{ text-decoration: none; }

    /* ===== QUICK LINKS ===== */
    .ql-btn.is-active{
      background: rgba(11,94,215,.18);
      border-color: rgba(11,94,215,.35);
      box-shadow: 0 10px 18px rgba(11,94,215,.12);
      color: var(--brand2);
    }

    html{ scroll-behavior: smooth; }

    @keyframes mmmFlash {
      0%   { box-shadow: 0 0 0 rgba(11,94,215,0); border-color: rgba(11,94,215,.12); }
      35%  { box-shadow: 0 0 0 6px rgba(11,94,215,.18); border-color: rgba(11,94,215,.55); }
      100% { box-shadow: 0 0 0 rgba(11,94,215,0); border-color: rgba(11,94,215,.12); }
    }
    .anchor-flash .card,
    .anchor-flash.card{
      animation: mmmFlash 1.15s ease;
    }

    .anchor-target{ scroll-margin-top: 120px; }

    /* ===== Section titles ===== */
    #founder-message .section-title{ color: #9E3201; }
    #qualifications  .section-title{ color: var(--brand2); }
    #real-world      .section-title{ color: #1565c0; }
    #background      .section-title{ color: #7a4a00; }
    #awards          .section-title{ color: #d97706; }
    #child-success   .section-title{ color: #15803d; }

    /* ✅ Make ALL card paragraph text span the full card width
       (your shared style.css likely sets .section-sub max-width for readability) */
    main.container .card .section-sub{
      max-width: none !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }

    /* Responsive: stack columns */
    @media (max-width: 980px){
      .about-top-grid{ grid-template-columns: 1fr; }
      .right-stack{ height: auto; grid-template-rows: auto; }
      .about-top-grid > .founder-card,
      .about-top-grid > .founder-card .card{ height: auto; }
    }


/* === pages/vi-contact === */
/* =========================
       FIX: keep hero + main the same width (even when zooming)
       ========================= */
    .hero{
      width: 100% !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      overflow-x: clip;
      padding: 22px 0 18px;
    }
    html, body{ max-width:100%; overflow-x: clip; }

    /* HERO: remove square frame around logo (template default) */
    .hero-snap-logoBox{
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      border-radius: 0 !important;
    }
    .hero-snap-logoBox img{
      padding: 0 !important;
      border: none !important;
      box-shadow: none !important;
      background: transparent !important;
      border-radius: 0 !important;
    }

    /* Buttons hover */
    .btn{
      transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
      will-change: transform, filter;
    }
    .btn:hover{
      transform: translateY(-1px);
      filter: brightness(0.96);
      box-shadow: 0 10px 22px rgba(2, 6, 23, .12);
    }

    /* Blue button */
    .btn-blue{
      background: #2563eb;
      color: #fff;
      border: 2px solid rgba(0,0,0,.10);
    }
    .btn-blue:hover{ filter: brightness(.96); }

    /* =========================
       Device-aware buttons (ROBUST)
       Desktop/Laptop: show .desktop-only (Gmail)
       Touch devices (phones/tablets): show .app-only (mailto)
       iPad: show BOTH (Gmail + App)
       ========================= */
    .desktop-only{ display: inline-flex !important; }
    .app-only{ display: none !important; }

    /* Phones/tablets (touch): prefer email app */
    @media (pointer: coarse){
      .desktop-only{ display: none !important; }
      .app-only{ display: inline-flex !important; }
    }

    /* iPad override: show Gmail button too */
    body.is-ipad .desktop-only{ display: inline-flex !important; }
    body.is-ipad .app-only{ display: inline-flex !important; }

    /* FORCE: contact cards full width, equal columns */
    .grid{
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 18px !important;
      width: 100% !important;
      max-width: none !important;
      align-items: stretch !important;
    }
    .grid > .card{
      width: 100% !important;
      max-width: none !important;
    }
    @media (max-width: 980px){
      .grid{ grid-template-columns: 1fr !important; }
    }

    /* QR/workflow layout */
    .qr-grid{
      display:grid;
      gap:18px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: stretch;
      width: 100%;
    }
    @media (max-width: 980px){
      .qr-grid{ grid-template-columns: 1fr; }
    }
    .qr-card{
      border-radius: 18px;
      padding: 18px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.75);
    }
    .qr-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
      margin-bottom: 10px;
    }
    .qr-title{
      margin:0;
      font-size: 22px;
      font-weight: 1000;
    }
    .qr-badge{
      display:inline-block;
      padding: 6px 10px;
      border-radius: 999px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.70);
      font-weight: 900;
      font-size: 13px;
      line-height: 1;
      white-space: nowrap;
    }
    .qr-body{
      display:grid;
      grid-template-columns: 150px 1fr;
      gap: 14px;
      align-items:center;
    }
    @media (max-width: 520px){
      .qr-body{ grid-template-columns: 1fr; }
    }
    .qr-img{
      width: 150px;
      height: 150px;
      object-fit: contain;
      border-radius: 14px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.75);
      padding: 10px;
    }
    .qr-actions{
      margin-top: 10px;
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }

    /* Contact details list */
    .contact-list{
      margin:0;
      padding-left: 18px;
      line-height: 1.8;
      font-weight: 650;
      opacity: .95;
    }

    /* Helper block */
    .help-box{
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      font-weight: 800;
      line-height: 1.55;
    }

    /* Anchor offset */
    [id]{ scroll-margin-top: 110px; }


/* === pages/vi-enquiry === */
/* Page-only bits */
    html, body { overflow-x:hidden; }

    /* Keep this page aligned with your site container */
    .wrap{
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 18px 40px;
    }

    /* Form card */
    .form-card{
      border: 1px solid rgba(0,0,0,.12);
      background:#fff;
      border-radius: 18px;
      overflow:hidden;
      box-shadow: 0 10px 26px rgba(0,0,0,.08);
    }
    .form-card-head{
      padding: 14px 16px;
      border-bottom: 1px solid rgba(0,0,0,.08);
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      flex-wrap:wrap;
    }
    .form-card-title{ margin:0; font-size: 18px; font-weight: 1000; }

    .iframe-wrap{
      position:relative;
      width:100%;
      padding-top: 135%; /* adjust height: try 120%–170% */
    }
    .iframe-wrap iframe{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      border:0;
    }

    /* Minor: make hero buttons sit nicely */
    .hero-snap-cta .btn{ margin: 0; }


/* === pages/vi-philosophy === */
/* Sections */
    .philo-list{
      margin: 0;
      padding-left: 20px;
      line-height: 1.85;
      font-weight: 650;
    }
    .philo-list li{ margin: 8px 0; }

    /* Teaching grid (uses your style.css grid/card vibe) */
    .teach-grid{
      display:grid;
      gap: 16px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-top: 10px;
    }
    @media (max-width: 1050px){
      .teach-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 700px){
      .teach-grid{ grid-template-columns: 1fr; }
    }

    /* Small note card */
    .note{
      background: rgba(255,255,255,.72);
      border: 2px solid rgba(0,0,0,.10);
      border-radius: 18px;
      padding: 14px 16px;
      font-weight: 750;
      line-height: 1.7;
    }

    /* ===== Quick links: “Programs-like” behaviour ===== */
    .ql-btn.is-active{
      background: rgba(11,94,215,.18);
      border-color: rgba(11,94,215,.35);
      box-shadow: 0 10px 18px rgba(11,94,215,.12);
      color: var(--brand2);
    }

    @keyframes mmmFlash {
      0%   { box-shadow: 0 0 0 rgba(11,94,215,0); border-color: rgba(11,94,215,.12); }
      35%  { box-shadow: 0 0 0 6px rgba(11,94,215,.18); border-color: rgba(11,94,215,.55); }
      100% { box-shadow: 0 0 0 rgba(11,94,215,0); border-color: rgba(11,94,215,.12); }
    }
    .anchor-flash.card{ animation: mmmFlash 1.15s ease; }

    /* Anchor jump offset (topbar height) */
    .anchor-target{ scroll-margin-top: 110px; }


/* === pages/vi-policies === */
/* HERO: remove square frame around logo (template default) */
    .hero-snap-logoBox{
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      border-radius: 0 !important;
    }
    .hero-snap-logoBox img{
      padding: 0 !important;
      border: none !important;
      box-shadow: none !important;
      background: transparent !important;
      border-radius: 0 !important;
    }
    .hero { padding: 22px 0 18px; }

    /* Summary card */
    .policy-summary{
      background:#eaf4ff;
      border:2px solid #9ec9ff;
      border-radius:18px;
      padding:16px 18px;
      box-shadow:0 6px 14px rgba(0,0,0,0.06);
    }
    .policy-summary h2{
      margin:0 0 10px;
      font-size: 22px;
      font-weight: 900;
    }
    .policy-summary ul{
      margin:0;
      padding-left: 20px;
      line-height:1.7;
      font-weight: 650;
    }

    /* Policy blocks */
    .policy-grid{
      display:grid;
      gap:18px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @media (max-width: 900px){
      .policy-grid{ grid-template-columns: 1fr; }
    }

    .policy-block{
      background: rgba(255,255,255,.72);
      border: 2px solid rgba(0,0,0,.10);
      border-radius:18px;
      padding: 18px;
      scroll-margin-top: 180px;
    }
    .policy-block h3{
      margin:0 0 10px;
      font-size: 20px;
      font-weight: 900;
    }
    .policy-block ul{
      margin:0;
      padding-left: 20px;
      line-height:1.7;
      font-weight: 650;
      opacity: .95;
    }

    /* Note */
    .policy-note{
      background:#e7f4ff;
      border-left:6px solid #42a5f5;
      border-radius:14px;
      padding:14px 16px;
      font-weight: 750;
      line-height: 1.7;
    }

    /* Language hint card */
    .lang-hint{
      margin-top: 14px;
      background: rgba(255,255,255,.72);
      border: 2px solid rgba(0,0,0,.10);
      border-radius:18px;
      padding: 14px 16px;
      font-weight: 750;
      line-height: 1.7;
    }

    /* Purple button (Email app) */
    .btn-purple{
      background: #7c3aed;
      color: #fff;
      border: 2px solid rgba(0,0,0,.10);
    }
    .btn-purple:hover{ filter: brightness(.96); }

    /* ✅ HARD GUARANTEE: Only one button shows (no matter what style.css does) */
    .policy-email-cta .desktop-only{ display: inline-flex !important; }
    .policy-email-cta .mobile-only{ display: none !important; }

    /* Touch devices with coarse pointer (iPhone/iPad): show Email app, hide Gmail */
    html[data-email-mode="touch"] .policy-email-cta .desktop-only{ display: none !important; }
    html[data-email-mode="touch"] .policy-email-cta .mobile-only{ display: inline-flex !important; }


/* === pages/vi-pricing === */
/* ===== Smooth jump ===== */
    html { scroll-behavior: smooth; }

    /* ===== Offset anchors so sticky topbar won't cover headings ===== */
    #detailed-fees, #maths-club-fee, #discounts-rewards { scroll-margin-top: 110px; }

    /* ==========================================================
       SECTION TITLES (match programs.html vibe)
       - bigger than body
       - coloured
       - consistent h3 sizing
       ========================================================== */
    .section-title{
      font-size: clamp(26px, 2.2vw, 34px);
      font-weight: 1000;
      letter-spacing: .2px;
      margin: 0 0 8px;
      color: #2563eb; /* default blue */
    }
    .section-sub{
      font-size: 16px;
      line-height: 1.6;
      opacity: .9;
      margin: 0 0 14px;
    }

    /* Card titles */
    .card h3, .qr-title, .club-card h3, .discount-card h3,
    .discount-card-wide h3, .discount-card-green h3, .info-card h3{
      font-size: clamp(18px, 1.4vw, 22px);
      font-weight: 1000;
      margin: 0 0 10px;
      color: #0b1a2b;
    }

    /* Section-specific accent colours */
    #detailed-fees .section-title{ color:#2563eb; } /* blue */
    #fees-glance .section-title{ color:#7c3aed; } /* purple */
    #maths-club-fee .section-title{ color:#16a34a; } /* green */
    #discounts-rewards .section-title{ color:#f59e0b; } /* amber */
    #policies-summary .section-title{ color:#0ea5e9; } /* sky */
    #cta-bottom .section-title{ color:#2563eb; } /* blue */

    /* ===== Chip-style LINKS (clickable only) ===== */
    .chip-links{ display:flex; flex-wrap:wrap; gap:10px; }
    .chip-link{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding: 10px 14px;
      border-radius: 999px;
      font-weight: 1000;
      font-size: 14px;
      line-height: 1;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.70);
      color: inherit;
      text-decoration: none;
      transition: background-color .14s ease, color .14s ease, transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    }
    .chip-link:hover{
      background: var(--brand);
      color: #fff;
      border-color: rgba(0,0,0,.10);
      transform: translateY(-1px);
      box-shadow: 0 10px 18px rgba(2, 6, 23, .12);
    }
    .chip-link:focus-visible{
      outline: 3px solid rgba(11, 94, 215, .45);
      outline-offset: 3px;
    }

    /* HERO: remove square frame around logo (template default) */
    .hero-snap-logoBox{ background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
    .hero-snap-logoBox img{ padding: 0 !important; border: none !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
    .hero { padding: 22px 0 18px; }

    /* ===== Button hover ===== */
    .btn{ transition: transform .12s ease, filter .12s ease, box-shadow .12s ease; will-change: transform, filter; }
    .btn:hover{ transform: translateY(-1px); filter: brightness(0.96); box-shadow: 0 10px 22px rgba(2, 6, 23, .12); }

    /* ===== Fees-at-a-glance cards ===== */
    .price-grid{ display:grid; gap:18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    @media (max-width: 1100px){ .price-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
    @media (max-width: 700px){ .price-grid{ grid-template-columns: 1fr; } }

    .price-card{
      border-radius: 18px;
      padding: 18px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.75);
      min-width: 0;
    }
    .price-card.featured{ border-width: 3px; box-shadow: 0 10px 22px rgba(0,0,0,.08); }
    .price-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom: 6px; min-width:0; }
    .price-top h3{ margin:0; font-size: 22px; }
    .kicker{
      display:inline-block;
      padding: 6px 10px;
      border-radius: 999px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      font-weight: 1000;
      font-size: 13px;
      line-height: 1.2;
      white-space: normal;
      text-align: center;
      max-width: 100%;
    }
    .price{
      font-size: 44px;
      font-weight: 1000;
      line-height: 1;
      margin: 10px 0 4px;
      overflow-wrap:anywhere;
    }
    .per{ opacity: .85; font-weight: 800; margin-bottom: 10px; line-height: 1.35; }
    .fee-chips{ display:flex; flex-wrap:wrap; gap:8px; margin: 8px 0 10px; }
    .fee-chip{
      display:inline-block;
      padding: 6px 10px;
      border-radius:999px;
      font-weight: 900;
      font-size: 13px;
      line-height: 1;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      overflow-wrap:anywhere;
    }
    .parents-get{
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      font-weight: 800;
      font-size: 15px;
      line-height: 1.5;
      overflow-wrap:anywhere;
    }

    /* ===== Important info box ===== */
    .imp-box{
      margin-top: 14px;
      background: #eaf4ff;
      border: 3px solid #9ec9ff;
      border-radius: 26px;
      padding: 18px 18px 16px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    }
    .imp-head{ display:flex; align-items:center; gap: 12px; margin: 0 0 10px; }
    .imp-pin{ font-size: 30px; line-height: 1; }
    .imp-title{
      margin: 0;
      font-size: 28px;
      font-weight: 900;
      letter-spacing: 0.2px;
      color:#1e40af;
    }
    .imp-list{
      margin: 0 0 12px;
      padding-left: 22px;
      font-size: 16px;
      line-height: 1.7;
      color: #222;
    }
    .imp-list li{ margin: 10px 0; }
    .imp-list b{ font-weight: 900; }
    .imp-footer{ margin: 0; font-size: 16px; line-height: 1.6; color: #222; }
    .imp-link{ font-weight: 900; text-decoration: none; border-bottom: 1px solid rgba(30,136,229,0.35); }

    /* ===== Pricing tool styles (SCOPED) ===== */
    .price-tool{
      --line: rgba(15, 23, 42, .10);
      --text: #0b1a2b;
      --muted: #4b6078;
      --accent: #2563eb;
      --accent2:#7c3aed;
      --online:#0ea5e9;
      --inperson:#f97316;
      --shadow: 0 10px 28px rgba(2, 8, 23, .10);
      --yellow:#FFE66D;
      --yellow2:#FFD54D;
    }
    .price-tool .wrap{ max-width: 1200px; margin: 0 auto; padding: 0; }
    .price-tool p{ margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
    .price-tool .bar{ display:flex; gap:12px; flex-wrap:wrap; align-items:stretch; margin:14px 0 18px; }
    .price-tool .seg{
      display:flex;
      gap:6px;
      align-items:center;
      background:rgba(255,255,255,.7);
      border:1px solid var(--line);
      border-radius:16px;
      padding:6px;
      box-shadow: 0 6px 16px rgba(2,8,23,.06);
      backdrop-filter: blur(8px);
    }
    .price-tool .seg button{
      border:0;
      background:transparent;
      padding:10px 12px;
      border-radius:12px;
      cursor:pointer;
      color:var(--muted);
      font-weight:900;
      font-size:16px;
      transition: transform .12s ease, background .12s ease, color .12s ease, outline .12s ease;
      white-space: nowrap;
    }
    .price-tool .seg button:hover{ transform: translateY(-1px); }
    .price-tool .seg button.active{
      color:#0b1a2b;
      background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(124,58,237,.12));
      outline:2px solid rgba(37,99,235,.22);
    }
    .price-tool .note{
      flex:1;
      min-width:300px;
      background:rgba(255,255,255,.78);
      border:1px solid var(--line);
      border-radius:16px;
      padding:12px 14px;
      box-shadow: 0 6px 16px rgba(2,8,23,.06);
      backdrop-filter: blur(8px);
    }
    .price-tool .badge-row{ display:flex; align-items:center; gap: 10px; flex-wrap:wrap; margin-bottom: 8px; }
    .price-tool .badge{
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-size:13px;
      font-weight:950;
      color:#0b1a2b;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid rgba(2,8,23,.10);
      background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(14,165,233,.10));
      white-space: nowrap;
    }
    .price-tool .badge.warn{ background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(245,158,11,.12)); }
    .price-tool .note strong{ color:#0b7a2a; }
    .price-tool .sub{ font-size:14px; color:var(--muted); margin-top:8px; line-height:1.35; }
    .price-tool .vceBox{
      min-width:280px;
      background:rgba(255,255,255,.78);
      border:1px solid var(--line);
      border-radius:16px;
      padding:12px 14px;
      box-shadow: 0 6px 16px rgba(2,8,23,.06);
      backdrop-filter: blur(8px);
      display:none;
    }
    .price-tool .vceBox .title{
      font-weight:1000;
      margin-bottom:8px;
      font-size:16px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      background-clip:text;
      color:transparent;
    }
    .price-tool .vceBox .hint{ font-size:14px; color:var(--muted); margin-top:8px; line-height:1.35; }

    /* TABLE */
    .price-tool table.fees-table{
      width:100%;
      border-collapse:separate;
      border-spacing:0;
      border-radius:18px;
      overflow:hidden;
      border:1px solid var(--line);
      box-shadow: var(--shadow);
      background: #fff;
      table-layout: fixed;
    }
    .price-tool table.fees-table thead th{
      padding:16px 12px;
      font-size:18px;
      font-weight:1000;
      text-align:left;
      color:#1f2937;
      border-bottom:1px solid rgba(2,8,23,.10);
      background: linear-gradient(180deg, var(--yellow), var(--yellow2));
    }
    .price-tool table.fees-table tbody td{
      padding:14px 12px;
      border-bottom:1px solid rgba(2,8,23,.08);
      vertical-align:top;
      font-size:16px;
      min-width:0;
      overflow-wrap:anywhere;
      word-break: break-word;
    }
    .price-tool table.fees-table tbody tr:last-child td{ border-bottom:0; }
    .price-tool tbody tr{ transition: transform .12s ease; }
    .price-tool tbody tr:hover{ transform: translateY(-1px); }
    .price-tool .program{ font-weight:1000; font-size:18px; }
    .price-tool .icon{ font-size:22px; }
    .price-tool .cells{
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      align-items: stretch;
    }
    .price-tool .pricebox{
      border:1px solid rgba(2,8,23,.10);
      border-radius:16px;
      padding:10px 12px;
      background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
      box-shadow: 0 8px 18px rgba(2,8,23,.08);
      transition: transform .12s ease, box-shadow .12s ease;
      height: 100%;
      min-width: 0;
    }
    .price-tool .pricebox:hover{ transform: translateY(-2px); box-shadow: 0 14px 26px rgba(2,8,23,.12); }
    .price-tool .price{ font-size:20px; font-weight:1000; }
    .price-tool .tag{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      margin-top:8px;
      font-weight:1000;
      font-size:12px;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid rgba(2,8,23,.10);
      width:fit-content;
      max-width: 100%;
      white-space: normal;
      line-height: 1.15;
      text-align:center;
    }
    .price-tool .tag.online{ color:#044b61; background: linear-gradient(135deg, rgba(14,165,233,.22), rgba(34,211,238,.14)); }
    .price-tool .tag.inperson{ color:#5a2608; background: linear-gradient(135deg, rgba(249,115,22,.24), rgba(245,158,11,.14)); }
    .price-tool .locked{
      border:1px dashed rgba(2,8,23,.25);
      border-radius:16px;
      padding:12px;
      background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(245,158,11,.06));
      color:var(--muted);
      min-width:0;
    }
    .price-tool .locked .label{ font-weight:1000; color:#1f2937; font-size:16px; }
    .price-tool .locked .small{ font-size:14px; margin-top:6px; line-height:1.35; }
    .price-tool .tool-footer{
      margin-top:14px;
      padding:14px;
      border:1px dashed rgba(37,99,235,.35);
      border-radius:16px;
      background: rgba(255,255,255,.72);
      color:var(--muted);
      line-height:1.5;
      box-shadow: 0 6px 16px rgba(2,8,23,.06);
      backdrop-filter: blur(8px);
      font-size:16px;
    }
    @media (max-width: 900px){ .price-tool .cells{ grid-template-columns: 1fr; } }
    @media (max-width: 880px){
      .price-tool table.fees-table thead th:nth-child(1){ display:none; }
      .price-tool table.fees-table tbody td:nth-child(1){ display:none; }
    }
    @media (max-width: 700px){
      .price-tool .seg button{ font-size: 14px; }
      .price-tool table.fees-table thead th{ font-size: 16px; }
    }

    /* ===== Value cards under table ===== */
    .triple-grid{
      margin-top: 14px;
      display:grid;
      gap: 14px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    @media (max-width: 950px){ .triple-grid{ grid-template-columns: 1fr; } }
    .info-card{
      background: rgba(255,255,255,.75);
      border: 2px solid rgba(0,0,0,.10);
      border-radius: 18px;
      padding: 18px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
      min-width:0;
    }
    .quote-box{
      margin: 10px 0 12px;
      background: rgba(255,255,255,0.65);
      border-radius: 16px;
      padding: 14px 14px;
      border-left: 6px solid rgba(37,99,235,.75);
      font-size: 16px;
      line-height: 1.45;
      color: #333;
    }
    .notes-box{
      background: rgba(255,255,255,0.65);
      border-radius: 16px;
      padding: 14px 14px;
      border-left: 6px solid rgba(37,99,235,.75);
    }
    .notes-box ul{ margin:0; padding-left: 20px; line-height: 1.7; }

    /* Maths Club + Discounts sections */
    .club-section, .discounts-section{
      margin-top: 16px;
      background: rgba(255,255,255,.75);
      border: 2px solid rgba(0,0,0,.10);
      border-radius: 18px;
      padding: 16px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    }
    .club-sub, .discounts-subtitle{
      text-align:center;
      margin: 0 0 14px;
      opacity: .9;
      line-height: 1.6;
    }
    .club-grid{ display:grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    @media (max-width: 850px){ .club-grid{ grid-template-columns: 1fr; } }
    .club-card{ background: rgba(255,255,255,.65); border: 2px solid rgba(0,0,0,.08); border-radius: 18px; padding: 16px 18px; }
    .price-lines{ margin: 0; line-height: 1.8; font-size: 16px; font-weight: 800; }
    .best-value{
      display:inline-block;
      margin-left: 8px;
      background: rgba(229,57,53,.95);
      color: #fff;
      padding: 5px 10px;
      border-radius: 999px;
      font-weight: 1000;
      font-size: 12px;
      vertical-align: middle;
    }

    .discounts-row{ display:flex; flex-wrap:wrap; gap: 14px; margin-bottom: 14px; }
    .discount-card{ flex: 1 1 290px; background: rgba(255,255,255,.65); border: 2px solid rgba(0,0,0,.08); border-radius: 14px; padding: 16px 18px; }
    .discount-card p, .discount-card ul{ font-size: 15px; margin: 0 0 8px 0; line-height: 1.55; }
    .discount-card ul{ padding-left: 20px; margin-top: 6px; }
    .example-box{
      margin-top: 10px;
      padding: 12px 14px;
      background: rgba(234,244,255,.85);
      border: 1px solid rgba(37,99,235,.25);
      border-radius: 10px;
      font-size: 14px;
      line-height: 1.55;
    }
    .discount-card-wide{ background: rgba(255,255,255,.65); border:2px solid rgba(0,0,0,.08); border-radius:14px; padding: 16px 18px; margin-bottom: 14px; }
    .discount-card-wide ul{ padding-left: 20px; margin: 8px 0 10px; line-height: 1.55; font-size: 15px; }
    .discount-card-green{ background: rgba(232,245,233,.85); border:2px solid rgba(46,125,50,.20); border-radius: 14px; padding: 16px 18px; }
    .discount-card-green ul{ padding-left: 20px; margin: 0; line-height: 1.55; font-size: 15px; }

    /* Bottom CTA row */
    .btn-row{ display:flex; justify-content:center; gap: 12px; flex-wrap:wrap; margin: 18px 0 6px; }

    /* Small policy list clean spacing */
    .policy-list{ margin:0; padding-left:18px; font-weight:650; line-height:1.7; opacity: .92; }


/* === pages/vi-programs === */
html{ scroll-behavior: smooth; }

    /* HERO: smaller padding for this page */
    /*.hero { padding: 22px 0 18px; }

    .prog-meta{ margin-top: 10px; display:flex; flex-wrap:wrap; gap:10px; }
    .prog-actions{ margin-top: 14px; display:flex; flex-wrap:wrap; gap:10px; }*/

    /* “Parents get” line (trust signal) */
    .parents-get{
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 2px solid rgba(0,0,0,.10);
      background: rgba(255,255,255,.65);
      font-weight: 800;
      font-size: 15px;
      line-height: 1.5;
    }

    /* ==================================
       Programs page: FUN titles + icons
       (Scoped so it won't affect other pages)
       ================================== */
    .page-programs .card{
      position: relative;
      overflow: hidden;
    }

    /* soft playful blobs */
    .page-programs .card::before{
      content:"";
      position:absolute;
      inset:-50px -60px auto auto;
      width:220px;
      height:220px;
      border-radius:999px;
      background: radial-gradient(circle at 30% 30%, rgba(11,94,215,.12), transparent 60%);
      transform: rotate(10deg);
      pointer-events:none;
    }
    .page-programs .card::after{
      content:"";
      position:absolute;
      inset:auto auto -60px -60px;
      width:240px;
      height:240px;
      border-radius:999px;
      background: radial-gradient(circle at 40% 40%, rgba(245,158,11,.14), transparent 62%);
      transform: rotate(-10deg);
      pointer-events:none;
    }

    .page-programs .prog-title{
      display:flex;
      align-items:center;
      gap:12px;
      margin-bottom: 8px;
    }
    .page-programs .prog-ico{
      width: 40px;
      height: 40px;
      border-radius: 14px;
      display:grid;
      place-items:center;
      font-size: 20px;
      font-weight: 900;
      border: 1px solid rgba(15,23,42,.12);
      background: rgba(255,255,255,.75);
      box-shadow: 0 10px 18px rgba(2, 6, 23, .08);
      flex: 0 0 auto;
    }

    /* Bigger title just on Programs */
    .page-programs .card h3{
      margin: 0;               /* handled by .prog-title */
      font-size: 24px;
      line-height: 1.15;
      letter-spacing: -0.2px;
      font-weight: 1000;
    }

    /* Theme colours */
    .page-programs .theme-catchup  h3{ color: var(--brand2); }
    .page-programs .theme-keepup   h3{ color: var(--success); }
    .page-programs .theme-getahead h3{ color: var(--accent); }
    .page-programs .theme-comp     h3{ color: #7c3aed; } /* violet */

    /* Icon bubble tint to match theme */
    .page-programs .theme-catchup  .prog-ico{ background: rgba(11,94,215,.10); }
    .page-programs .theme-keepup   .prog-ico{ background: rgba(22,163,74,.12); }
    .page-programs .theme-getahead .prog-ico{ background: rgba(245,158,11,.14); }
    .page-programs .theme-comp     .prog-ico{ background: rgba(124,58,237,.12); }

    /* Make chips look like “chips” on this page (not dark buttons) */
    .page-programs .prog-chip{
      background: rgba(255,255,255,.75);
      border-color: rgba(15,23,42,.12);
      color: var(--ink);
    }
    .page-programs a.card .prog-chip:hover{
      background: rgba(11,94,215,.10);
      color: var(--ink);
      border-color: rgba(11,94,215,.22);
    }


/* === pages/vi-register === */
:root {
      --bg: #efe7e3;
      --card: rgba(255,255,255,.96);
      --ink: #172033;
      --muted: #5f6b7a;
      --brand: #f28c28;
      --brand-dark: #a84300;
      --line: #e8d9cf;
      --accent: #0b5ed7;
      --accent-soft: rgba(11,94,215,.08);
      --hero: #08153e;
      --green: #138a48;
      --amber: #cc7a00;
      --red: #cf3d32;
      --radius: 18px;
      --shadow: 0 14px 34px rgba(2, 6, 23, .10);
      --shadow-soft: 0 8px 22px rgba(84, 37, 0, .06);
    }

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

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(900px 500px at 10% 0%, rgba(242,140,40,.10), transparent 55%),
        radial-gradient(900px 550px at 90% 6%, rgba(11,94,215,.08), transparent 58%),
        linear-gradient(180deg, #f5efec 0%, var(--bg) 100%);
      color: var(--ink);
      line-height: 1.55;
    }

    body.modal-open {
      overflow: hidden;
    }

    a { color: var(--accent); }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(10px);
      background: rgba(255,255,255,.84);
      border-bottom: 1px solid rgba(232, 217, 207, .9);
    }

    .container {
      width: min(1040px, calc(100% - 28px));
      margin: 0 auto;
    }

    .topbar-inner {
      min-height: 66px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--ink);
      font-weight: 1000;
      letter-spacing: -.2px;
    }

    .brand-logo {
      width: 40px;
      height: 40px;
      object-fit: contain;
      display: block;
    }

    .brand-title b {
      display: block;
      font-size: 1rem;
      line-height: 1.1;
    }

    .top-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 900;
      border: 0;
      cursor: pointer;
      transition: transform .12s ease, filter .12s ease, opacity .12s ease;
      box-shadow: 0 10px 20px rgba(2, 6, 23, .10);
      font: inherit;
    }

    .btn:hover {
      transform: translateY(-1px);
      filter: brightness(1.03);
    }

    .btn:disabled {
      opacity: .7;
      cursor: not-allowed;
      transform: none;
      filter: none;
    }

    .btn-success { background: linear-gradient(135deg, #1f9d58, var(--green)); color: #fff; }
    .btn-amber { background: linear-gradient(135deg, #f4a528, var(--amber)); color: #fff; }
    .btn-outline {
      background: rgba(255,255,255,.92);
      color: var(--accent);
      border: 1px solid rgba(11,94,215,.18);
      box-shadow: none;
    }

    main {
      padding: 18px 0 40px;
    }

    .hero-card {
      overflow: hidden;
      border-radius: calc(var(--radius) + 4px);
      box-shadow: 0 18px 36px rgba(2, 6, 23, .14);
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.08);
      margin-bottom: 16px;
    }

    .hero-banner {
      display: block;
      width: 100%;
      height: auto;
      background: var(--hero);
    }

    .hero-copy {
      background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,249,244,.96));
      border-top: 1px solid var(--line);
      padding: 20px;
    }

    .hero-title {
      margin: 0 0 8px;
      font-size: clamp(1.7rem, 4vw, 2.5rem);
      line-height: 1.15;
      color: var(--brand-dark);
      font-weight: 1000;
      letter-spacing: -.3px;
    }

    .hero-desc {
      margin: 0;
      color: var(--muted);
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.7;
    }

    .hero-pills {
      margin-top: 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .hero-pill {
      padding: 9px 14px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 900;
      border: 1px solid rgba(11,94,215,.14);
      font-size: .95rem;
    }

    .page-card,
    .form-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-soft);
    }

    .page-card {
      padding: 22px;
      margin-bottom: 16px;
      background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,250,247,.96));
    }

    .form-card {
      padding: 22px;
      position: relative;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,251,248,.97));
      border-top: 5px solid rgba(242,140,40,.55);
    }

    .form-card::after {
      content: "";
      position: absolute;
      right: -30px;
      top: -30px;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(242,140,40,.10), transparent 70%);
      pointer-events: none;
    }

    .page-title {
      margin: 0 0 12px;
      font-size: clamp(1.6rem, 3.5vw, 2.4rem);
      font-weight: 1000;
      line-height: 1.15;
      color: var(--ink);
      padding-bottom: 12px;
      border-bottom: 3px solid rgba(168,67,0,.85);
    }

    .lead {
      margin: 0 0 12px;
      font-size: 1.02rem;
      color: var(--ink);
    }

    .lead strong { font-weight: 1000; }

    .contact-list {
      display: grid;
      gap: 8px;
      margin: 10px 0 14px;
    }

    .contact-list a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 800;
    }

    .contact-list a:hover { text-decoration: underline; }

    .contact-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 12px 0 10px;
    }

    .contact-chip,
    .copy-mail-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 14px;
      border-radius: 999px;
      font: inherit;
      font-weight: 900;
      cursor: pointer;
      text-decoration: none;
      border: 1px solid rgba(11,94,215,.16);
      background: rgba(11,94,215,.06);
      color: var(--accent);
      box-shadow: none;
    }

    .contact-chip.secondary {
      background: rgba(31,157,88,.08);
      border-color: rgba(31,157,88,.18);
      color: var(--green);
    }

    .copy-mail-btn {
      background: rgba(242,140,40,.10);
      border-color: rgba(242,140,40,.18);
      color: var(--brand-dark);
    }

    .contact-chip:hover,
    .copy-mail-btn:hover {
      filter: brightness(1.02);
      transform: translateY(-1px);
    }

    .copy-note {
      margin: 4px 0 0;
      color: var(--green);
      font-weight: 700;
      min-height: 22px;
      font-size: .94rem;
    }

    form {
      display: grid;
      gap: 16px;
    }

    .section-title {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 16px;
      padding: 7px 12px;
      border-radius: 999px;
      color: var(--brand-dark);
      font-size: 1.02rem;
      font-weight: 1000;
      letter-spacing: -.1px;
      background: rgba(242,140,40,.10);
      box-shadow: inset 0 0 0 1px rgba(242,140,40,.10);
    }

    .field-block + .field-block {
      margin-top: 18px;
    }

    label,
    legend {
      display: block;
      font-weight: 900;
      margin-bottom: 10px;
      font-size: 1.03rem;
      color: var(--ink);
    }

    .required::after {
      content: " *";
      color: #d93025;
      font-weight: 1000;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
      width: 100%;
      border: 1.5px solid #d9dce5;
      border-radius: 14px;
      background: rgba(255,255,255,.98);
      padding: 14px 16px;
      font: inherit;
      color: var(--ink);
      outline: none;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
      transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    select:focus,
    textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(11,94,215,.08);
      background: #fff;
    }

    select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
      background-position:
        calc(100% - 20px) calc(1.2em + 2px),
        calc(100% - 14px) calc(1.2em + 2px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      padding: 14px 44px 14px 16px;
      cursor: pointer;
    }

    option {
      padding-left: 10px;
    }

    textarea {
      min-height: 130px;
      resize: vertical;
    }

    .helper,
    .note,
    .small {
      margin-top: 8px;
      color: var(--muted);
      font-size: .96rem;
      font-weight: 650;
      line-height: 1.6;
    }

    fieldset {
      margin: 0;
      padding: 0;
      border: 0;
      min-width: 0;
    }

    .option-list {
      display: grid;
      gap: 12px;
      margin-top: 12px;
    }

    .option {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 34px;
      font-weight: 650;
      color: var(--ink);
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(217,220,229,.72);
    }

    .option input {
      width: 22px;
      height: 22px;
      margin: 0;
      flex: 0 0 auto;
      accent-color: var(--accent);
    }

    .inline-other {
      margin-top: 10px;
      display: none;
    }

    .inline-other.show { display: block; }

    .privacy {
      background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
      border-top-color: rgba(11,94,215,.35);
    }

    .submit-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      margin-top: 20px;
    }

    .submit-row .btn { min-width: 160px; }

    .error {
      color: #b91c1c;
      font-weight: 800;
      margin-top: 8px;
      display: none;
    }

    .error.show { display: block; }

    .footer {
      padding: 22px 0 34px;
      color: var(--muted);
      font-weight: 700;
      text-align: center;
      font-size: .95rem;
    }

    /* Modal */
    .modal-backdrop[hidden] {
      display: none;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(15, 23, 42, .42);
      display: grid;
      place-items: center;
      padding: 18px;
    }

    .modal-card {
      width: min(100%, 460px);
      background: #fff;
      border-radius: 22px;
      padding: 22px;
      box-shadow: 0 28px 60px rgba(2, 6, 23, .24);
      border: 1px solid rgba(232, 217, 207, .9);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .modal-card::before {
      content: "";
      position: absolute;
      inset: 0 auto auto 0;
      width: 100%;
      height: 7px;
      background: linear-gradient(90deg, var(--brand), var(--accent), var(--green));
    }

    .modal-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(31,157,88,.10);
      color: var(--green);
      font-weight: 900;
      margin-bottom: 12px;
    }

    .modal-card h3 {
      margin: 0 0 10px;
      font-size: 1.35rem;
      color: var(--ink);
    }

    .modal-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
      font-weight: 650;
    }

    .modal-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      margin-top: 18px;
    }

    @media (max-width: 820px) {
      .container { width: min(100%, calc(100% - 18px)); }
      .topbar-inner { padding: 8px 0; align-items: flex-start; flex-direction: column; }
      .top-actions { width: 100%; }
      .top-actions .btn { flex: 1 1 auto; }
      .page-card, .form-card, .hero-copy, .modal-card { padding: 16px; }
      .contact-actions { flex-direction: column; align-items: stretch; }
    }

    @media (max-width: 560px) {
      .hero-banner {
        max-height: 185px;
        object-fit: cover;
        object-position: center;
      }
      .submit-row .btn,
      .modal-actions .btn {
        width: 100%;
      }
    }


/* === pages/demo === */
body{font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif;background:#f3f7f5;margin:0;padding:24px;}
    .card{max-width:780px;margin:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 10px 26px rgba(0,0,0,.08);}
    h1{margin:0 0 10px;color:#0b5ed7;font-weight:1000;}
    p{margin:0 0 16px;color:#555;font-weight:650;line-height:1.6;}
    .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
    @media (max-width:720px){.grid{grid-template-columns:1fr;}}
    a.level{
      display:block;padding:16px;border-radius:16px;text-decoration:none;
      border:1px solid rgba(11,94,215,.20);background:rgba(11,94,215,.06);
      color:#0b5ed7;font-weight:900;
    }
    a.level:hover{border-color:rgba(11,94,215,.40);background:rgba(11,94,215,.09);}
    .small{margin-top:14px;color:#666;font-weight:600;font-size:14px;line-height:1.6;}
    .cta{margin-top:16px;padding:14px;border-radius:14px;background:#fff7e8;border:1px solid rgba(245,158,11,.35);}
    .cta a{color:#7a4a00;font-weight:1000;text-decoration:none;border-bottom:1px solid rgba(122,74,0,.35);}
    .cta a:hover{border-bottom-color:rgba(122,74,0,.7);}


/* === pages/demo-Prep#U20132 === */
body{
      font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
      background:#f3f7f5;
      margin:0;
      padding:24px;
    }
    .card{
      max-width:820px;
      margin:auto;
      background:#fff;
      border-radius:18px;
      padding:22px;
      box-shadow:0 10px 26px rgba(0,0,0,.08);
    }
    h1{margin:0 0 10px;color:#0b5ed7;font-weight:1000;}
    .pill{
      display:inline-block;
      padding:6px 10px;
      border-radius:999px;
      background:rgba(11,94,215,.08);
      border:1px solid rgba(11,94,215,.18);
      color:#0b5ed7;
      font-weight:900;
      margin-bottom:10px;
    }
    .intro{color:#555;font-weight:650;line-height:1.6;margin-bottom:10px;}
    .q{font-size:20px;font-weight:900;margin:14px 0 10px;}

    label{display:block;margin-bottom:6px;font-weight:800;color:#334155;}
    input,select{
      width:100%;
      padding:12px;
      font-size:16px;
      border-radius:12px;
      border:1px solid #ccc;
      box-sizing:border-box;
      background:#fff;
    }

    .row2{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:24px;
      margin-bottom:14px;
    }
    .field{margin-bottom:14px;}
    @media (max-width:720px){ .row2{grid-template-columns:1fr;} }

    .btnrow{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin-top:12px;
    }
    button{
      padding:12px 16px;
      font-size:16px;
      font-weight:900;
      border-radius:12px;
      border:none;
      background:#0b5ed7;
      color:#fff;
      cursor:pointer;
    }
    button.secondary{
      background:#eef2ff;
      color:#0b5ed7;
    }
    button:disabled{opacity:.55;cursor:not-allowed;}

    /* Start screen: consistent widths for Start + Back */
    #startButtons button{ flex: 1 1 240px; }

    .feedback{
      margin-top:12px;
      padding:12px;
      border-radius:12px;
      font-weight:800;
      line-height:1.5;
    }
    .ok{background:#e8fff0;border:1px solid #9be7b2;}
    .bad{background:#fff0f0;border:1px solid #f2a6a6;}

    .hide{display:none;}
    .note{
      margin-top:10px;
      color:#64748b;
      font-weight:650;
      font-size:14px;
      line-height:1.6;
    }
    .hint{
      margin-top:10px;
      color:#475569;
      font-weight:750;
      font-size:14px;
      line-height:1.6;
    }

    .cta{
      margin-top:16px;
      padding:16px;
      border-radius:14px;
      background:#fff7e8;
      border:1px solid rgba(245,158,11,.35);
      color:#555;
      font-weight:700;
    }

    .resultBox{
      margin-top:16px;
      padding:14px;
      border-radius:14px;
      background:rgba(11,94,215,.05);
      border:1px solid rgba(11,94,215,.18);
    }
    .resultTitle{
      font-weight:1000;
      color:#0b5ed7;
      margin-bottom:6px;
    }

    canvas{
      width:100%;
      height:240px;
      background:#fff;
      border-radius:12px;
      border:1px solid rgba(0,0,0,.12);
      margin-top:8px;
    }

    ul{margin:6px 0 0 18px;}
    li{margin-bottom:6px;}

    .footer{
      margin-top:18px;
      padding-top:12px;
      border-top:1px dashed #ccc;
      text-align:center;
      color:#666;
      font-weight:650;
    }

    .toggleRow{
      display:flex;
      align-items:center;
      gap:10px;
      margin-top:12px;
      padding:10px 12px;
      border-radius:12px;
      background:#fff;
      border:1px solid rgba(2,6,23,.12);
    }
    .toggleRow input{width:auto; transform:scale(1.2);}
    .toggleRow label{margin:0;font-weight:800;}

    /* ===== PRINT STYLES ===== */
    .printReport{ display:none; }
    @media print{
      body{ background:#fff; padding:0; }
      .card{ box-shadow:none; padding:0; max-width:none; border-radius:0; }
      .card > *:not(#printReport){ display:none !important; }
      #printReport{
        display:block !important;
        padding:18px;
        font-size:14px;
        line-height:1.6;
      }
      #printReport h2, #printReport h3 { color:#000; margin: 10px 0 6px; }
      #printReport .small { color:#333; font-size:13px; }
      #printReport ul{ margin-left:18px; }
      #printReport .divider{ border-top:1px solid #ddd; margin:12px 0; }
    }


/* === pages/demo-3-6 === */
body{
      font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
      background:#f3f7f5;
      margin:0;
      padding:24px;
    }
    .card{
      max-width:820px;
      margin:auto;
      background:#fff;
      border-radius:18px;
      padding:22px;
      box-shadow:0 10px 26px rgba(0,0,0,.08);
    }
    h1{margin:0 0 10px;color:#0b5ed7;font-weight:1000;}
    .pill{
      display:inline-block;
      padding:6px 10px;
      border-radius:999px;
      background:rgba(11,94,215,.08);
      border:1px solid rgba(11,94,215,.18);
      color:#0b5ed7;
      font-weight:900;
      margin-bottom:10px;
    }
    .intro{color:#555;font-weight:650;line-height:1.6;margin-bottom:10px;}
    .q{font-size:20px;font-weight:900;margin:14px 0 10px;}

    label{display:block;margin-bottom:6px;font-weight:800;color:#334155;}
    input,select{
      width:100%;
      padding:12px;
      font-size:16px;
      border-radius:12px;
      border:1px solid #ccc;
      box-sizing:border-box;
      background:#fff;
    }

    .row2{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:24px;
      margin-bottom:14px;
    }
    .field{margin-bottom:14px;}
    @media (max-width:720px){ .row2{grid-template-columns:1fr;} }

    .btnrow{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin-top:12px;
    }
    button{
      padding:12px 16px;
      font-size:16px;
      font-weight:900;
      border-radius:12px;
      border:none;
      background:#0b5ed7;
      color:#fff;
      cursor:pointer;
    }
    button.secondary{background:#eef2ff;color:#0b5ed7;}
    button:disabled{opacity:.55;cursor:not-allowed;}

    /* Start screen: consistent widths for Start + Back */
    #startButtons button{ flex: 1 1 240px; }

    .feedback{
      margin-top:12px;
      padding:12px;
      border-radius:12px;
      font-weight:800;
      line-height:1.5;
    }
    .ok{background:#e8fff0;border:1px solid #9be7b2;}
    .bad{background:#fff0f0;border:1px solid #f2a6a6;}

    .hide{display:none;}
    .note{
      margin-top:10px;
      color:#64748b;
      font-weight:650;
      font-size:14px;
      line-height:1.6;
    }
    .hint{
      margin-top:10px;
      color:#475569;
      font-weight:750;
      font-size:14px;
      line-height:1.6;
    }

    .cta{
      margin-top:16px;
      padding:16px;
      border-radius:14px;
      background:#fff7e8;
      border:1px solid rgba(245,158,11,.35);
      color:#555;
      font-weight:700;
    }

    .resultBox{
      margin-top:16px;
      padding:14px;
      border-radius:14px;
      background:rgba(11,94,215,.05);
      border:1px solid rgba(11,94,215,.18);
    }
    .resultTitle{font-weight:1000;color:#0b5ed7;margin-bottom:6px;}

    canvas{
      width:100%;
      height:240px;
      background:#fff;
      border-radius:12px;
      border:1px solid rgba(0,0,0,.12);
      margin-top:8px;
    }

    ul{margin:6px 0 0 18px;}
    li{margin-bottom:6px;}

    .footer{
      margin-top:18px;
      padding-top:12px;
      border-top:1px dashed #ccc;
      text-align:center;
      color:#666;
      font-weight:650;
    }

    .toggleRow{
      display:flex;
      align-items:center;
      gap:10px;
      margin-top:12px;
      padding:10px 12px;
      border-radius:12px;
      background:#fff;
      border:1px solid rgba(2,6,23,.12);
    }
    .toggleRow input{width:auto; transform:scale(1.2);}
    .toggleRow label{margin:0;font-weight:800;}

    /* ===== Fraction input row (2nd input type) ===== */
    .fracRow{display:flex;align-items:center;gap:10px;}
    .fracRow input{
      width:100%;
      text-align:center;
      font-weight:900;
      font-size:16px;
    }
    .fracSlash{font-weight:1000;color:#334155;padding:0 2px;user-select:none;}
    .fracHint{margin-top:6px;color:#64748b;font-weight:650;font-size:14px;line-height:1.5;}

    /* ===== PRINT STYLES ===== */
    .printReport{ display:none; }
    @media print{
      body{ background:#fff; padding:0; }
      .card{ box-shadow:none; padding:0; max-width:none; border-radius:0; }
      .card > *:not(#printReport){ display:none !important; }
      #printReport{
        display:block !important;
        padding:18px;
        font-size:14px;
        line-height:1.6;
      }
      #printReport h2, #printReport h3 { color:#000; margin: 10px 0 6px; }
      #printReport .small { color:#333; font-size:13px; }
      #printReport ul{ margin-left:18px; }
      #printReport .divider{ border-top:1px solid #ddd; margin:12px 0; }
    }


/* === pages/demo-7-10 === */
body{
      font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
      background:#f3f7f5;
      margin:0;
      padding:24px;
    }
    .card{
      max-width:820px;
      margin:auto;
      background:#fff;
      border-radius:18px;
      padding:22px;
      box-shadow:0 10px 26px rgba(0,0,0,.08);
    }
    h1{margin:0 0 10px;color:#0b5ed7;font-weight:1000;}
    .pill{
      display:inline-block;
      padding:6px 10px;
      border-radius:999px;
      background:rgba(11,94,215,.08);
      border:1px solid rgba(11,94,215,.18);
      color:#0b5ed7;
      font-weight:900;
      margin-bottom:10px;
    }
    .intro{color:#555;font-weight:650;line-height:1.6;margin-bottom:10px;}
    .q{font-size:20px;font-weight:900;margin:14px 0 10px;}

    label{display:block;margin-bottom:6px;font-weight:800;color:#334155;}
    input,select{
      width:100%;
      padding:12px;
      font-size:16px;
      border-radius:12px;
      border:1px solid #ccc;
      box-sizing:border-box;
      background:#fff;
    }

    .row2{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:24px;
      margin-bottom:14px;
    }
    .field{margin-bottom:14px;}
    @media (max-width:720px){ .row2{grid-template-columns:1fr;} }

    .btnrow{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin-top:12px;
    }
    button{
      padding:12px 16px;
      font-size:16px;
      font-weight:900;
      border-radius:12px;
      border:none;
      background:#0b5ed7;
      color:#fff;
      cursor:pointer;
    }
    button.secondary{
      background:#eef2ff;
      color:#0b5ed7;
    }
    button:disabled{opacity:.55;cursor:not-allowed;}

    /* Start screen: consistent widths for Start + Back */
    #startButtons button{ flex: 1 1 240px; }

    .feedback{
      margin-top:12px;
      padding:12px;
      border-radius:12px;
      font-weight:800;
      line-height:1.5;
    }
    .ok{background:#e8fff0;border:1px solid #9be7b2;}
    .bad{background:#fff0f0;border:1px solid #f2a6a6;}

    .hide{display:none;}
    .note{
      margin-top:10px;
      color:#64748b;
      font-weight:650;
      font-size:14px;
      line-height:1.6;
    }
    .hint{
      margin-top:10px;
      color:#475569;
      font-weight:750;
      font-size:14px;
      line-height:1.6;
    }

    .cta{
      margin-top:16px;
      padding:16px;
      border-radius:14px;
      background:#fff7e8;
      border:1px solid rgba(245,158,11,.35);
      color:#555;
      font-weight:700;
    }

    .resultBox{
      margin-top:16px;
      padding:14px;
      border-radius:14px;
      background:rgba(11,94,215,.05);
      border:1px solid rgba(11,94,215,.18);
    }
    .resultTitle{
      font-weight:1000;
      color:#0b5ed7;
      margin-bottom:6px;
    }

    canvas{
      width:100%;
      height:240px;
      background:#fff;
      border-radius:12px;
      border:1px solid rgba(0,0,0,.12);
      margin-top:8px;
    }

    ul{margin:6px 0 0 18px;}
    li{margin-bottom:6px;}

    .footer{
      margin-top:18px;
      padding-top:12px;
      border-top:1px dashed #ccc;
      text-align:center;
      color:#666;
      font-weight:650;
    }

    .toggleRow{
      display:flex;
      align-items:center;
      gap:10px;
      margin-top:12px;
      padding:10px 12px;
      border-radius:12px;
      background:#fff;
      border:1px solid rgba(2,6,23,.12);
    }
    .toggleRow input{width:auto; transform:scale(1.2);}
    .toggleRow label{margin:0;font-weight:800;}

    /* ===== Fraction input row (2nd input type) ===== */
    .fracRow{display:flex;align-items:center;gap:10px;}
    .fracRow input{
      width:100%;
      text-align:center;
      font-weight:900;
      font-size:16px;
    }
    .fracSlash{font-weight:1000;color:#334155;padding:0 2px;user-select:none;}
    .fracHint{margin-top:6px;color:#64748b;font-weight:650;font-size:14px;line-height:1.5;}

    /* ===== PRINT STYLES ===== */
    .printReport{ display:none; }
    @media print{
      body{ background:#fff; padding:0; }
      .card{ box-shadow:none; padding:0; max-width:none; border-radius:0; }
      .card > *:not(#printReport){ display:none !important; }
      #printReport{
        display:block !important;
        padding:18px;
        font-size:14px;
        line-height:1.6;
      }
      #printReport h2, #printReport h3 { color:#000; margin: 10px 0 6px; }
      #printReport .small { color:#333; font-size:13px; }
      #printReport ul{ margin-left:18px; }
      #printReport .divider{ border-top:1px solid #ddd; margin:12px 0; }
    }


/* === pages/demo-11-12 === */
body{
      font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
      background:#f3f7f5;
      margin:0;
      padding:24px;
    }
    .card{
      max-width:820px;
      margin:auto;
      background:#fff;
      border-radius:18px;
      padding:22px;
      box-shadow:0 10px 26px rgba(0,0,0,.08);
    }
    h1{margin:0 0 10px;color:#0b5ed7;font-weight:1000;}
    .pill{
      display:inline-block;
      padding:6px 10px;
      border-radius:999px;
      background:rgba(11,94,215,.08);
      border:1px solid rgba(11,94,215,.18);
      color:#0b5ed7;
      font-weight:900;
      margin-bottom:10px;
    }
    .intro{color:#555;font-weight:650;line-height:1.6;margin-bottom:10px;}

    .disclaimer{
      background:#fff7e8;
      border:1px solid rgba(245,158,11,.35);
      border-radius:14px;
      padding:12px;
      color:#555;
      font-weight:750;
      line-height:1.6;
      margin: 10px 0 14px;
    }

    .q{font-size:20px;font-weight:900;margin:14px 0 10px;}

    label{display:block;margin-bottom:6px;font-weight:800;color:#334155;}
    input,select{
      width:100%;
      padding:12px;
      font-size:16px;
      border-radius:12px;
      border:1px solid #ccc;
      box-sizing:border-box;
      background:#fff;
    }

    .row2{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:14px;}
    .field{margin-bottom:14px;}
    @media (max-width:720px){ .row2{grid-template-columns:1fr;} }

    .btnrow{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin-top:12px;
    }
    button{
      padding:12px 16px;
      font-size:16px;
      font-weight:900;
      border-radius:12px;
      border:none;
      background:#0b5ed7;
      color:#fff;
      cursor:pointer;
    }
    button.secondary{
      background:#eef2ff;
      color:#0b5ed7;
    }
    button:disabled{opacity:.55;cursor:not-allowed;}

    /* Start screen: consistent widths for Start + Back */
    #startButtons button{ flex: 1 1 240px; }

    .feedback{
      margin-top:12px;
      padding:12px;
      border-radius:12px;
      font-weight:800;
      line-height:1.5;
    }
    .ok{background:#e8fff0;border:1px solid #9be7b2;}
    .bad{background:#fff0f0;border:1px solid #f2a6a6;}

    .hint{margin-top:10px;color:#475569;font-weight:750;font-size:14px;line-height:1.6;}
    .hide{display:none;}
    .note{margin-top:10px;color:#64748b;font-weight:650;font-size:14px;line-height:1.6;}

    .cta{
      margin-top:16px;
      padding:16px;
      border-radius:14px;
      background:#f6f9ff;
      border:1px solid rgba(11,94,215,.18);
      color:#555;
      font-weight:700;
    }

    .resultBox{
      margin-top:16px;
      padding:14px;
      border-radius:14px;
      background:rgba(11,94,215,.05);
      border:1px solid rgba(11,94,215,.18);
    }
    .resultTitle{font-weight:1000;color:#0b5ed7;margin-bottom:6px;}

    canvas{
      width:100%;
      height:240px;
      background:#fff;
      border-radius:12px;
      border:1px solid rgba(0,0,0,.12);
      margin-top:8px;
    }

    ul{margin:6px 0 0 18px;}
    li{margin-bottom:6px;}

    .footer{
      margin-top:18px;
      padding-top:12px;
      border-top:1px dashed #ccc;
      text-align:center;
      color:#666;
      font-weight:650;
    }

    .toggleRow{
      display:flex;
      align-items:center;
      gap:10px;
      margin-top:12px;
      padding:10px 12px;
      border-radius:12px;
      background:#fff;
      border:1px solid rgba(2,6,23,.12);
    }
    .toggleRow input{width:auto; transform:scale(1.2);}
    .toggleRow label{margin:0;font-weight:800;}

    /* ===== PRINT STYLES ===== */
    .printReport{ display:none; }
    @media print{
      body{ background:#fff; padding:0; }
      .card{ box-shadow:none; padding:0; max-width:none; border-radius:0; }
      .card > *:not(#printReport){ display:none !important; }
      #printReport{
        display:block !important;
        padding:18px;
        font-size:14px;
        line-height:1.6;
      }
      #printReport h2, #printReport h3 { color:#000; margin: 10px 0 6px; }
      #printReport .small { color:#333; font-size:13px; }
      #printReport ul{ margin-left:18px; }
      #printReport .divider{ border-top:1px solid #ddd; margin:12px 0; }
    }


/* === 2026-03 responsive/header-footer/pricing sync overrides === */
:root{--site-max:1120px;--site-gutter:clamp(18px,3.2vw,40px);}
.container{width:min(var(--site-max), calc(100% - (var(--site-gutter) * 2))) !important;max-width:none !important;margin-inline:auto;}
.premium-topbar,.premium-footer{width:100%;}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:clamp(12px,2vw,24px);flex-wrap:wrap;padding-block:clamp(10px,1.4vw,16px);}
.brand{flex:0 1 auto;min-width:0;}
.brand-title{min-width:0;}
.nav-wrap{flex:1 1 680px;display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0;}
.premium-nav{display:flex !important;flex:1 1 auto;flex-wrap:wrap;justify-content:flex-end;gap:10px;}
.premium-nav a,.nav-login{font-size:clamp(.95rem,1.35vw,1.15rem);padding:.7em 1.1em;line-height:1.1;}
.lang-menu{flex:0 0 auto;position:relative;}
.lang-btn{min-height:52px;}
.lang-dropdown{right:0;left:auto;}
.footer-grid{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:clamp(18px,2.4vw,30px);padding-block:clamp(24px,3vw,36px) clamp(16px,2vw,22px);}
.footer-bottom{padding-block:16px 28px;}
@media (max-width:1080px){.topbar-inner{align-items:flex-start;}.nav-wrap{flex-basis:100%;justify-content:flex-start;}.premium-nav{justify-content:flex-start;}}
@media (max-width:820px){.brand{width:100%;}.nav-wrap{width:100%;justify-content:space-between;}.premium-nav{width:100%;justify-content:flex-start;}}
@media (max-width:680px){.premium-nav a,.nav-login{font-size:.95rem;padding:.72em .95em;}.footer-grid{grid-template-columns:1fr;}}
#sec_freedemo .club-highlight,#sec_mathclub .club-highlight{text-align:center;padding:24px;overflow:hidden;}
.club-eyebrow{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:fit-content;max-width:100%;margin:0 auto 18px;padding:12px 22px;border-radius:999px;background:linear-gradient(135deg,#fff7df,#fff0bf);border:3px solid rgba(245,158,11,.34);color:#7b5600;font-weight:1100;font-size:clamp(16px,1.8vw,22px);line-height:1.15;letter-spacing:.02em;text-transform:uppercase;box-shadow:0 10px 22px rgba(245,158,11,.20);animation:badgePulse 2.5s ease-in-out infinite;}
.club-eyebrow::before{content:"⭐ ⭐";letter-spacing:.14em;}
.club-banner{position:relative;overflow:hidden;margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:18px 24px;border-radius:999px;background:linear-gradient(135deg,#fff7df,#fff0bf);border:3px solid rgba(245,158,11,.34);box-shadow:0 18px 34px rgba(245,158,11,.16);}
.club-banner::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg, transparent 0%, rgba(255,255,255,.34) 46%, transparent 62%);transform:translateX(-120%);animation:clubBannerSweep 4.5s ease-in-out infinite;}
.club-banner__lead,.club-banner__actions{position:relative;z-index:1;}
.club-banner__lead{display:flex;align-items:center;gap:14px;flex:1 1 auto;min-width:0;color:#7b5600;font-size:clamp(18px,2vw,26px);font-weight:1100;line-height:1.2;text-transform:uppercase;}
.club-banner__actions{display:flex;align-items:center;gap:12px;flex:0 0 auto;}
.club-banner .btn{white-space:nowrap;}
@media (max-width:920px){.club-banner{border-radius:28px;flex-direction:column;text-align:center;}.club-banner__lead,.club-banner__actions{justify-content:center;}}


/* === patch: responsive fixes and form controls === */

:root{
  --max: 1240px;
}

.container{
  width: min(var(--max), calc(100vw - 28px));
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 18px;
}

input[type="radio"],
input[type="checkbox"]{
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-block !important;
  vertical-align: middle;
}
input[type="checkbox"]{
  border-radius: 4px !important;
}

.club-banner{
  width: 100%;
  margin-top: 18px;
  gap: 18px;
  padding: 20px 24px;
  flex-wrap: nowrap;
  border-radius: 999px;
}
.club-banner__lead{
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(16px, 1.7vw, 24px);
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}
.club-banner__actions{
  flex: 0 0 auto;
  white-space: nowrap;
}
.club-banner .btn{
  white-space: nowrap;
  font-size: clamp(16px, 1.4vw, 20px);
}

.club-eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 14px 28px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.page-club-register .club-shell,
.page-club-register .club-card,
.page-club-register .form-card,
.page-club-register .info-card,
.page-club-register .success-card{
  width: 100%;
  max-width: 100%;
}
.page-club-register .club-options{
  align-items: stretch;
}
.page-club-register .club-option{
  min-height: 0;
}
.page-club-register .club-option input[type="radio"]{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 50% !important;
}
.page-club-register .subgroup-wrap{
  width: 100%;
}
.page-club-register .subgroup-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: start !important;
}
.page-club-register .subgroup-item{
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  padding: 14px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
.page-club-register .subgroup-item input[type="radio"]{
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 50% !important;
}
.page-club-register .subgroup-copy,
.page-club-register .subgroup-item span{
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  color: rgba(15,23,42,.72) !important;
  line-height: 1.55 !important;
  font-weight: 650 !important;
}
.page-club-register .subgroup-item b{
  display: block !important;
  margin-bottom: 4px !important;
  color: rgba(15,23,42,.92) !important;
  font-weight: 1000 !important;
}
.page-club-register .required::after{
  content: " *";
  color: #d93025;
  font-weight: 1000;
}
@media (max-width: 920px){
  .club-banner{
    border-radius: 28px;
    flex-direction: column;
    text-align: center;
  }
  .club-banner__lead,
  .club-banner__actions{
    justify-content: center;
  }
}
@media (max-width: 760px){
  .page-club-register .subgroup-grid{
    grid-template-columns: 1fr !important;
  }
}


/* === 2026-03-21 enquiry/demo/layout fixes === */
:root{
  --site-max:1240px;
  --site-gutter:clamp(14px,2vw,24px);
}
.container{
  width:min(var(--site-max), calc(100vw - (var(--site-gutter) * 2))) !important;
  max-width:var(--site-max) !important;
  margin-inline:auto !important;
}
.container > .wrap,
.container > section.wrap,
.container .price-tool > .wrap,
.container .price-tool .wrap{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding-inline:0 !important;
}
main.wrap{
  width:min(var(--site-max), calc(100vw - (var(--site-gutter) * 2))) !important;
  max-width:var(--site-max) !important;
  margin-inline:auto !important;
  padding-inline:0 !important;
}
body.page-demo .lang-menu,
body[class*="page-demo"] .lang-menu{display:none !important;}
body.page-demo, body[class*="page-demo"]{padding:0 !important;}
body.page-demo .card,
body[class*="page-demo"] .card{
  width:100%;
  max-width:none !important;
  margin:22px auto 40px;
}
body.page-demo .container > .card,
body[class*="page-demo"] .container > .card{padding:22px;}
body.page-enquiry .wrap,
body.page-vi-enquiry .wrap{padding-inline:0 !important;}

/* === 2026-03-21 final width + vietnamese alignment fixes === */
:root{
  --site-shell-max: 1240px;
  --site-shell-gutter: clamp(14px, 2vw, 24px);
}

.topbar .container,
.footer .container,
.hero .container,
.page-hero .container,
main > .container,
main .container,
section > .container,
section .container{
  width: min(var(--site-shell-max), calc(100vw - (var(--site-shell-gutter) * 2))) !important;
  max-width: var(--site-shell-max) !important;
  margin-inline: auto !important;
}

.quicklinks,
.club-wrap,
.club-shell,
.club-card,
.club-highlight,
.page-card,
.form-card,
.policy-summary,
.policy-grid,
.price-grid,
.price-tool,
.premium-panel,
.qr-grid,
.info-grid,
.grid,
.mini-grid,
.table-wrap{
  width: 100% !important;
  max-width: none !important;
}

.page-club-register .subgroup-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.page-club-register .subgroup-item,
.page-club-register .subgroup-copy{
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}
.page-club-register .subgroup-copy{
  display: block !important;
}
.page-club-register .subgroup-item input[type="radio"]{
  position: static !important;
  inset: auto !important;
  margin-top: 4px !important;
}

@media (max-width: 760px){
  .page-club-register .subgroup-grid{
    grid-template-columns: 1fr !important;
  }
}


/* === 2026-03-21 final shell alignment + VI parity patch === */
:root{
  --site-shell-max: 1320px;
  --site-shell-gutter: clamp(14px, 2vw, 24px);
}
.container,
.topbar .container,
.footer .container,
.hero .container,
.page-hero .container,
main > .container,
main .container,
section > .container,
section .container{
  width: min(var(--site-shell-max), calc(100% - (var(--site-shell-gutter) * 2))) !important;
  max-width: var(--site-shell-max) !important;
  margin-inline: auto !important;
}
.section .card,
.section .mini-card,
.section .about-card,
.section .club-card,
.section .club-highlight,
.section .club-wrap,
.section .page-card,
.section .form-card,
.section .policy-summary,
.section .policy-grid,
.section .price-grid,
.section .price-tool,
.section .premium-panel,
.section .qr-grid,
.section .info-grid,
.section .grid,
.section .mini-grid,
.section .table-wrap,
.section .diff-wrap{
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
.page-index .club-banner__lead{ text-transform:none !important; }
body.page-vi .hero-snap-grid.hero-snap-grid-split{ grid-template-columns: minmax(0,1.15fr) minmax(220px,.85fr); }
@media (max-width: 900px){
  body.page-vi .hero-snap-grid.hero-snap-grid-split{ grid-template-columns: 1fr; }
}


/* === 2026-03-21 final width repair + VI maths club fee parity === */
:root{
  --site-shell-max-final: 1280px;
  --site-shell-gutter-final: clamp(16px, 2.4vw, 28px);
}
html, body{
  max-width: 100%;
  overflow-x: clip;
}
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12){
  margin: 0 !important;
  padding: 0 !important;
}
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .container,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .topbar .container,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .footer .container,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero .container,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) main > .container,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .section > .container{
  width: min(var(--site-shell-max-final), calc(100vw - (var(--site-shell-gutter-final) * 2))) !important;
  max-width: var(--site-shell-max-final) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .topbar-inner,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .footer-grid,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .footer-bottom,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero__inner,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) main{
  padding-inline: var(--site-shell-gutter-final) !important;
  box-sizing: border-box !important;
}
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .section .card,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-card,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .form-card,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .quicklinks,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .club-wrap,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .club-card,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .club-highlight,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .policy-summary,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .policy-grid,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .price-grid,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .price-tool,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .price-tool .wrap,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .premium-panel,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .qr-grid,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .info-grid,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .table-wrap,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .discount-card,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .discount-card-wide,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .discount-card-green,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .info-card,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .about-top-grid,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .right-stack,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .hero-snap-grid,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .triple-grid{
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
body.page-about .anchor-target > .card,
body.page-vi.page-about .anchor-target > .card{
  width: 100% !important;
  max-width: none !important;
}
body.page-vi #maths-club-fee .club-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (max-width: 980px){
  body.page-vi #maths-club-fee .club-grid{
    grid-template-columns: 1fr !important;
  }
}


/* === 2026-03-21 topbar/footer/contact/mathclub cleanup patch === */
.premium-topbar .brand-title span{display:none !important;}
@media (min-width: 1100px){
  .topbar-inner{
    display:grid !important;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:16px;
    padding-block:14px !important;
  }
  .nav-wrap{
    min-width:0;
    flex:none !important;
    width:100%;
    display:grid !important;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:12px;
  }
  .premium-nav{
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-end !important;
    gap:8px !important;
    overflow:auto hidden;
    scrollbar-width:none;
  }
  .premium-nav::-webkit-scrollbar{display:none;}
  .premium-nav a,.nav-login{
    white-space:nowrap;
    font-size:.94rem !important;
    padding:.72em .95em !important;
  }
  .lang-menu{align-self:center;}
  .lang-btn{min-height:40px !important; padding:.78em 1em !important;}
}
.footer-grid{
  display:grid !important;
  grid-template-columns:1.15fr .95fr .9fr !important;
  gap:clamp(18px,2vw,28px) !important;
}
.footer-list{list-style:none; padding:0; margin:0;}
.footer-links-list{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 18px;}
.footer-links-list a,.footer-contact a{ text-decoration:none; }
.footer-links-list a:hover,.footer-contact a:hover{ text-decoration:underline; }
@media (max-width: 860px){
  .footer-grid{grid-template-columns:1fr !important;}
  .footer-links-list{grid-template-columns:1fr 1fr;}
}
@media (max-width: 560px){
  .footer-links-list{grid-template-columns:1fr;}
}
.page-contact .section,
.page-vi-contact .section{
  padding: 20px 0;
}
.page-contact .grid,
.page-vi-contact .grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.page-contact .qr-grid,
.page-vi-contact .qr-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.page-contact .qr-card,
.page-vi-contact .qr-card,
.page-contact .card,
.page-vi-contact .card,
.page-contact .hero-card,
.page-vi-contact .hero-card{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box;
}
.page-contact .qr-body,
.page-vi-contact .qr-body{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center;}
.page-contact .qr-img,
.page-vi-contact .qr-img{width:150px;height:150px;object-fit:contain;padding:10px;border-radius:14px;border:2px solid rgba(0,0,0,.10);background:rgba(255,255,255,.78);}
.page-contact .qr-actions,
.page-vi-contact .qr-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;}
.page-contact .contact-list,
.page-vi-contact .contact-list{margin:0;padding-left:18px;line-height:1.8;font-weight:650;}
.page-contact .help-box,
.page-vi-contact .help-box{margin-top:12px;padding:12px 14px;border-radius:16px;border:2px solid rgba(0,0,0,.10);background:rgba(255,255,255,.65);font-weight:800;line-height:1.55;}
@media (max-width: 980px){
  .page-contact .grid,.page-vi-contact .grid,
  .page-contact .qr-grid,.page-vi-contact .qr-grid{grid-template-columns:1fr !important;}
}
@media (max-width: 560px){
  .page-contact .qr-body,.page-vi-contact .qr-body{grid-template-columns:1fr;}
}
.page-mathclub .club-wrap,
.page-vi-mathclub .club-wrap{display:grid;gap:18px;}
.page-mathclub .club-grid,
.page-vi-mathclub .club-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.page-mathclub .club-panel,
.page-vi-mathclub .club-panel{min-height:100%;}
.page-mathclub .club-card,
.page-vi-mathclub .club-card{width:100%;max-width:none !important;box-sizing:border-box;}
.page-mathclub .club-note,
.page-vi-mathclub .club-note{margin-top:0;}
@media (max-width: 900px){
  .page-mathclub .club-grid,.page-vi-mathclub .club-grid{grid-template-columns:1fr !important;}
}


/* === 2026-03-23 final VI topbar + non-home hero width patch === */
:root{
  --page-shell-max: 1240px;
  --page-shell-gutter: clamp(16px, 2.2vw, 28px);
}

/* Keep non-home hero box and page section boxes on exactly the same shell width */
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero{
  padding-inline: 0 !important;
}
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero > .container,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) main.section > .container,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) main > .container{
  width: min(var(--page-shell-max), calc(100% - (var(--page-shell-gutter) * 2))) !important;
  max-width: var(--page-shell-max) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero__inner,
body:not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) main{
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}

/* Vietnamese topbar: reduce pill sizing so the first item is never clipped */
body.page-vi .premium-topbar .brand-title span{ display:none !important; }
body.page-vi .topbar-inner{
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 12px !important;
}
body.page-vi .brand{
  min-width: 0;
  max-width: 290px;
  gap: 10px;
}
body.page-vi .brand-logo{
  width: 48px;
  height: 48px;
}
body.page-vi .brand-title b{
  font-size: clamp(1rem, 1.05vw, 1.22rem) !important;
  white-space: nowrap;
}
body.page-vi .nav-wrap{
  min-width: 0;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
body.page-vi .premium-nav{
  min-width: 0;
  flex: 1 1 auto;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  overflow: visible !important;
}
body.page-vi .premium-nav a,
body.page-vi .nav-login{
  font-size: clamp(.84rem, .84vw, .98rem) !important;
  line-height: 1.12 !important;
  padding: .68em .86em !important;
  white-space: nowrap;
  letter-spacing: 0;
}
body.page-vi .lang-menu{
  flex: 0 0 auto;
}
body.page-vi .lang-btn{
  min-height: 44px !important;
  padding: .72em .95em !important;
}

@media (max-width: 1500px) and (min-width: 1101px){
  body.page-vi .brand{ max-width: 250px; }
  body.page-vi .brand-title b{ font-size: 1rem !important; }
  body.page-vi .premium-nav a,
  body.page-vi .nav-login{
    font-size: .80rem !important;
    padding: .66em .78em !important;
  }
}

@media (max-width: 1100px){
  body.page-vi .topbar-inner{
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  body.page-vi .brand{
    max-width: none;
    width: 100%;
  }
  body.page-vi .nav-wrap{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  body.page-vi .premium-nav{
    width: 100%;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }
}




/* === 2026-03-23 refined hero width + simpler footer === */

/* Make non-home hero a content-width card, not a full-screen band */
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero{
  width: min(var(--page-shell-max, 1240px), calc(100% - (var(--page-shell-gutter, 28px) * 2))) !important;
  max-width: var(--page-shell-max, 1240px) !important;
  margin: 18px auto 24px !important;
  border-radius: 36px !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero > .container.page-hero__inner{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(34px, 4vw, 54px) clamp(26px, 3.2vw, 34px) clamp(34px, 3.8vw, 48px) !important;
  box-sizing: border-box !important;
}
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero h1,
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero p{
  max-width: 760px;
}

/* Footer like the reference screenshot: copy left, links centered, email right */
.footer-inline{
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #edf2f8 !important;
  color: #5f6f86 !important;
}
.footer-inline .container{
  width: min(var(--page-shell-max, 1240px), calc(100% - (var(--page-shell-gutter, 28px) * 2))) !important;
  max-width: var(--page-shell-max, 1240px) !important;
}
.footer-inline__inner{
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 2fr) minmax(220px, 1fr) !important;
  align-items: start !important;
  gap: 18px 28px !important;
  padding: 34px 0 38px !important;
}
.footer-inline__copy,
.footer-inline__email,
.footer-inline__nav a{
  color: #65748a !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}
.footer-inline__copy{
  justify-self: start !important;
  text-align: left !important;
  white-space: nowrap;
}
.footer-inline__email{
  justify-self: end !important;
  text-align: right !important;
  white-space: nowrap;
}
.footer-inline__email a{
  color: #2f63c7 !important;
  text-decoration: none !important;
}
.footer-inline__nav{
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px 28px !important;
  text-align: center !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  line-height: 1.35 !important;
}
.footer-inline__nav a:hover,
.footer-inline__email a:hover{
  text-decoration: underline !important;
}
.footer .footer-grid,
.footer .footer-bottom{
  display: none !important;
}

@media (max-width: 1200px){
  .footer-inline__inner{
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .footer-inline__copy,
  .footer-inline__email{
    justify-self: center !important;
    text-align: center !important;
    white-space: normal !important;
  }
  .footer-inline__nav{
    max-width: 760px !important;
  }
}

@media (max-width: 760px){
  body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero{
    border-radius: 26px !important;
    margin-top: 14px !important;
  }
  .footer-inline__inner{
    padding: 24px 0 28px !important;
  }
  .footer-inline__nav{
    gap: 10px 18px !important;
  }
}



/* === 2026-03-23 stronger text contrast patch === */
.footer-inline{
  background: #eef3f8 !important;
}
.footer-inline__copy,
.footer-inline__nav a{
  color: #475569 !important; /* darker slate for better contrast */
}
.footer-inline__email a{
  color: #1d4ed8 !important; /* stronger blue */
}
.footer-inline__nav a:hover,
.footer-inline__email a:hover{
  color: #1e293b !important;
}
.footer-inline__copy,
.footer-inline__nav a,
.footer-inline__email a{
  text-shadow: none !important;
}

/* Slightly improve contrast for light-on-blue hero text */
.page-hero p,
.page-hero__kicker{
  color: rgba(255,255,255,.96) !important;
}



/* === 2026-03-23 readability + centered non-home hero + VI contact QR fix === */

/* Stronger text contrast throughout normal page content */
body{
  color: #0f172a !important;
}
main,
main p,
main li,
main label,
main td,
main th,
main input,
main select,
main textarea,
.section-sub,
.card p,
.premium-card p,
.help-box,
.contact-list,
.qr-card p,
.price-card p,
.discount-card p,
.discount-card li,
.club-card p,
.club-panel p{
  color: #334155 !important;
}
main h2,
main h3,
main h4,
.section-title{
  color: #0f172a !important;
}
main a:not(.btn){
  color: #1d4ed8;
}
main a:not(.btn):hover{
  color: #1e3a8a;
}
.section-sub,
.card p,
.premium-card p{
  font-weight: 700 !important;
}

/* Non-home hero: centered, dominant, and higher contrast */
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero{
  width: min(var(--max), calc(100% - 36px)) !important;
  max-width: var(--max) !important;
  margin: 18px auto 24px !important;
  border-radius: 32px !important;
}
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero > .container.page-hero__inner{
  max-width: none !important;
  width: 100% !important;
  padding: clamp(40px, 5vw, 70px) clamp(24px, 4vw, 42px) !important;
  text-align: center !important;
}
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero__kicker,
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero p{
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero h1{
  color: #ffffff !important;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  margin: 0 auto 14px !important;
  max-width: 900px !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
}
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero p{
  color: rgba(255,255,255,.98) !important;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem) !important;
  line-height: 1.7 !important;
  max-width: 860px !important;
  font-weight: 750 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.15);
}
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero__kicker{
  color: rgba(255,255,255,.86) !important;
}
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero__actions{
  justify-content: center !important;
}



/* === 2026-03-23 topbar/footer order + hero emphasis refinement === */

/* Non-home hero: tighter vertical spacing and stronger title/subtitle hierarchy */
body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero{
  margin: 12px auto 22px !important;
}

body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero > .container.page-hero__inner{
  padding: clamp(26px, 3.6vw, 44px) clamp(24px, 4vw, 42px) clamp(22px, 2.8vw, 30px) !important;
}

body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero h1{
  color: #fde68a !important; /* warm gold to stand apart from subtitle */
  margin: 0 auto 10px !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.22);
}

body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero p{
  color: rgba(255,255,255,.98) !important;
  margin-bottom: 0 !important;
  max-width: 940px !important;
}

body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero__kicker{
  color: rgba(255,255,255,.82) !important;
  margin-bottom: 8px !important;
}

body:not(.page-index):not(.page-demo):not(.page-demo-prep-2):not(.page-demo-3-6):not(.page-demo-7-10):not(.page-demo-11-12) .page-hero__actions{
  margin-top: 18px !important;
}



/* === 2026-03-23 topbar register button restored to orange style === */
.premium-nav a.nav-cta,
.premium-nav .nav-cta,
.nav-cta{
  background: linear-gradient(180deg, #e6a62a 0%, #dd9913 100%) !important;
  color: #ffffff !important;
  border: 2px solid #bf7f09 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px rgba(221,153,19,.18) !important;
}

.premium-nav a.nav-cta:hover,
.premium-nav .nav-cta:hover,
.nav-cta:hover{
  background: linear-gradient(180deg, #efb33d 0%, #e2a11c 100%) !important;
  color: #ffffff !important;
  border-color: #b97907 !important;
}

.premium-nav a.nav-cta:focus-visible,
.premium-nav .nav-cta:focus-visible,
.nav-cta:focus-visible{
  outline: 3px solid rgba(245, 158, 11, .28) !important;
  outline-offset: 2px !important;
}

body.page-vi .premium-nav a.nav-cta,
body.page-vi .premium-nav .nav-cta{
  color: #ffffff !important;
}



/* === language button shows flag instead of text === */
.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.lang-btn{
  justify-content: center;
}

.lang-btn-flag-img{
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,.14);
}

@media (max-width: 520px){
  .lang-btn-flag-img{
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}



/* === 2026-03-23 smaller language flag + more topbar room === */
.lang-btn{
  min-height: 40px !important;
  padding: .48rem .62rem !important;
  gap: 6px !important;
}

.lang-btn-flag-img{
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.topbar .container.topbar-inner{
  gap: 10px !important;
}

.nav-wrap{
  min-width: 0 !important;
  gap: 8px !important;
}

.premium-nav{
  min-width: 0 !important;
  gap: 7px !important;
  overflow: visible !important;
}

.premium-nav a,
.nav-login{
  font-size: clamp(.82rem, .82vw, .96rem) !important;
  line-height: 1.08 !important;
  padding: .60em .78em !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

body.page-vi .brand{
  max-width: 250px !important;
}

body.page-vi .brand-title b{
  font-size: clamp(.98rem, 1vw, 1.14rem) !important;
}

body.page-vi .premium-nav{
  gap: 6px !important;
}

body.page-vi .premium-nav a,
body.page-vi .nav-login{
  font-size: clamp(.76rem, .76vw, .90rem) !important;
  padding: .56em .70em !important;
}

body.page-vi .lang-btn{
  min-height: 38px !important;
  padding: .44rem .56rem !important;
}

@media (max-width: 1380px){
  .premium-nav a,
  .nav-login{
    font-size: .82rem !important;
    padding: .56em .70em !important;
  }

  body.page-vi .brand{
    max-width: 220px !important;
  }

  body.page-vi .premium-nav a,
  body.page-vi .nav-login{
    font-size: .74rem !important;
    padding: .52em .62em !important;
  }
}

@media (max-width: 1100px){
  .topbar .container.topbar-inner,
  body.page-vi .topbar-inner{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .nav-wrap,
  body.page-vi .nav-wrap{
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  .premium-nav,
  body.page-vi .premium-nav{
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }
}

@media (max-width: 520px){
  .lang-btn-flag-img{
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px !important;
  }
}



/* === 2026-03-23 section title emphasis === */
.section-title,
.section-head h2,
main section h2,
main .card h3,
main .premium-card h3,
main .price-card h3,
main .club-card h3,
main .discount-card h3,
main .qr-card h3{
  color: #1e40af !important;
  font-size: clamp(1.45rem, 2vw, 1.9rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

main section h3{
  color: #1d4ed8 !important;
  font-size: clamp(1.18rem, 1.35vw, 1.42rem) !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}

.section-sub,
main p,
main li,
main label{
  font-size: clamp(1rem, 1.02vw, 1.06rem) !important;
}

/* === 2026-03-24 demo test section converted to Jekyll + Sass structure === */
.page-demo .demo-test{padding-block:10px 30px}
.page-demo .demo-test .container{max-width:980px}
.page-demo .demo-test__hero,
.page-demo .demo-test__levels,
.page-demo .demo-test__included{border-radius:28px;box-shadow:0 10px 30px rgba(15,23,42,.08)}
.page-demo .demo-test__hero{background:linear-gradient(135deg,#FDEBFF,#EAF7FF);padding:38px 30px;text-align:center;margin-bottom:22px}
.page-demo .demo-test__hero h2{margin:0 0 14px;font-size:clamp(2rem,3.2vw,2.125rem)!important;color:#7C4DFF!important;line-height:1.18}
.page-demo .demo-test__hero p{max-width:760px;margin:0 auto;font-size:1.125rem;color:#5B5B6B!important;line-height:1.8;font-weight:700}
.page-demo .demo-test__highlights{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-bottom:22px}
.page-demo .demo-test__card{border-radius:24px;padding:24px;box-shadow:0 8px 20px rgba(15,23,42,.06)}
.page-demo .demo-test__card h3{margin:0 0 10px;font-size:1.25rem!important;line-height:1.28}
.page-demo .demo-test__card p{margin:0;color:#5B5B6B!important;line-height:1.7;font-weight:700}
.page-demo .demo-test__card--sun{background:#FFF4D6}
.page-demo .demo-test__card--sun h3{color:#FF9F1C!important}
.page-demo .demo-test__card--mint{background:#E8F8F2}
.page-demo .demo-test__card--mint h3{color:#33A17A!important}
.page-demo .demo-test__card--violet{background:#F4ECFF}
.page-demo .demo-test__card--violet h3{color:#9B5DE5!important}
.page-demo .demo-test__levels{background:#EAF2FF;padding:30px;box-shadow:0 10px 24px rgba(15,23,42,.07);margin-bottom:22px}
.page-demo .demo-test__levels h3,.page-demo .demo-test__included h3{text-align:center;font-size:clamp(1.5rem,2.2vw,1.625rem)!important;margin:0 0 20px}
.page-demo .demo-test__levels h3{color:#4A6CF7!important}
.page-demo .demo-test__chips{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.page-demo .demo-test__chip{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#5B5B6B;padding:12px 18px;border-radius:999px;font-weight:800;text-decoration:none;box-shadow:0 4px 12px rgba(15,23,42,.05);transition:transform .2s ease, box-shadow .2s ease}
.page-demo .demo-test__chip:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,23,42,.08);color:#3f3f50}
.page-demo .demo-test__included{background:linear-gradient(135deg,#FFE8F1,#FFF8DC);padding:30px;box-shadow:0 10px 24px rgba(15,23,42,.07)}
.page-demo .demo-test__included h3{color:#FF5C8A!important}
.page-demo .demo-test__included ul{max-width:700px;margin:0 auto;padding-left:20px;color:#5B5B6B;font-size:1.0625rem;line-height:2;font-weight:700}
.page-demo .demo-test__included li+li{margin-top:2px}
@media (max-width:720px){
  .page-demo .demo-test__hero,
  .page-demo .demo-test__levels,
  .page-demo .demo-test__included{padding:24px 20px;border-radius:22px}
  .page-demo .demo-test__hero p,
  .page-demo .demo-test__included ul{font-size:1rem}
  .page-demo .demo-test__chip{width:100%}
}

/* === homepage free demo showcase (home only) === */
.home-demo-showcase{max-width:980px;margin:0 auto;padding:4px 0 0}.home-demo-showcase__hero,.home-demo-showcase__levels,.home-demo-showcase__included{border-radius:28px;box-shadow:0 10px 30px rgba(0,0,0,.08)}.home-demo-showcase__hero{background:linear-gradient(135deg,#FDEBFF,#EAF7FF);padding:38px 30px;text-align:center;margin-bottom:22px}.home-demo-showcase__hero h2{margin:0 0 14px;font-size:clamp(2rem,3.2vw,3.125rem)!important;color:#7C4DFF!important;line-height:1.18;text-align:center}.home-demo-showcase__hero p{max-width:760px;margin:0 auto;font-size:1.125rem;color:#5B5B6B!important;line-height:1.8;font-weight:700;text-align:center}.home-demo-showcase__highlights{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-bottom:22px}.home-demo-showcase__card{border-radius:24px;padding:24px;box-shadow:0 8px 20px rgba(0,0,0,.06)}.home-demo-showcase__card h3{margin:0 0 10px;font-size:1.25rem!important;line-height:1.28}.home-demo-showcase__card p{margin:0;color:#5B5B6B!important;line-height:1.7;font-weight:700}.home-demo-showcase__card--sun{background:#FFF4D6}.home-demo-showcase__card--sun h3{color:#FF9F1C!important}.home-demo-showcase__card--mint{background:#E8F8F2}.home-demo-showcase__card--mint h3{color:#33A17A!important}.home-demo-showcase__card--violet{background:#F4ECFF}.home-demo-showcase__card--violet h3{color:#9B5DE5!important}.home-demo-showcase__levels{background:#EAF2FF;padding:30px;box-shadow:0 10px 24px rgba(0,0,0,.07);margin-bottom:22px}.home-demo-showcase__levels h3,.home-demo-showcase__included h3{text-align:center;font-size:clamp(1.5rem,2.2vw,1.625rem)!important;margin:0 0 20px}.home-demo-showcase__levels h3{color:#4A6CF7!important}.home-demo-showcase__chips{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.home-demo-showcase__chip{display:inline-flex;align-items:center;justify-content:center;background:#FFF;color:#5B5B6B;padding:12px 18px;border-radius:999px;font-weight:800;text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,.05);transition:transform .2s ease, box-shadow .2s ease}.home-demo-showcase__chip:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.08);color:#3f3f50}.home-demo-showcase__included{background:linear-gradient(135deg,#FFE8F1,#FFF8DC);padding:30px;box-shadow:0 10px 24px rgba(0,0,0,.07)}.home-demo-showcase__included h3{color:#FF5C8A!important}.home-demo-showcase__included ul{max-width:700px;margin:0 auto;padding-left:20px;color:#5B5B6B;font-size:1.0625rem;line-height:2;font-weight:700}.home-demo-showcase__included li+li{margin-top:2px}@media (max-width:720px){.home-demo-showcase__hero,.home-demo-showcase__levels,.home-demo-showcase__included{padding:24px 20px;border-radius:22px}.home-demo-showcase__hero p,.home-demo-showcase__included ul{font-size:1rem}.home-demo-showcase__chip{width:100%}}

/* === restore simple dedicated demo page === */
body.page-demo .card{max-width:780px;margin:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 10px 26px rgba(0,0,0,.08)}body.page-demo .card h1{margin:0 0 10px;color:#0b5ed7!important;font-weight:1000}body.page-demo .card p{margin:0 0 16px;color:#555!important;font-weight:650;line-height:1.6}body.page-demo .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media (max-width:720px){body.page-demo .grid{grid-template-columns:1fr}}body.page-demo a.level{display:block;padding:16px;border-radius:16px;text-decoration:none;border:1px solid rgba(11,94,215,.20);background:rgba(11,94,215,.06);color:#0b5ed7;font-weight:900}body.page-demo a.level:hover{border-color:rgba(11,94,215,.40);background:rgba(11,94,215,.09)}body.page-demo .small{margin-top:14px;color:#666!important;font-weight:600;font-size:14px;line-height:1.6}body.page-demo .cta{margin-top:16px;padding:14px;border-radius:14px;background:#fff7e8;border:1px solid rgba(245,158,11,.35)}body.page-demo .cta a{color:#7a4a00;font-weight:1000;text-decoration:none;border-bottom:1px solid rgba(122,74,0,.35)}body.page-demo .cta a:hover{border-bottom-color:rgba(122,74,0,.7)}

/* === 2026-03-24 restore homepage demo CTA buttons === */
.home-demo-showcase__cta-top{
  display:flex;
  justify-content:center;
  margin: 4px 0 20px;
}
.home-demo-showcase__feature{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:#f7edc9;
  border:4px solid #f2c56f;
  border-radius:999px;
  padding:20px 28px;
  box-shadow:0 14px 28px rgba(193, 145, 39, 0.12);
  margin:0 0 26px;
}
.home-demo-showcase__feature-text{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
  color:#8a6100;
  font-size:clamp(1.15rem, 2vw, 1.45rem);
  line-height:1.35;
}
.home-demo-showcase__feature-text span:last-child{display:block}
.home-demo-showcase__feature-icon,
.home-demo-showcase__point{
  flex:0 0 auto;
  font-size:2.1rem;
  line-height:1;
}
.home-demo-showcase__feature-action{
  display:flex;
  align-items:center;
  gap:16px;
  flex:0 0 auto;
}
.home-demo-showcase__pill-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:999px;
  padding:18px 32px;
  font-size:clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight:800;
  color:#fff !important;
  background:linear-gradient(90deg,#e18a2f 0%, #214ca8 100%);
  box-shadow:0 12px 26px rgba(33, 76, 168, 0.18);
  transition:transform .2s ease, box-shadow .2s ease;
}
.home-demo-showcase__pill-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(33, 76, 168, 0.22);
  color:#fff !important;
}
.home-demo-showcase__pill-btn--primary{min-width:340px}
.home-demo-showcase__pill-btn--secondary{min-width:250px}

@media (max-width:980px){
  .home-demo-showcase__feature{
    border-radius:34px;
    padding:18px 20px;
    flex-direction:column;
    align-items:flex-start;
  }
  .home-demo-showcase__feature-action{
    width:100%;
    justify-content:flex-end;
  }
}
@media (max-width:700px){
  .home-demo-showcase__pill-btn--primary,
  .home-demo-showcase__pill-btn--secondary{
    min-width:0;
    width:100%;
  }
  .home-demo-showcase__feature-action{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  .home-demo-showcase__feature-text{
    font-size:1.05rem;
  }
}

/* === 2026-03-24 move homepage demo CTA buttons to end === */
.home-demo-showcase__cta-top{
  display:none !important;
}
.home-demo-showcase__feature{
  margin: 22px 0 18px !important;
}
.home-demo-showcase__cta-bottom{
  display:flex;
  justify-content:center;
  margin: 8px 0 0;
}
