/* =========================================================
   International Abacus School (IAS) — Stylesheet
   Mobile-first. Breakpoints: 480px, 768px, 1024px, 1200px
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --cream: #FFF8EE;
  --cream-2: #FDEFD9;
  --white: #ffffff;
  --text: #2B2D42;
  --muted: #5C5F77;

  --wood: #8B5A2B;
  --wood-dark: #6B4220;
  --wood-light: #C68B59;

  --red: #E63946;
  --yellow: #FFB703;
  --green: #2A9D8F;
  --blue: #3A86FF;
  --orange: #FB8500;
  --purple: #8E5CE6;
  --wa: #25D366;

  --f-head: "Baloo 2", "Hind Siliguri", system-ui, sans-serif;
  --f-body: "Nunito", "Hind Siliguri", system-ui, sans-serif;
  --f-bn: "Hind Siliguri", "Baloo 2", sans-serif;

  --gutter: 14px;              /* side padding of the page (kept small) */
  --maxw: 1360px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(107, 66, 32, .12);
  --shadow-lg: 0 20px 50px rgba(107, 66, 32, .18);
  --header-h: 70px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--cream); overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
[lang="bn"] { font-family: var(--f-bn); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.break { overflow-wrap: anywhere; }

.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 1000; background: var(--text); color: #fff; padding: .6rem 1rem; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.section { padding: 3.5rem 0; position: relative; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.2rem; }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: center;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem;
  color: var(--wood); background: var(--cream-2);
  padding: .3rem .9rem; border-radius: 999px; margin-bottom: .8rem;
  border: 2px dashed var(--wood-light);
}
.eyebrow.light { color: #fff; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 22px; height: 22px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: .8rem 1.7rem; font-size: 1.1rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 0 #B82733, 0 10px 20px rgba(230,57,70,.3); }
.btn-primary:hover { box-shadow: 0 8px 0 #B82733, 0 14px 24px rgba(230,57,70,.35); }
.btn-primary:active { box-shadow: 0 2px 0 #B82733; }
.btn-ghost { background: #fff; color: var(--wood); border: 3px solid var(--wood-light); }
.btn-ghost:hover { background: var(--cream-2); }
.btn-sm { min-height: 44px; padding: .45rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--wood-dark); }
.btn-outline-light { background: transparent; color: #fff; border: 3px solid #fff; }
.btn-card { margin-top: auto; align-self: flex-start; background: var(--c); color: #fff; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 70%, #000); }

/* ---------- 4. Header / Nav ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: rgba(255, 248, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(107,66,32,.12); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; min-width: 0; }
.logo-mark { width: 78px; height: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo-text strong { font-family: var(--f-head); font-size: .95rem; color: var(--wood-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text small { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.logo-light .logo-text strong { color: #fff; }
.logo-light .logo-text small { color: rgba(255,255,255,.75); }

.nav-toggle { width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer; background: var(--wood); display: grid; place-content: center; gap: 5px; flex-shrink: 0; position: relative; z-index: 120; }
.nav-toggle span { width: 22px; height: 3px; border-radius: 3px; background: #fff; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(84vw, 340px);
  background: var(--cream); padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  display: flex; flex-direction: column; gap: .3rem;
  transform: translateX(105%); transition: transform .35s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,.15); border-left: 10px solid var(--wood); overflow-y: auto;
}
.nav-menu.open { transform: translateX(0); }
.nav-menu a:not(.btn) { display: flex; align-items: center; gap: .8rem; min-height: 48px; padding: .4rem .6rem; border-radius: 12px; font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; text-decoration: none; transition: background .2s; }
.nav-menu a:not(.btn):hover, .nav-menu a.active { background: var(--cream-2); }
.nav-bead { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle at 35% 30%, #fff8 0 20%, transparent 22%), var(--c); box-shadow: inset -2px -2px 0 rgba(0,0,0,.15); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.nav-menu a:hover .nav-bead, .nav-menu a.active .nav-bead { transform: translateX(6px); }
.nav-cta-item { margin-top: 1rem; }
.nav-cta-item .btn { width: 100%; }
.nav-backdrop { position: fixed; inset: 0; z-index: 105; background: rgba(43,45,66,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-backdrop.show { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
/* backdrop-filter makes the header the containing block for fixed children – drop it while the menu is open
   so the menu and backdrop cover the full screen */
body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 1.6rem) 0 3rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(139,90,43,.10) 1.5px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(160deg, #FFF3DC 0%, var(--cream) 45%, #EEF5FF 100%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; z-index: 0; }
.blob-1 { width: 380px; height: 380px; background: var(--yellow); top: -120px; left: -120px; }
.blob-2 { width: 420px; height: 420px; background: #9CC2FF; bottom: -160px; right: -140px; }
.floating-numbers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floating-numbers span { position: absolute; bottom: -60px; font-family: var(--f-head); font-weight: 800; opacity: .13; animation: floatUp linear infinite; }
@keyframes floatUp { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-120vh) rotate(360deg); } }

.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.2rem; align-items: center; }
.hero-text { text-align: center; }
.badge-trust {
  display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 2px solid var(--green); color: var(--green);
  padding: .35rem .9rem; border-radius: 999px; font-weight: 800; font-size: .85rem; text-decoration: none; box-shadow: var(--shadow); margin-bottom: 1.1rem;
}
.badge-trust svg { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 4.2rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: .3rem; }
.hero h1 .hl { background: linear-gradient(90deg, var(--red), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bn-sub { font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 700; color: var(--wood); margin-bottom: 1rem; }
.hero-lead { color: var(--muted); font-size: 1.08rem; max-width: 580px; margin-inline: auto; }
.admission-pill { display: inline-flex; align-items: center; gap: .6rem; text-align: left; background: linear-gradient(90deg, #fff, #FFF1D6); border: 2px solid var(--yellow); padding: .55rem 1rem; border-radius: 16px; margin: .4rem 0 1.4rem; }
.admission-pill strong { color: var(--red); }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex-shrink: 0; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(230,57,70,.6); } 70% { box-shadow: 0 0 0 12px rgba(230,57,70,0); } 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); } }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; margin-bottom: 1.6rem; }
.hero-facts { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.hero-facts li { background: #fff; border-radius: 16px; padding: .5rem .9rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.hero-facts strong { font-family: var(--f-head); font-size: 1.15rem; color: var(--wood-dark); line-height: 1.2; }
.hero-facts span { font-size: .78rem; color: var(--muted); text-align: center; }

.hero-visual { position: relative; width: min(100%, 480px); margin-inline: auto; padding: 1rem 0 2rem; }
.hero-abacus { position: relative; filter: drop-shadow(0 20px 30px rgba(107,66,32,.25)); }
.frame-top, .frame-bottom { height: 22px; border-radius: 12px; background: linear-gradient(180deg, var(--wood-light), var(--wood) 60%, var(--wood-dark)); position: relative; z-index: 2; }
.abacus-body { position: relative; margin: 0 8px; padding: 10px 0; background: linear-gradient(180deg, #FFFDF8, #FBEBD2); border-left: 16px solid var(--wood); border-right: 16px solid var(--wood); display: flex; flex-direction: column; gap: 6px; }
.h-rod { position: relative; height: clamp(26px, 7vw, 36px); }
.h-rod::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); background: linear-gradient(180deg, #ddd, #999); border-radius: 2px; }
.h-bead { position: absolute; top: 0; height: 100%; width: 7%; border-radius: 50%; background: radial-gradient(ellipse at 35% 28%, rgba(255,255,255,.7) 0 14%, transparent 30%), radial-gradient(ellipse at 50% 50%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000) 100%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); transition: left .7s cubic-bezier(.5,0,.25,1); }
.abacus-leg { position: absolute; bottom: -18px; width: 18px; height: 26px; border-radius: 0 0 8px 8px; background: var(--wood-dark); }
.abacus-leg.left { left: 28px; } .abacus-leg.right { right: 28px; }
.hero-bubble { position: absolute; z-index: 3; background: #fff; padding: .4rem .8rem; border-radius: 14px; font-family: var(--f-head); font-weight: 700; box-shadow: var(--shadow); font-size: .9rem; white-space: nowrap; animation: bob 4s ease-in-out infinite; }
.hero-bubble b { color: var(--red); }
.b1 { top: -6px; left: -4px; }
.b2 { top: 42%; right: -6px; animation-delay: -1.3s; }
.b2 b { color: var(--blue); }
.b3 { bottom: -4px; left: 12%; background: var(--yellow); animation-delay: -2.4s; }
.hero-seal {
  position: absolute; z-index: 3; top: -18px; right: 6%; width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle, #fff 55%, var(--blue) 56% 62%, #fff 63%); border: 3px dashed var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--blue);
  font-family: var(--f-head); box-shadow: var(--shadow); transform: rotate(10deg); animation: spinSlow 18s linear infinite;
}
.hero-seal span { font-size: .7rem; font-weight: 700; } .hero-seal b { font-size: 1.15rem; } .hero-seal small { font-size: .55rem; font-weight: 700; text-transform: uppercase; }
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Verified strip ---------- */
.verify-strip { background: #fff; border-block: 1px solid #F0E2CC; padding: .9rem 0; position: relative; z-index: 2; }
.verify-list { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.verify-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 479px) {
  .verify-list { gap: .45rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-list a { gap: 0; padding: .4rem .45rem; min-height: 48px; border-left: 4px solid var(--c); border-radius: 10px; background: color-mix(in srgb, var(--c) 7%, #fff); }
  .verify-list .v-ic { display: none; }
  .verify-list li:nth-child(3) { grid-column: 1 / -1; }
  .verify-list li:last-child:nth-child(odd) { grid-column: auto; }
  .verify-list strong { font-size: clamp(.7rem, 3.5vw, .84rem); white-space: nowrap; letter-spacing: -.1px; }
  .verify-list small { font-size: .6rem; letter-spacing: .2px; }
}
.verify-list a { display: flex; align-items: center; gap: .7rem; text-decoration: none; padding: .45rem .6rem; border-radius: 14px; transition: background .2s; min-height: 52px; }
.verify-list a:hover { background: var(--cream); }
.v-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; background: color-mix(in srgb, var(--c) 16%, #fff); border: 2px solid color-mix(in srgb, var(--c) 45%, #fff); }
.verify-list small { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); line-height: 1.2; }
.verify-list strong { font-family: var(--f-head); font-size: 1rem; line-height: 1.2; }

/* ticker */
.ticker { background: var(--wood); color: #fff; overflow: hidden; padding: .65rem 0; border-block: 4px solid var(--wood-dark); }
.ticker-track { display: flex; gap: 3rem; width: max-content; animation: ticker 35s linear infinite; font-weight: 600; }
.ticker-track span { white-space: nowrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 6. Rod divider ---------- */
.rod-divider { position: relative; height: 34px; width: min(100% - 2rem, 680px); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rod-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 6px; background: linear-gradient(180deg, var(--wood-light), var(--wood)); }
.rod-divider::after { content: ""; position: absolute; inset: 50% -4px auto -4px; height: 18px; transform: translateY(-50%); border-left: 10px solid var(--wood-dark); border-right: 10px solid var(--wood-dark); border-radius: 4px; }
.rod-divider span { position: relative; z-index: 1; width: 30px; height: 24px; border-radius: 50%; background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,.7) 0 14%, transparent 30%), var(--c, var(--red)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); animation: divSlide 5s ease-in-out infinite; }
.rod-divider span:nth-child(1) { --c: var(--red); }
.rod-divider span:nth-child(2) { --c: var(--yellow); animation-delay: .15s; }
.rod-divider span:nth-child(3) { --c: var(--green); animation-delay: .3s; }
.rod-divider span:nth-child(4) { --c: var(--blue); animation-delay: .45s; }
.rod-divider span:nth-child(5) { --c: var(--orange); animation-delay: .6s; }
@keyframes divSlide { 0%, 100% { transform: translateX(-40px); } 50% { transform: translateX(40px); } }

/* ---------- 7. About ---------- */
.about-grid { display: grid; gap: 2rem; align-items: start; }
.about-text h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.about-bn { font-size: 1.1rem; line-height: 1.95; color: #3A3C52; background: #fff; padding: 1.3rem; border-radius: var(--radius); border-left: 6px solid var(--yellow); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0 0; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 2px solid var(--c); padding: .35rem .9rem .35rem .45rem; border-radius: 999px; font-weight: 800; font-size: .92rem; }
.chips li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9 0 18%, transparent 22%), var(--c); }

.trust-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); border: 10px solid var(--wood); outline: 3px solid var(--wood-light); outline-offset: -13px; padding: 1.4rem 1.2rem; }
.trust-card-head { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.tc-icon { width: 54px; height: 54px; border-radius: 16px; background: #FFE6E8; display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0; }
.tc-kicker { margin: 0; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--red); }
.trust-card h3 { margin: 0; font-size: 1.35rem; }
.tc-facts { display: grid; gap: .45rem; background: var(--cream); border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1rem; }
.tc-facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; border-bottom: 1px dashed #EAD7BC; padding-bottom: .4rem; }
.tc-facts div:last-child { border: 0; padding: 0; }
.tc-facts dt { color: var(--muted); font-weight: 700; flex-shrink: 0; }
.tc-facts dd { font-weight: 800; text-align: right; }
.tc-board-title { font-family: var(--f-head); font-weight: 700; margin-bottom: .5rem; }
.tc-board { display: grid; gap: .5rem; }
.tc-board li { display: flex; align-items: center; gap: .7rem; }
.tc-board .av { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.tc-board strong { display: block; font-family: var(--f-head); line-height: 1.2; }
.tc-board small { color: var(--muted); font-weight: 700; }
.tc-link { display: inline-block; margin-top: 1rem; font-weight: 800; color: var(--blue); text-decoration: none; min-height: 32px; }
.tc-link:hover { text-decoration: underline; }

/* ---------- 8. Courses ---------- */
.course-grid { display: grid; gap: 1.3rem; }
.course-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 10px solid var(--wood); border-top-width: 0; border-radius: var(--radius); padding: 2.5rem 1.3rem 1.4rem; box-shadow: var(--shadow), inset 0 0 0 3px var(--wood-light); transition: transform .3s ease, box-shadow .3s ease; overflow: hidden; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), inset 0 0 0 3px var(--wood-light); }
.card-rod { position: absolute; top: 0; left: 0; right: 0; height: 26px; background: var(--c); display: flex; align-items: center; gap: 4px; padding-left: 14px; }
.card-rod::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: rgba(255,255,255,.6); transform: translateY(-50%); }
.card-rod i { position: relative; width: 22px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse at 35% 30%, #fffb 0 18%, transparent 30%), #fff; opacity: .9; transition: transform .5s cubic-bezier(.4,1.5,.5,1); }
.course-card:hover .card-rod i { transform: translateX(var(--slide, 0px)); }
.card-rod i:nth-child(1) { --slide: 160px; }
.card-rod i:nth-child(2) { --slide: 140px; transition-delay: .05s; }
.card-rod i:nth-child(3) { --slide: 120px; transition-delay: .1s; }
.course-icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; background: color-mix(in srgb, var(--c) 15%, #fff); color: var(--c); }
.course-icon svg { width: 40px; height: 40px; }
.course-card h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.course-bn { color: var(--wood); font-weight: 600; margin-bottom: .7rem; }
.course-card p:not(.course-bn):not(.adm-tag) { color: var(--muted); font-size: .97rem; }
.admission-card { background: linear-gradient(160deg, #FFF6E3, #FFE3C4); }
.adm-tag { display: inline-block; align-self: flex-start; background: var(--red); color: #fff; font-weight: 700; font-size: 1.3rem; padding: .2rem 1rem; border-radius: 12px; transform: rotate(-3deg); margin-bottom: .8rem; }

/* ---------- 9. How it works ---------- */
.steps { background: linear-gradient(180deg, transparent, var(--cream-2) 30%, var(--cream-2) 70%, transparent); }
.timeline { display: grid; gap: 1.1rem; position: relative; max-width: 520px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 20px; bottom: 20px; width: 6px; border-radius: 6px; background: linear-gradient(180deg, var(--wood-light), var(--wood)); }
.step { position: relative; display: grid; grid-template-columns: 84px 1fr; column-gap: 1rem; align-items: center; background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.step-beads { grid-row: span 2; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 3px; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, #fff); border: 3px solid var(--c); position: relative; z-index: 1; }
.step-beads i { width: 18px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse at 35% 30%, #fffa 0 18%, transparent 30%), var(--c); }
.step h3 { font-size: 1.25rem; margin: 0; }
.step p { margin: 0; color: var(--muted); }

/* ---------- 10. Games zone ---------- */
.games {
  background:
    radial-gradient(circle at 1px 1px, rgba(58,134,255,.12) 1.5px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(180deg, #F2F7FF, #FFF8EE);
}
.star-bank { display: inline-flex; align-items: center; gap: .4rem; background: var(--text); color: var(--yellow); font-family: var(--f-head); font-weight: 800; padding: .35rem 1.1rem; border-radius: 999px; font-size: 1.05rem; box-shadow: var(--shadow); }
.star-bank.bump { animation: pop .4s; }

.game-tabs { display: flex; gap: .55rem; overflow-x: auto; padding: .3rem .2rem 1rem; margin: 0 calc(var(--gutter) * -1) .6rem; padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
.game-tabs::-webkit-scrollbar { display: none; }
.game-tab {
  flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 52px; padding: .5rem 1.1rem; border-radius: 16px; cursor: pointer;
  background: #fff; border: 3px solid color-mix(in srgb, var(--c) 35%, #fff); color: var(--text);
  font-family: var(--f-head); font-weight: 700; font-size: 1rem; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 30%, #fff);
  transition: transform .2s, background .2s;
}
.game-tab span { font-size: 1.25rem; }
/* Mobile: compact game tabs */
@media (max-width: 767px) {
  /* 2 per row, last odd one spans full width – no sideways scrolling */
  .game-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; overflow: visible; margin-inline: 0; padding: .2rem 0 .8rem; }
  .game-tab:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; min-width: 50%; }
  .game-tab { justify-content: center; min-width: 0; white-space: nowrap; min-height: 40px; padding: .25rem .5rem; gap: .3rem; border-width: 2px; border-radius: 12px; font-size: .85rem; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 30%, #fff); }
  .game-tab span { font-size: 1rem; }
  .game-tab.active { box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 65%, #000); }
}
.game-tab:hover { transform: translateY(-2px); }
.game-tab.active { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 65%, #000); }

.game-panel { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.game-intro { text-align: center; max-width: 640px; margin: 0 auto 1.2rem; }
.game-intro h3 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin-bottom: .2rem; }
.game-intro h3 span { color: var(--wood); font-size: .8em; }
.game-intro p { color: var(--muted); margin: 0; }

.game-card, .soroban-wrap { max-width: 720px; margin-inline: auto; text-align: center; background: #fff; border-radius: 28px; padding: 1.4rem 1rem 1.5rem; box-shadow: var(--shadow-lg); border: 4px solid #fff; outline: 3px dashed var(--wood-light); outline-offset: -12px; }
.game-msg { margin: .9rem 0 0; min-height: 1.6em; font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; }
.game-msg.ok { color: var(--green); }
.game-msg.bad { color: var(--red); }
.game-footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.game-footer.center { justify-content: center; }
.mini-stats { font-weight: 700; color: var(--muted); }
.mini-stats b { color: var(--text); font-family: var(--f-head); font-size: 1.1rem; }

.mini-switch, .level-pick { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: var(--cream-2); border-radius: 999px; padding: 4px; margin-bottom: 1rem; }
.mini-switch button, .level-pick button { border: 0; background: transparent; min-height: 44px; padding: .35rem 1rem; border-radius: 999px; font-family: var(--f-head); font-weight: 700; cursor: pointer; color: var(--wood-dark); }
.mini-switch button.active, .level-pick button.active { background: var(--wood); color: #fff; }

/* Soroban (interactive + mini) */
.soroban-top { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.soroban-display, .target-box { display: inline-flex; flex-direction: column; align-items: center; border-radius: 18px; padding: .4rem 1.4rem .3rem; min-width: 160px; }
.soroban-display { background: var(--text); color: #fff; }
.target-box { background: #FFF1D6; border: 3px dashed var(--orange); }
.soroban-display .label, .target-box .label { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; opacity: .75; font-weight: 800; }
.soroban-display output, .target-box strong { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.soroban-display output { color: var(--yellow); }
.target-box strong { color: var(--orange); }
.target-box .mini-stats { font-size: .85rem; }
.target-box.win { animation: pop .45s; border-color: var(--green); }

.soroban {
  --bh: clamp(26px, 7.4vw, 38px); --bw: calc(var(--bh) * 1.55); --bar: 12px; --gap: clamp(4px, 1.6vw, 14px);
  display: flex; justify-content: center; gap: var(--gap);
  background: linear-gradient(180deg, #FFFDF8, #F8E6C8); border: 14px solid var(--wood); border-radius: 20px;
  padding: 12px clamp(6px, 2vw, 18px) 8px; box-shadow: inset 0 0 0 3px var(--wood-light), 0 10px 0 var(--wood-dark);
  position: relative; margin-bottom: 1.5rem; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.soroban.mini { --bh: clamp(22px, 6vw, 30px); max-width: 420px; margin-inline: auto; }
.s-rod { display: flex; flex-direction: column; align-items: center; }
.s-col { position: relative; width: var(--bw); height: calc(var(--bh) * 7 + var(--bar)); }
.s-col::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; transform: translateX(-50%); background: linear-gradient(90deg, #999, #ddd, #999); border-radius: 3px; }
.s-bar { position: absolute; left: calc(var(--gap) * -1); right: calc(var(--gap) * -1); top: calc(var(--bh) * 2); height: var(--bar); background: linear-gradient(180deg, var(--wood-light), var(--wood)); z-index: 1; }
.s-bar.dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); }
.s-bead {
  position: absolute; left: 0; top: 0; z-index: 2; width: var(--bw); height: var(--bh); border: 0; padding: 0; cursor: pointer;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(180deg, rgba(255,255,255,.45), transparent 45%, rgba(0,0,0,.18)), var(--c);
  transform: translateY(calc(var(--y) * var(--bh) + var(--off, 0px)));
  transition: transform .28s cubic-bezier(.4,1.4,.6,1), filter .2s;
}
span.s-bead { cursor: default; }
.s-bead:hover { filter: brightness(1.1); }
.s-bead:focus-visible { outline: none; filter: brightness(1.15) drop-shadow(0 0 4px var(--blue)); }
.s-bead.heaven { --c: var(--red); }
.s-bead.earth { --c: var(--yellow); }
.s-rod:nth-child(1) .s-bead.earth { --c: var(--purple); }
.s-rod:nth-child(2) .s-bead.earth { --c: var(--green); }
.s-rod:nth-child(3) .s-bead.earth { --c: var(--blue); }
.s-rod:nth-child(4) .s-bead.earth { --c: var(--orange); }
.soroban.mini .s-rod:nth-child(1) .s-bead.earth { --c: var(--blue); }
.soroban.mini .s-rod:nth-child(2) .s-bead.earth { --c: var(--orange); }
.soroban.mini .s-rod:nth-child(3) .s-bead.earth { --c: var(--yellow); }
.s-label { margin-top: 12px; font-weight: 800; font-size: .78rem; color: #fff; background: var(--wood-dark); border-radius: 8px; padding: 0 .4rem; min-width: 34px; }
.s-digit { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; color: var(--wood-dark); margin-bottom: 4px; }
.soroban-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Flash Anzan */
.flash-screen {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 200px; border-radius: 22px; margin-bottom: 1.1rem;
  background: radial-gradient(circle at 50% 40%, #3B3F63, #1E2036); color: #fff;
  border: 10px solid var(--wood); box-shadow: inset 0 0 0 3px var(--wood-light), inset 0 0 40px rgba(0,0,0,.4);
}
.flash-screen span { font-family: var(--f-head); font-weight: 800; font-size: clamp(3.6rem, 18vw, 6.5rem); line-height: 1; color: var(--yellow); text-shadow: 0 0 30px rgba(255,183,3,.45); }
.flash-screen span.small { font-size: clamp(1.8rem, 7vw, 2.6rem); color: #fff; text-shadow: none; }
.flash-screen span.flash { animation: flashIn .25s ease-out; }
@keyframes flashIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.flash-screen small { position: absolute; bottom: 10px; font-weight: 700; opacity: .7; }

/* Read the abacus */
.progress { height: 10px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-bottom: .6rem; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 999px; transition: width .4s; }
.read-meta { display: flex; justify-content: space-between; font-weight: 700; color: var(--muted); margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.read-meta b { color: var(--text); font-family: var(--f-head); font-size: 1.1rem; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; max-width: 460px; margin: 0 auto; }
.opt { min-height: 58px; border-radius: 16px; border: 3px solid #E6D3B8; background: var(--cream); font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; cursor: pointer; transition: transform .15s, background .2s, border-color .2s; }
.opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--blue); }
.opt.right { background: #DDF5F1; border-color: var(--green); color: var(--green); }
.opt.wrong { background: #FFE6E8; border-color: var(--red); color: var(--red); }
.opt:disabled { cursor: default; }

/* Bead friends */
.bead-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2.5vw, 16px); max-width: 440px; margin: 0 auto; padding: 14px; background: linear-gradient(180deg, #FFFDF8, #F8E6C8); border: 12px solid var(--wood); border-radius: 22px; box-shadow: inset 0 0 0 3px var(--wood-light); }
.fbead {
  aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  font-family: var(--f-head); font-weight: 800; font-size: clamp(1.5rem, 6vw, 2.1rem);
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.75) 0 12%, transparent 30%), radial-gradient(circle, var(--c) 58%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 60%, #000); text-shadow: 0 2px 0 rgba(0,0,0,.2);
  transition: transform .2s;
}
.fbead:hover:not(:disabled) { transform: translateY(-3px); }
.fbead.sel { transform: scale(1.12); box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--text); }
.fbead.pop { animation: beadPop .35s forwards; }
.fbead.nope { animation: shake .35s; }
.fbead.new { animation: beadIn .35s; }
.fbead:disabled { cursor: default; opacity: .55; }
@keyframes beadPop { to { transform: scale(0); opacity: 0; } }
@keyframes beadIn { from { transform: scale(0); } to { transform: scale(1); } }

/* Speed math */
.speed-bar { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.timer, .score { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.timer { color: var(--red); } .score { color: var(--green); }
.timer-track { flex: 1; height: 12px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red)); transform-origin: left; }
.question { font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 9vw, 3.2rem); margin: .2rem 0 1rem; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.answer-row { display: flex; gap: .6rem; max-width: 420px; margin: 0 auto; }
.answer-row input { flex: 1; min-width: 0; min-height: 54px; padding: .5rem 1rem; border: 3px solid var(--wood-light); border-radius: 16px; font-size: 1.3rem; font-weight: 800; text-align: center; background: #fff; }
.answer-row input:focus { outline: none; border-color: var(--blue); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.pop { animation: pop .4s; }
@keyframes pop { 50% { transform: scale(1.12); } }

/* ---------- 11. Certificates ---------- */
.certificates { background: linear-gradient(180deg, var(--cream), #FFF1DE); }
.cert-list { display: grid; gap: 1.4rem; }
.cert-card { display: grid; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border-top: 8px solid var(--c); }
.cert-thumb { position: relative; display: block; align-self: start; border: 0; padding: 14px; cursor: zoom-in; background: repeating-linear-gradient(45deg, #F7EBD8 0 10px, #FBF3E6 10px 20px); }
.cert-thumb img { width: 100%; height: auto; max-height: 440px; object-fit: contain; object-position: top; border-radius: 10px; border: 6px solid var(--wood); box-shadow: 0 8px 20px rgba(0,0,0,.18); background: #fff; transition: transform .3s; }
.cert-thumb:hover img { transform: scale(1.02); }
.cert-thumb .zoom { position: absolute; bottom: 24px; right: 24px; background: rgba(43,45,66,.85); color: #fff; font-weight: 800; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; }
.cert-body { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; }
.verified { display: inline-flex; align-self: flex-start; align-items: center; gap: .3rem; background: #DDF5F1; color: #1C7A6F; font-weight: 800; font-size: .78rem; padding: .15rem .7rem; border-radius: 999px; margin-bottom: .5rem; }
.cert-body h3 { font-size: 1.35rem; margin-bottom: .15rem; }
.cert-auth { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.cert-facts { display: grid; gap: 0; border: 2px solid #F0E2CC; border-radius: 14px; overflow: hidden; margin-bottom: .9rem; }
.cert-facts div { display: grid; grid-template-columns: 8.2rem 1fr; gap: .6rem; padding: .5rem .8rem; font-size: .9rem; }
.cert-facts div:nth-child(odd) { background: var(--cream); }
.cert-facts dt { color: var(--muted); font-weight: 700; }
.cert-facts dd { font-weight: 800; overflow-wrap: anywhere; }
.verify-link { margin-top: auto; align-self: flex-start; color: var(--blue); font-weight: 800; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.verify-link:hover { text-decoration: underline; }

.darpan { display: grid; gap: .9rem; align-items: center; background: #fff; border-radius: 24px; padding: 1.2rem; box-shadow: var(--shadow); margin-top: 1.4rem; border-left: 8px solid var(--green); }
.d-ic { width: 60px; height: 60px; border-radius: 18px; background: #DDF5F1; display: grid; place-items: center; font-size: 1.8rem; }
.darpan h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.darpan p { margin: 0; color: var(--muted); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(20, 14, 8, .88); }
.lb-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 3.5rem .5rem 1rem; }
.lightbox figure { margin: 0; max-width: 900px; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; font-weight: 700; margin-top: .6rem; text-align: center; }
.lb-close, .lb-nav { position: absolute; border: 0; cursor: pointer; background: #fff; color: var(--text); width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; font-weight: 800; box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; }
.lb-close { top: .6rem; right: .6rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; }
.lb-nav.prev { left: .5rem; } .lb-nav.next { right: .5rem; }

/* ---------- 12. Why us ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat { background: #fff; border-radius: var(--radius); padding: 1.3rem .8rem; text-align: center; box-shadow: var(--shadow); border-bottom: 6px solid var(--c); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: -26px; right: -26px; width: 70px; height: 70px; border-radius: 50%; background: var(--c); opacity: .15; }
.counter { font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 7vw, 2.8rem); color: var(--c); line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { margin: .4rem 0 0; font-weight: 700; color: var(--muted); font-size: .92rem; }
.benefits { display: grid; gap: 1rem; }
.benefit { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; align-items: center; background: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.b-icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: color-mix(in srgb, var(--c) 18%, #fff); border: 3px solid var(--c); }
.benefit h3 { font-size: 1.2rem; margin: 0; }
.benefit p { margin: 0; color: var(--wood); font-weight: 600; }

/* ---------- 13. Achievements ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 3rem; }
.gallery-item { aspect-ratio: 1; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.35) 14px 28px), color-mix(in srgb, var(--c) 22%, #fff); border: 4px dashed var(--c); text-align: center; padding: .5rem; overflow: hidden; transition: transform .3s; }
.gallery-item:hover { transform: rotate(-2deg) scale(1.03); }
.gallery-item span { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.gallery-item p { margin: .3rem 0 0; font-weight: 800; font-size: .9rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.reviews-title { text-align: center; font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 1.4rem; }
.reviews-title span { color: var(--wood); font-size: .8em; }
.reviews { display: grid; gap: 1.2rem; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.6rem 1.3rem 1.2rem; box-shadow: var(--shadow); border-top: 6px solid var(--c); position: relative; }
.review::before { content: "“"; position: absolute; top: -6px; right: 18px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--c); opacity: .25; }
.review p { font-size: 1.05rem; }
.review footer { display: flex; align-items: center; gap: .7rem; }
.review footer strong { display: block; font-family: var(--f-head); }
.review footer small { color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.placeholder-tag { display: inline-block; font-size: .72rem; font-weight: 800; color: #9A6B00; background: #FFF3C4; border-radius: 6px; padding: .05rem .5rem; margin-bottom: .6rem; }

/* ---------- 14. Teacher banner ---------- */
.teacher-banner { background: radial-gradient(circle at 15% 50%, rgba(255,255,255,.12) 0 60px, transparent 61px), radial-gradient(circle at 85% 20%, rgba(255,183,3,.35) 0 40px, transparent 41px), linear-gradient(120deg, var(--wood-dark), var(--wood)); color: #fff; padding: 2.8rem 0; }
.teacher-inner { display: grid; gap: 1.4rem; text-align: center; }
.teacher-inner h2 { color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.3rem); }
.teacher-inner h2 span { color: var(--yellow); }
.teacher-inner p { opacity: .9; margin: 0; }
.teacher-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 14b. Franchise ---------- */
.franchise { background:
  radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--yellow) 22%, transparent) 0 90px, transparent 91px),
  radial-gradient(circle at 94% 88%, color-mix(in srgb, var(--green) 16%, transparent) 0 120px, transparent 121px),
  linear-gradient(180deg, #FFF1DC, var(--cream)); }
.franchise .section-head h2 .hl { background: linear-gradient(90deg, var(--red), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fr-grid { display: grid; gap: 2rem; }
.fr-grid > * { min-width: 0; }
.fr-sub { font-size: 1.35rem; margin: 0 0 .9rem; }
.fr-sub span { color: var(--wood); font-size: .85em; }
.fr-perks { display: grid; gap: .8rem; margin-bottom: 2rem; }
.fr-perk { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border-radius: var(--radius-sm); padding: 1rem; box-shadow: var(--shadow); border-left: 6px solid var(--c); transition: transform .25s; }
.fr-perk:hover { transform: translateY(-4px); }
.fp-ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; background: color-mix(in srgb, var(--c) 20%, #fff); }
.fr-perk h4 { font-size: 1.08rem; margin: 0 0 .15rem; }
.fr-perk p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.fr-who { background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); border: 3px dashed var(--wood-light); margin-bottom: 2rem; }
.fr-who .chips { margin-top: 0; }
.fr-req { margin: 1rem 0 0; color: var(--green); font-weight: 700; font-size: .93rem; line-height: 1.7; }
.fr-steps { display: grid; gap: .7rem; counter-reset: none; position: relative; }
.fr-steps li { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; background: #fff; border-radius: var(--radius-sm); padding: .7rem 1rem; box-shadow: var(--shadow); }
.fs-n { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 1.3rem;
  background: radial-gradient(circle at 35% 30%, #fff8 0 15%, transparent 20%), var(--c); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.fr-steps strong { font-family: var(--f-head); font-size: 1.1rem; line-height: 1.2; }
.fr-steps small { color: var(--muted); font-weight: 600; }
.fr-form { border-top-color: var(--orange); }
.fr-steps-cta { text-align: center; margin: 1.4rem 0 0; }
/* CTA card (opens the popup form) */
.fr-cta { position: relative; background: #fff; border-radius: 28px; padding: 2.4rem 1.4rem 1.5rem; box-shadow: var(--shadow-lg); border: 10px solid var(--wood); outline: 3px solid var(--wood-light); outline-offset: -13px; text-align: center; }
.fr-cta-beads { position: absolute; top: -10px; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 3px; padding: 0 10px; }
.fr-cta-beads::before { content: ""; position: absolute; left: -30px; right: -30px; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: var(--wood-dark); z-index: -1; }
.fr-cta-beads i { width: 30px; height: 22px; border-radius: 50%; background: radial-gradient(ellipse at 35% 30%, #fffb 0 14%, transparent 30%), var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.fr-cta h3 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: .4rem; }
.fr-cta h3 span { color: var(--red); }
.fr-cta > p { color: var(--muted); margin: 0 0 1rem; }
.fr-cta-list { display: grid; gap: .45rem; text-align: left; background: var(--cream); border-radius: 16px; padding: .9rem 1rem; margin-bottom: 1.3rem; font-weight: 700; color: var(--green); font-size: .95rem; }
.fr-cta-alt { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1rem; }
.fr-cta-alt a { font-weight: 800; text-decoration: none; color: var(--wood); min-height: 44px; display: inline-flex; align-items: center; }
.fr-cta-alt a:hover { color: var(--red); }
/* Popup */
.fr-modal { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); overflow: visible; margin: auto; }
.fr-modal::backdrop { background: rgba(43, 30, 18, .62); backdrop-filter: blur(3px); }
.fr-modal[open] { animation: frPop .3s ease; }
.fr-modal .enquiry { max-height: calc(100dvh - 20px); overflow-y: auto; margin: 0; padding-top: 1.3rem; }
.fr-modal h3 { padding-right: 2.6rem; }
.fr-close { position: absolute; top: 18px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--cream-2); color: var(--text); font-size: 1.2rem; font-weight: 800; display: grid; place-items: center; }
.fr-close:hover { background: var(--red); color: #fff; }
@keyframes frPop { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }
.fr-form .form-note a { color: var(--blue); font-weight: 800; }

/* ---------- 15. FAQ ---------- */
.faq-inner { max-width: 880px; }
.faq-list { display: grid; gap: .8rem; }
.faq-list details { background: #fff; border-radius: 18px; box-shadow: var(--shadow); border-left: 6px solid var(--c); overflow: hidden; }
.faq-list summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.1rem; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; position: relative; min-height: 56px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: block; font-size: .92rem; color: var(--wood); font-weight: 600; }
.faq-list summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 1.1rem 1.1rem; margin: 0; color: var(--muted); }
.faq-list a { color: var(--blue); font-weight: 700; }

/* ---------- 16. Contact ---------- */
.contact-grid { display: grid; gap: 1.6rem; }
.contact-grid > *, .footer-grid > *, .contact-info > * { min-width: 0; }
.contact-info { display: grid; gap: .8rem; align-content: start; }
.info-card { display: flex; align-items: center; gap: .9rem; text-decoration: none; background: #fff; border-radius: var(--radius-sm); padding: .9rem 1rem; box-shadow: var(--shadow); border-left: 6px solid var(--c); min-height: 64px; transition: transform .2s; }
a.info-card:hover { transform: translateX(4px); }
.info-card .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--c) 18%, #fff); flex-shrink: 0; }
.info-card > span:last-child { min-width: 0; }
.info-card small { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; }
.info-card strong { font-size: 1rem; line-height: 1.4; display: block; }
.map { border-radius: var(--radius); overflow: hidden; border: 8px solid var(--wood); box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.enquiry { background: #fff; border-radius: 28px; padding: 1.5rem 1.2rem; box-shadow: var(--shadow-lg); border-top: 12px solid var(--wood); align-self: start; }
.enquiry h3 { font-size: 1.6rem; }
.enquiry h3 span { color: var(--wood); font-size: .8em; }
.form-note { color: var(--muted); font-size: .92rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 1rem; }
.field label { font-weight: 800; font-size: .92rem; }
.field input, .field select, .field textarea { min-height: 48px; padding: .6rem .9rem; border: 2px solid #E6D3B8; border-radius: 14px; background: var(--cream); transition: border-color .2s, background .2s; width: 100%; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field .invalid { border-color: var(--red); background: #FFF0F1; }
.form-error { color: var(--red); font-weight: 700; min-height: 1.4em; margin: 0 0 .6rem; }

/* ---------- 17. Footer ---------- */
.site-footer { color: rgba(255,255,255,.85); background: radial-gradient(circle, rgba(255,255,255,.06) 0 7px, transparent 8px) 0 0 / 46px 46px, radial-gradient(circle, rgba(255,183,3,.08) 0 7px, transparent 8px) 23px 23px / 46px 46px, #3A2614; padding-top: 3rem; border-top: 12px solid var(--wood); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: .8rem; }
.f-brand p { margin: 1rem 0; max-width: 360px; }
.f-links ul, .f-contact ul, .f-regs ul { display: grid; gap: .3rem; }
.f-links a, .f-contact a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.f-links a:hover, .f-contact a:hover { color: var(--yellow); }
.f-regs li { font-family: var(--f-head); font-weight: 700; color: #fff; line-height: 1.3; }
.f-regs li span { display: block; font-family: var(--f-body); font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--yellow); font-weight: 800; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .2s, transform .2s; }
.socials a:nth-child(1):hover { background: var(--blue); }
.socials a:nth-child(2):hover { background: var(--red); }
.socials a:nth-child(3):hover { background: #FF0000; }
.socials a:hover { transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 1rem 5.5rem; text-align: center; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- 18. Floating WhatsApp & confetti ---------- */
.wa-float { position: fixed; right: 14px; bottom: 14px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--wa); animation: waRing 2s infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; }
@keyframes waRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 300; }

/* ---------- 19. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .logo-mark { width: 92px; }
  .logo-text strong { font-size: 1.05rem; }
  .verify-list { grid-template-columns: repeat(2, 1fr); }
  .options { grid-template-columns: repeat(4, 1fr); }
  .fr-perks { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 78px; }
  .section { padding: 4.5rem 0; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .teacher-inner { grid-template-columns: 1fr auto; text-align: left; align-items: center; }
  .about-bn { padding: 1.6rem 1.8rem; }
  /* tablet: 3 + 2, centred, every item same width */
  .verify-list { grid-template-columns: repeat(6, 1fr); gap: .5rem; }
  .verify-list li { grid-column: span 2; }
  .verify-list li:nth-child(4) { grid-column: 2 / span 2; }
  .verify-list li:last-child:nth-child(odd) { grid-column: 4 / span 2; }
  .game-tabs { justify-content: center; flex-wrap: wrap; overflow: visible; margin-inline: 0; }
  .game-card, .soroban-wrap { padding: 1.8rem 1.8rem 2rem; }
  .cert-card { grid-template-columns: 300px 1fr; }
  .darpan { grid-template-columns: auto 1fr auto; padding: 1.3rem 1.6rem; }
  .fr-steps { grid-template-columns: repeat(5, 1fr); gap: .7rem; }
  .fr-steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 36px; height: 6px; border-radius: 3px; background: linear-gradient(var(--wood-light), var(--wood)); }
  .fr-steps li { position: relative; grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; row-gap: .3rem; padding: .9rem .5rem; }
  .fs-n { grid-row: auto; }
  .fr-who { padding: 1.4rem 1.6rem; }

  .timeline { grid-template-columns: repeat(4, 1fr); max-width: none; gap: 1.1rem; }
  .timeline::before { left: 8%; right: 8%; top: 52px; bottom: auto; width: auto; height: 6px; }
  .step { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 1.4rem 1rem; row-gap: .6rem; }
  .step-beads { grid-row: auto; width: 76px; height: 76px; }
  .step-beads i { width: 22px; height: 16px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .hero { padding: calc(var(--header-h) + 2.5rem) 0 4rem; min-height: min(92vh, 860px); display: flex; align-items: center; }
  .hero > .container { width: min(100% - var(--gutter) * 2, var(--maxw)); }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .hero-text { text-align: left; }
  .hero-lead { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-facts { justify-content: flex-start; }
  .hero-visual { width: 100%; max-width: 560px; }

  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
  .course-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .benefit { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: .5rem; padding: 1.5rem 1rem; }
  .b-icon { grid-row: auto; }
  .cert-list { grid-template-columns: repeat(2, 1fr); }
  .cert-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 2.2rem; }
  .fr-grid { grid-template-columns: 1.35fr 1fr; gap: 2.4rem; align-items: start; }
  .fr-cta { position: sticky; top: calc(var(--header-h) + 2rem); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr; }
  .gallery { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .nav-menu { position: static; transform: none; width: auto; padding: 0; background: none; box-shadow: none; border: 0; flex-direction: row; align-items: center; gap: 0; overflow: visible; }
  .nav-menu a:not(.btn) { font-size: 1rem; padding: .3rem .6rem; gap: .4rem; min-height: 44px; }
  .nav-bead { width: 10px; height: 10px; }
  .nav-cta-item { margin: 0 0 0 .5rem; }
  .nav-cta-item .btn { width: auto; }
  .nav-backdrop { display: none; }
  .cert-card { grid-template-columns: 280px 1fr; }
}

@media (min-width: 1200px) and (max-width: 1379px) {
  .nav-menu a:not(.btn) { font-size: .92rem; padding: .3rem .38rem; gap: .3rem; white-space: nowrap; }
  .nav-cta-item .btn { white-space: nowrap; padding-inline: 1rem; }
  .logo-text small { display: none; }
}

@media (min-width: 1280px) {
  /* desktop: all 5 in one even row */
  .verify-strip { padding: 1rem 0; }
  .verify-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
  .verify-list li, .verify-list li:nth-child(4), .verify-list li:last-child:nth-child(odd) { grid-column: auto; }
  .verify-list a { height: 100%; padding: .65rem .8rem; border-radius: 16px; background: color-mix(in srgb, var(--c) 6%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 28%, #fff); transition: transform .2s, box-shadow .2s, background .2s; }
  .verify-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
  .verify-list strong { font-size: .98rem; white-space: nowrap; display: block; }
  .verify-list a > span:last-child { min-width: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .floating-numbers { display: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 1rem 2rem; padding: 0 1rem; }
  .ticker-track span[aria-hidden="true"] { display: none; }
  .reveal { opacity: 1; transform: none; }
}
