/* School Management AI System — UI styles */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&family=Noto+Serif+Bengali:wght@600;700&display=swap');

:root {
  --bg: #f4f6fb; --panel: #ffffff; --panel-2: #f8fafc; --text: #0f172a; --muted: #64748b; --line: #e5e9f2;
  --brand: #1b3a6b; --brand-2: #0b1f3f; --brand-soft: #edf1f8; --gold: #c9a24b; --gold-2: #f3d98b; --gold-soft: #fbf5e6; --ok: #059669; --ok-soft: #ecfdf5;
  --warn: #d97706; --warn-soft: #fffbeb; --bad: #dc2626; --bad-soft: #fef2f2; --info: #0284c7; --info-soft: #f0f9ff;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06); --radius: 16px;
  --sidebar: #0b1f3f; --sidebar-text: #c7d2e4; --sidebar-active: #13305a;
  --serif: 'Playfair Display', 'Noto Serif Bengali', Georgia, serif;
  font-family: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
}
[data-theme="dark"] {
  --bg: #0b1120; --panel: #111827; --panel-2: #0f172a; --text: #e5e7eb; --muted: #94a3b8; --line: #1f2937;
  --brand-soft: #12223d; --gold-soft: #2a2310; --ok-soft: #052e22; --warn-soft: #2d1f04; --bad-soft: #2c0b0b; --info-soft: #082032;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); --sidebar: #050f22; --sidebar-active: #0f2442; --brand: #6b93d6;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 700; font-family: var(--serif); letter-spacing: 0; }
.card h2, .page-head h1 { font-family: var(--serif); } h2 { font-size: 1.15rem; font-weight: 700; } h3 { font-size: 1rem; }
small, .muted { color: var(--muted); }
img { max-width: 100%; }

/* ---------- app shell */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-text); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 6px 8px 18px; color: #fff; font-weight: 800; font-size: 1.05rem; }
.brand .logo { width: 40px; height: 46px; display: grid; place-items: center; background: url('crest.svg') center/contain no-repeat; font-size: 0; flex: none; }
.brand { font-family: var(--serif); letter-spacing: .01em; }
.brand small { display: block; color: #94a3b8; font-weight: 500; font-size: .72rem; }
.nav-group { margin: 14px 0 4px; padding: 0 10px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; font-weight: 700; }
.nav a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--sidebar-text); font-size: .9rem; }
.nav a:hover { background: var(--sidebar-active); color: #fff; text-decoration: none; }
.nav a.active { background: linear-gradient(90deg, rgba(201,162,75,.22), rgba(201,162,75,.04)); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav-group { color: var(--gold) !important; opacity: .75; }
.nav .ic { width: 22px; text-align: center; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .grow { flex: 1; }
.topbar .pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-size: .85rem; }
.topbar .pill:hover { text-decoration: none; border-color: var(--brand); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2c5aa0, var(--brand-2)); font-size: .85rem; flex: none; }
.badge-dot { background: var(--bad); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 6px; font-weight: 700; }
.content { padding: 26px 28px 60px; max-width: 1400px; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--text); cursor: pointer; }

