/* GBELS Shadi Khan Dhilo Campus — one small stylesheet, no framework.
   Colours and fonts are carried over from the original design:
   cream #fcfaf7, navy #102a4e, gold #c7a15a, Fraunces + Plus Jakarta Sans. */

:root {
  /* DEFAULT THEME: navy-blue dark */
  --bg: #0b1a33;
  --surface: #12294d;
  --surface-2: #0f2342;
  --header-bg: rgba(11, 26, 51, .86);
  --navy: #102a4e;
  --navy-2: #1a3a66;
  --navy-soft: #1a3158;
  --heading: #f4f7fc;
  --btn-bg: #d4ae68;
  --btn-bg-hover: #e2c283;
  --btn-fg: #0b1a33;
  --gold: #d4ae68;
  --gold-deep: #e2c283;
  --gold-light: #1b3358;
  --gold-border: #3b5280;
  --text: #e8eef8;
  --text-2: #b6c4dc;
  --border: #27426f;
  --field-border: #4a6594;
  --tag-bg: rgba(11, 26, 51, .82);
  --footer-bg: #07122a;
  --ok-bg: #12382b; --ok-fg: #8fe0b5; --ok-border: #1f6b4d;
  --bad-bg: #3d1a1c; --bad-fg: #ffb4ad; --bad-border: #7a2f2f;
  --success: #5fd09a;
  --danger: #ff9d94;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .55);
  --serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1240px;
  color-scheme: dark;
}
/* Light theme: the original cream / navy / gold design */
:root[data-theme="light"] {
  --bg: #fcfaf7;
  --surface: #fff;
  --surface-2: #fdf6e8;
  --header-bg: rgba(255, 255, 255, .82);
  --navy: #102a4e;
  --navy-2: #1a3a66;
  --navy-soft: #e8eef6;
  --heading: #102a4e;
  --btn-bg: #102a4e;
  --btn-bg-hover: #1a3a66;
  --btn-fg: #fff;
  --gold: #c7a15a;
  --gold-deep: #79591f;
  --gold-light: #fdf2db;
  --gold-border: #e9d8b0;
  --text: #14233e;
  --text-2: #4f5e78;
  --border: #ebe2d0;
  --field-border: #c9bfa8;
  --tag-bg: rgba(255, 255, 255, .88);
  --footer-bg: #102a4e;
  --ok-bg: #e6f4ec; --ok-fg: #0f5a37; --ok-border: #b7dcc7;
  --bad-bg: #fdeceb; --bad-fg: #8f1e18; --bad-border: #f0bdb9;
  --success: #1a7a4c;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(16, 42, 78, .06), 0 12px 32px -12px rgba(16, 42, 78, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); letter-spacing: -.015em; color: var(--heading); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw + .5rem, 4.25rem); font-weight: 800; line-height: .98; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--heading); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; z-index: 100; transition: top .15s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cross-page fade (supported browsers only; harmless elsewhere) */
@view-transition { navigation: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold-border); box-shadow: 0 1px 2px rgba(0,0,0,.08); flex: none; }
.brand-name { font: 700 15px/1.1 var(--serif); color: var(--heading); letter-spacing: -.02em; }
.brand-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.brand-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); display: inline-block; }
@media (min-width: 768px) { .brand img { width: 52px; height: 52px; } .brand-name { font-size: 17px; } }
.nav { display: none; align-items: center; gap: 2px; }
.nav a { padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; transition: background .2s, color .2s; }
.nav a:hover { background: var(--navy-soft); color: var(--heading); }
.nav a[aria-current="page"] { background: var(--navy-soft); color: var(--heading); }
.nav .cta { margin-left: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 18px; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.nav .cta:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--heading); }
.icon-btn:hover { background: var(--gold-light); }
.icon-btn svg { width: 20px; height: 20px; }
@media (min-width: 1100px) { .nav { display: flex; } .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 8px 20px 20px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 16px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--gold-light); }
@media (min-width: 1100px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { /* slow-moving gold/navy glow: the "futuristic" layer */
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(199,161,90,.28), transparent 70%),
    radial-gradient(35% 45% at 85% 30%, rgba(26,58,102,.20), transparent 70%),
    radial-gradient(30% 40% at 60% 90%, rgba(199,161,90,.16), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.hero::after { /* fine grid, fades out */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
}
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 3%, 0) scale(1.06); } }
.hero .wrap { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 8px; }
@media (min-width: 900px) { .hero .wrap { gap: 36px; padding-top: 64px; padding-bottom: 24px; } }
.hm-wide { position: relative; margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--gold-border); box-shadow: var(--shadow); background: var(--surface); }
.hm-wide img { display: block; width: 100%; height: auto; }
.hero-msg { padding: 24px 22px; }
@media (min-width: 768px) { .hero-msg { padding: 32px 36px; } }
.hero-msg p { margin: 0 0 .9em; color: var(--text); max-width: 78ch; }
.hero-msg .eyebrow { margin-bottom: 12px; }
.hero-msg .sign { margin: 1.2em 0 0; color: var(--text-2); }
.hero-msg .sign strong { color: var(--heading); font-family: var(--serif); font-size: 1.1rem; }
.vm { margin-top: 24px; }
.vm-dot { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px; background: var(--heading); color: var(--bg); font: 700 .95rem var(--sans); }
.vm .card h3, .goal h3 { margin-bottom: .4em; }
.vm .card p, .goal p { margin: 0; }
.card.vm-dark { background: #0f2547; border-color: var(--gold-border); }
.card.vm-dark h3 { color: #f4f7fc; } .card.vm-dark p { color: #d5e0f1; }
.card.vm-dark .vm-dot { background: #d4ae68; color: #0b1a33; }
.goal { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; }
.goal .vm-dot { flex: none; margin: 0; }
.more-link { margin: 22px 0 0; font-weight: 700; }
.people .card { padding: 20px 22px; }
.people .role { margin: 0 0 6px; font: 700 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.people h3 { margin: 0 0 4px; font-size: 1.15rem; }
.people p:last-child { margin: 0; color: var(--text-2); font-size: .92rem; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gold-border); background: var(--surface); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero h1 .gold { color: var(--gold-deep); }
.lead { font-size: clamp(1.05rem, .6vw + 1rem, 1.25rem); color: var(--text-2); max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--heading); }
.facts li b { color: var(--gold-deep); font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 999px; font: 700 14px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--heading); }
.btn-ghost:hover { background: var(--gold-light); }
.btn[disabled] { opacity: .6; cursor: progress; }


/* ---------- Sections & cards ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section.alt { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-block: 1px solid var(--border); }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4vw + .5rem, 3.25rem); line-height: 1.05; }
.crumbs { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.crumbs a { display: inline-block; padding: 4px 2px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold-deep); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.answer { /* AEO: a short direct answer at the top of a page */
  border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; box-shadow: var(--shadow); max-width: 70ch; font-size: 1.08rem; margin: 20px 0 8px;
}
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid.c2, .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-3px); border-color: var(--gold-border); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font: 800 2.25rem/1 var(--serif); color: var(--gold-deep); margin-bottom: 10px; display: block; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--heading); }
.note { background: var(--gold-light); border: 1px solid var(--gold-border); border-radius: 16px; padding: 14px 18px; font-size: 14px; color: var(--text); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
dl.kv dt { font-weight: 700; color: var(--heading); }
dl.kv dd { margin: 0; color: var(--text); }

/* ---------- Gallery ---------- */
.photos { display: grid; gap: 16px; align-items: start; }
@media (min-width: 640px) { .photos { grid-template-columns: repeat(2, 1fr); } .photos figure.tall { grid-row: span 2; } }
@media (min-width: 960px) { .photos { grid-template-columns: repeat(3, 1fr); } }
.photos figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photos figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photos figure:hover img { transform: scale(1.02); }
.photos .ph { overflow: hidden; }
.photos figcaption { padding: 12px 16px; font-size: 14px; color: var(--text-2); }

/* ---------- Forms ---------- */
form.form { display: grid; gap: 18px; max-width: 640px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--heading); }
.field .hint { font-weight: 400; color: var(--text-2); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--field-border); background: var(--surface); font: inherit; color: var(--text); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 13px; margin-top: 4px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.status.ok { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-border); }
.status.bad { background: var(--bad-bg); color: var(--bad-fg); border: 1px solid var(--bad-border); }

