/* ==========================================================================
   Soujanaars Academy website — navy, red, white and black (same family as the school portal)
   ========================================================================== */
:root {
    --navy: #0f2557;
    --navy-900: #0a1a3d;
    --navy-700: #1e3a8a;
    --red: #d4141c;
    --red-700: #a50f15;
    --ink: #0b1220;
    --ink-2: #4a5568;
    --ink-3: #6b7385;
    --line: rgba(11, 18, 32, .09);
    --soft: #f4f6fb;
    --white: #fff;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 18px 40px -22px rgba(11, 18, 32, .28);
    --shadow-lg: 0 30px 70px -30px rgba(11, 18, 32, .45);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --head: "Sora", "Lexend Deca", system-ui, sans-serif;
    --body: "Lexend Deca", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon.fill { fill: currentColor; stroke: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid rgba(212, 20, 28, .55); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
    font: 600 .95rem/1 var(--body); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(212, 20, 28, .8); }
.btn-red:hover { background: var(--red-700); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -14px rgba(15, 37, 87, .8); }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-line { background: transparent; color: var(--navy); border-color: rgba(15, 37, 87, .25); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); background: rgba(15, 37, 87, .04); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; color: #fff; }
.btn-sm { padding: .65em 1.1em; font-size: .88rem; }

/* ---------- top bar + navigation ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: rgba(255, 255, 255, .88); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar .portal-link { background: var(--red); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 600; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.nav.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(11, 18, 32, .5); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(15, 37, 87, .15); }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.15rem; line-height: 1.05; display: block; }
.brand-name span { color: var(--red); }
.brand-tag { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; font-weight: 600; }
.menu { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.menu a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.menu a:hover, .menu a.active { color: var(--red); background: rgba(212, 20, 28, .06); }
.nav-cta { display: flex; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .icon { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-900); isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s linear; }
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(10, 26, 61, .94) 0%, rgba(10, 26, 61, .78) 42%, rgba(10, 26, 61, .25) 75%, rgba(10, 26, 61, .15) 100%),
                linear-gradient(0deg, rgba(10, 26, 61, .65) 0%, transparent 35%); }
.hero .wrap { padding-top: 80px; padding-bottom: 150px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22); font-size: .82rem; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(6px); }
.hero-eyebrow b { background: var(--red); padding: 3px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; margin: 22px 0 18px; max-width: 13em; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #ffb3b6, #ff6b70); -webkit-background-clip: text; background-clip: text; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; right: 24px; bottom: 150px; display: flex; flex-direction: column; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; transition: height .3s, background .3s; }
.hero-dots button.on { height: 28px; background: #fff; }

/* quick links overlapping the hero */
.quick { position: relative; z-index: 3; margin-top: -96px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick a { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); color: var(--ink);
    border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.quick a:hover { transform: translateY(-4px); color: var(--ink); }
.quick a:hover .quick-go { background: var(--red); color: #fff; transform: rotate(-45deg); }
.quick-ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(15, 37, 87, .07); color: var(--navy); }
.quick a:nth-child(1) .quick-ico { background: var(--red); color: #fff; }
.quick-ico .icon { width: 24px; height: 24px; }
.quick strong { display: block; font-family: var(--head); font-size: 1.02rem; }
.quick small { display: block; color: var(--ink-3); font-size: .84rem; line-height: 1.45; margin-top: 2px; }
.quick-go { margin-left: auto; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); transition: all .25s; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); border-radius: 2px; }
.title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; }
.title span { color: var(--red); }
.lead { color: var(--ink-2); font-size: 1.07rem; max-width: 40em; }
.head-center { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.head-center .kicker::after { content: ""; width: 28px; height: 2px; background: var(--red); border-radius: 2px; }
.head-center .lead { margin-left: auto; margin-right: auto; }
.head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.head-split .title { margin: 0; }

/* about */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; min-height: 520px; }
.about-media .ph { position: absolute; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media .ph img { width: 100%; height: 100%; object-fit: cover; }
.about-media .ph-1 { inset: 0 28% 8% 0; }
.about-media .ph-2 { right: 0; bottom: 0; width: 48%; height: 54%; border: 6px solid #fff; }
.about-badge { position: absolute; left: -10px; bottom: 18px; background: var(--navy); color: #fff; padding: 18px 20px; border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; max-width: 250px; }
.about-badge b { font-family: var(--head); font-size: 2rem; line-height: 1; color: #fff; }
.about-badge span { font-size: .84rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.pillars { margin: 26px 0 30px; display: grid; gap: 14px; }
.pillar-head { display: flex; justify-content: space-between; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.pillar-head span:last-child { color: var(--red); font-family: var(--head); }
.bar { height: 8px; border-radius: 99px; background: rgba(15, 37, 87, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--navy), var(--navy-700) 60%, var(--red)); transition: width 1.4s var(--ease); }
.is-in .bar i { width: var(--w); }

/* motto / mission / vision */
.mmv { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.mmv::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 20, 28, .45), transparent 65%); }
.mmv::after { content: ""; position: absolute; inset: 0; background-image: url("../img/crest-160.png"); background-repeat: no-repeat; background-position: 4% 120%; background-size: 260px; opacity: .06; filter: grayscale(1) brightness(3); }
.mmv .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.mmv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
.mmv-item { background: var(--navy); padding: 34px 30px; }
.mmv-item .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; margin-bottom: 18px; }
.mmv-item .ico .icon { width: 26px; height: 26px; }
.mmv-item small { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #ff9a9e; font-weight: 700; margin-bottom: 6px; }
.mmv-item h3 { color: #fff; font-size: 1.45rem; margin: 0; }

/* academic levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.level:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.level-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.level-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.level:hover .level-img img { transform: scale(1.06); }
.level-tag { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: .74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .03em; }
.level-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.level-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.level-body p { color: var(--ink-2); font-size: .93rem; margin-bottom: 14px; }
.level-body a { margin-top: auto; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; color: var(--red); }

/* stats band */
.stats { background: linear-gradient(120deg, var(--navy-900), var(--navy) 55%, #3a1530); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 56px; padding-bottom: 56px; }
.stat { text-align: center; padding: 8px 16px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--head); font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1; color: #fff; }
.stat b sup { color: #ff8a8f; font-size: .55em; top: -.7em; }
.stat > span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .78); font-size: .93rem; }
.stat b span { display: inline; }

/* school life gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; grid-auto-flow: dense; }
.gallery a { position: relative; border-radius: 16px; overflow: hidden; background: var(--soft); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.07); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 26, 61, .55), transparent 50%); opacity: 0; transition: opacity .3s; }
.gallery a:hover::after { opacity: 1; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font-size: .85rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: all .3s; }
.gallery a:hover figcaption { opacity: 1; transform: none; }

/* news */
.news { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.news-list { display: grid; gap: 16px; }
.post { display: flex; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.post-img { position: relative; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post-img img { transform: scale(1.05); }
.post-body { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--ink-3); margin-bottom: 8px; }
.chip { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(212, 20, 28, .09); color: var(--red); }
.chip.navy { background: rgba(15, 37, 87, .08); color: var(--navy); }
.post h3 { font-size: 1.12rem; margin: 0; }
.post.feature { flex-direction: column; }
.post.feature .post-img { aspect-ratio: 16 / 10; }
.post.feature .post-body { padding: 26px 28px 30px; }
.post.feature h3 { font-size: 1.5rem; }
.post.feature p { color: var(--ink-2); margin: 10px 0 0; }
.news-list .post-img { flex: 0 0 38%; min-height: 140px; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { position: relative; background: #fff; border-radius: var(--radius); padding: 34px 28px 28px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote .qmark { position: absolute; right: 24px; top: 22px; width: 44px; height: 44px; color: rgba(212, 20, 28, .14); }
.stars { display: flex; gap: 3px; color: #f2b01e; margin-bottom: 14px; }
.stars .icon { width: 18px; height: 18px; }
.quote blockquote { margin: 0 0 24px; color: var(--ink-2); font-size: 1rem; line-height: 1.75; flex: 1; }
.who { display: flex; align-items: center; gap: 12px; }
.who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(212, 20, 28, .25); }
.who strong { display: block; font-family: var(--head); }
.who-initial { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.3rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(212, 20, 28, .25); }
.who span { color: var(--red); font-size: .85rem; font-weight: 600; }

/* admissions */
.admit { position: relative; border-radius: 28px; overflow: hidden; background: var(--navy); color: #fff; padding: 64px; isolation: isolate; }
.admit::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero-graduates-960.jpg") center / cover; opacity: .22; }
.admit::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, var(--navy-900) 30%, rgba(15, 37, 87, .85) 60%, rgba(165, 15, 21, .85)); }
.admit-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.admit .kicker { color: #ff9a9e; }
.admit .kicker::before { background: #ff9a9e; }
.admit h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.admit p { color: rgba(255, 255, 255, .85); }
.admit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.steps { display: grid; gap: 14px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.steps li::before { counter-increment: step; content: counter(step); flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--navy); font-family: var(--head); font-weight: 800; }
.steps strong { display: block; color: #fff; font-family: var(--head); }
.steps span { color: rgba(255, 255, 255, .78); font-size: .92rem; }

/* contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.c-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.c-card .ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(15, 37, 87, .07); color: var(--navy); }
.c-card .ico .icon { width: 22px; height: 22px; }
.c-card.wa .ico { background: #25d366; color: #fff; }
.c-card small { display: block; color: var(--ink-3); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.c-card a, .c-card div > span { display: block; color: var(--ink); font-weight: 600; }
.c-card a:hover { color: var(--red); }
.form-card { background: #fff; border-radius: 24px; padding: 34px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.form-card > p { color: var(--ink-2); margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field label i { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .97rem; color: var(--ink); padding: 13px 15px; border-radius: 14px; border: 1.5px solid rgba(11, 18, 32, .12); background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(15, 37, 87, .1); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; display: none; }
.form-note.ok { display: block; background: rgba(22, 128, 61, .08); color: #116030; border: 1px solid rgba(22, 128, 61, .2); }
.form-note.err { display: block; background: rgba(212, 20, 28, .07); color: var(--red-700); border: 1px solid rgba(212, 20, 28, .2); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.form-foot small { color: var(--ink-3); }
.map { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.2) contrast(1.05); }

/* footer */
.footer { background: #0b0f19; color: rgba(255, 255, 255, .72); font-size: .94rem; }
.footer .wrap { padding-top: 72px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand img { width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.foot-brand strong { color: #fff; font-family: var(--head); font-size: 1.15rem; display: block; }
.foot-brand > span > span { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #ff8a8f; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; }
.subscribe { display: flex; gap: 8px; margin-top: 12px; }
.subscribe input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; }
.subscribe input::placeholder { color: rgba(255, 255, 255, .5); }
.subscribe input:focus { outline: none; border-color: #ff8a8f; }
.subscribe .form-note.ok { background: rgba(37, 211, 102, .12); color: #a7f3c4; border-color: rgba(37, 211, 102, .25); }
.subscribe-wrap .form-note.err { background: rgba(212, 20, 28, .15); color: #ffb3b6; border-color: rgba(212, 20, 28, .3); }
.subscribe-wrap .form-note.ok { background: rgba(37, 211, 102, .12); color: #a7f3c4; border-color: rgba(37, 211, 102, .25); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.socials a:hover { background: var(--red); }
.foot-bottom { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* floating buttons */
.float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
    background: #25d366; color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 16px 34px -12px rgba(11, 18, 32, .55); transition: transform .2s; }
.float-wa:hover { color: #fff; transform: translateY(-3px); }
.float-wa .icon { width: 28px; height: 28px; }
.float-wa small { display: block; font-weight: 500; font-size: .7rem; opacity: .9; line-height: 1.1; }
.to-top { position: fixed; right: 22px; bottom: 86px; z-index: 59; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--navy); color: #fff; cursor: pointer;
    display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s; box-shadow: var(--shadow-lg); }
.to-top.on { opacity: 1; pointer-events: auto; transform: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 10, 25, .93); display: none; align-items: center; justify-content: center; padding: 24px; }
.lb.on { display: flex; }
.lb img { max-width: min(1100px, 100%); max-height: 84vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb .lb-x { top: 18px; right: 18px; }
.lb .lb-prev { left: 18px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: .9rem; }

/* preloader (crest) - first visit of a session only, never longer than ~2.5 s */
.preloader { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: radial-gradient(800px 500px at 50% 40%, #ffffff 0%, #f4f6fb 70%); transition: opacity .6s var(--ease), visibility 0s .6s; }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-crest { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.pl-crest img { width: 112px; height: 112px; border-radius: 50%; background: #fff; box-shadow: 0 18px 40px -16px rgba(15, 37, 87, .45); animation: plPop .8s var(--ease) both; }
.pl-crest::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(15, 37, 87, .1); border-top-color: var(--red); border-right-color: var(--navy); animation: plSpin 1s linear infinite; }
.pl-name { font-family: var(--head); font-weight: 800; font-size: 1.35rem; color: var(--ink); animation: plUp .7s var(--ease) .15s both; }
.pl-name span { color: var(--red); }
.pl-tag { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-top: -12px; animation: plUp .7s var(--ease) .25s both; }
.pl-bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(15, 37, 87, .1); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, var(--navy), var(--red)); animation: plRun 1.1s ease-in-out infinite; }
@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plPop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes plUp { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes plRun { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
html.seen .preloader { display: none; }

/* reading progress line */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 70; background: linear-gradient(90deg, var(--red), #ff6b70); box-shadow: 0 0 10px rgba(212, 20, 28, .5); transition: width .1s linear; }

/* announcement in the top bar */
.topbar .announce { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 4px 6px 4px 12px; border-radius: 999px; font-weight: 600; }
.topbar .announce:hover { background: var(--red-700); color: #fff; }
.topbar .announce .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); animation: pulse 1.8s infinite; }
.topbar .announce b { background: #fff; color: var(--red); padding: 2px 9px; border-radius: 999px; font-size: .74rem; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: rgba(212, 20, 28, .3); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--head); font-weight: 700; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); transform: rotate(45deg); transition: transform .3s var(--ease), background .2s, color .2s; }
.faq details[open] summary .pm { transform: rotate(90deg); background: var(--red); color: #fff; }   /* "+" closed, "x" open */
.faq .ans { padding: 0 20px 18px; color: var(--ink-2); }
.faq .ans p:last-child { margin: 0; }
.faq-side { position: sticky; top: 100px; background: var(--navy); color: #fff; border-radius: 24px; padding: 30px; }
.faq-side h3 { color: #fff; }
.faq-side p { color: rgba(255, 255, 255, .82); }
.faq-side .btn { width: 100%; margin-top: 10px; }

/* head teacher's message */
.head-msg { background: #fff; }
.head-msg-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.head-photo { position: relative; }
.head-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); background: var(--soft); }
.head-photo::after { content: ""; position: absolute; left: -18px; bottom: -18px; width: 46%; height: 46%; z-index: -1; border-radius: 24px; background: linear-gradient(135deg, var(--red), #ff6b70); opacity: .9; }
.head-text { color: var(--ink-2); font-size: 1.05rem; line-height: 1.8; position: relative; padding-left: 22px; border-left: 3px solid rgba(212, 20, 28, .25); }
.head-sign { margin-top: 22px; }
.head-sign strong { display: block; font-family: var(--head); font-size: 1.1rem; }
.head-sign span { color: var(--red); font-weight: 600; font-size: .9rem; }

/* upcoming events (under the news) */
.events { grid-column: 1 / -1; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 26px; }
.events h3 { color: #fff; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.events ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.events li { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 12px 14px; }
.ev-date { flex: 0 0 56px; height: 60px; border-radius: 14px; background: #fff; color: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ev-date b { font-family: var(--head); font-size: 1.45rem; line-height: 1; color: var(--navy); }
.events strong { display: block; color: #fff; font-family: var(--head); font-size: .98rem; }
.events small { color: rgba(255, 255, 255, .72); }
.post-sum { color: var(--ink-2); font-size: .88rem; margin: 6px 0 0; }

@media (max-width: 1100px) { .head-msg-grid { grid-template-columns: 1fr; gap: 36px; } .head-photo { max-width: 420px; } }

/* not-found page */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.nf b { display: block; font-family: var(--head); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: transparent; background: linear-gradient(90deg, var(--navy), var(--red)); -webkit-background-clip: text; background-clip: text; }

@media (max-width: 1100px) { .faq-wrap { grid-template-columns: 1fr; } .faq-side { position: static; } }
/* top bar: never wrap; on phones keep just the phone number and the admissions pill */
.topbar a, .topbar .tb-item, .topbar .announce { white-space: nowrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
    .topbar .announce span.long { display: none; }
    .topbar .wrap { min-height: 38px; gap: 10px; }
    .topbar-left, .topbar-right { gap: 10px; }
    .topbar .announce { padding: 3px 4px 3px 10px; font-size: .78rem; gap: 6px; }
    .topbar .announce b { padding: 2px 8px; font-size: .7rem; }
}
@media (max-width: 380px) {
    .topbar .announce b { display: none; }          /* very small phones: "Admissions open" only */
    .topbar .announce { padding-right: 10px; }
}
/* tablets: drop the location and the long announcement so the bar fits on one line;
   when the menu folds into the button, keep "Apply now" on the right next to it */
@media (max-width: 1100px) {
    .topbar .tb-item, .topbar .announce span.long { display: none; }
    .nav-cta { margin-left: auto; }
    .menu-btn { margin-left: 0; }
}
/* phones: compact logo block so the name never squeezes onto many lines */
.brand-tag { white-space: nowrap; }
@media (max-width: 420px) {
    .brand { gap: 9px; }
    .brand img { width: 40px; height: 40px; }
    .brand-name { font-size: .95rem; }
    .brand-tag { display: none; }
    .nav-cta .btn { padding: .62em .9em; font-size: .82rem; }
    .menu-btn { width: 42px; height: 42px; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- registration page (join.php) ---------- */
.page-hero { position: relative; color: #fff; padding: 64px 0 120px; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero-school-960.jpg") center 35% / cover; opacity: .35; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--navy-900) 25%, rgba(15, 37, 87, .8) 60%, rgba(165, 15, 21, .7)); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 10px 0 12px; }
.page-hero p { color: rgba(255, 255, 255, .85); max-width: 38em; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .75); }
.crumbs a { color: #fff; }
.join { display: grid; grid-template-columns: 1fr 360px; gap: 28px; margin-top: -80px; position: relative; z-index: 2; padding-bottom: 90px; align-items: start; }
.join aside { display: grid; gap: 16px; }
.side-card { background: #fff; border-radius: 20px; padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-card h4 { font-size: 1.05rem; margin-bottom: 12px; }
.side-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.side-card li { display: flex; gap: 10px; color: var(--ink-2); font-size: .93rem; }
.side-card li .icon { color: var(--red); margin-top: 3px; }
.side-card.navy { background: var(--navy); color: #fff; border: 0; }
.side-card.navy h4 { color: #fff; }
.side-card.navy p { color: rgba(255, 255, 255, .82); font-size: .93rem; }
.done-box { text-align: center; padding: 20px 10px; }
.done-box .tick { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: rgba(22, 128, 61, .1); color: #16803d; }
.done-box .tick .icon { width: 38px; height: 38px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .menu { display: none; }
    .menu-btn { display: inline-flex; }
    .nav-cta .btn-line { display: none; }
    .menu.open { display: flex; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; background: #fff;
        border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
    .menu.open a { padding: 13px 16px; font-size: 1rem; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; gap: 48px; }
    .about-media { min-height: 460px; }
    .levels, .quotes { grid-template-columns: repeat(2, 1fr); }
    .news { grid-template-columns: 1fr; }
    .admit { padding: 48px 36px; }
    .admit-grid, .contact { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .join { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .topbar .hide-sm { display: none; }
    .nav .wrap { min-height: 66px; gap: 10px; }
    .brand img { width: 44px; height: 44px; }
    .brand-name { font-size: 1rem; }
    .nav-cta .btn { padding: .7em 1em; font-size: .85rem; }
    .hero { min-height: 640px; }
    .hero .wrap { padding-top: 56px; padding-bottom: 130px; }
    .hero::after { background: linear-gradient(180deg, rgba(10, 26, 61, .55) 0%, rgba(10, 26, 61, .88) 60%, rgba(10, 26, 61, .95) 100%); }
    .hero-dots { right: 50%; transform: translateX(50%); bottom: 112px; flex-direction: row; }
    .hero-dots button.on { height: 10px; width: 26px; }
    .quick { margin-top: -74px; }
    .quick-grid { grid-template-columns: 1fr; gap: 10px; }
    .quick a { padding: 16px; }
    .section { padding: 68px 0; }
    .about-media { min-height: 380px; }
    .about-badge { left: 8px; }
    .mmv-grid, .levels, .quotes { grid-template-columns: 1fr; }
    .stats .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .stat:nth-child(3) { border-left: 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
    .gallery .wide { grid-column: span 2; }
    .post, .news-list .post { flex-direction: column; }
    .news-list .post-img { flex-basis: auto; aspect-ratio: 16 / 9; }
    .admit { padding: 36px 22px; border-radius: 22px; }
    .fields { grid-template-columns: 1fr; }
    .form-card { padding: 24px 18px; }
    .foot-grid { grid-template-columns: 1fr; gap: 30px; }
    .float-wa { padding: 13px; }
    .float-wa .lbl { display: none; }
    .to-top { bottom: 84px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
@media print {
    .topbar, .nav, .float-wa, .to-top, .hero-dots, .map { display: none !important; }
}
