/* ============================================================================
   HOME PAGE — layouts/layout_3/home.php
   ---------------------------------------------------------------------------
   A calm, professional institute website built on the logo:
     navy  #0b3a70 (the lettering)  ·  deep navy #06234a / #03142c
     gold  #f5b301 (the swoosh and star) with #e0a000 for text on white
   Headings: Poppins — the same geometric family as the logo's wordmark.
   Body: Inter. Sinhala: Noto Sans Sinhala.
   White and light-grey bands alternate; one navy band; 8px corners;
   restrained shadows; no decorative effects.
   ========================================================================== */

html[data-bm="home"] { --ca-font: 'Inter', 'Noto Sans Sinhala', system-ui, -apple-system, 'Segoe UI', sans-serif; }

:root {
    --navy: #0b3a70;
    --navy-2: #0d5cad;
    --navy-dk: #06234a;
    --navy-xd: #03142c;
    --gold: #f5b301;
    --gold-dk: #e0a000;
    --gold-lt: #fff3cf;
    --ink: #121a2c;
    --text: #455067;
    --muted: #6b7489;
    --line: #e2e7ef;
    --alt: #f5f7fb;
    --white: #fff;
    --head: 'Montserrat', 'Noto Sans Sinhala', system-ui, sans-serif;
    --body: 'Inter', 'Noto Sans Sinhala', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --r: 8px;
    --r-lg: 12px;
    --sh: 0 1px 2px rgba(11,58,112,.06), 0 6px 20px rgba(11,58,112,.06);
    --sh-hover: 0 2px 4px rgba(11,58,112,.06), 0 16px 36px rgba(11,58,112,.12);
    --ease: cubic-bezier(.2,.7,.2,1);
}

/* ── base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; overflow-x: clip;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.25; font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold-lt); color: var(--ink); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.empty { color: var(--muted); text-align: center; padding: 20px 0; }

/* ── motion ──────────────────────────────────────────────────────────────────
   Calm and quick: things rise 28px and fade in once, then stay put. Grids
   arrive card by card (--d is set per card by the page script). Nothing
   loops except the slow zoom on the banner photo. */
:root { --ease-out: cubic-bezier(.16,1,.3,1); }
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
/* while the logo intro is up, the page waits underneath it */
.pl-on:not(.pl-done) .rv { opacity: 0 !important; transform: translateY(28px) !important; }

/* photos settle from a slight zoom as their card arrives */
.js .rv :is(.sj-img img, .vd-thumb img, .lc-img img, .gl-item img) { transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.js .rv.in :is(.sj-img img, .vd-thumb img, .lc-img img) { transform: scale(1); }
.js .gl-item.rv.in img { transform: scale(1); }
.js .rv.in.sj-card:hover .sj-img img, .js .gl-item.rv.in:hover img { transform: scale(1.05); }

/* section headings: kicker, title, then the gold rule draws itself */
.js .sx-head .sx-kicker { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .sx-head.in .sx-kicker { opacity: 1; transform: none; }
.js .sx-head .sx-title::after, .js .faq-side .sx-title::after, .js .tc-copy .sx-title::after { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out) .35s; }
.js .sx-head.is-center .sx-title::after { transform-origin: center; }
.js .sx-head.in .sx-title::after, .js .faq-side.in .sx-title::after, .js .tc-copy.in .sx-title::after { transform: scaleX(1); }

/* teacher photo: the gold frame slides into place behind it */
.js .tc-photo::before { transform: translate(-18px, -18px); opacity: 0; transition: transform 1.1s var(--ease-out) .25s, opacity .8s .25s; }
.js .tc-photo.in::before { transform: none; opacity: 1; }

/* "at a glance" rows light up one by one */
.js .glance li { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .glance.in li { opacity: 1; transform: none; }
.js .glance.in li:nth-child(2) { transition-delay: .1s; } .js .glance.in li:nth-child(3) { transition-delay: .2s; } .js .glance.in li:nth-child(4) { transition-delay: .3s; }

/* header and banner ease in on arrival */
.js .hd { animation: hdIn .7s var(--ease-out) both; }
.js .sl { animation: slIn 1s var(--ease-out) both; }
.pl-on:not(.pl-done) .hd, .pl-on:not(.pl-done) .sl { animation-play-state: paused; }
@keyframes hdIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes slIn { from { opacity: 0; } }

/* ── logo intro ──────────────────────────────────────────────────────────── */
.pl { display: none; }
.pl-on .pl { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; background: #fff;
    transition: opacity .6s ease, visibility .6s; animation: plFailsafe 0s linear 2.6s forwards; }
.pl-done .pl { opacity: 0; visibility: hidden; }
.pl-in { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.pl-in img { width: min(300px, 70vw); height: auto; opacity: 0; transform: translateY(8px); animation: plLogo .8s var(--ease-out) .1s forwards; }
.pl-bar { width: 160px; height: 2px; background: #edf0f6; border-radius: 2px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 40%; background: var(--gold); border-radius: 2px; animation: plBar 1.1s ease-in-out infinite; }
.pl-done .pl-in { transform: scale(.98); transition: transform .6s ease; }
@keyframes plLogo { to { opacity: 1; transform: none; } }
@keyframes plBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes plFailsafe { to { opacity: 0; visibility: hidden; } }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
    padding: 11px 22px; border-radius: 6px; border: 1.5px solid transparent;
    font-family: var(--head); font-size: 14px; font-weight: 500; letter-spacing: .01em; line-height: 1.3;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn i { font-size: .85em; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dk); }
.btn-gold { background: var(--gold); color: var(--navy-xd); }
.btn-gold:hover { background: #eaa600; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ── top bar ─────────────────────────────────────────────────────────────── */
.tb { background: var(--navy-xd); color: rgba(255,255,255,.78); font-size: 13px; }
.tb-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.tb-l { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.tb-l a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.tb-l a:hover { color: #fff; }
.tb-l i { color: var(--gold); font-size: 12px; }
.tb-r { display: flex; gap: 4px; }
.tb-r a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; color: rgba(255,255,255,.7); transition: color .2s, background .2s; }
.tb-r a:hover { color: var(--navy-xd); background: var(--gold); }
@media (max-width: 760px) { .tb-mail { display: none !important; } .tb-in { min-height: 36px; } .tb-l { font-size: 12.5px; gap: 2px 16px; } }
@media (max-width: 480px) { .tb-r { display: none; } }

/* ── header ──────────────────────────────────────────────────────────────── */
.hd { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.hd.is-stuck { box-shadow: 0 4px 18px rgba(11,58,112,.08); }
.hd-in { display: flex; align-items: center; gap: 28px; height: 84px; }
.hd-logo img { height: 62px; width: auto; }
.hd-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hd-nav a { position: relative; padding: 10px 12px; font-family: var(--head); font-size: 14.5px; font-weight: 500; color: var(--ink); transition: color .2s; }
.hd-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.hd-nav a:hover { color: var(--navy); }
.hd-nav a:hover::after, .hd-nav a.on::after { transform: scaleX(1); }
.hd-nav a.on { color: var(--navy); }
.hd-cta { display: flex; align-items: center; gap: 10px; }
.hd-burger { display: none; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hd-burger span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
@media (max-width: 1100px) { .hd-nav { display: none; } .hd-burger { display: inline-flex; } .hd-cta { margin-left: auto; } }
@media (max-width: 600px) { .hd-in { height: 70px; gap: 12px; } .hd-logo img { height: 50px; } .hide-sm { display: none; } .hd-cta .btn { padding: 9px 16px; } }

/* drawer */
.dw-bg { position: fixed; inset: 0; z-index: 990; background: rgba(3,20,44,.5); opacity: 0; transition: opacity .25s; }
.dw-bg.open { opacity: 1; }
.dw { position: fixed; top: 0; right: 0; bottom: 0; z-index: 991; width: min(340px, 88vw); background: #fff; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -10px 0 40px rgba(3,20,44,.2); }
.dw.open { transform: none; }
.dw-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dw-head img { height: 46px; }
.dw-x { width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line); color: var(--navy); font-size: 17px; }
.dw nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.dw nav a { display: block; padding: 14px 22px; font-family: var(--head); font-weight: 500; font-size: 16px; color: var(--ink); border-left: 3px solid transparent; }
.dw nav a:hover { background: var(--alt); border-left-color: var(--gold); color: var(--navy); }
.dw-foot { padding: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.dw-tel { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); padding-top: 4px; }
.dw-tel i { color: var(--gold-dk); }

/* ── banner slider ───────────────────────────────────────────────────────── */
/* 16:9, the shape of the college banner. On a wide screen the frame stops at
   the viewport height (less the header), so only the banner's decorative top
   and bottom swooshes are trimmed — never the name, the motto or the lion. */
.sl { position: relative; overflow: hidden; background: var(--navy-xd); aspect-ratio: 16 / 9; max-height: min(760px, calc(100vh - 110px)); min-height: 200px; width: 100%; }
.sl-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.65,0,.35,1); will-change: transform; }
.sl-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.sl-slide video, .sl-slide .sl-img { width: 100%; height: 100%; object-fit: cover; }
/* slow "Ken Burns" zoom on photo slides while they are on screen */
.sl-slide.is-cover .sl-img { transform: scale(1); transition: transform 7.5s cubic-bezier(.25,.1,.25,1); }
.sl-slide.is-cover.is-active .sl-img { transform: scale(1.07); }
.sl-slide.is-contain .sl-img { position: relative; z-index: 1; object-fit: contain; }
.sl-blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.55) saturate(1.2); }
.sl-arrow { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy);
    display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: 0; transition: opacity .25s, background .2s, color .2s; }
.sl:hover .sl-arrow, .sl-arrow:focus-visible { opacity: 1; }
.sl-arrow:hover { background: var(--gold); color: var(--navy-xd); }
.sl-prev { left: 24px; } .sl-next { right: 24px; }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.sl-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08); transition: background .2s, transform .2s; }
.sl-dots button.on { background: var(--gold); transform: scale(1.2); }
.sl-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255,255,255,.15); }
.sl-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
@media (hover: none) { .sl-arrow { opacity: 1; width: 40px; height: 40px; margin-top: -20px; } .sl-prev { left: 12px; } .sl-next { right: 12px; } }
/* phones keep the banner's own 16:9 — a taller frame cut the name's first
   and last letters off its sides */