/* ---------- FAQ / notices ---------- */
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font: 700 1.05rem/1.4 var(--serif); color: var(--heading); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-deep); line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq .a { padding-bottom: 14px; color: var(--text); }
.notice { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 14px; padding: 18px 22px; margin-bottom: 14px; }
.notice time { font-size: 13px; font-weight: 700; color: var(--gold-deep); }
.notice h3 { margin: 4px 0 6px; }
.notice.pin { border-left-color: var(--gold); background: var(--navy-soft); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--footer-bg); color: #dbe4f1; padding: 48px 0 28px; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-family: var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; color: #b9c6da; }
.site-footer .motto { color: var(--gold); font: 700 1.1rem var(--serif); letter-spacing: .06em; }

/* ---------- Search palette ---------- */
dialog.palette { width: min(640px, calc(100% - 24px)); margin-top: 12vh; padding: 0; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(16,42,78,.5); }
dialog.palette::backdrop { background: rgba(16,42,78,.45); backdrop-filter: blur(4px); }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 20px 22px; font: 600 18px var(--sans); outline: none; border-radius: 22px 22px 0 0; background: transparent; color: var(--text); }
.palette input::placeholder { color: var(--text-2); }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette li a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.palette li a:hover, .palette li a:focus, .palette li a.active { background: var(--gold-light); }
.palette li small { display: block; color: var(--text-2); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  }
@media print { .site-header, .site-footer, .hero::before, .hero::after { display: none; } }