/* ---------- components */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 18px; }
.grid > .card + .card, .grid > * > .card:first-child { margin-top: 0; }
.grid { align-items: start; }
.grid.g4 { align-items: stretch; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.main, .content, .card { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .g-2-1 { grid-template-columns: 2fr 1fr; }
.stat { position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: .85rem; font-weight: 500; }
.stat .value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat .sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.stat .icon { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; }
.c-brand { background: var(--brand-soft); } .c-ok { background: var(--ok-soft); } .c-warn { background: var(--warn-soft); } .c-bad { background: var(--bad-soft); } .c-info { background: var(--info-soft); }
.hero { background: radial-gradient(circle at 92% 10%, rgba(201,162,75,.35), transparent 38%), linear-gradient(120deg, #0b1f3f 0%, #1b3a6b 60%, #24508f 100%); color: #fff; border: 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url('crest.svg') right 28px center/90px no-repeat; opacity: .12; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero h1 { color: #fff; } .hero p { color: rgba(255,255,255,.85); margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--brand); color: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; font-family: inherit; transition: transform .05s, box-shadow .15s; }
.btn:hover { text-decoration: none; box-shadow: 0 6px 16px rgba(11,31,63,.28); }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #0b1f3f; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); box-shadow: none; }
.btn.ok { background: var(--ok); } .btn.bad { background: var(--bad); } .btn.warn { background: var(--warn); }
.btn.sm { padding: 5px 10px; font-size: .8rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

form.inline { display: inline; }
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 5px; }
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-family: inherit; font-size: .92rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--panel-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tag.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; border: 1px solid transparent; }
.flash.success { background: var(--ok-soft); color: var(--ok); } .flash.error { background: var(--bad-soft); color: var(--bad); }
.flash.info { background: var(--info-soft); color: var(--info); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.list .meta { font-size: .8rem; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty .big { font-size: 2.2rem; }

.progress { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #2c5aa0, var(--brand-2)); border-radius: 999px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 10px 10px 0 0; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tabs a.active { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }

/* ---------- charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .gridline { stroke: var(--line); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- MCQ */
.q-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: var(--panel); }
.q-card .qn { font-weight: 700; color: var(--brand); font-size: .85rem; }
.q-card .qt { font-weight: 600; font-size: 1.02rem; margin: 6px 0 12px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; margin: 0; background: var(--panel-2); transition: .12s; }
.opt label b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); flex: none; }
.opt input:checked + label { border-color: var(--brand); background: var(--brand-soft); }
.opt input:checked + label b { background: var(--brand); color: #fff; border-color: var(--brand); }
.opt.right label { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong label { border-color: var(--bad); background: var(--bad-soft); }
.timer { position: sticky; top: 70px; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 16px; }
.timer .clock { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); }
.score-ring { width: 150px; height: 150px; }

/* ---------- chat */
.chat { display: grid; grid-template-columns: 290px 1fr; gap: 0; height: calc(100vh - 170px); min-height: 480px; padding: 0; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list a { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); align-items: center; }
.chat-list a.active, .chat-list a:hover { background: var(--brand-soft); text-decoration: none; }
.chat-body { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--panel-2); }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); }
.msg.me a { color: #fff; text-decoration: underline; }
.msg .who { font-size: .75rem; font-weight: 700; opacity: .8; }
.msg .when { font-size: .7rem; opacity: .7; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: center; }

/* ---------- auth & public */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: radial-gradient(circle at 85% 15%, rgba(201,162,75,.35), transparent 40%), linear-gradient(150deg, #071631, #0b1f3f 45%, #1b3a6b); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.07); right: -140px; bottom: -120px; }
.auth-side h1 { font-size: 2.6rem; color: #fff; font-family: var(--serif); }
.auth-side .campus { width: 100%; max-width: 520px; margin-top: 26px; opacity: .95; } .auth-side p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.feature-chips span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; border-radius: 999px; font-size: .85rem; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .card { width: 100%; max-width: 430px; padding: 30px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-grid button { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-weight: 600; cursor: pointer; font-family: inherit; text-align: left; }
.demo-grid button:hover { border-color: var(--brand); background: var(--brand-soft); }
.divider { text-align: center; color: var(--muted); font-size: .8rem; margin: 18px 0; position: relative; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line); }
.divider::before { left: 0; } .divider::after { right: 0; }

.pub-nav { display: flex; align-items: center; gap: 18px; padding: 16px 6%; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.pub-nav .grow { flex: 1; } .pub-nav a { color: var(--text); font-weight: 500; }
.pub-hero { padding: 80px 6% 70px; background: radial-gradient(circle at 80% 10%, rgba(124,58,237,.25), transparent 40%), linear-gradient(135deg, #1e1b4b, #312e81 50%, #4f46e5); color: #fff; }
.pub-hero h1 { font-size: 2.8rem; color: #fff; max-width: 760px; }
.pub-hero p { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 640px; }
.section { padding: 56px 6%; }
.feature { padding: 22px; }
.feature .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--brand-soft); margin-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 160px; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 12px; font-size: .85rem; }
footer.pub { padding: 26px 6%; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- print (report cards, receipts, ID cards, certificates) */
.printable { background: #fff; color: #0f172a; }
.idcard { width: 320px; border-radius: 16px; overflow: hidden; border: 1px solid #e5e7eb; background: #fff; color: #0f172a; break-inside: avoid; }
.idcard .top { background: linear-gradient(120deg, #0b1f3f, #1b3a6b); border-bottom: 3px solid #c9a24b; color: #fff; padding: 12px 16px; font-weight: 700; }
.idcard .body { display: flex; gap: 14px; padding: 16px; align-items: center; }
.idcard .ph { width: 72px; height: 86px; border-radius: 10px; background: #eef2ff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #4f46e5; }
.cert { max-width: 820px; margin: auto; padding: 50px; border: 10px double #c9a24b; outline: 2px solid #0b1f3f; outline-offset: -22px; text-align: center; background: #fff; color: #0f172a; }
.cert h1 { font-size: 2.2rem; color: #312e81; }
@media print {
  .sidebar, .topbar, .no-print, .flash { display: none !important; }
  .shell { display: block; } .content { padding: 0; } .card { box-shadow: none; border: 0; }
  body, html { background: #fff; color: #000; }
}

/* ---------- responsive */
.show-sm { display: none; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-2-1, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; width: 270px; z-index: 50; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .menu-btn { display: block; }
  .content { padding: 18px 14px 50px; } .topbar { padding: 12px 14px; }
  .g2, .g4 { grid-template-columns: 1fr; } .opts { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; } .auth-side { padding: 32px 24px; } .auth-side h1 { font-size: 1.7rem; }
  .chat { grid-template-columns: 1fr; height: auto; } .chat-list { max-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pub-hero h1 { font-size: 2rem; } .hide-sm { display: none; } .show-sm { display: inline; }
  .topbar { gap: 6px; } .topbar .pill { padding: 6px 9px; }
}

/* =====================================================================
   Premium public website (international-school style)
   ===================================================================== */
.site { background: #fbfaf7; color: #14213d; }
[data-theme="dark"] .site { background: var(--bg); color: var(--text); }
.site h1, .site h2, .site h3 { font-family: var(--serif); color: inherit; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 700; color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.topstrip { background: #071631; color: #c7d2e4; font-size: .8rem; }
.topstrip .wrap { display: flex; gap: 22px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topstrip a { color: var(--gold-2); }
.sitenav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #ece7da; }
[data-theme="dark"] .sitenav { background: rgba(11,17,32,.9); border-color: var(--line); }
.sitenav .wrap { display: flex; align-items: center; gap: 22px; height: 78px; }
.sitenav a, .sitenav b { white-space: nowrap; }
.sitebrand { display: flex; align-items: center; gap: 12px; color: inherit; }
.sitebrand:hover { text-decoration: none; }
.sitebrand img { width: 46px; height: 54px; }
.sitebrand b { display: block; font-family: var(--serif); font-size: 1.12rem; line-height: 1.15; }
.sitebrand small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.sitelinks { display: flex; gap: 22px; margin-left: auto; }
@media (max-width: 1280px) { .sitecta .hide-sm { display: none; } .sitelinks { gap: 18px; } }
.sitelinks a { color: inherit; font-weight: 600; font-size: .92rem; position: relative; padding: 4px 0; }
.sitelinks a:hover { text-decoration: none; color: var(--brand); }
.sitelinks a.active::after, .sitelinks a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); }
.sitecta { display: flex; gap: 10px; align-items: center; }
.btn.pill { border-radius: 999px; padding: 10px 20px; }
.btn.lg { padding: 14px 26px; font-size: 1rem; border-radius: 999px; }

.bighero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 18%, rgba(201,162,75,.28), transparent 42%), linear-gradient(135deg, #071631 0%, #0b1f3f 45%, #1b3a6b 100%); }
.bighero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; }
.bighero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 86px; padding-bottom: 110px; }
.bighero h1 { font-size: 3.4rem; line-height: 1.08; margin: 18px 0 18px; color: #fff; }
.bighero h1 em { font-style: italic; color: var(--gold-2); }
.bighero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; line-height: 1.7; }
.bighero .ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }
.float-card { position: absolute; background: #fff; color: #14213d; border-radius: 16px; padding: 14px 18px; box-shadow: 0 20px 40px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; font-size: .88rem; }
.float-card b { font-size: 1.3rem; font-family: var(--serif); display: block; }
.float-card .fi2 { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); font-size: 1.2rem; }
.statband { position: relative; margin-top: -58px; z-index: 2; }
.statband .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(11,31,63,.14); overflow: hidden; border: 1px solid #ece7da; }
[data-theme="dark"] .statband .grid4 { background: var(--panel); border-color: var(--line); }
.statband .grid4 > div { padding: 28px 26px; border-right: 1px solid #ece7da; }
.statband .grid4 > div:last-child { border-right: 0; }
.statband .snum { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--brand); line-height: 1; }
[data-theme="dark"] .statband .snum { color: var(--gold-2); }
.statband .lbl { color: #6b7280; font-size: .88rem; margin-top: 6px; }
.sec { padding: 96px 0; }
.sec.alt { background: #f3efe6; }
[data-theme="dark"] .sec.alt { background: #0d1628; }
.sec.navy { background: linear-gradient(135deg, #071631, #0b1f3f 55%, #1b3a6b); color: #fff; }
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { font-size: 2.5rem; line-height: 1.15; margin: 14px 0 12px; }
.sec-head p { color: #5b6475; font-size: 1.05rem; line-height: 1.7; margin: 0; }
.sec.navy .sec-head p { color: rgba(255,255,255,.75); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quote-card { background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 30px 60px rgba(11,31,63,.10); border: 1px solid #ece7da; position: relative; }
[data-theme="dark"] .quote-card { background: var(--panel); border-color: var(--line); }
.quote-card::before { content: "“"; position: absolute; top: -26px; left: 30px; font-family: var(--serif); font-size: 7rem; color: var(--gold); line-height: 1; }
.quote-card p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; margin: 8px 0 22px; }
.signature { display: flex; gap: 14px; align-items: center; }
.signature .ph2 { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #1b3a6b, #0b1f3f); color: var(--gold-2); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; border: 2px solid var(--gold); }
.prog { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid #ece7da; transition: transform .2s, box-shadow .2s; }
[data-theme="dark"] .prog { background: var(--panel); border-color: var(--line); }
.prog:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(11,31,63,.14); }
.prog .band { height: 140px; display: grid; place-items: center; font-size: 3.2rem; position: relative; }
.prog .band span { position: absolute; left: 18px; bottom: 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #fff; background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 999px; }
.prog .body { padding: 22px 22px 26px; }
.prog h3 { font-size: 1.3rem; margin-bottom: 6px; }
.prog p { color: #5b6475; margin: 0; font-size: .93rem; line-height: 1.6; }
.why { display: flex; gap: 16px; align-items: flex-start; }
.why .ic2 { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(201,162,75,.14); border: 1px solid rgba(201,162,75,.4); }
.why h3 { font-size: 1.15rem; margin: 2px 0 4px; }
.why p { margin: 0; color: rgba(255,255,255,.72); font-size: .93rem; line-height: 1.6; }
.portal-shot { border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px rgba(11,31,63,.25); border: 1px solid #ece7da; background: #fff; }
.portal-shot .bar { display: flex; gap: 6px; padding: 12px 14px; background: #f1f3f7; border-bottom: 1px solid #e5e9f2; }
.portal-shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; display: block; }
.portal-shot .bar i:nth-child(1) { background: #f87171; } .portal-shot .bar i:nth-child(2) { background: #fbbf24; } .portal-shot .bar i:nth-child(3) { background: #34d399; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--gold-2); font-size: .8rem; font-weight: 800; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(7,22,49,.85)); }
.newscard { background: #fff; border: 1px solid #ece7da; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
[data-theme="dark"] .newscard { background: var(--panel); border-color: var(--line); }
.newscard .date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 62px; border-radius: 12px; background: var(--brand-2); color: #fff; font-family: var(--serif); line-height: 1; }
.newscard .date b { font-size: 1.5rem; color: var(--gold-2); } .newscard .date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.newscard h3 { font-size: 1.15rem; margin: 6px 0 0; }
.newscard p { color: #5b6475; margin: 0; font-size: .92rem; line-height: 1.6; }
.cta-band { border-radius: 28px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  background: radial-gradient(circle at 90% 0, rgba(201,162,75,.4), transparent 45%), linear-gradient(135deg, #0b1f3f, #1b3a6b); color: #fff; box-shadow: 0 30px 70px rgba(11,31,63,.3); }
.cta-band h2 { font-size: 2.2rem; color: #fff; margin: 10px 0 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.accred { display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; align-items: center; opacity: .8; }
.accred span { font-family: var(--serif); font-size: 1.05rem; color: #6b7280; display: inline-flex; gap: 8px; align-items: center; }
.sitefoot { background: #071631; color: #9fb0cc; padding: 70px 0 26px; font-size: .92rem; }
.sitefoot h4 { color: #fff; font-family: var(--serif); font-size: 1.1rem; margin: 0 0 14px; }
.sitefoot a { color: #c7d2e4; display: block; padding: 4px 0; }
.sitefoot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.sitefoot .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 46px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; padding: 0; }
.pagehero { background: radial-gradient(circle at 85% 20%, rgba(201,162,75,.25), transparent 40%), linear-gradient(135deg, #071631, #1b3a6b); color: #fff; padding: 70px 0 64px; position: relative; overflow: hidden; }
.pagehero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 300px; height: 340px; background: url('crest.svg') center/contain no-repeat; opacity: .07; }
.pagehero h1 { color: #fff; font-size: 2.8rem; margin: 12px 0 8px; }
.pagehero p { color: rgba(255,255,255,.8); margin: 0; max-width: 640px; font-size: 1.05rem; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.6); }
.crumbs a { color: var(--gold-2); }
.infocard { background: #fff; border: 1px solid #ece7da; border-radius: 20px; padding: 28px; }
[data-theme="dark"] .infocard { background: var(--panel); border-color: var(--line); }
.infocard .fi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--gold-soft); margin-bottom: 14px; }
.timeline { border-left: 2px solid var(--gold); margin-left: 8px; padding-left: 26px; display: grid; gap: 24px; }
.timeline > div { position: relative; }
.timeline > div::before { content: ""; position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-2); border: 3px solid var(--gold); }
.timeline b { font-family: var(--serif); font-size: 1.15rem; color: var(--brand); }
[data-theme="dark"] .timeline b { color: var(--gold-2); }
@media (max-width: 980px) {
  .bighero .wrap, .split { grid-template-columns: 1fr; } .bighero h1 { font-size: 2.4rem; } .hero-art { display: none; }
  .statband .grid4 { grid-template-columns: 1fr 1fr; } .statband .grid4 > div:nth-child(2) { border-right: 0; }
  .sitelinks { display: none; } .sitefoot .cols { grid-template-columns: 1fr 1fr; } .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .mosaic figure:first-child { grid-column: span 2; grid-row: auto; } .sec { padding: 64px 0; } .sec-head h2 { font-size: 1.9rem; } .cta-band { padding: 34px; }
  .topstrip .hide-sm { display: none; }
}
@media (max-width: 560px) { .sitecta .btn.ghost { display: none; } .sitebrand b { font-size: .95rem; white-space: normal; } .sitebrand img { width: 38px; height: 44px; } .sitecta .btn { padding: 8px 14px; } .sitefoot .cols { grid-template-columns: 1fr; } .pagehero h1 { font-size: 2rem; } .wrap { padding: 0 18px; } }

[data-theme="dark"] .progress > span { filter: brightness(2.1) saturate(1.2); }
[data-theme="dark"] .chart text { fill: #9fb0cc; }

/* ---------------- added features ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); font-weight: 500; font-size: .88rem; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.print-only { display: none; }
.paper-q { padding-left: 22px; }
.paper-q li { margin-bottom: 12px; break-inside: avoid; }
.paper-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 14px; margin-top: 4px; font-size: .92rem; }
@media (max-width: 700px) { .paper-opts { grid-template-columns: 1fr 1fr; } }
.answer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.answer-grid span { border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px; text-align: center; }
.bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bench { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; font-size: .85rem; background: var(--panel-2); }
.bench > div { padding-top: 6px; border-top: 1px dashed var(--line); }
.admit-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 18px; }
.admit { padding: 0 !important; overflow: hidden; border: 2px solid #1b3a6b; break-inside: avoid; }
.admit-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: linear-gradient(135deg, #0b1f3f, #1b3a6b); color: #fff; }
.admit-head img { height: 42px; }
.admit-head div div { color: #f3d98b; font-size: .82rem; letter-spacing: .04em; }
.admit-body { display: flex; gap: 14px; padding: 14px 16px; align-items: center; }
.admit-photo { width: 76px; height: 90px; border-radius: 8px; border: 2px solid #c9a24b; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #1b3a6b; background: #fbf5e6; overflow: hidden; flex: none; }
.admit-photo img { width: 100%; height: 100%; object-fit: cover; }
.admit-routine { margin: 0 16px 10px; width: calc(100% - 32px); font-size: .8rem; }
.admit-routine th, .admit-routine td { padding: 4px 6px !important; }
.admit-foot { display: flex; justify-content: space-between; align-items: end; padding: 8px 16px 14px; font-size: .75rem; }
.admit-foot .sign { border-top: 1px solid #0f172a; padding-top: 4px; min-width: 110px; text-align: center; }
.diary-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.diary-row:last-child { border-bottom: 0; }
.diary-date { width: 58px; flex: none; text-align: center; border-radius: 12px; background: var(--brand-soft); padding: 6px 4px; }
.diary-date b { display: block; font-size: 1.3rem; color: var(--brand); }
.diary-date small { font-size: .65rem; }
.slot { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; background: var(--panel-2); }
.bday-banner { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #fbf5e6, #fff); border: 1px solid #f3d98b; }
[data-theme="dark"] .bday-banner { background: var(--gold-soft); border-color: #5a4a1c; }
.bday-banner .big { font-size: 2.2rem; }
/* TV notice board */
.tv { position: fixed; inset: 0; background: radial-gradient(circle at 20% 0%, #1b3a6b, #050f22 70%); color: #fff; display: flex; flex-direction: column; font-size: 1.2rem; overflow: hidden; }
.tv-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 44px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: 'Playfair Display', serif; font-size: 1.6rem; }
.tv-head img { height: 52px; }
.tv-clock { text-align: right; font-family: system-ui, sans-serif; }
.tv-clock span { font-size: 2.4rem; font-weight: 800; color: #f3d98b; display: block; line-height: 1; }
.tv-clock small { color: #cbd5e1; }
.tv-stage { flex: 1; position: relative; }
.tv-slide { position: absolute; inset: 0; padding: 6vh 8vw; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s; }
.tv-slide.on { opacity: 1; transform: none; }
.tv-slide h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 4.2rem); margin: 16px 0; line-height: 1.15; }
.tv-slide p { font-size: clamp(1.1rem, 2.2vw, 1.8rem); color: #e2e8f0; white-space: pre-line; max-width: 1100px; }
.tv-slide small { color: #94a3b8; }
.tv-kicker { color: #c9a24b; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1.1rem; }
.tv-list { display: grid; gap: 14px; margin-top: 20px; font-size: clamp(1.1rem, 2vw, 1.7rem); }
.tv-list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 22px; background: rgba(255,255,255,.06); border-radius: 14px; border: 1px solid rgba(255,255,255,.08); }
.tv-list span { color: #cbd5e1; }
.tv-big { font-size: clamp(5rem, 14vw, 11rem); font-weight: 900; color: #f3d98b; line-height: 1; }
.tv-dots { display: flex; gap: 8px; justify-content: center; padding: 18px; }
.tv-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.tv-dots i.on { background: #c9a24b; width: 28px; border-radius: 6px; }
.tv-exit { position: fixed; top: 10px; right: 14px; color: rgba(255,255,255,.3); }
@media print {
  .print-only { display: block; }
  .admit-wrap { display: block; }
  .admit { margin-bottom: 14px; }
  .paper { box-shadow: none !important; border: 0 !important; }
}

.admit-wrap > .card { margin: 0 !important; }