@media (max-width: 760px) { .sl { aspect-ratio: 16 / 9; min-height: 0; } .sl-dots { bottom: 12px; } }

/* ── sections ────────────────────────────────────────────────────────────── */
.sec { padding: clamp(64px, 8vw, 100px) 0; }
.sec-white { background: #fff; }
.sec-alt { background: var(--alt); border-top: 1px solid #edf0f6; border-bottom: 1px solid #edf0f6; }
.sec-navy { background: var(--navy-dk); color: rgba(255,255,255,.78); }
.sec-more { text-align: center; margin-top: 40px; }

.sx-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sx-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.sx-kicker { display: inline-block; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 10px; }
.sx-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--navy); letter-spacing: -.01em; line-height: 1.2; }
.sx-head .sx-title::after, .faq-side .sx-title::after { content: ''; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 18px; border-radius: 2px; }
.sx-head.is-center .sx-title::after { margin-left: auto; margin-right: auto; }
.sx-sub { margin-top: 16px; font-size: 17px; color: var(--muted); }
.sec-navy .sx-title { color: #fff; }
.sec-navy .sx-kicker { color: var(--gold); }
.sec-navy .sx-sub { color: rgba(255,255,255,.7); }

/* ── welcome ─────────────────────────────────────────────────────────────── */
.welcome-in { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.welcome-title { font-size: clamp(30px, 4vw, 48px); font-weight: 700; color: var(--navy); line-height: 1.15; letter-spacing: -.015em; }
.welcome-tag { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); }
.welcome-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.welcome-p { margin-top: 20px; font-size: 17px; max-width: 620px; }
.welcome-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.glance { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 32px; position: relative; overflow: hidden; border-bottom: 4px solid var(--gold); }
.glance::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,.05); pointer-events: none; }
.glance-h { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.glance ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; }
.glance li { background: var(--navy); padding: 18px 16px; display: flex; flex-direction: column; gap: 2px; }
.glance li i { color: var(--gold); font-size: 18px; margin-bottom: 8px; }
.glance li b { font-family: var(--head); font-size: 30px; font-weight: 700; color: #fff; line-height: 1.1; }
.glance li span { font-size: 13.5px; color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .welcome-in { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .glance { padding: 22px; } .glance li b { font-size: 24px; } }

/* notices */
.notice { background: var(--gold-lt); border-top: 1px solid #ffefc2; border-bottom: 1px solid #ffefc2; }
.notice-in { display: flex; gap: 18px; align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
.notice-tag { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 4px; background: var(--navy); color: #fff; font-family: var(--head); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.notice-list { display: grid; gap: 6px; font-size: 15px; color: var(--ink); }
.notice-list b { color: var(--navy); }
.notice-list time { color: var(--muted); font-size: 13px; margin-left: 6px; }
@media (max-width: 700px) { .notice-in { flex-direction: column; } }

/* ── classes ─────────────────────────────────────────────────────────────── */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.cl-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--r); box-shadow: var(--sh); transition: box-shadow .25s, border-top-color .25s, transform .25s var(--ease); }
.cl-card:hover { box-shadow: var(--sh-hover); border-top-color: var(--gold); transform: translateY(-3px); }
.cl-top { display: flex; justify-content: space-between; align-items: center; }
.cl-n { font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--gold-dk); letter-spacing: .06em; }
.cl-top i { width: 40px; height: 40px; border-radius: 50%; background: var(--alt); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.cl-card h3 { font-size: 19px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.cl-card p { font-size: 15px; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-tags li { padding: 3px 10px; border-radius: 4px; background: var(--alt); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text); }
.cl-link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 500; font-size: 14.5px; color: var(--navy); }
.cl-link i { font-size: 12px; transition: transform .2s; }
.cl-card:hover .cl-link i { transform: translateX(4px); }
.cl-link:hover { color: var(--gold-dk); }
@media (max-width: 420px) { .cl-grid { grid-template-columns: 1fr; } .cl-card { padding: 22px; } }

/* ── subjects ────────────────────────────────────────────────────────────── */
.sj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.sj-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: box-shadow .25s, transform .25s var(--ease); }
.sj-card:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }
.sj-img { aspect-ratio: 16 / 10; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 40px; overflow: hidden; }
.sj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sj-card:hover .sj-img img { transform: scale(1.04); }
.sj-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sj-body b { font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--navy); }
.sj-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sj-meta i { color: var(--gold-dk); }
.sj-btn { align-self: flex-start; margin-top: 10px; }
@media (min-width: 761px) {
    .sj-grid.is-one { grid-template-columns: 1fr; }
    .sj-grid.is-one .sj-card { flex-direction: row; }
    .sj-grid.is-one .sj-img { flex: 0 0 50%; aspect-ratio: auto; min-height: 320px; }
    .sj-grid.is-one .sj-body { padding: 44px 48px; justify-content: center; gap: 12px; }
    .sj-grid.is-one .sj-body b { font-size: 32px; font-weight: 700; }
    .sj-grid.is-one .sj-body > span:not(.sj-meta):not(.sj-btn) { font-size: 17px; }
}

/* ── teacher ─────────────────────────────────────────────────────────────── */
.tc { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.tc-photo { position: relative; padding: 0 20px 20px 0; }
.tc-photo::before { content: ''; position: absolute; left: 20px; top: 20px; right: 0; bottom: 0; border: 3px solid var(--gold); border-radius: var(--r); }
.tc-photo img, .tc-ph { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r); box-shadow: var(--sh-hover); background: #fff; }
.tc-ph { display: flex; align-items: center; justify-content: center; font-size: 64px; color: var(--line); }
.tc-role { margin-top: 18px; font-family: var(--head); font-weight: 500; color: var(--gold-dk); }
.tc-text { margin-top: 14px; font-size: 16px; }
.tc-quote { margin-top: 24px; padding: 18px 22px; background: #fff; border-left: 4px solid var(--gold); border-radius: 0 var(--r) var(--r) 0; font-family: var(--head); font-weight: 500; font-size: 17px; font-style: italic; color: var(--navy); box-shadow: var(--sh); }
.tc-copy .sx-title::after { content: ''; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 18px; border-radius: 2px; }
@media (max-width: 860px) { .tc { grid-template-columns: 1fr; } .tc-photo { max-width: 400px; } }

/* ── why us (navy band) ──────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; }
.why { display: flex; gap: 18px; padding: 30px 28px; background: var(--navy-dk); transition: background .25s; }
.why:hover { background: #082e5a; }
.why-ico { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.why h3 { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.why p { font-size: 15px; color: rgba(255,255,255,.7); }

/* ── free lessons ────────────────────────────────────────────────────────── */
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.vd { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: box-shadow .25s, transform .25s var(--ease); }
.vd:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }
.vd-thumb { position: relative; aspect-ratio: 16 / 9; background: #0d1a36; overflow: hidden; }
.vd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(3,20,44,.15); transition: background .25s; }
.vd:hover .vd-thumb::after { background: rgba(3,20,44,.35); }
.vd-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.95);
    color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 18px; padding-left: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: background .2s, color .2s; }