/* ---------- small helpers (replace inline styles so a strict CSP can be used) ---------- */
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; } .mt-40 { margin-top: 40px; }
.m0 { margin: 0; }
.stack { display: grid; gap: 12px; }
.card.flush { padding: 0; overflow: hidden; }
.pad-card { padding: 20px 24px; }
.h-card { font-size: 1.3rem; margin-bottom: .3em; }
.h1-sm { font-size: 2rem; }
.maxw-460 { max-width: 460px; }
.first { margin-top: 0; }
.top { align-items: start; }
.row-logo { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.row-logo p { margin: 0; }
.video { width: 100%; height: auto; border-radius: 20px; }
.chk { width: auto !important; min-height: 0 !important; margin-right: 8px; }
.field.check label { font-weight: 500; }
kbd { background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font: 600 .9em var(--sans); }

/* Head Master page */
.portrait { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: auto; }
.portrait figcaption { padding: 14px 20px; font: 700 1.05rem/1.3 var(--serif); color: var(--heading); }
.portrait figcaption span { font: 400 .9rem var(--sans); color: var(--text-2); }
.prose .sign { margin-top: 1.6em; }
@media (min-width: 960px) { .hm-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }

/* Home gallery: three equal 4:3 tiles */
.photos.uniform .ph { aspect-ratio: 4 / 3; }
.photos.uniform .ph picture, .photos.uniform .ph img { width: 100%; height: 100%; }

/* Theme toggle icons: show the sun in dark mode (click = go light), the moon in light mode */
.theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }

.social { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 12px 0 0; padding: 0; }
.social a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.card-photo { margin: -4px -4px 16px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.card-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-photo.portrait img { aspect-ratio: 4 / 5; object-position: center 20%; }

.steam-photos { margin-top: 28px; }
.steam-wide { margin: 16px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.steam-wide img { display: block; width: 100%; height: auto; }
.steam-wide figcaption { padding: 12px 16px; font-size: 14px; color: var(--text-2); }
