/* ==========================================================
   Telangana Model School — site stylesheet
   Palette: deep navy (trust) · saffron (energy) · green (growth)
   ========================================================== */
:root {
  --navy: #0b2a5b;
  --navy-2: #173f86;
  --navy-3: #e8eefb;
  --saffron: #f59e0b;
  --saffron-d: #b45309;
  --saffron-l: #fff4dc;
  --green: #15803d;
  --green-l: #e7f6ec;
  --red: #b91c1c;
  --cream: #fffaf0;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #526077;
  --line: #e3e8f0;
  --bg: #f6f8fc;
  --card: #ffffff;
  --radius: 18px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-l: 0 2px 4px rgba(15, 23, 42, .06), 0 20px 48px rgba(11, 42, 91, .16);
  --font: "Poppins", "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs: 16px;
  --wrap: 1200px;
}
html.hc {
  --navy: #000;
  --navy-2: #000;
  --text: #000;
  --muted: #111;
  --line: #000;
  --bg: #fff;
  --saffron: #ffb000;
}
html.hc .card, html.hc .stat, html.hc .tile { border: 2px solid #000; }
html.hc .hero { background: #fff !important; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--saffron-d); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.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(--saffron); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon { background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 12px, #fde68a 12px, #fde68a 24px); color: #78350f; font-size: .78rem; text-align: center; padding: 4px 12px; font-weight: 600; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #dbe5f7; font-size: .8rem; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #dbe5f7; }
.topbar a:hover { color: #fde68a; }
.topbar .tb-l, .topbar .tb-r { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar .tb-l span, .topbar .tb-l a { display: inline-flex; gap: 6px; align-items: center; }
.govt { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fde68a; }
.tricolor { width: 18px; height: 12px; border-radius: 2px; background: linear-gradient(#ff9933 33%, #fff 33% 66%, #138808 66%); }
.a11y { display: flex; gap: 4px; }
.a11y button { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font: inherit; font-size: .75rem; border-radius: 6px; padding: 1px 8px; cursor: pointer; }
.a11y button:hover { background: rgba(255, 255, 255, .22); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 6px 24px rgba(11, 42, 91, .1); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 80px; max-width: 1440px; }
.topbar .wrap { max-width: 1440px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; flex: 0 1 auto; }
.brand:hover { color: var(--ink); }
.brand .emblem { flex: none; filter: drop-shadow(0 4px 8px rgba(11, 42, 91, .25)); }
.brand-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-t b { font-size: 1.05rem; color: var(--navy); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand-t b em { font-style: normal; color: var(--saffron-d); }
.brand-t small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.nav .btn { white-space: nowrap; }
.brand-t { max-width: 360px; }
@media (min-width: 1241px) and (max-width: 1400px) {
  .header .wrap { gap: 16px; }
  .brand { flex: none; }
  .brand-t b { font-size: .98rem; }
  .nav { gap: 6px; }
  .nav > ul { margin-right: 2px; }
  .nav > ul > li > a, .nav > ul > li > button { padding: 9px 8px; font-size: .86rem; }
  .nav .btn-s { padding: 8px 13px; }
}
.nav > ul { list-style: none; margin: 0 6px 0 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 500; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav li.active > a, .nav li.active > button { background: var(--navy-3); color: var(--navy); }
.nav .i { width: 16px; height: 16px; transition: transform .2s; }
.dd { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.dd::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav li:hover > .dd, .nav li:focus-within > .dd { opacity: 1; visibility: visible; transform: none; }
.nav li:hover > button .i { transform: rotate(180deg); }
.dd a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: .88rem; }
.dd a:hover, .dd a[aria-current] { background: var(--navy-3); color: var(--navy); }
.dd a .i { color: var(--saffron-d); }
.btn-login { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: var(--navy); color: #fff; border: 0; border-radius: 12px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.burger .i { width: 24px; height: 24px; }

/* ---------- Drawer (mobile) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(2, 6, 23, .5); opacity: 0; transition: opacity .25s; }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: #fff; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; padding: 18px; }
.drawer.open .panel { transform: none; }
.drawer .close { float: right; background: var(--navy-3); border: 0; border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.drawer h4 { margin: 18px 0 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--saffron-d); }
.drawer a { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.drawer a:hover { background: var(--navy-3); }
.drawer a .i { color: var(--navy-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-p { background: linear-gradient(135deg, var(--saffron), #f97316); color: #1c1917; box-shadow: 0 8px 20px rgba(245, 158, 11, .35); }
.btn-p:hover { color: #1c1917; box-shadow: 0 12px 28px rgba(245, 158, 11, .45); }
.btn-n { background: var(--navy); color: #fff; }
.btn-n:hover { color: #fff; background: var(--navy-2); }
.btn-o { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-w { background: #fff; color: var(--navy); }
.btn-s { padding: 8px 16px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #7cc7f5 0%, #b9e3fb 45%, #e7f6ff 70%, #eaf7ee 100%); }
.hero-in { position: relative; z-index: 2; padding: 56px 0 0; text-align: center; }
.hero .chip { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .75); border: 1px solid rgba(11, 42, 91, .1); padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow); }
.hero .chip b { background: var(--green); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .04em; }
.hero h1 { margin: 18px auto 6px; max-width: 900px; color: var(--navy); text-shadow: 0 2px 0 rgba(255, 255, 255, .6); }
.hero h1 span { text-shadow: none; background: linear-gradient(90deg, #c2410c, #ea580c 55%, #d97706); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .te { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--navy-2); font-weight: 600; margin-bottom: 8px; }
.hero .lead { max-width: 680px; margin: 0 auto 22px; color: #1e3a5f; font-size: 1.05rem; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-art { width: 100%; height: clamp(260px, 42vw, 520px); margin-top: -10px; }
.flag-wave { animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-4deg) scaleX(.94); } }
.cloud { animation: drift 40s linear infinite; }
.cloud.c2 { animation-duration: 55s; animation-delay: -20s; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(1300px); } }
.sun { transform-origin: 1040px 90px; animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.bob { animation: bob 1.1s ease-in-out infinite; }
.bob.b2 { animation-delay: -.35s; }
.bob.b3 { animation-delay: -.7s; }
@keyframes bob { 50% { translate: 0 -4px; } }
.birds { animation: birds 18s linear infinite; }
@keyframes birds { from { transform: translate(-200px, 20px); } to { transform: translate(900px, -30px); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy); color: #fff; display: flex; align-items: stretch; overflow: hidden; position: relative; z-index: 3; }
.ticker .lbl { flex: none; background: var(--saffron); color: #1c1917; font-weight: 700; padding: 12px 18px; display: flex; gap: 8px; align-items: center; font-size: .9rem; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); padding-right: 30px; }
.ticker .lbl .i { animation: ring 2s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.ticker .track { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .move { display: flex; gap: 48px; white-space: nowrap; animation: tick 45s linear infinite; padding-left: 20px; }
.ticker:hover .move { animation-play-state: paused; }
.ticker .move a { color: #e2e8f0; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; }
.ticker .move a:hover { color: #fde68a; }
.ticker .move a::before { content: "◆"; color: var(--saffron); font-size: .6rem; }
@keyframes tick { to { transform: translateX(-50%); } }
.new { display: inline-block; background: #dc2626; color: #fff; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; letter-spacing: .05em; animation: blink 1.6s infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: .55; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.sec-alt { background: #fff; }
.sec-cream { background: var(--cream); }
.sec-navy { background: radial-gradient(1200px 400px at 10% 0%, #1d4ed8 0%, transparent 60%), linear-gradient(135deg, #0b2a5b, #102f6b); color: #dbe5f7; }
.sec-navy h2, .sec-navy h3 { color: #fff; }
.head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--saffron-d); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.head p { color: var(--muted); }
.sec-navy .head p { color: #b8c7e6; }
.sec-navy .eyebrow { color: #fde68a; }

/* ---------- Stats: one panel, four columns split by dividers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -54px; position: relative; z-index: 4; background: #fff; border-radius: 22px; box-shadow: var(--shadow-l); border: 1px solid var(--line); overflow: hidden; }
.stat { --c: var(--saffron-d); --cl: var(--saffron-l); position: relative; display: flex; gap: 16px; align-items: center; padding: 26px 28px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.stat:hover::after { transform: none; }
.stat:nth-child(2) { --c: var(--green); --cl: var(--green-l); }
.stat:nth-child(3) { --c: var(--navy-2); --cl: var(--navy-3); }
.stat:nth-child(4) { --c: var(--red); --cl: #fde8e8; }
.stat .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--cl); color: var(--c); flex: none; }
.stat .ic .i { width: 26px; height: 26px; }
.stat b { display: block; font-size: 2rem; color: var(--ink); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Principal ---------- */
.principal { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.p-photo { position: relative; aspect-ratio: 4/5; border-radius: 24px; background: linear-gradient(160deg, var(--navy-2), var(--navy)); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-l); }
.p-photo::after { content: ""; position: absolute; inset: 12px; border: 2px solid rgba(253, 230, 138, .5); border-radius: 18px; }
.p-photo .ini { font-size: 5rem; font-weight: 800; color: #fde68a; }
.p-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(transparent, rgba(2, 6, 23, .8)); color: #fff; text-align: center; z-index: 1; }
.p-photo .cap b { display: block; }
.p-photo .cap small { color: #fde68a; }
.quote { position: relative; font-size: 1.08rem; color: var(--text); margin-top: 34px; }
.quote::before { content: "\201C"; position: absolute; top: -40px; left: -4px; font-size: 5.5rem; color: var(--saffron); opacity: .3; font-family: Georgia, serif; line-height: 1; }
.sign { margin-top: 16px; font-weight: 700; color: var(--navy); }
.sign small { display: block; font-weight: 500; color: var(--muted); }

/* ---------- Tiles & cards ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); color: var(--ink); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--c1), var(--c2)); opacity: 0; transition: opacity .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); color: var(--ink); border-color: transparent; }
.tile:hover::before { opacity: 1; }
.tile .ic { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1, #f59e0b), var(--c2, #ea580c)); box-shadow: 0 8px 16px -6px var(--c2, rgba(0, 0, 0, .3)); }
.tile .ic .i { width: 24px; height: 24px; }
.tile .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tile b { font-size: 1rem; font-weight: 700; }
.tile small { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.tile > .i { width: 20px; height: 20px; color: var(--c2); opacity: .45; transition: transform .2s, opacity .2s; }
.tile:hover > .i { opacity: 1; transform: translateX(4px); }
.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-wide { grid-template-columns: 1.55fr 1fr; }
.g-narrow { grid-template-columns: 1fr 1.3fr; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card.hov:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-3); color: var(--navy-2); margin-bottom: 14px; }
.card .ic .i { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; font-size: .94rem; }
.card h3 { margin-bottom: 6px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--saffron-l); color: var(--saffron-d); margin-bottom: 10px; }
.tag.g { background: var(--green-l); color: var(--green); }
.tag.n { background: var(--navy-3); color: var(--navy-2); }
.tag.r { background: #fde8e8; color: var(--red); }

/* Highlights band */
.hl { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; }
.hl > div { background: rgba(11, 42, 91, .6); padding: 26px 18px; text-align: center; }
.hl .i { width: 36px; height: 36px; margin: 0 auto 10px; color: #fde68a; }
.hl b { color: #fff; display: block; }
.hl span { font-size: .84rem; color: #b8c7e6; }

/* ---------- Inner page hero ---------- */
.phero { background: radial-gradient(900px 300px at 85% -20%, rgba(245, 158, 11, .35), transparent 60%), linear-gradient(135deg, #0b2a5b 0%, #173f86 100%); color: #dbe5f7; padding: 54px 0 64px; position: relative; overflow: hidden; }
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--bg); clip-path: ellipse(70% 100% at 50% 100%); }
.phero h1 { color: #fff; margin: 6px 0 6px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.phero p { margin: 0; max-width: 680px; color: #c5d3ee; }
.crumbs { font-size: .82rem; color: #9fb3da; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: #fde68a; }
.mand { display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: .72rem; padding: 3px 10px; color: #fde68a; margin-top: 14px; }
.phero .kid-row { position: absolute; right: 4%; bottom: 20px; width: 260px; opacity: .95; }
.page { padding: 40px 0 80px; }

/* ---------- Lists / timeline ---------- */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { display: flex; gap: 12px; align-items: flex-start; }
.check li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 3px; background: linear-gradient(var(--saffron), var(--green)); border-radius: 3px; }
.timeline .t { position: relative; padding-bottom: 22px; }
.timeline .t::before { content: ""; position: absolute; left: -31px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--saffron); }
.timeline .t b { color: var(--navy); font-size: 1.05rem; }
.timeline .t p { margin: 2px 0 0; color: var(--muted); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vm .card { border-top: 4px solid var(--saffron); }
.vm .card:last-child { border-top-color: var(--green); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .02em; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f9fbff; }
tbody tr:hover { background: var(--saffron-l); }
tfoot td { font-weight: 700; background: var(--navy-3); color: var(--navy); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Bars (charts) ---------- */
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 110px 1fr 54px; gap: 12px; align-items: center; font-size: .9rem; }
.bar .tr { height: 14px; background: var(--navy-3); border-radius: 999px; overflow: hidden; }
.bar .fl { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--saffron), #f97316); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.bar .fl.g { background: linear-gradient(90deg, #22c55e, var(--green)); }
.bar .fl.b { background: linear-gradient(90deg, #3b82f6, var(--navy-2)); }
.bar b { text-align: right; color: var(--navy); }
.cols { display: flex; align-items: flex-end; gap: 18px; height: 240px; padding: 10px 0 0; border-bottom: 2px solid var(--line); }
.col { flex: 1; display: flex; gap: 6px; align-items: flex-end; height: 100%; position: relative; }
.col i { flex: 1; border-radius: 8px 8px 0 0; height: 0; transition: height 1.2s cubic-bezier(.2, .8, .2, 1); position: relative; }
.col i.s { background: linear-gradient(var(--saffron), #f97316); }
.col i.t { background: linear-gradient(#3b82f6, var(--navy-2)); }
.col i em { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .74rem; font-weight: 700; color: var(--ink); }
.col-l { display: flex; gap: 18px; margin-top: 8px; }
.col-l span { flex: 1; text-align: center; font-size: .85rem; color: var(--muted); font-weight: 600; }
.legend { display: flex; gap: 18px; font-size: .84rem; color: var(--muted); margin-bottom: 30px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }

/* ---------- Person cards ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.person { background: #fff; border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); transition: .2s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.avatar { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--a1); }
.person b { display: block; color: var(--ink); }
.person .role { display: inline-block; margin: 6px 0 4px; font-size: .75rem; font-weight: 700; color: var(--navy-2); background: var(--navy-3); border-radius: 999px; padding: 2px 10px; }
.person small { display: block; color: var(--muted); font-size: .84rem; }
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 26px; box-shadow: var(--shadow); flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; font-size: .9rem; border: 0; background: none; padding: 9px 20px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Notices ---------- */
.notices { display: grid; gap: 12px; }
.notice { display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: center; background: #fff; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .2s; }
.notice:hover { border-color: var(--saffron); transform: translateX(4px); }
.date { text-align: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 8px 4px; line-height: 1.1; }
.date b { display: block; font-size: 1.5rem; }
.date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #fde68a; }
.notice h3 { font-size: 1rem; margin: 4px 0 0; font-weight: 600; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button { font: inherit; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; cursor: pointer; color: var(--muted); }
.filters button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gal figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); aspect-ratio: 10/7; background: var(--navy-3); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal figure:hover img { transform: scale(1.07); }
.gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(2, 6, 23, .78)); font-weight: 600; font-size: .92rem; }
.gal figcaption small { display: block; font-weight: 500; color: #fde68a; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(2, 6, 23, .92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lb.open { display: flex; }
.lb img { max-height: 82vh; max-width: min(1100px, 92vw); border-radius: 12px; background: #fff; }
.lb p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; margin: 0; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb .x { top: 18px; right: 18px; }
.lb .pv { left: 18px; top: 50%; }
.lb .nx { right: 18px; top: 50%; }

/* ---------- Achievements ---------- */
.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ach .card { position: relative; overflow: hidden; padding-left: 86px; }
.ach .medal { position: absolute; left: 20px; top: 24px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; box-shadow: 0 6px 14px rgba(245, 158, 11, .4); }
.ach .card.staff .medal { background: linear-gradient(135deg, #bfdbfe, #3b82f6); color: #0b2a5b; }
.ach .lvl { position: absolute; top: 14px; right: 14px; }
.ach .who { font-size: .88rem; color: var(--muted); }
.ach .yr { font-weight: 700; color: var(--saffron-d); font-size: .82rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); position: absolute; top: -16px; left: 22px; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--saffron), #f97316); color: #1c1917; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(245, 158, 11, .35); }
.step h3 { margin-top: 12px; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ---------- Calendar ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.cal-nav h3 { margin: 0; }
.cal-nav button { background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dh { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.cal .d { min-height: 82px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: .78rem; }
.cal .d.o { background: transparent; border-color: transparent; }
.cal .d.sun { background: #fff7f7; }
.cal .d.today { border: 2px solid var(--saffron); }
.cal .d > b { font-size: .85rem; color: var(--ink); }
.cal .ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 6px; font-size: .7rem; line-height: 1.3; background: var(--navy-3); color: var(--navy); }
.cal .ev.exam { background: #fde8e8; color: var(--red); }
.cal .ev.holiday { background: var(--green-l); color: var(--green); }
.ev-list { display: grid; gap: 10px; }
.ev-list .notice { grid-template-columns: 74px 1fr; }

/* ---------- Forms ---------- */
.form { background: #fff; border-radius: 22px; padding: 30px; box-shadow: var(--shadow-l); border: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fgrid .full { grid-column: 1 / -1; }
.f label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.f label em { color: var(--red); font-style: normal; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe; color: var(--ink); transition: border .15s, box-shadow .15s; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(23, 63, 134, .12); background: #fff; }
.f input:invalid:not(:placeholder-shown) { border-color: #f87171; }
.f textarea { min-height: 110px; resize: vertical; }
.f .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-msg.ok { display: block; background: var(--green-l); color: var(--green); border: 1px solid #bbf7d0; }
.form-msg.err { display: block; background: #fde8e8; color: var(--red); border: 1px solid #fecaca; }
.form-msg b.ref { font-size: 1.2rem; letter-spacing: .05em; }
.form h3 { display: flex; gap: 10px; align-items: center; color: var(--navy); border-bottom: 2px dashed var(--line); padding-bottom: 10px; margin: 8px 0 16px; grid-column: 1 / -1; font-size: 1.02rem; }
.side-card { position: sticky; top: 100px; }

/* ---------- Downloads / links ---------- */
.dl { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); transition: .2s; color: var(--ink); }
.dl:hover { border-color: var(--navy-2); color: var(--ink); transform: translateY(-2px); }
.dl .ft { width: 48px; height: 54px; flex: none; border-radius: 8px; background: #fde8e8; color: var(--red); display: grid; place-items: center; font-size: .7rem; font-weight: 800; position: relative; }
.dl .ft::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 12px 12px 0; border-style: solid; border-color: transparent var(--bg) transparent transparent; }
.dl div { flex: 1; min-width: 0; }
.dl b { display: block; font-weight: 600; font-size: .95rem; }
.dl small { color: var(--muted); }
.dl > .i { color: var(--navy-2); }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(120deg, #f59e0b, #f97316 50%, #ea580c); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; color: #1c1917; position: relative; overflow: hidden; box-shadow: var(--shadow-l); }
.cta::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .15); right: -80px; top: -160px; }
.cta h2 { color: #1c1917; margin-bottom: 6px; }
.cta p { margin: 0; color: #422006; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ---------- Map ---------- */
.map { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }
.ci { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ci:last-child { border: 0; }
.ci .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--saffron-l); color: var(--saffron-d); display: grid; place-items: center; flex: none; }
.ci b { display: block; color: var(--ink); }
.ci span, .ci a { color: var(--muted); font-size: .94rem; }

/* ---------- Footer ---------- */
.footer { background: #071b3d; color: #a9b8d6; padding: 64px 0 0; position: relative; margin-top: 40px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #ff9933 33%, #fff 33% 66%, #138808 66%); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: #a9b8d6; }
.footer a:hover { color: #fde68a; }
.fgrid4 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer .fb { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer .fb b { color: #fff; line-height: 1.3; }
.footer p { font-size: .9rem; }
.footer .fci { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 10px; }
.footer .fci .i { color: var(--saffron); margin-top: 3px; }
.fbot { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fab a, .fab button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); border: 0; cursor: pointer; transition: transform .2s; }
.fab a:hover, .fab button:hover { transform: scale(1.08); color: #fff; }
.fab .wa { background: #22c55e; }
.fab .ph { background: var(--navy-2); }
.fab .top { background: var(--saffron); color: #1c1917; opacity: 0; pointer-events: none; transition: opacity .3s; }
.fab .top.show { opacity: 1; pointer-events: auto; }
.fab .i { width: 24px; height: 24px; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; } .rv.d5 { transition-delay: .4s; }
.no-js .rv { opacity: 1; transform: none; }
/* Phones scroll fast: show content straight away rather than fading in blank screens. */
@media (max-width: 860px) { .rv { opacity: 1; transform: none; transition: none; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .brand-t b { white-space: normal; }
}
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hl { grid-template-columns: repeat(3, 1fr); }
  .fgrid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  section { padding: 54px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .principal { grid-template-columns: 1fr; gap: 28px; }
  .p-photo { max-width: 280px; margin: 0 auto; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .g2, .vm, .g-wide, .g-narrow { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 32px 24px; }
  .phero .kid-row { display: none; }
  .side-card { position: static; }
  .topbar .tb-l .hide-s { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header .wrap { min-height: 66px; gap: 10px; }
  .brand .emblem { width: 44px; height: 44px; }
  .brand-t b { font-size: .9rem; }
  .brand-t small { font-size: .68rem; }
  .g3, .g4, .steps, .fgrid, .fgrid4 { grid-template-columns: 1fr; }

  .hero .chip { font-size: .74rem; }
  .hl { grid-template-columns: 1fr 1fr; }
  .hero-in { padding-top: 36px; }
  .notice { grid-template-columns: 60px 1fr; }
  .notice > .btn, .notice > .tag-r { grid-column: 2; justify-self: start; }
  .cal .d { min-height: 52px; font-size: .65rem; padding: 4px; }
  .cal .ev { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--navy-2); }
  .cal .ev.exam { background: var(--red); } .cal .ev.holiday { background: var(--green); }
  .bar { grid-template-columns: 84px 1fr 44px; font-size: .82rem; }
  .form { padding: 22px 18px; }
  .topbar .tb-r .a11y { display: none; }
  .ach .card { padding-left: 80px; }
  .cols { gap: 8px; }
  .col-l { gap: 8px; }
}
@media print {
  .topbar, .header, .fab, .footer, .ticker, .demo-ribbon { display: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ==========================================================
   v2: photos & advanced disclosure components
   ========================================================== */
/* Photo banner for inner pages */
.phero.has-bg { background-color: var(--navy); background-size: cover; background-position: center 35%; background-repeat: no-repeat; padding: 64px 0 80px; }
.phero.has-bg h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.rep { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(2, 6, 23, .6); color: #fff; font-size: .66rem; font-weight: 500; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); pointer-events: none; }
.phero .rep { bottom: 48px; }
.gal figure .rep { top: 10px; bottom: auto; }

/* Photo figure */
.ph { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-l); background: var(--navy-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .6s; }
.ph:hover img { transform: scale(1.05); }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(2, 6, 23, .75)); }
.ph figcaption + .rep, .ph .rep { bottom: auto; top: 10px; }
.ph.tall img { aspect-ratio: 4/3.2; }
.side-ph img { aspect-ratio: 16/10; }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.mosaic .ph img { aspect-ratio: auto; }
.mosaic .m-big { grid-row: span 2; }
.mosaic.m3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 240px; }

/* At a glance */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.glance > div { background: #fff; padding: 22px 18px; text-align: center; }
.glance b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.glance span { font-size: .85rem; color: var(--muted); }
.glance.g-2 { grid-template-columns: 1fr 1fr; }
caption { caption-side: top; text-align: left; padding: 14px 16px; font-weight: 700; color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }

/* Org chart */
.org { display: grid; gap: 10px; justify-items: center; margin-top: 18px; }
.org > div { position: relative; }
.org > div + div::before { content: ""; position: absolute; top: -10px; left: 50%; width: 2px; height: 10px; background: var(--saffron); }
.o1 { background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .9rem; text-align: center; min-width: 60%; }
.o1.lt { background: var(--navy-3); color: var(--navy); }
.o1.hi { background: linear-gradient(135deg, var(--saffron), #f97316); color: #1c1917; }
.org small { display: block; font-weight: 500; font-size: .76rem; opacity: .85; }
.orow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.orow > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; font-weight: 600; font-size: .86rem; color: var(--ink); box-shadow: var(--shadow); }

/* Toolbar + search */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 16px; min-width: 260px; color: var(--muted); }
.search:focus-within { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(23, 63, 134, .12); }
.search input { border: 0; outline: 0; font: inherit; font-size: .92rem; padding: 7px 0; flex: 1; background: none; color: var(--ink); min-width: 0; }

/* Donut */
.donut-w { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.donut { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.donut > div { width: 108px; height: 108px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.donut b { font-size: 1.5rem; color: var(--ink); line-height: 1; }
.donut span { font-size: .74rem; color: var(--muted); }
.dl-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; flex: 1; min-width: 180px; font-size: .88rem; }
.dl-legend li { display: grid; grid-template-columns: 12px 1fr auto 52px; gap: 10px; align-items: center; }
.dl-legend i { width: 12px; height: 12px; border-radius: 3px; }
.dl-legend b { color: var(--ink); }
.dl-legend em { font-style: normal; color: var(--muted); text-align: right; }

/* Mini bars, ring, ok */
.tr.mini { height: 8px; background: var(--navy-3); border-radius: 999px; overflow: hidden; }
.ok { color: var(--green); font-weight: 600; }
.ring { --p: 50; --c: var(--green); width: 96px; height: 96px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--navy-3) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-size: 1.15rem; color: var(--ink); }
.ring.big { width: 120px; height: 120px; margin: 0; }
.ring.big b { font-size: 1.5rem; }
.compliance { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-left: 6px solid var(--green); }
.bar.wide-l { grid-template-columns: 170px 1fr 30px; }

/* Countdown */
.countdown { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: radial-gradient(600px 200px at 0% 0%, rgba(245, 158, 11, .3), transparent 60%), linear-gradient(135deg, #0b2a5b, #173f86); color: #dbe5f7; border-radius: 24px; padding: 30px 34px; box-shadow: var(--shadow-l); }
.countdown h2 { color: #fff; margin: 4px 0; }
.countdown p { margin: 0; color: #fde68a; font-weight: 600; }
.countdown .eyebrow { color: #fde68a; }
.cd { display: flex; gap: 12px; }
.cd > div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 12px 10px; min-width: 78px; text-align: center; }
.cd b { display: block; font-size: 2rem; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #b8c7e6; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; color: var(--saffron-d); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details[open] summary { color: var(--navy); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.timeline .t.done::before { background: var(--green); border-color: var(--green); }
.timeline .t.done b { color: var(--muted); text-decoration: line-through; }

/* Escalation ladder */
.ladder { display: grid; gap: 10px; margin-top: 8px; }
.ladder > div { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.ladder span { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--saffron), #f97316); }
.ladder > div:nth-child(2) span { background: linear-gradient(135deg, #3b82f6, var(--navy-2)); }
.ladder > div:nth-child(3) span { background: linear-gradient(135deg, #22c55e, var(--green)); }
.ladder > div:nth-child(4) span { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ladder b { color: var(--ink); }
.ladder small { color: var(--muted); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { background: var(--navy-3); color: var(--navy); font-size: .85rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; }

/* Albums */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.album { position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; box-shadow: var(--shadow); background: var(--navy-3); font: inherit; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album:hover img { transform: scale(1.08); }
.album span { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; text-align: left; color: #e2e8f0; font-size: .78rem; background: linear-gradient(transparent, rgba(2, 6, 23, .82)); }
.album b { display: block; color: #fff; font-size: .98rem; }
.album.on { outline: 3px solid var(--saffron); outline-offset: 2px; }

@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px 160px; }
  .mosaic .m-big { grid-column: span 2; grid-row: auto; }
  .mosaic.m3 { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px; }
  .mosaic.m3 .ph:first-child { grid-column: span 2; }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .search { min-width: 0; width: 100%; }
  .compliance { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .countdown { padding: 24px 18px; }
  .cd { width: 100%; justify-content: space-between; gap: 6px; }
  .cd > div { min-width: 0; flex: 1; padding: 10px 4px; }
  .cd b { font-size: 1.5rem; }
  .bar.wide-l { grid-template-columns: 110px 1fr 24px; }
  .orow { grid-template-columns: 1fr; }
  .o1 { min-width: 100%; }
  .donut-w { justify-content: center; }
  .phero.has-bg { padding: 48px 0 70px; }
}

/* "To be updated" placeholder card */
.tbu { display: flex; gap: 14px; align-items: flex-start; border: 2px dashed #f2c66d; background: var(--saffron-l); box-shadow: none; }
.tbu > .i { width: 28px; height: 28px; color: var(--saffron-d); flex: none; margin-top: 2px; }
.tbu b { color: var(--saffron-d); }
.tbu p { color: #78350f; margin: 2px 0 0; }

/* Photo hero (slideshow of school photos) */
.hero-photo { position: relative; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center; overflow: hidden; background: #071b3d; padding: 0; }
.hero-photo .slides { position: absolute; inset: 0; }
.hero-photo .slide { position: absolute; inset: 0; background-size: cover; background-position: center 40%; opacity: 0; animation: heroFade 24s ease-in-out infinite; will-change: opacity, transform; }
.hero-photo .slides[style*="--n:1"] .slide { animation: heroZoom 24s ease-in-out infinite alternate; opacity: 1; }
.hero-photo .slides[style*="--n:2"] .slide { animation-name: heroFade2; animation-duration: 16s; }
/* 3 photos x 8s: 2s crossfade, slow Ken Burns zoom */
@keyframes heroFade { 0% { opacity: 0; transform: scale(1.12); } 8% { opacity: 1; } 33.3% { opacity: 1; } 41.6% { opacity: 0; transform: scale(1.02); } 100% { opacity: 0; transform: scale(1.02); } }
@keyframes heroFade2 { 0% { opacity: 0; transform: scale(1.12); } 12% { opacity: 1; } 50% { opacity: 1; } 62% { opacity: 0; transform: scale(1.02); } 100% { opacity: 0; } }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-dots { position: absolute; z-index: 3; left: max(20px, calc((100% - 1440px) / 2 + 20px)); bottom: 26px; display: flex; gap: 8px; }
.hero-dots i { position: relative; width: 46px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero-dots i::after { content: ""; position: absolute; inset: 0; background: #fbbf24; transform: scaleX(0); transform-origin: left; animation: inherit; animation-name: heroDot; }
.hero-dots i { animation: heroDotHost 24s linear infinite; }
@keyframes heroDotHost { from { opacity: 1; } to { opacity: 1; } }
@keyframes heroDot { 0% { transform: scaleX(0); } 33.3% { transform: scaleX(1); } 33.4%, 100% { transform: scaleX(0); } }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7, 27, 61, .88) 0%, rgba(7, 27, 61, .6) 40%, rgba(7, 27, 61, .12) 72%, rgba(7, 27, 61, 0) 100%), linear-gradient(0deg, rgba(7, 27, 61, .55) 0%, transparent 30%); }
/* Same 1440px column as the header, so the hero text lines up with the logo on wide screens */
.hero-copy { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 70px; color: #fff; text-align: left; width: 100%; max-width: 1440px; }
.hero-copy .chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px); box-shadow: none; }
.hero-copy h1 { color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); margin: 18px 0 8px; max-width: 760px; }
.hero-copy h1 span { background: linear-gradient(90deg, #fbbf24, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-copy .te { color: #fde68a; font-weight: 600; font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 10px; }
.hero-copy .lead { color: #e2e8f0; max-width: 620px; font-size: 1.08rem; margin: 0 0 26px; }
.hero-copy .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.hero-photo > .rep { bottom: 14px; right: 14px; }
@media (max-width: 860px) {
  .hero-photo { min-height: 560px; align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, rgba(7, 27, 61, .95) 0%, rgba(7, 27, 61, .7) 55%, rgba(7, 27, 61, .1) 100%); }
  .hero-copy { padding-top: 120px; padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo .slide:first-child { opacity: 1; } }

/* ==========================================================
   v3: mobile-first polish
   ========================================================== */
@media (max-width: 860px) {
  /* Floating buttons appear after the first scroll (main.js adds .show) */
  .fab { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
  .fab.show { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 560px) {
  section { padding: 44px 0; }
  .head { margin-bottom: 26px; }

  /* Top bar + header: one tidy row */
  .demo-ribbon { font-size: .7rem; padding: 3px 10px; }
  .topbar { font-size: .74rem; }
  .topbar .wrap { min-height: 34px; gap: 10px; flex-wrap: nowrap; }
  .topbar .tb-l { gap: 12px; flex-wrap: nowrap; }
  .topbar .tb-r { display: none; }
  .header .wrap { min-height: 64px; }
  .brand { gap: 10px; }
  .brand-t b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-t small { font-size: .7rem; }
  .brand-t small:last-child { display: none; }
  .burger { width: 42px; height: 42px; border-radius: 11px; flex: none; }

  /* Hero */
  .hero-photo { min-height: 500px; }
  .hero-copy { padding-top: 96px; padding-bottom: 40px; }
  .hero-copy .chip { font-size: .72rem; padding: 5px 12px 5px 5px; line-height: 1.35; }
  .hero-copy .chip b { white-space: nowrap; font-size: .66rem; padding: 3px 8px; }
  .hero-copy h1 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); margin: 14px 0 6px; }
  .hero-copy .te { font-size: .95rem; }
  .hero-copy .lead { font-size: .98rem; margin-bottom: 20px; }
  .hero-copy .ctas { flex-direction: column; gap: 10px; }
  .hero-copy .ctas .btn { width: 100%; padding: 13px 18px; }
  .hero-dots { bottom: 16px; }
  .hero-dots i { width: 30px; }
  .hero-photo > .rep { bottom: 10px; right: 10px; }

  /* Ticker: icon-only label */
  .ticker .lbl { padding: 10px 22px 10px 14px; font-size: 0; gap: 0; }
  .ticker .lbl .i { width: 18px; height: 18px; }
  .ticker .move a { font-size: .84rem; }

  /* Stats: 2 x 2 inside the one panel */
  .stats { border-radius: 18px; }
  .stat { gap: 12px; padding: 16px 14px; }
  .stat::after { left: 14px; right: 14px; }
  .stat .ic { width: 40px; height: 40px; border-radius: 12px; }
  .stat .ic .i { width: 21px; height: 21px; }
  .stat b { font-size: 1.4rem; }
  .stat span { font-size: .66rem; letter-spacing: .06em; }

  /* Quick links: compact 2-column cards, icon on top */
  .tiles { gap: 12px; }
  .tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; }
  .tile .ic { width: 44px; height: 44px; border-radius: 13px; }
  .tile .ic .i { width: 21px; height: 21px; }
  .tile b { font-size: .92rem; }
  .tile small { font-size: .74rem; }
  .tile > .i { position: absolute; top: 16px; right: 12px; width: 18px; height: 18px; }

  /* Principal block */
  .p-photo { width: 100%; max-width: 240px; }
  .p-photo .ini { font-size: 3.6rem; }
  .quote { font-size: 1rem; }

  .card { padding: 20px; }
  .cta { padding: 26px 20px; border-radius: 22px; }
  .cta .btns .btn { flex: 1; }

  /* Floating buttons: WhatsApp + back-to-top only (phone number is in the top bar) */
  .fab { right: 14px; bottom: 14px; gap: 8px; }
  .fab a, .fab button { width: 46px; height: 46px; }
  .fab .ph { display: none; }
  .fab .i { width: 22px; height: 22px; }
}