.vd:hover .vd-play { background: var(--gold); color: var(--navy-xd); }
.vd-tag { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 3px 10px; border-radius: 4px; background: var(--gold); color: var(--navy-xd); font-family: var(--head); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.vd-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.vd-body b { font-family: var(--head); font-weight: 500; font-size: 15.5px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-body span { font-size: 13.5px; color: var(--muted); }
.vd-body span i { color: var(--gold-dk); margin-right: 3px; }

/* ── results ─────────────────────────────────────────────────────────────── */
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rs { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.rs.rs-more { display: none; }
.rs-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rs-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rs-body b { font-family: var(--head); font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.4; }
.rs-body span { font-size: 13.5px; color: var(--muted); }
.rs-body em { align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 4px; background: var(--gold-lt); color: #6e5000; font-style: normal; font-family: var(--head); font-size: 12.5px; font-weight: 600; line-height: 1.4; }

/* ── vision & mission ────────────────────────────────────────────────────── */
.vm { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.vm-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r); box-shadow: var(--sh); }
.vm-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.vm-card h3 { margin: 18px 0 10px; font-size: 22px; font-weight: 600; color: var(--navy); }
.vm-card div { font-size: 15.5px; line-height: 1.8; }

/* ── events ──────────────────────────────────────────────────────────────── */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.ev { display: flex; gap: 20px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.ev.is-past { opacity: .72; }
.ev-date { flex-shrink: 0; width: 76px; height: 82px; border-radius: var(--r); background: var(--navy); border-bottom: 3px solid var(--gold); color: rgba(255,255,255,.75); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; text-transform: uppercase; }
.ev-date b { font-family: var(--head); font-size: 28px; color: #fff; line-height: 1; }
.ev h3 { font-size: 17px; margin-bottom: 4px; color: var(--navy); }
.ev p { font-size: 14.5px; }
.ev-state { display: inline-block; margin-top: 10px; padding: 2px 10px; border-radius: 4px; background: var(--alt); font-size: 12.5px; font-weight: 600; color: var(--navy); }

/* ── gallery ─────────────────────────────────────────────────────────────── */
.gl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gl-item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--alt); cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.gl-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gl-item:hover img { transform: scale(1.05); }
.gl-cap { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 10px; padding: 18px; text-align: left; color: #fff; font-family: var(--head); font-weight: 500; font-size: 14px; line-height: 1.4;
    background: linear-gradient(to top, rgba(3,20,44,.85), rgba(3,20,44,0) 60%); opacity: 0; transition: opacity .3s; }
.gl-cap i { color: var(--gold); margin-bottom: 3px; }
.gl-item:hover .gl-cap, .gl-item:focus-visible .gl-cap { opacity: 1; }
@media (hover: none) { .gl-cap { opacity: 1; } }
@media (max-width: 760px) { .gl { grid-template-columns: 1fr 1fr; gap: 10px; } .gl-cap { font-size: 12px; padding: 10px; } }

.lb, .lb * { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lb { position: fixed; inset: 0; z-index: 10000; background: rgba(4,10,26,.95); display: flex; align-items: center; justify-content: center; padding: 60px 80px; }
.lb[hidden] { display: none; }
.lb figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb img { max-width: min(1200px, 100%); max-height: calc(100vh - 170px); object-fit: contain; border-radius: 6px; -webkit-user-drag: none; }
.lb figcaption { color: #fff; text-align: center; display: flex; flex-direction: column; gap: 4px; font-family: var(--head); }
.lb figcaption strong { font-weight: 500; font-size: 16px; } .lb figcaption em { font-style: normal; color: rgba(255,255,255,.55); font-size: 13px; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 17px; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.lb-btn:hover { background: var(--gold); color: var(--navy-xd); }
.lb-btn[hidden] { display: none; }
.lb-x { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); } .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb { padding: 64px 10px 92px; } .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } .lb img { max-height: calc(100vh - 230px); } }

/* ── testimonials ────────────────────────────────────────────────────────── */
.ts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; align-items: start; gap: 24px; }
.ts { position: relative; margin: 0; padding: 30px 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.ts::before { content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 24px; right: 26px; font-size: 28px; color: var(--gold-lt); }
.ts-stars { color: var(--gold); font-size: 13px; display: flex; gap: 3px; margin-bottom: 14px; }
.ts-msg { font-size: 15.5px; line-height: 1.75; color: var(--text); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ts.open .ts-msg { -webkit-line-clamp: unset; display: block; }
.ts-more { margin-top: 6px; color: var(--navy); font-weight: 600; font-size: 14px; }
.ts-more:hover { text-decoration: underline; }
.ts figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.ts-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold); font-family: var(--head); font-weight: 600; }
.ts-av img { width: 100%; height: 100%; object-fit: cover; }
.ts figcaption b { display: block; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--ink); }
.ts figcaption em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.rv-form { max-width: 760px; margin: 28px auto 0; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }

/* ── forms ───────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; }
.form label > span { font-family: var(--head); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.form input, .form textarea { width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid #d5dbe6; background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,58,112,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); }
.stars-in { display: flex; gap: 2px; }
.stars-in button { font-size: 22px; color: #d5dbe6; padding: 2px; transition: color .15s; }
.stars-in button.on { color: var(--gold); }
.alert { padding: 12px 16px; border-radius: 6px; font-size: 14.5px; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.alert-ok { background: #e7f6ec; color: #136c33; border: 1px solid #bfe3cb; }
.alert-err { background: #fdecec; color: #a82a1e; border: 1px solid #f5c2bd; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .rv-form { padding: 22px 18px; } }

/* ── locations ───────────────────────────────────────────────────────────── */
.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.lc { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: box-shadow .25s, transform .25s var(--ease); }
.lc:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }
.lc-img { aspect-ratio: 16 / 10; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--gold); overflow: hidden; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; }
.lc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.lc-body b { font-family: var(--head); font-size: 18px; font-weight: 600; color: var(--navy); }
.lc-body > span { font-size: 14.5px; color: var(--muted); }
.lc-body > span i { color: var(--gold-dk); margin-right: 4px; }
.lc-body em { font-style: normal; font-family: var(--head); font-weight: 500; font-size: 14.5px; color: var(--navy); margin-top: 4px; }
@media (min-width: 761px) { .lc-grid:has(> .lc:only-child) { grid-template-columns: 1fr; } .lc:only-child { flex-direction: row; } .lc:only-child .lc-img { flex: 0 0 50%; aspect-ratio: auto; min-height: 300px; } .lc:only-child .lc-body { padding: 40px 44px; justify-content: center; } .lc:only-child .lc-body b { font-size: 26px; } }

/* ── modals ──────────────────────────────────────────────────────────────── */
.md { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(3,20,44,.55); }
.md.open { display: flex; animation: mdIn .2s ease; }
.md-box { position: relative; width: 100%; max-width: 840px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; background: #fff; border-radius: var(--r-lg); border-top: 4px solid var(--gold); box-shadow: 0 30px 80px rgba(3,20,44,.35); }
.md-sm { max-width: 520px; }
.md-box h3 { font-size: 21px; color: var(--navy); padding-right: 44px; margin-bottom: 12px; }
.md-x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line); color: var(--text); }
.md-x:hover { background: var(--alt); }
.md-addr { display: inline-block; padding: 5px 12px; border-radius: 4px; background: var(--alt); color: var(--navy); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.md-box > p { margin-bottom: 16px; }
.md-map { height: 370px; border-radius: var(--r); overflow: hidden; background: var(--alt); }
.md-map iframe { width: 100%; height: 100%; border: 0; }
.grp-list { display: grid; gap: 10px; }
.grp { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.grp-ico { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; overflow: hidden; }
.grp-ico img { width: 100%; height: 100%; object-fit: cover; }
.grp-info { flex: 1; min-width: 0; }
.grp-info b { display: block; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--ink); }
.grp-info em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.bg-wa { background: #25d366; } .bg-tg { background: #229ed9; } .ic-wa { color: #25d366; } .ic-tg { color: #229ed9; }
@keyframes mdIn { from { opacity: 0; } }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .sx-sub { margin-bottom: 28px; }
.faq-help { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 22px; background: var(--navy); border-radius: var(--r); color: #fff; border-bottom: 3px solid var(--gold); }
.faq-help > i { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.faq-help b { display: block; font-family: var(--head); font-weight: 600; }
.faq-help span { display: block; font-size: 14px; color: rgba(255,255,255,.7); }
.faq-help .btn { grid-column: 2; justify-self: start; margin-top: 8px; background: var(--gold); color: var(--navy-xd); }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #cbd5e6; box-shadow: var(--sh); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--head); font-weight: 500; font-size: 16px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex-shrink: 0; color: var(--navy); font-size: 13px; transition: transform .25s; }
.faq-item[open] summary { color: var(--navy); }
.faq-item[open] summary i { transform: rotate(180deg); color: var(--gold-dk); }
.faq-item > div { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ── call to action ──────────────────────────────────────────────────────── */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(255,255,255,.04); }
.cta::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; }
.cta p { margin-top: 8px; color: rgba(255,255,255,.75); font-size: 17px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── contact ─────────────────────────────────────────────────────────────── */
.ct { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.ct-info { display: grid; gap: 14px; }
.ct-item { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--alt); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, background .2s; word-break: break-word; }
.ct-item:hover { border-color: var(--gold); background: #fff; }
.ct-item > span { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ct-item em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.ct-item b { display: block; font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--ink); }
.ct-form { padding: 32px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--r); box-shadow: var(--sh); }
.ct-form h3 { font-size: 21px; color: var(--navy); }
.ct-form .btn { justify-self: start; }
@media (max-width: 860px) { .ct { grid-template-columns: 1fr; } .ct-form { padding: 24px 20px; } }

/* ── footer ──────────────────────────────────────────────────────────────── */
.ft { background: var(--navy-xd); color: rgba(255,255,255,.68); font-size: 14.5px; border-top: 4px solid var(--gold); }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-top: 68px; padding-bottom: 52px; }
.ft-brand img { width: 230px; height: auto; margin-bottom: 18px; }
.ft-brand p { line-height: 1.75; max-width: 330px; }
.ft-soc { display: flex; gap: 8px; margin-top: 20px; }
.ft-soc a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .2s, color .2s, border-color .2s; }
.ft-soc a:hover { background: var(--gold); color: var(--navy-xd); border-color: var(--gold); }
.ft h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 18px; padding-bottom: 12px; position: relative; }
.ft h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.ft ul { display: grid; gap: 10px; }
.ft ul a { transition: color .2s; word-break: break-word; }
.ft ul a:hover { color: var(--gold); }
.ft-contact a { display: flex; gap: 10px; align-items: baseline; }
.ft-contact i { color: var(--gold); width: 16px; flex-shrink: 0; }
.ft-bar { border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.5); }
.ft-bar-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 20px; padding-bottom: 20px; }
.ft-legal { display: flex; gap: 20px; }
.ft-legal a:hover { color: #fff; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ft-grid { grid-template-columns: 1fr; gap: 32px; } }

/* floating buttons */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 800; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; font-size: 26px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(37,211,102,.4); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.06); }
.to-top { position: fixed; right: 26px; bottom: 86px; z-index: 800; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; box-shadow: var(--sh-hover);
    display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, background .2s; }
.to-top.on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--gold); color: var(--navy-xd); }

/* headings, buttons and labels in Poppins (the logo's family). The shared
   brand stylesheet sets Inter on every element with a stronger selector, so
   this list is scoped the same way to take precedence. */
html[data-bm] body :is(h1, h2, h3, h4, .btn, .hd-nav a, .dw nav a, .sx-kicker, .welcome-tag, .glance li b, .cl-n, .cl-link, .sj-body b,
    .tc-role, .tc-quote, .vd-body b, .vd-tag, .rs-body b, .rs-body em, .ev-date b, .ts figcaption b, .ts-av, .form label > span,
    .faq-item summary, .faq-help b, .notice-tag, .ct-item b, .lb figcaption, .gl-cap, .grp-info b, .lc-body b, .lc-body em) {
    font-family: var(--head);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .js .rv { opacity: 1; transform: none; }
    .sl-slide .sl-img { transform: none !important; }
    .pl { display: none !important; }
}

/* ── type scale (SampathBandara Maths.lk) ─────────────────────────────────────────────────
   Montserrat runs much wider than the Poppins these sizes were set for, and
   Sinhala lines run taller, so headings read oversized and body copy heavy,
   most of all on phones. One calmer scale for the whole page. */
.welcome-title { font-size: clamp(26px, 3.1vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.sx-title, .tc-copy .sx-title, .faq-side .sx-title { font-size: clamp(22px, 2.5vw, 32px); font-weight: 800; letter-spacing: -.015em; }
.cta h2 { font-size: clamp(20px, 2.3vw, 28px); }
.welcome-p, .sx-sub, .cta p { font-size: 15.5px; line-height: 1.75; }
.welcome-tag { font-size: 13px; letter-spacing: .22em; }
.sx-kicker { font-size: 11.5px; letter-spacing: .2em; }
.glance b { font-size: clamp(22px, 2vw, 26px); }
.cl-card h3, .sj-card h3 { font-size: 17px; line-height: 1.45; }
.vm-card h3 { font-size: 19px; }
.why h3 { font-size: 16.5px; }
.tc-quote { font-size: 15.5px; }
.tc-copy p, .faq-item summary { font-size: 15px; }
@media (max-width: 600px) {
    body { font-size: 15px; }
    .welcome-title { font-size: 26px; }
    .sx-title, .tc-copy .sx-title, .faq-side .sx-title { font-size: 22px; }
    .cta h2 { font-size: 20px; }
    .welcome-p, .sx-sub, .cta p { font-size: 14.5px; line-height: 1.75; }
    .welcome-tag { font-size: 11.5px; letter-spacing: .18em; gap: 9px; }
    .cl-card h3, .sj-card h3 { font-size: 16px; }
    .cl-card p, .why p, .vm-card p, .ts p, .faq-item p { font-size: 14px; }
    .vm-card h3 { font-size: 17px; }
    .why h3 { font-size: 15.5px; }
    .tc-quote { font-size: 14.5px; }
    .tc-copy p, .faq-item summary { font-size: 14.5px; }
    .btn-lg { font-size: 14px; padding: 12px 22px; }
}

/* ── HOME HERO: the logo up front (SampathBandara Maths.lk) ──────────────────
   Deep navy band carrying the full logo, the maths grid and drifting symbols,
   gold call to action, glass "at a glance" card. */
.welcome--hero { position: relative; overflow: hidden; color: rgba(255,255,255,.82);
    background:
        radial-gradient(900px 520px at 12% 10%, rgba(10,120,214,.38), transparent 62%),
        radial-gradient(700px 480px at 95% 105%, rgba(245,179,1,.16), transparent 60%),
        linear-gradient(160deg, #0b3a70 0%, #06234a 55%, #03142c 100%);
    padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 110px); }
.welcome--hero::before { content: ''; position: absolute; inset: 0; opacity: .10; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27220%27 height=%27220%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%271%27%3E%3Cpath d=%27M0 .5h220M0 55.5h220M0 110.5h220M0 165.5h220M.5 0v220M55.5 0v220M110.5 0v220M165.5 0v220%27 opacity=%27.22%27/%3E%3Cpath d=%27M120 205c18-62 40-92 92-98%27 stroke=%27%23ffffff%27 stroke-width=%271.6%27 opacity=%27.9%27/%3E%3Cg fill=%27%23ffffff%27 stroke=%27none%27 font-family=%27Georgia,Times New Roman,serif%27 font-style=%27italic%27 opacity=%27.75%27%3E%3Ctext x=%2716%27 y=%2740%27 font-size=%2726%27%3E%CF%80%3C/text%3E%3Ctext x=%27128%27 y=%2744%27 font-size=%2720%27%3E%E2%88%9Ax%3C/text%3E%3Ctext x=%2770%27 y=%27104%27 font-size=%2724%27 font-style=%27normal%27%3E%CE%A3%3C/text%3E%3Ctext x=%27176%27 y=%2794%27 font-size=%2722%27 font-style=%27normal%27%3E%E2%88%9E%3C/text%3E%3Ctext x=%2720%27 y=%27160%27 font-size=%2719%27%3Ex%C2%B2%3C/text%3E%3Ctext x=%2772%27 y=%27206%27 font-size=%2720%27 font-style=%27normal%27%3E%C3%B7%3C/text%3E%3Ctext x=%27182%27 y=%27204%27 font-size=%2718%27 font-style=%27normal%27%3E%2B%3C/text%3E%3C/g%3E%3Ccircle cx=%27110.5%27 cy=%27110.5%27 r=%272.5%27 fill=%27%23ffffff%27 stroke=%27none%27/%3E%3C/svg%3E") 0 0 / 220px 220px; }
.welcome--hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, #0a78d6, #f5b301 55%, #ffd54f); }
.welcome--hero .wrap { position: relative; z-index: 1; }
.welcome-logo { margin: 0 0 6px; line-height: 0; }
.welcome-logo img { width: min(640px, 100%); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.welcome--hero .welcome-tag { color: #ffd54f; }
.welcome--hero .welcome-tag i { background: #f5b301; }
.welcome--hero .welcome-p { color: rgba(255,255,255,.82); }
.welcome--hero .btn-gold { background: #f5b301; color: #03142c; box-shadow: 0 10px 28px rgba(245,179,1,.30); }
.welcome--hero .btn-gold:hover { background: #ffc93c; }
.welcome--hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.welcome--hero .btn-outline:hover { background: #fff; color: #0b3a70; border-color: #fff; }
.welcome--hero .glance { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-bottom: 4px solid #f5b301;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.welcome--hero .glance li { background: rgba(6,35,74,.55); }
.welcome--hero .glance li i { color: #f5b301; }
.wh-sym { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.wh-sym span { position: absolute; font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: rgba(255,255,255,.08); line-height: 1; }
.wh-sym span:nth-child(1) { left: 4%;  top: 12%; font-size: 72px; }
.wh-sym span:nth-child(2) { left: 46%; top: 8%;  font-size: 46px; color: rgba(245,179,1,.14); }
.wh-sym span:nth-child(3) { left: 58%; bottom: 10%; font-size: 64px; }
.wh-sym span:nth-child(4) { right: 4%; top: 14%; font-size: 86px; color: rgba(10,120,214,.22); }
.wh-sym span:nth-child(5) { left: 30%; bottom: 6%; font-size: 40px; }
.wh-sym span:nth-child(6) { right: 32%; top: 40%; font-size: 38px; color: rgba(245,179,1,.12); }
.wh-sym span:nth-child(7) { left: 2%; bottom: 14%; font-size: 52px; }
.wh-sym span:nth-child(8) { right: 10%; bottom: 8%; font-size: 44px; }
@media (prefers-reduced-motion: no-preference) {
    .wh-sym span { animation: whFloat 9s ease-in-out infinite alternate; }
    .wh-sym span:nth-child(even) { animation-duration: 12s; animation-delay: -3s; }
    @keyframes whFloat { from { transform: translateY(0) rotate(0); } to { transform: translateY(-18px) rotate(6deg); } }
}
@media (max-width: 900px) { .welcome-logo img { width: min(520px, 100%); } }
@media (max-width: 600px) { .wh-sym span { font-size: 34px !important; } .welcome--hero { padding: 44px 0 52px; } }
/* ════════════════════════════════════════════════════════════════════════════
   NOTEBOOK — SampathBandara Maths.lk
   The site reads like a maths exercise book rather than a template: graph
   paper with a red margin line, notes in the teacher's red pen (Caveat), a
   hand-drawn underline under headings, the "what we do" list on a blackboard,
   a sticky note in the hero, photos pinned like polaroids. Headings sit on
   the left like a page, not centred like a landing-page kit. Fewer shadows,
   smaller radii, flatter cards.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
    --hand: 'Caveat', 'Noto Sans Sinhala', cursive;
    --pen: #c2410c;                                   /* teacher's red pen */
    --grid: rgba(11,58,112,.075);
    --margin: rgba(214,69,69,.38);
    --paper: #fbfcfe;
    --r: 6px; --r-lg: 8px;
    --sh: 0 1px 0 rgba(11,58,112,.06);
    --sh-hover: 0 6px 18px rgba(11,58,112,.10);
}
.hand { font-family: var(--hand); font-weight: 700; color: var(--pen); line-height: 1.1; }

/* graph paper + margin line */
.nb-hero, .sec-alt {
    background-color: var(--paper);
    background-image:
        linear-gradient(90deg, transparent 0 calc(max(24px, (100vw - 1200px) / 2 - 18px)), var(--margin) 0 calc(max(24px, (100vw - 1200px) / 2 - 18px) + 2px), transparent 0),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 100% 100%, 26px 26px, 26px 26px;
    border-top: 1px solid #e6ebf3; border-bottom: 1px solid #e6ebf3;
}
@media (max-width: 760px) {
    .nb-hero, .sec-alt { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px, 22px 22px; }
}

/* headings: on the left, a red-pen note above, a hand-drawn line below */
.sx-head, .sx-head.is-center { text-align: left; margin-left: 0; margin-right: 0; max-width: 720px; }
.sx-kicker, .tc-copy .sx-kicker, .faq-side .sx-kicker {
    display: inline-block; font-family: var(--hand); font-weight: 700; font-size: 25px; letter-spacing: 0; text-transform: none;
    color: var(--pen); margin-bottom: 2px; transform: rotate(-2deg); transform-origin: left bottom;
}
.sx-title { font-size: clamp(25px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.015em; color: var(--navy); }
.sx-head .sx-title::after, .tc-copy .sx-title::after, .faq-side .sx-title::after {
    content: ''; display: block; width: 150px; height: 12px; margin: 10px 0 0; border-radius: 0; background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 12'%3E%3Cpath d='M2 8c18-5 34-6 52-3s30 4 46 0 30-5 48-1' fill='none' stroke='%23f5b301' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left center / 150px 12px no-repeat;
}
.sx-sub { font-size: 16px; max-width: 620px; }
.sec-navy .sx-kicker { color: #ffd54f; }

/* flatter cards */
.cl-card, .vd, .ts, .faq-item, .lc { border-radius: var(--r) !important; box-shadow: var(--sh) !important; }
.cl-card { border-top: 0 !important; border-left: 4px solid var(--navy) !important; padding: 26px 26px 22px !important; }
.cl-card:hover, .vd:hover, .ts:hover { box-shadow: var(--sh-hover) !important; transform: translateY(-2px); }
.cl-card h3 { font-size: 19px; }
.cl-tags li { border-radius: 3px !important; background: #f1f5fb !important; border: 0 !important; color: #33405f !important; }

/* ── hero: a page of the exercise book ─────────────────────────────────── */
.nb-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(44px, 6vw, 80px); border-top: 0; }
.nb-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.nb-note { font-size: clamp(24px, 2.6vw, 31px); margin: 0 0 6px; transform: rotate(-1.5deg); transform-origin: left; }
.nb-logo { margin: 0; line-height: 0; }
.nb-logo img { width: min(600px, 100%); height: auto; }
.nb-tag { margin-top: 10px; font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.nb-tag i { font-style: normal; color: var(--gold); margin: 0 6px; }
.nb-lead { margin-top: 16px; max-width: 600px; font-size: 16.5px; line-height: 1.75; color: #3c4a63; }
.nb-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.nb-facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 30px; padding-top: 18px; border-top: 1px dashed #cfd8e6; font-size: 14px; color: #56617f; }
.nb-facts li { padding: 0 18px; border-left: 1px solid #d7dee9; }
.nb-facts li:first-child { padding-left: 0; border-left: 0; }
.nb-facts b { font-family: var(--head); font-size: 20px; font-weight: 800; color: var(--navy); margin-right: 3px; }

/* the sticky note */
.nb-card { position: relative; background: #fff6c2; padding: 34px 28px 26px; transform: rotate(1.6deg);
    box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 12px 22px -10px rgba(70,55,0,.35); border-radius: 2px; }
.nb-card::before { content: ''; position: absolute; top: -13px; left: 50%; width: 110px; height: 28px; margin-left: -55px; transform: rotate(-3deg);
    background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.05); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.nb-card-h { font-size: 30px; color: var(--navy); margin: 0 0 10px; }
.nb-card ol { counter-reset: c; display: grid; gap: 10px; margin: 0 0 18px; }
.nb-card li { counter-increment: c; display: grid; grid-template-columns: 28px 1fr; font-weight: 600; color: #26324d; line-height: 1.45; font-size: 15px; }
.nb-card li::before { content: counter(c) '.'; font-family: var(--hand); font-size: 22px; font-weight: 700; color: var(--pen); line-height: 1; }
.nb-card-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.nb-doodle { position: absolute; right: 18px; bottom: -34px; font-size: 21px; color: rgba(11,58,112,.45); transform: rotate(-4deg); white-space: nowrap; font-weight: 500; }
@media (max-width: 900px) {
    .nb-hero-in { grid-template-columns: 1fr; }
    .nb-card { transform: rotate(.8deg); margin: 10px 6px 30px; }
}
@media (max-width: 600px) { .nb-facts li { padding: 0 12px; } .nb-facts b { font-size: 18px; } .nb-doodle { font-size: 18px; } }

/* ── teacher: monogram card when there is no photo yet ─────────────────── */
.tc-ph { flex-direction: column; gap: 10px; background: var(--navy) !important; color: #fff; }
.tc-ph b { font-family: var(--head); font-size: 76px; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; }
.tc-ph em { font-style: normal; font-size: 26px; color: #ffd54f; }
.tc-quote { font-family: var(--hand) !important; font-size: 24px !important; font-weight: 700; font-style: normal !important; color: var(--navy) !important;
    background: transparent !important; border-left: 3px solid var(--pen) !important; padding: 4px 0 4px 18px !important; line-height: 1.3; }

/* ── "what we do in class": the blackboard ─────────────────────────────── */
#why.sec-navy {
    background:
        radial-gradient(600px 240px at 15% 20%, rgba(255,255,255,.05), transparent 70%),
        radial-gradient(500px 220px at 85% 80%, rgba(255,255,255,.04), transparent 70%),
        #1d3a37;
    border-top: 10px solid #6b4a2b; border-bottom: 10px solid #6b4a2b;       /* the wooden frame */
}
#why .sx-kicker { color: #f6e27a; }
#why .sx-title { color: #f4f1e8; }
#why .sx-head .sx-title::after { filter: brightness(1.1); }
#why .why-grid { background: transparent; border: 0; gap: 8px 36px; }
#why .why { background: transparent; padding: 18px 0; border-bottom: 1px dashed rgba(244,241,232,.22); }
#why .why-ico { border: 2px solid rgba(244,241,232,.75); color: #f4f1e8; border-radius: 50%; }
#why .why h3 { font-family: var(--hand); font-size: 27px; font-weight: 700; color: #f4f1e8; letter-spacing: 0; }
#why .why p { color: rgba(244,241,232,.72); }

/* ── gallery: photos pinned like polaroids ─────────────────────────────── */
.gl { gap: 28px 22px; }
.gl-item { aspect-ratio: auto; background: #fff; padding: 10px 10px 44px; border-radius: 2px; overflow: visible;
    box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 20px -12px rgba(0,0,0,.35); transition: transform .25s, box-shadow .25s; }
.gl-item img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; border-radius: 0; }
.gl-item:nth-child(3n+1) { transform: rotate(-1.4deg); } .gl-item:nth-child(3n+2) { transform: rotate(1deg); } .gl-item:nth-child(3n) { transform: rotate(-.5deg); }
.gl-item:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.45); }
.gl-cap { position: absolute; inset: auto 10px 8px 10px !important; background: none !important; color: #33405f !important; padding: 0 !important;
    font-family: var(--hand) !important; font-size: 21px !important; font-weight: 700; opacity: 1 !important; transform: none !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-cap i { display: none; }

/* call to action: a torn-off strip */
.cta::after { height: 0 !important; }
.cta h2 { font-family: var(--hand); font-size: clamp(32px, 3.4vw, 42px); font-weight: 700; color: #fff; letter-spacing: 0; }
/* blackboard: undo the navy tiles and the drifting pattern the motion layer adds to dark bands */
#why.sec-navy::before, #why.sec-navy::after { display: none !important; }
#why.sec-navy .why, #why.sec-navy .why:hover { background: transparent !important; }
#why .why:hover .why-ico { animation: none; box-shadow: none; }
/* ════════════════════════════════════════════════════════════════════════════
   NOTEBOOK MOTION — the page is written, drawn and pinned as you watch.
   Companion script: assets/brand/notebook.js (adds .nb-motion on <html>).
   Only with prefers-reduced-motion: no-preference; otherwise the page is still.
   ════════════════════════════════════════════════════════════════════════════ */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.nb-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); pointer-events: none; z-index: -1;
    animation: nbRipple .65s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes nbRipple { to { transform: scale(1); opacity: 0; } }
.nb-dd { display: none; }

@media (prefers-reduced-motion: no-preference) {

@keyframes nbWrite { from { clip-path: inset(-25% 100% -25% 0); } to { clip-path: inset(-25% -4% -25% -2%); } }
@keyframes nbRise  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes nbFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes nbSettle { from { opacity: 0; transform: translateY(14px) scale(.965); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nbDrop  {
    0%   { opacity: 0; transform: translateY(-70px) rotate(-9deg); }
    55%  { opacity: 1; transform: translateY(8px) rotate(3.2deg); }
    75%  { transform: translateY(-3px) rotate(.9deg); }
    100% { transform: rotate(1.6deg); }
}
@keyframes nbSway  { 0%, 100% { transform: rotate(1.6deg); } 50% { transform: rotate(.5deg) translateY(-4px); } }
@keyframes nbTape  { from { opacity: 0; transform: rotate(-3deg) scaleX(.2); } to { opacity: 1; transform: rotate(-3deg) scaleX(1); } }
@keyframes nbDraw  { to { stroke-dashoffset: 0; } }
@keyframes nbLine  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes nbSheen { from { background-position: 140% 0; } to { background-position: -40% 0; } }
@keyframes nbPop   { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes nbBob   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes nbChalk { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }

/* ── hero: the page is written ─────────────────────────────────────────── */
.nb-motion .nb-hero { position: relative; isolation: isolate; overflow: hidden;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 26px 26px, 26px 26px; }
.nb-motion .nb-hero::after {                     /* the red margin line, drawn top to bottom */
    content: ''; position: absolute; top: 0; bottom: 0; width: 2px; z-index: 0; pointer-events: none;
    left: calc(max(24px, (100vw - 1200px) / 2 - 18px)); background: var(--margin);
    transform-origin: top; animation: nbLine 1.1s cubic-bezier(.65,0,.35,1) .05s both;
}
.nb-motion .nb-hero .wrap { position: relative; z-index: 1; }
.nb-motion .nb-note { animation: nbWrite 1.25s cubic-bezier(.5,.1,.3,1) .12s both; }
.nb-motion .nb-logo { position: relative; animation: nbSettle 1s cubic-bezier(.16,1,.3,1) .4s both; }
.nb-motion .nb-logo::after {                     /* one pass of light across the logo */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    -webkit-mask: url("../../uploads/settings/bm-logo-full.png") left top / min(600px, 100%) auto no-repeat;
            mask: url("../../uploads/settings/bm-logo-full.png") left top / min(600px, 100%) auto no-repeat;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.9) 48%, rgba(255,213,79,.7) 52%, transparent 62%) 140% 0 / 260% 100% no-repeat;
    animation: nbSheen 1.5s cubic-bezier(.45,.05,.3,1) 1.5s both;
}
.nb-motion .nb-tag   { animation: nbRise .8s cubic-bezier(.16,1,.3,1) 1.05s both; }
.nb-motion .nb-lead  { animation: nbRise .8s cubic-bezier(.16,1,.3,1) 1.2s both; }
.nb-motion .nb-cta   { animation: nbRise .8s cubic-bezier(.16,1,.3,1) 1.35s both; }
.nb-motion .nb-facts { animation: nbRise .8s cubic-bezier(.16,1,.3,1) 1.5s both; }
.nb-motion .nb-facts li { animation: nbRise .6s cubic-bezier(.16,1,.3,1) both; }
.nb-motion .nb-facts li:nth-child(1) { animation-delay: 1.6s; } .nb-motion .nb-facts li:nth-child(2) { animation-delay: 1.7s; }
.nb-motion .nb-facts li:nth-child(3) { animation-delay: 1.8s; } .nb-motion .nb-facts li:nth-child(4) { animation-delay: 1.9s; }

/* the sticky note drops in, gets taped, then breathes */
.nb-motion .nb-card { animation: nbDrop 1.15s cubic-bezier(.3,.8,.3,1) .95s both; transition: box-shadow .3s; will-change: transform; }
.nb-motion .nb-card.nb-landed { animation: nbSway 7s ease-in-out infinite; }
.nb-motion .nb-card.is-tilt { animation: none; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) rotate(.6deg) translateY(-4px);
    box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 26px 40px -16px rgba(70,55,0,.45); transition: transform .12s linear, box-shadow .3s; }
.nb-motion .nb-card::before { animation: nbTape .45s cubic-bezier(.2,.9,.3,1.3) 1.9s both; }
.nb-motion .nb-card li { animation: nbRise .5s cubic-bezier(.16,1,.3,1) both; }
.nb-motion .nb-card li:nth-child(1) { animation-delay: 1.7s; } .nb-motion .nb-card li:nth-child(2) { animation-delay: 1.82s; }
.nb-motion .nb-card li:nth-child(3) { animation-delay: 1.94s; } .nb-motion .nb-card li:nth-child(4) { animation-delay: 2.06s; } .nb-motion .nb-card li:nth-child(5) { animation-delay: 2.18s; }
.nb-motion .nb-card-h { animation: nbWrite 1s cubic-bezier(.5,.1,.3,1) 1.45s both; }
.nb-motion .nb-card-link { animation: nbFade .5s ease 2.3s both; }
.nb-motion .nb-card-link i { transition: transform .25s; }
.nb-motion .nb-card-link:hover i { transform: translateX(4px); }
.nb-motion .nb-doodle { animation: nbWrite 1.6s cubic-bezier(.5,.1,.3,1) 2.4s both; }

/* doodles in the margins draw themselves */
.nb-motion .nb-dd { display: block; position: absolute; z-index: 0; pointer-events: none; fill: none; stroke: rgba(11,58,112,.38);
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
    transform: translate(var(--px, 0), var(--py, 0)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.nb-motion .nb-dd .pen { stroke: rgba(194,65,12,.55); stroke-width: 2.6; }
.nb-motion .nb-dd .dot { fill: rgba(194,65,12,.6); stroke: none; animation: nbPop .4s ease both; animation-delay: 3.3s; }
.nb-motion .nb-dd path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nbDraw 1.1s cubic-bezier(.6,0,.3,1) both; animation-delay: calc(2s + var(--k, 0) * .35s); }
.nb-motion .nb-dd-tri   { width: 118px; top: 26px; right: 3.5%; }
.nb-motion .nb-dd-parab { width: 112px; bottom: 18px; left: 63%; }
.nb-motion .nb-dd-root  { width: 74px; top: 44px; left: 47%; }
.nb-motion .nb-dd-tri path   { animation-delay: calc(2.3s + var(--k, 0) * .35s); }
.nb-motion .nb-dd-root path  { animation-delay: 1.6s; }
@media (max-width: 900px) {
    .nb-motion .nb-dd-parab, .nb-motion .nb-dd-root { display: none; }
    .nb-motion .nb-dd-tri { width: 78px; top: 12px; right: 12px; opacity: .7; }
    .nb-motion .nb-hero::after { left: 14px; }
}

/* ── sections: notes are written, underlines drawn ─────────────────────── */
.nb-motion .rv .sx-kicker, .nb-motion .rv.sx-head .sx-kicker { clip-path: inset(-25% 100% -25% 0); }
.nb-motion .rv.in .sx-kicker, .nb-motion .rv.in.sx-head .sx-kicker { animation: nbWrite .95s cubic-bezier(.5,.1,.3,1) .1s both; }
.nb-motion .rv .sx-title::after, .nb-motion .rv.sx-head .sx-title::after { background-size: 0 12px; transition: background-size 1.1s cubic-bezier(.6,0,.3,1) .55s; }
.nb-motion .rv.in .sx-title::after, .nb-motion .rv.in.sx-head .sx-title::after { background-size: 150px 12px; }
.nb-motion .rv .sx-sub { opacity: 0; transform: translateY(10px); transition: opacity .7s ease .45s, transform .7s cubic-bezier(.16,1,.3,1) .45s; }
.nb-motion .rv.in .sx-sub { opacity: 1; transform: none; }

/* class cards: the left rule fills in after the card lands */
.nb-motion .cl-card.rv { border-left-color: transparent !important; }
.nb-motion .cl-card.rv.in { border-left-color: var(--navy) !important; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), border-color .6s ease calc(var(--d, 0ms) + .45s); }
.nb-motion .cl-tags li { transition: transform .2s, background .2s; }
.nb-motion .cl-tags li:hover { transform: translateY(-2px); background: #fff3cf !important; }
.nb-motion .cl-link i, .nb-motion .sj-btn i, .nb-motion .btn i.fa-arrow-right { transition: transform .25s cubic-bezier(.3,.8,.3,1.4); }
.nb-motion .cl-card:hover .cl-link i, .nb-motion .sj-card:hover .sj-btn i, .nb-motion .btn:hover i.fa-arrow-right { transform: translateX(5px); }

/* teacher: the monogram card swings in and the name is signed */
.nb-motion .tc-photo { opacity: 0; transform: rotate(-4deg) translateY(20px); transition: opacity .8s ease, transform 1s cubic-bezier(.3,.8,.3,1.2); }
.nb-motion .tc-photo.nb-in { opacity: 1; transform: none; }
.nb-motion .tc-photo .tc-ph b { opacity: 0; }
.nb-motion .tc-photo.nb-in .tc-ph b { animation: nbPop .7s cubic-bezier(.3,.8,.3,1.3) .45s both; }
.nb-motion .tc-photo .tc-ph em { clip-path: inset(-25% 100% -25% 0); }
.nb-motion .tc-photo.nb-in .tc-ph em { animation: nbWrite 1.1s cubic-bezier(.5,.1,.3,1) .9s both; }
.nb-motion .tc-copy.rv .tc-quote { clip-path: inset(-10% 100% -10% 0); }
.nb-motion .tc-copy.rv.in .tc-quote { animation: nbWrite 1.6s cubic-bezier(.5,.1,.3,1) .9s both; }

/* blackboard: each line is chalked on */
.nb-motion #why .why.rv h3 { clip-path: inset(-25% 100% -25% 0); }
.nb-motion #why .why.rv.in h3 { animation: nbWrite .9s cubic-bezier(.5,.1,.3,1) calc(var(--d, 0ms) + .25s) both; }
.nb-motion #why .why.rv p { opacity: 0; }
.nb-motion #why .why.rv.in p { animation: nbChalk .8s ease calc(var(--d, 0ms) + .75s) both; }
.nb-motion #why .why-ico { transition: transform .35s cubic-bezier(.3,.8,.3,1.4), background .3s; }
.nb-motion #why .why:hover .why-ico { transform: rotate(-12deg) scale(1.08); background: rgba(244,241,232,.1); }
.nb-motion #why .why:hover h3 { color: #f6e27a; }

/* videos: the play button breathes on hover */
.nb-motion .vd:hover .vd-play { animation: nbBob 1.2s ease-in-out infinite; box-shadow: 0 0 0 8px rgba(245,179,1,.25); }
.nb-motion .vd-thumb img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.nb-motion .vd:hover .vd-thumb img { transform: scale(1.06); }

/* gallery: polaroids drop and settle; the pointer tilts them */
.nb-motion .gl-item.rv { opacity: 0; transform: translateY(-46px) rotate(-10deg); }
.nb-motion .gl-item.rv.in { opacity: 1; transform: rotate(-1deg); transition: opacity .6s ease var(--d, 0ms), transform 1s cubic-bezier(.3,.8,.3,1.25) var(--d, 0ms); }
.nb-motion .gl-item.is-tilt { transform: perspective(800px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) scale(1.035) !important;
    transition: transform .12s linear !important; z-index: 2; }

/* FAQ: answers unfold */
.nb-motion .faq-item[open] > div { animation: nbRise .45s cubic-bezier(.16,1,.3,1) both; }
.nb-motion .faq-item summary i { transition: transform .3s cubic-bezier(.3,.8,.3,1.3); }

/* call to action: the title is written when the band comes into view */
.nb-motion .cta h2 { clip-path: inset(-25% 100% -25% 0); }
.nb-motion .cta.nb-in h2 { animation: nbWrite 1.2s cubic-bezier(.5,.1,.3,1) .15s both; }
.nb-motion .cta .cta-in > div > p { opacity: 0; }
.nb-motion .cta.nb-in .cta-in > div > p { animation: nbRise .7s cubic-bezier(.16,1,.3,1) .9s both; }
.nb-motion .cta .cta-btns { opacity: 0; }
.nb-motion .cta.nb-in .cta-btns { animation: nbRise .7s cubic-bezier(.16,1,.3,1) 1.05s both; }

/* ── buttons: lift, shine, a little magnetic pull ──────────────────────── */
.nb-motion .btn { transform: translate(var(--mx, 0px), calc(var(--my, 0px) + var(--lift, 0px)));
    transition: transform .25s cubic-bezier(.3,.8,.3,1.3), box-shadow .25s, background .2s, color .2s, border-color .2s; }
.nb-motion .btn:hover { --lift: -2px; }
.nb-motion .btn:active { --lift: 1px; transition-duration: .08s; }
.nb-motion .btn-gold::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-18deg); transition: left .6s ease; }
.nb-motion .btn-gold:hover::after { left: 120%; }
.nb-motion .btn-gold:hover { box-shadow: 0 12px 24px -10px rgba(168,116,0,.6); }

} /* end motion */
/* ════════════════════════════════════════════════════════════════════════════
   PROFESSIONAL BANNER (.px-hero) — headline left, teacher photo right.
   Photo: Admin → Website Text → "Teacher photo on the right" (cut-out PNG),
   else the Teacher Info photo (shown in a circle), else the logo mark.
   ════════════════════════════════════════════════════════════════════════════ */
.px-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff;
    background: linear-gradient(135deg, #041a38 0%, #08305e 48%, #0d4a8c 100%); padding: clamp(46px, 6vw, 84px) 0 0; }
.px-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.px-bg::before { content: ''; position: absolute; inset: 0; opacity: .55;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 75%); mask: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 75%); }
.px-bg i { position: absolute; border-radius: 50%; filter: blur(70px); }
.px-bg .g1 { width: 520px; height: 520px; right: 4%; top: -120px; background: rgba(10,120,214,.45); }
.px-bg .g2 { width: 420px; height: 420px; left: -120px; bottom: -160px; background: rgba(245,179,1,.16); }

.px-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 56px); align-items: end; }
.px-copy { padding-bottom: clamp(70px, 8vw, 110px); }
.px-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
    letter-spacing: .02em; color: rgba(255,255,255,.88); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.px-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #f5b301; box-shadow: 0 0 0 4px rgba(245,179,1,.22); }
.px-title { margin-top: 20px; font-family: var(--head); font-size: clamp(32px, 4.3vw, 56px); font-weight: 800; line-height: 1.16; letter-spacing: -.02em; color: #fff; }
.px-title .hl { position: relative; color: #f5b301; white-space: nowrap; }
.px-title .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.12em; height: .32em; z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10C40 3 90 2 197 7' fill='none' stroke='%23f5b301' stroke-opacity='.55' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.px-lead { margin-top: 20px; max-width: 560px; font-size: 16.5px; line-height: 1.8; color: rgba(255,255,255,.76); }
.px-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.px-cta .btn-gold { color: #03142c; box-shadow: 0 14px 30px -12px rgba(245,179,1,.65); }
.btn.px-ghost { color: #fff; background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.32); }
.btn.px-ghost:hover { background: #fff; color: #0b3a70; border-color: #fff; }
.px-stats { display: flex; flex-wrap: wrap; gap: 14px 0; margin-top: 40px; }
.px-stats li { display: flex; flex-direction: column; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.16); }
.px-stats li:first-child { padding-left: 0; border-left: 0; }
.px-stats b { font-family: var(--head); font-size: 32px; font-weight: 800; line-height: 1.1; color: #fff; }
.px-stats b::after { content: '+'; color: #f5b301; margin-left: 2px; }
.px-stats span { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.62); }

/* the photo stage */
.px-stage { position: relative; height: clamp(420px, 42vw, 580px); display: flex; align-items: flex-end; justify-content: center; }
.px-disc { position: absolute; left: 50%; bottom: -8%; width: min(88%, 520px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #2a8ae0 0%, #0e5aa8 45%, #0b3a70 75%);
    box-shadow: 0 0 0 14px rgba(255,255,255,.04), 0 0 0 28px rgba(255,255,255,.025), 0 40px 80px -30px rgba(0,0,0,.6); }
.px-ring { position: absolute; left: 50%; bottom: -14%; width: min(104%, 620px); aspect-ratio: 1; margin-left: calc(min(104%, 620px) / -2); border-radius: 50%;
    border: 2px dashed rgba(245,179,1,.45); }
.px-photo { position: relative; z-index: 2; display: block; }
.px-stage.is-cut .px-photo { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.px-stage.is-photo .px-photo { width: min(66%, 380px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 14%;
    border: 6px solid rgba(255,255,255,.92); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.px-mark { position: relative; z-index: 2; width: min(46%, 270px); margin-bottom: 18%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); }

.px-tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
    background: #fff; color: #0a1634; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.px-tag i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff3cf; color: #a87400; font-size: 15px; }
.px-tag-name { left: 0; bottom: 12%; }
.px-tag-name img { width: 38px; height: 38px; object-fit: contain; }
.px-tag-name span { display: flex; flex-direction: column; line-height: 1.25; }
.px-tag-name b { font-family: var(--head); font-size: 15px; font-weight: 800; color: #0b3a70; }
.px-tag-name em { font-style: normal; font-size: 12px; font-weight: 600; color: #6b7489; }
.px-tag-b1 { left: 4%; top: 16%; }
.px-tag-b2 { right: 0; top: 42%; }
.px-tag-b2 i { background: #e6f1fc; color: #0a78d6; }
.px-chip { position: absolute; z-index: 1; padding: 6px 12px; border-radius: 10px; font-family: Georgia, 'Times New Roman', serif; font-style: italic;
    font-size: 17px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.px-chip-1 { right: 6%; top: 6%; } .px-chip-2 { left: 18%; top: 48%; } .px-chip-3 { right: 24%; top: 0; }
.px-wave { position: relative; z-index: 4; display: block; width: 100%; height: 56px; margin-top: -55px; fill: var(--paper); }

@media (max-width: 960px) {
    .px-in { grid-template-columns: 1fr; }
    .px-copy { padding-bottom: 10px; text-align: left; }
    .px-stage { height: 400px; max-width: 460px; width: 100%; margin: 10px auto 0; }
    .px-tag-b2 { right: 2%; }
}
@media (max-width: 520px) {
    .px-stats li { padding: 0 16px; } .px-stats b { font-size: 25px; }
    .px-stage { height: 350px; }
    .px-tag { padding: 9px 12px; font-size: 12px; gap: 9px; } .px-tag i { width: 28px; height: 28px; font-size: 13px; }
    .px-tag-name img { width: 30px; height: 30px; } .px-tag-name b { font-size: 13.5px; }
    .px-chip-2 { display: none; }
}

/* ── section headings: a calmer, professional label ─────────────────────── */
.sx-kicker, .tc-copy .sx-kicker, .faq-side .sx-kicker {
    display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: #a87400; transform: none; margin-bottom: 10px; }
.sx-kicker::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: #f5b301; }
#why .sx-kicker { color: #f6e27a; }

@media (prefers-reduced-motion: no-preference) {
@keyframes pxUp   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pxRise { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pxDisc { from { opacity: 0; transform: translateX(-50%) scale(.7); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes pxSpin { to { transform: rotate(360deg); } }
@keyframes pxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pxPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(245,179,1,.22); } 50% { box-shadow: 0 0 0 9px rgba(245,179,1,0); } }
@keyframes pxTagIn { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
.px-eyebrow { animation: pxUp .7s cubic-bezier(.16,1,.3,1) .1s both; }
.px-eyebrow i { animation: pxPulse 2.2s ease-in-out infinite; }
.px-title  { animation: pxUp .8s cubic-bezier(.16,1,.3,1) .22s both; }
.px-title .hl::after { transform-origin: left; animation: nbLine .9s cubic-bezier(.6,0,.3,1) 1s both; animation-name: pxUnder; }
@keyframes pxUnder { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.px-lead   { animation: pxUp .8s cubic-bezier(.16,1,.3,1) .38s both; }
.px-cta    { animation: pxUp .8s cubic-bezier(.16,1,.3,1) .52s both; }
.px-stats li { animation: pxUp .7s cubic-bezier(.16,1,.3,1) both; }
.px-stats li:nth-child(1) { animation-delay: .7s; } .px-stats li:nth-child(2) { animation-delay: .8s; } .px-stats li:nth-child(3) { animation-delay: .9s; }
.px-disc   { animation: pxDisc 1.1s cubic-bezier(.16,1,.3,1) .2s both; }
.px-ring   { animation: pxSpin 60s linear infinite; }
.px-photo, .px-mark { animation: pxRise 1.1s cubic-bezier(.16,1,.3,1) .45s both; }
.px-tag-name { animation: pxTagIn .7s cubic-bezier(.3,.8,.3,1.2) 1.05s both, pxFloat 6s ease-in-out 2s infinite; }
.px-tag-b1   { animation: pxTagIn .7s cubic-bezier(.3,.8,.3,1.2) 1.25s both, pxFloat 7s ease-in-out 2.4s infinite; }
.px-tag-b2   { animation: pxTagIn .7s cubic-bezier(.3,.8,.3,1.2) 1.45s both, pxFloat 6.5s ease-in-out 2.8s infinite; }
.px-chip   { animation: pxTagIn .8s ease 1.6s both, pxFloat 8s ease-in-out 2.6s infinite; }
.px-chip-2 { animation-delay: 1.75s, 3.1s; } .px-chip-3 { animation-delay: 1.9s, 3.6s; }
.px-chip, .px-tag { translate: var(--px, 0) var(--py, 0); transition: translate .6s cubic-bezier(.2,.7,.2,1); }
/* the earlier hand-written kicker reveal no longer applies to the new labels */
.nb-motion .rv .sx-kicker, .nb-motion .rv.sx-head .sx-kicker { clip-path: none; opacity: 0; transform: translateY(8px); transition: opacity .6s ease .05s, transform .6s cubic-bezier(.16,1,.3,1) .05s; }
.nb-motion .rv.in .sx-kicker, .nb-motion .rv.in.sx-head .sx-kicker { animation: none; opacity: 1; transform: none; }
}
/* review form: the field only bots fill */
.fb-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
