/* =========================================================
   Collectorate School & College, Jhalakathi
   Modern bilingual (Bangla/English) + dark/light theme
   ========================================================= */

/* ---------- Self-hosted fonts ---------- */
@font-face { font-family:'Alata'; src:url('../fonts/alata-400.woff2') format('woff2'); font-weight:400 700; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215; }
@font-face { font-family:'Alata'; src:url('../fonts/alata-ext-400.woff2') format('woff2'); font-weight:400 700; font-display:swap; unicode-range:U+0100-024F,U+0259,U+2020,U+20A0-20AB,U+20AD-20CF; }
@font-face { font-family:'Noto Serif Bengali'; src:url('../fonts/nsb-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Noto Serif Bengali'; src:url('../fonts/nsb-600.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'Noto Serif Bengali'; src:url('../fonts/nsb-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Noto Serif Bengali'; src:url('../fonts/nsb-latin-400.woff2') format('woff2'); font-weight:400; font-display:swap; unicode-range:U+0000-00FF; }
@font-face { font-family:'Noto Serif Bengali'; src:url('../fonts/nsb-latin-700.woff2') format('woff2'); font-weight:700; font-display:swap; unicode-range:U+0000-00FF; }

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0a1e57;
  --navy-800: #0d2568;
  --navy-700: #163a8a;
  --navy-600: #1e46a3;
  --teal: #2a9d9f;
  --teal-600: #1c8082;
  --gold: #f2b705;
  --gold-600: #d69e00;
  --red: #d63a3a;
  --green: #2e9e4f;

  --brand: var(--navy-800);
  --brand-2: var(--navy-700);
  --accent: var(--teal);
  --highlight: var(--gold);

  /* light theme surfaces */
  --bg: #eef2f9;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7fd;
  --text: #16233d;
  --text-soft: #4a5a76;
  --muted: #7a879e;
  --border: #e2e8f4;
  --shadow: 0 10px 30px -12px rgba(13, 37, 104, .22);
  --shadow-sm: 0 4px 14px -6px rgba(13, 37, 104, .18);
  --header-bg: rgba(255, 255, 255, .92);
  --topbar-bg: linear-gradient(90deg, var(--navy-800), var(--navy-600));
  --hero-overlay: linear-gradient(90deg, rgba(10,30,87,.82), rgba(10,30,87,.35));

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font-en: 'Alata', 'Segoe UI', system-ui, sans-serif;
  --font-bn: 'Noto Serif Bengali', 'Hind Siliguri', system-ui, serif;
  --font: var(--font-en);
  --font-head: var(--font);
  --trans: .28s cubic-bezier(.4, 0, .2, 1);
}

html[data-theme="dark"] {
  --bg: #0a1226;
  --bg-alt: #0e1830;
  --surface: #121e3c;
  --surface-2: #16244a;
  --text: #e8eefc;
  --text-soft: #b3c0dc;
  --muted: #8496b8;
  --border: #22315a;
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, .6);
  --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, .5);
  --header-bg: rgba(12, 22, 46, .9);
  --topbar-bg: linear-gradient(90deg, #0a1738, #10245a);
  --hero-overlay: linear-gradient(90deg, rgba(5,12,32,.9), rgba(5,12,32,.5));
}

/* language-driven font */
html[data-lang="bn"] { --font: var(--font-bn); }
html[data-lang="en"] { --font: var(--font-en); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background var(--trans), color var(--trans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--text); }

/* language visibility */
[data-lang="bn"] .en { display: none; }
[data-lang="en"] .bn { display: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
/* header, topbar and footer get a wider container so columns fit on one line */
.topbar .container, .site-header .container, .site-footer .container { max-width: calc(var(--maxw) + 200px); }

/* scroll progress bar */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--accent)); z-index: 500; transition: width .1s linear; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--topbar-bg);
  color: #eaf0ff;
  font-size: .82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 42px; flex-wrap: nowrap; overflow: hidden; }
.topbar a:hover { color: var(--gold); }
.topbar-left { display: flex; gap: 20px; align-items: center; flex-wrap: nowrap; min-width: 0; overflow: hidden; white-space: nowrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-left span svg { flex-shrink: 0; width: 14px; height: 14px; }
.topbar-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; white-space: nowrap; }
.topbar-socials { display: flex; gap: 8px; }
.social-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); transition: var(--trans); }
.social-ico:hover { background: var(--gold); color: var(--navy-900); }
.social-ico svg { width: 14px; height: 14px; }
.topbar-divider { width: 1px; height: 20px; background: rgba(255,255,255,.22); }
/* top-bar toggles (desktop) */
.tb-tools { display: flex; gap: 8px; align-items: center; }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 11px; border-radius: 20px; background: rgba(255,255,255,.12); color: #fff; font-size: .78rem; font-weight: 600; transition: var(--trans); }
.tb-btn:hover { background: var(--gold); color: var(--navy-900); }
.tb-btn svg { width: 15px; height: 15px; }
.tb-btn .flag { font-size: .95rem; line-height: 1; }
.tb-btn.theme-btn .moon { display: none; }
html[data-theme="dark"] .tb-btn.theme-btn .sun { display: none; }
html[data-theme="dark"] .tb-btn.theme-btn .moon { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.2)); }
.brand-text b { display: block; font-size: 1.12rem; letter-spacing: .2px; color: var(--brand); line-height: 1.2; }
html[data-theme="dark"] .brand-text b { color: #cfe0ff; }
.brand-text small { color: var(--muted); font-size: .76rem; letter-spacing: .5px; }
@media (min-width: 1121px) { .brand-text b, .brand-text small { white-space: nowrap; } }

/* nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 11px; border-radius: 10px;
  font-weight: 600; font-size: .9rem; color: var(--text-soft);
  white-space: nowrap;
  transition: var(--trans);
}
.main-nav > li > a:hover,
.main-nav > li.active > a { color: var(--brand); background: var(--surface-2); }
html[data-theme="dark"] .main-nav > li > a:hover,
html[data-theme="dark"] .main-nav > li.active > a { color: #fff; }
.main-nav > li.active > a { color: var(--brand); }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .7; }

/* dropdown */
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 214px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--trans);
}
.main-nav > li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .88rem; color: var(--text-soft); }
/* hover: bold + tint only — no padding/position change, no jerking */
.dropdown-menu a:hover { background: var(--surface-2); color: var(--brand); font-weight: 700; }
html[data-theme="dark"] .dropdown-menu a:hover { color: #fff; }

/* header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft);
  transition: var(--trans);
}
.icon-btn:hover { color: var(--brand); border-color: var(--accent); transform: translateY(-2px); }
html[data-theme="dark"] .icon-btn:hover { color: #fff; }
.icon-btn svg { width: 19px; height: 19px; }
.lang-btn { width: auto; padding: 0 14px; font-weight: 700; font-size: .85rem; gap: 6px; }
.lang-btn .flag { font-size: 1rem; }
.theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }

.hamburger { display: none; }
.nav-close { display: none; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; overflow: hidden;
}
.ticker-label {
  background: linear-gradient(90deg, var(--red), #b32020); color: #fff;
  padding: 9px 18px; font-weight: 700; font-size: .84rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-move { display: inline-flex; gap: 48px; white-space: nowrap; padding-left: 100%; animation: ticker 26s linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { font-size: .85rem; color: var(--text-soft); font-weight: 500; }
.ticker-move a:hover { color: var(--brand); }
html[data-theme="dark"] .ticker-move a:hover { color: var(--gold); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 24px; border-radius: 11px; font-weight: 600; font-size: .92rem;
  transition: var(--trans); cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(120deg, var(--navy-700), var(--navy-600)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-gold { background: linear-gradient(120deg, var(--gold), var(--gold-600)); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-800); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--brand); }

/* ---------- Hero slider ---------- */
.hero { position: relative; }
.slider { position: relative; height: clamp(340px, 56vw, 560px); overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center; display: grid; align-items: center;
}
.slide.active { opacity: 1; }
.slide::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.slide-inner { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.slide-inner .eyebrow { display: inline-block; background: var(--gold); color: var(--navy-900); font-weight: 700; font-size: .78rem; padding: 5px 14px; border-radius: 30px; letter-spacing: .5px; margin-bottom: 16px; }
.slide-inner h1 { font-size: clamp(1.7rem, 4.2vw, 3rem); margin-bottom: 14px; text-shadow: 0 2px 20px rgba(0,0,0,.4); color: #fff; }
.slide-inner p { font-size: clamp(.95rem, 1.6vw, 1.12rem); color: #eaf0ff; margin-bottom: 26px; max-width: 540px; }
.slide-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.slider-nav { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.slider-nav button { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.45); transition: var(--trans); }
.slider-nav button.active { background: var(--gold); width: 30px; border-radius: 20px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16);
  display: grid; place-items: center; color: #fff; backdrop-filter: blur(4px); transition: var(--trans);
}
.slider-arrow:hover { background: var(--gold); color: var(--navy-900); }
.slider-arrow.prev { left: 18px; } .slider-arrow.next { right: 18px; }
.slider-arrow svg { width: 20px; height: 20px; }

/* quick info strip */
.quickbar { background: var(--brand); }
.quickbar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-item { display: flex; align-items: center; gap: 14px; padding: 20px 16px; color: #eaf0ff; border-right: 1px solid rgba(255,255,255,.12); }
.quick-item:last-child { border-right: none; }
.quick-item .qi-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; color: var(--gold); }
.quick-item .qi-ico svg { width: 24px; height: 24px; }
.quick-item b { display: block; font-size: 1.5rem; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.quick-item span { font-size: .82rem; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sec-head .kicker { display: inline-block; color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .74rem; background: rgba(42,157,159,.12); border: 1px solid rgba(42,157,159,.25); padding: 5px 16px; border-radius: 30px; }
.sec-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 8px 0 14px; }
.sec-head h2 span { color: var(--brand); }
html[data-theme="dark"] .sec-head h2 span { color: var(--gold); }
.sec-head p { color: var(--text-soft); }
.sec-head::after { content: ""; display: block; width: 66px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--accent)); margin: 18px auto 0; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head.left::after { margin-left: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: center; }
.about-media { position: relative; }
.about-media .badge-crest { width: min(360px, 80%); margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(13,37,104,.35)); }
.about-media .float-card {
  position: absolute; bottom: -18px; right: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.about-media .float-card .num { font-size: 1.6rem; font-weight: 800; color: var(--brand); }
html[data-theme="dark"] .about-media .float-card .num { color: var(--gold); }
.about-media .float-card small { color: var(--muted); font-size: .78rem; }
.about-text h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); margin-bottom: 8px; }
.about-text .lead { color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.about-text p { color: var(--text-soft); margin-bottom: 14px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.about-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.about-features .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: .7rem; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--trans);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }

/* feature cards */
.feature-card { padding: 30px 26px; text-align: center; }
.feature-card .fc-ico { width: 62px; height: 62px; border-radius: 16px; margin: 0 auto 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-700), var(--teal)); color: #fff; }
.feature-card .fc-ico svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: .9rem; }

/* message cards */
.msg-card { display: flex; gap: 18px; padding: 24px; }
.msg-card .msg-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 4px solid var(--surface-2); outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: var(--shadow-sm); }
.msg-card .msg-tag { color: var(--accent); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.msg-card h3 { font-size: 1.1rem; margin: 3px 0 8px; }
.msg-card p { color: var(--text-soft); font-size: .9rem; }
.msg-card .msg-name { margin-top: 10px; font-weight: 700; color: var(--brand); font-size: .92rem; }
html[data-theme="dark"] .msg-card .msg-name { color: var(--gold); }
.msg-card .msg-name span { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* people / staff cards */
.person-card { text-align: center; padding: 24px 18px; }
.person-card .p-photo { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--surface-2); box-shadow: var(--shadow-sm); }
.person-card h3 { font-size: 1.02rem; }
.person-card .role { color: var(--accent); font-size: .84rem; font-weight: 600; }
.person-card .p-social { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.person-card .p-social a { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text-soft); transition: var(--trans); }
.person-card .p-social a:hover { background: var(--brand); color: #fff; }
.person-card .p-social svg { width: 14px; height: 14px; }

/* tabs */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.tab-btn { padding: 10px 22px; border-radius: 30px; font-weight: 600; font-size: .9rem; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); transition: var(--trans); }
.tab-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Notice board ---------- */
.notice-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; }
.notice-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.notice-head { background: linear-gradient(120deg, var(--navy-700), var(--navy-600)); color: #fff; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; }
.notice-head h3 { color: #fff; font-size: 1.1rem; }
.notice-item { display: flex; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--border); transition: var(--trans); }
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--surface-2); }
.notice-date { flex-shrink: 0; width: 58px; text-align: center; background: var(--surface-2); border-radius: 10px; padding: 8px 4px; border: 1px solid var(--border); }
.notice-date b { display: block; font-size: 1.3rem; color: var(--brand); line-height: 1; }
html[data-theme="dark"] .notice-date b { color: var(--gold); }
.notice-date small { font-size: .7rem; color: var(--muted); text-transform: uppercase; }
.notice-item .n-body a { font-weight: 600; font-size: .95rem; }
.notice-item .n-body a:hover { color: var(--accent); }
.notice-item .n-meta { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.tag.new { background: rgba(214,58,58,.14); color: var(--red); }
.tag.exam { background: rgba(242,183,5,.18); color: var(--gold-600); }
.tag.event { background: rgba(42,157,159,.16); color: var(--teal-600); }

/* fb / side widget */
.side-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.side-widget h3 { margin-bottom: 16px; }
.event-mini { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.event-mini:last-child { border-bottom: none; }
.event-mini .em-date { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg,var(--teal),var(--navy-700)); color: #fff; display: grid; place-items: center; text-align: center; flex-shrink: 0; }
.event-mini .em-date b { font-size: 1.2rem; line-height: 1; }
.event-mini .em-date small { font-size: .64rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; color: #fff; font-weight: 600; background: linear-gradient(to top, rgba(10,20,50,.82), transparent 60%); opacity: 0; transition: var(--trans); }
.gallery-item:hover figcaption { opacity: 1; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); border-radius: 22px; padding: clamp(32px, 5vw, 56px); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-banner::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(242,183,5,.28), transparent 70%); top: -120px; right: -80px; }
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.cta-banner p { color: #d7e1ff; max-width: 560px; margin: 0 auto 24px; }
.cta-banner .slide-cta { justify-content: center; position: relative; z-index: 2; }

/* ---------- Page banner ---------- */
.page-banner { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); background-size: cover; background-position: center 30%; color: #fff; padding: clamp(40px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.page-banner h1 { text-shadow: 0 2px 18px rgba(4, 10, 30, .55); }
.breadcrumb { text-shadow: 0 1px 10px rgba(4, 10, 30, .5); }
.page-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(42,157,159,.4), transparent 45%); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: .88rem; color: #c7d3f5; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: .6; }

/* ---------- Content prose ---------- */
.prose p { color: var(--text-soft); margin-bottom: 16px; }
.prose h3 { margin: 26px 0 12px; font-size: 1.3rem; color: var(--brand); }
html[data-theme="dark"] .prose h3 { color: var(--gold); }
.prose ul.check { margin: 16px 0; display: grid; gap: 10px; }
.prose ul.check li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.prose ul.check .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: .7rem; }
.info-box { background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 12px; padding: 20px 24px; margin: 22px 0; }

/* stat row */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .s-ico { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.stat b { font-size: 2rem; color: var(--brand); display: block; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .stat b { color: var(--gold); }
.stat span { color: var(--muted); font-size: .86rem; }

/* table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--surface); }
table.data th { background: var(--brand); color: #fff; text-align: left; padding: 14px 18px; font-size: .9rem; }
table.data td { padding: 13px 18px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .9rem; }
table.data tr:hover td { background: var(--surface-2); }

/* accordion */
.accordion { display: grid; gap: 12px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.acc-head { width: 100%; text-align: left; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc-head .plus { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; transition: var(--trans); color: var(--brand); font-weight: 700; }
.acc-item.open .plus { transform: rotate(45deg); background: var(--brand); color: #fff; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body .acc-inner { padding: 0 20px 18px; color: var(--text-soft); font-size: .92rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contact-info .ci-item { display: flex; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.contact-info .ci-ico { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg,var(--navy-700),var(--teal)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ci-item b { display: block; font-size: .95rem; }
.contact-info .ci-item span { color: var(--muted); font-size: .88rem; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text); font-family: inherit; font-size: .92rem; transition: var(--trans);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,157,159,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: rgba(46,158,79,.14); color: var(--green); font-weight: 600; font-size: .9rem; }
.form-note.show { display: block; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3cff0; padding-top: 60px; margin-top: 20px; }
html[data-theme="dark"] .site-footer { background: #060d20; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.footer-brand img { width: 54px; height: 54px; }
.footer-brand b { color: #fff; font-size: 1.05rem; display: block; }
.footer-brand small { color: #8ea3d6; font-size: .78rem; }
.site-footer p { font-size: .9rem; line-height: 1.7; color: #a9b8e0; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; bottom: 0; left: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--gold); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .9rem; color: #b4c2e8; transition: var(--trans); display: inline-flex; gap: 8px; align-items: center; }
.footer-links a svg { width: 13px; height: 13px; flex-shrink: 0; }
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .9rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: var(--trans); }
.footer-social a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .84rem; color: #8ea3d6; }
.footer-bottom a { color: var(--gold); }

/* scroll top */
.scroll-top { position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: var(--trans); z-index: 90; }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--gold); color: var(--navy-900); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* mobile nav overlay */
.nav-overlay { position: fixed; inset: 0; background: rgba(6,12,30,.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: var(--trans); z-index: 200; }
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .about-grid, .notice-wrap, .contact-grid { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .quickbar .container { grid-template-columns: repeat(2,1fr); }
  .quick-item:nth-child(2) { border-right: none; }

  .hamburger { display: grid; }
  .main-nav {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 84px 16px 30px; gap: 2px; z-index: 210; overflow-y: auto;
    box-shadow: -12px 0 40px rgba(0,0,0,.2); transition: right var(--trans);
  }
  .main-nav.open { right: 0; }
  .main-nav > li > a { padding: 13px 14px; font-size: .98rem; justify-content: space-between; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; background: var(--surface-2); margin: 4px 0 4px 12px; padding: 4px; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav > li.expand .dropdown-menu { max-height: 400px; }
  .main-nav > li.expand .caret { transform: rotate(-135deg); }
  .nav-close { display: grid; position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); place-items: center; }
}
@media (max-width: 640px) {
  .grid.cols-3, .grid.cols-2, .gallery-grid { grid-template-columns: 1fr; }
  .about-features, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* stats stay two-up on mobile */
  .stat-row, .quickbar .container { grid-template-columns: repeat(2, 1fr); }
  .quick-item { padding: 16px 12px; gap: 10px; }
  .quick-item .qi-ico { width: 40px; height: 40px; }
  .quick-item b { font-size: 1.25rem; }
  .quick-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .quick-item:nth-child(even) { border-right: none; }
  .quick-item:nth-child(1), .quick-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .msg-card { flex-direction: column; align-items: center; text-align: left; }
  .msg-card .msg-photo { width: 120px; height: 120px; }
  .brand-text b { font-size: .96rem; }
  .brand img { width: 46px; height: 46px; }
  .slider-arrow { display: none; }
  .about-media .float-card { position: static; margin-top: 16px; }
}
@media (max-width: 380px) {
  .header-actions .lang-btn .lbl { display: none; }
}
.nav-close, .hamburger svg { width: 22px; height: 22px; }

/* =========================================================
   Right-side DETAIL DRAWER (news / notices / downloads / events)
   ========================================================= */
.drawer-overlay { position: fixed; inset: 0; background: rgba(6,12,30,.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: var(--trans); z-index: 300; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.detail-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 70%; max-width: 1000px;
  background: var(--bg-alt); z-index: 320; box-shadow: -20px 0 60px rgba(0,0,0,.35);
  transform: translateX(100%); transition: transform .38s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.detail-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 28px; background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #fff;
}
.drawer-head .dh-tag { display: inline-block; background: var(--gold); color: var(--navy-900); font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.drawer-title { color: #fff; font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.3; }
.drawer-close { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: var(--trans); }
.drawer-close:hover { background: var(--gold); color: var(--navy-900); transform: rotate(90deg); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-scroll { overflow-y: auto; padding: 26px 28px 40px; }
.drawer-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.drawer-meta span { display: inline-flex; align-items: center; gap: 6px; }
.drawer-meta svg { width: 15px; height: 15px; color: var(--accent); }
.drawer-body { color: var(--text-soft); line-height: 1.8; }
.drawer-body p { margin-bottom: 16px; }
.drawer-body h4 { color: var(--brand); margin: 22px 0 10px; font-size: 1.1rem; }
html[data-theme="dark"] .drawer-body h4 { color: var(--gold); }
.drawer-body ul { margin: 0 0 16px; display: grid; gap: 8px; }
.drawer-body ul li { display: flex; gap: 10px; align-items: flex-start; }
.drawer-body ul li::before { content: "›"; color: var(--accent); font-weight: 700; }
.drawer-figure { border-radius: 14px; overflow: hidden; margin: 6px 0 22px; border: 1px solid var(--border); }
.drawer-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; clear: both; }
.detail-link { cursor: pointer; }
@media (max-width: 768px) {
  .detail-drawer { width: 95%; }
  .drawer-head { padding: 18px 20px; }
  .drawer-scroll { padding: 20px; }
}

/* =========================================================
   Mobile nav tools + refined drawer (task 3 & 4)
   ========================================================= */
.nav-tools { display: none; }
.nav-drawer-head { display: none; }

@media (max-width: 1120px) {
  /* On mobile the header must NOT use backdrop-filter: it traps the
     fixed nav drawer in its render layer (blurry, wrong stacking). */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-alt); }
  /* while the drawer is open, lift the header above the page overlay
     so the menu is sharp and fully interactive */
  body.nav-open .site-header { z-index: 400; }

  /* professional slide-in drawer header */
  .main-nav { padding: 0 0 30px; gap: 0; width: 320px; right: -340px; user-select: auto; }
  .main-nav.open { right: 0; }
  .nav-drawer-head {
    display: flex; align-items: center; gap: 12px; padding: 18px 20px;
    background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #fff; position: sticky; top: 0; z-index: 3;
  }
  .nav-drawer-head img { width: 42px; height: 42px; }
  .nav-drawer-head b { font-size: .92rem; color: #fff; display: block; line-height: 1.2; }
  .nav-drawer-head small { font-size: .68rem; color: #c7d3f5; }
  .nav-close { display: grid; position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.16); color: #fff; place-items: center; }
  .main-nav > li > a { padding: 14px 20px; font-size: .96rem; border-radius: 0; border-bottom: 1px solid var(--border); }
  .main-nav > li.active > a { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--accent); }
  .dropdown-menu { margin: 0; border-radius: 0; background: var(--surface-2); }
  .dropdown-menu a { padding: 11px 20px 11px 34px; }
  /* hover/active: different background + bold, text stays in place */
  .dropdown-menu a:hover, .dropdown-menu a:active {
    padding-left: 34px; background: rgba(42,157,159,.16); font-weight: 700; color: var(--brand);
    box-shadow: inset 3px 0 0 var(--accent);
  }
  html[data-theme="dark"] .dropdown-menu a:hover, html[data-theme="dark"] .dropdown-menu a:active { color: #fff; }
  /* tools row inside drawer */
  .nav-tools { display: flex; gap: 10px; padding: 18px 20px; border-top: 1px solid var(--border); margin-top: 6px; }
  .nav-tools button {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); font-weight: 600; font-size: .88rem; transition: var(--trans);
  }
  .nav-tools button:hover { border-color: var(--accent); color: var(--brand); }
  .nav-tools svg { width: 18px; height: 18px; }
  .nav-tools .theme-btn .moon { display: none; }
  html[data-theme="dark"] .nav-tools .theme-btn .sun { display: none; }
  html[data-theme="dark"] .nav-tools .theme-btn .moon { display: block; }
  html[data-theme="dark"] .nav-tools button:hover { color: #fff; }
  /* topbar on tablet/mobile */
  .tb-tools, .topbar-divider { display: none; }
}
@media (max-width: 640px) {
  .topbar .container { gap: 10px; }
  /* compact one-line brand on phones */
  .brand-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
  .brand-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
  .topbar-left span.tb-hours, .topbar-left span.tb-mail { display: none; }
}
@media (max-width: 420px) {
  .topbar-socials { display: none; }
}

/* =========================================================
   New sections: timeline, testimonials, clubs, calendar
   ========================================================= */
/* timeline (About) */
.timeline { position: relative; max-width: 760px; margin: 0 auto; display: grid; gap: 30px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--navy-600)); }
.tl-item { position: relative; padding-left: 62px; }
.tl-dot { position: absolute; left: 7px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 5px solid var(--accent); box-shadow: var(--shadow-sm); }
.tl-item:nth-child(even) .tl-dot { border-color: var(--gold); }
.tl-year { display: inline-block; font-weight: 700; color: #fff; background: linear-gradient(120deg, var(--navy-700), var(--teal)); font-size: .78rem; letter-spacing: 1px; padding: 3px 12px; border-radius: 20px; margin-bottom: 6px; }
.tl-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.tl-item p { color: var(--text-soft); font-size: .92rem; }

/* testimonials (Home) */
.testi-card { padding: 28px 26px 24px; position: relative; display: flex; flex-direction: column; }
.testi-quote { font-family: Georgia, serif; font-size: 3rem; line-height: .6; color: var(--gold); margin-bottom: 14px; }
.testi-card > p { color: var(--text-soft); font-size: .93rem; flex: 1; }
.testi-who { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.testi-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-who b { display: block; font-size: .92rem; }
.testi-who span { color: var(--muted); font-size: .78rem; }
.testi-stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }

/* clubs (Home / Academics) */
.club-card { padding: 22px 18px; text-align: center; }
.club-card .cc-ico { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; }
.club-card .cc-ico svg { width: 26px; height: 26px; }
.club-card h3 { font-size: .98rem; }
.club-card p { color: var(--muted); font-size: .8rem; margin-top: 4px; }

/* info tiles (Contact "how to reach", Notices "stay updated") */
.tile { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.tile .t-ico { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--navy-700), var(--teal)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.tile .t-ico svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1rem; margin-bottom: 4px; }
.tile p { color: var(--text-soft); font-size: .88rem; }

/* section subtle top divider variant */
.section.tinted { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
html[data-theme="dark"] .section.tinted { background: linear-gradient(180deg, #0e1a38, var(--bg)); }

/* =========================================================
   v3: footer accordion, ticker icons, program cards, perf/UX
   ========================================================= */
/* ticker items with category icons */
.ticker-move a { display: inline-flex; align-items: center; gap: 9px; }
.ticker-ico { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; flex-shrink: 0; }
.ticker-ico svg { width: 12px; height: 12px; }
.ticker-ico.i-adm { background: linear-gradient(135deg, var(--navy-700), var(--teal)); }
.ticker-ico.i-res { background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: var(--navy-900); }
.ticker-ico.i-evt { background: linear-gradient(135deg, var(--green), var(--teal-600)); }
.ticker-ico.i-mtg { background: linear-gradient(135deg, var(--red), #b32020); }

/* header Apply Now CTA (aeisbd-style) */
/* ---------- Portal Login (header button + dropdown) ---------- */
.portal-menu { position: relative; }
.portal-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px;
  border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(120deg, var(--gold), var(--gold-600));
  color: var(--navy-900); font-family: inherit; font-weight: 700; font-size: .86rem;
  white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(242, 183, 5, .55);
  transition: var(--trans);
}
.portal-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(242, 183, 5, .75); }
.portal-btn svg { width: 16px; height: 16px; }
.portal-btn .p-caret {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; transition: var(--trans);
}
.portal-menu:hover .p-caret, .portal-menu:focus-within .p-caret { transform: rotate(-135deg); margin-top: 4px; }
.portal-drop {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 236px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--trans);
}
.portal-menu:hover .portal-drop, .portal-menu:focus-within .portal-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.portal-drop a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 11px; transition: var(--trans);
}
.portal-drop a:hover { background: var(--surface-2); }
.portal-drop .pd-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  flex: none; color: #fff; box-shadow: var(--shadow-sm); transition: var(--trans);
}
.portal-drop a:hover .pd-ico { transform: scale(1.06); }
.portal-drop .pd-student { background: linear-gradient(135deg, var(--teal), var(--teal-600)); }
.portal-drop .pd-parent  { background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: var(--navy-900); }
.portal-drop .pd-teacher { background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); }
.portal-drop .pd-ico svg { width: 19px; height: 19px; }
.portal-drop .pd-txt { display: block; line-height: 1.3; }
.portal-drop .pd-txt b { display: block; font-size: .92rem; font-weight: 700; color: var(--text); }
.portal-drop .pd-txt small { display: block; font-size: .76rem; color: var(--muted); }
.portal-drop a:hover .pd-txt b { color: var(--brand); }
html[data-theme="dark"] .portal-drop a:hover .pd-txt b { color: #fff; }

/* Portal Login nav item: hidden on desktop (header button covers it),
   shown highlighted inside the mobile drawer */
.main-nav > li.nav-login { display: none; }

/* keep the header on one line as space tightens (above the 1120px drawer) */
@media (max-width: 1500px) and (min-width: 1121px) {
  .header-inner { gap: 10px; }
  .main-nav { gap: 2px; }
  .main-nav > li > a { padding: 9px 7px; font-size: .84rem; }
  .portal-btn { padding: 10px 15px; font-size: .8rem; }
}
@media (max-width: 1430px) and (min-width: 1121px) {
  .portal-btn { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .portal-btn .bn, .portal-btn .en, .portal-btn .p-caret { display: none; }
  .portal-btn svg { width: 18px; height: 18px; }
}
@media (max-width: 1330px) and (min-width: 1121px) {
  .brand-text small { display: none; }
  .main-nav > li > a { padding: 9px 5px; font-size: .8rem; }
}
@media (max-width: 1120px) {
  .portal-menu { display: none; }
  .main-nav > li.nav-login { display: block; margin-top: 6px; }
  .main-nav > li.nav-login > a {
    background: linear-gradient(120deg, var(--gold), var(--gold-600));
    color: var(--navy-900) !important; border-radius: 11px; font-weight: 700;
  }
}

/* program cards (image-top, aeisbd-style) */
.program-card { overflow: hidden; display: flex; flex-direction: column; }
.program-card .pc-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.program-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.program-card:hover .pc-img img { transform: scale(1.06); }
.program-card .pc-badge { position: absolute; top: 12px; left: 12px; background: rgba(10,30,87,.85); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: .5px; }
.program-card .pc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.program-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.program-card p { color: var(--text-soft); font-size: .88rem; flex: 1; }
.pc-link { color: var(--accent); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.pc-link svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--trans); }
.program-card .pc-link { margin-top: 14px; }
.program-card:hover .pc-link svg { transform: translateX(4px); }

/* facility cards (linked, icon top) */
.facility-card { padding: 26px 22px; text-align: center; display: block; }
.facility-card .fa-ico { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--teal)); transition: var(--trans); }
.facility-card:hover .fa-ico { transform: scale(1.08) rotate(-3deg); }
.facility-card .fa-ico svg { width: 28px; height: 28px; }
.facility-card h3 { font-size: 1rem; }
.facility-card p { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* footer columns -> accordion on mobile */
.f-toggle { display: block; width: 100%; text-align: left; }
.f-toggle .f-chev { display: none; }
@media (max-width: 640px) {
  .footer-grid { gap: 0; }
  .f-col { border-bottom: 1px solid rgba(255,255,255,.12); padding: 4px 0; }
  .f-col:first-child { border-top: 1px solid rgba(255,255,255,.12); margin-top: 10px; }
  .site-footer .f-col h4 { margin-bottom: 0; padding: 14px 2px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .site-footer .f-col h4::after { display: none; }
  .f-toggle .f-chev { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.1); transition: transform var(--trans); }
  .f-toggle .f-chev svg { width: 14px; height: 14px; }
  .f-col.open .f-chev { transform: rotate(180deg); background: var(--gold); color: var(--navy-900); }
  .f-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .f-col.open .f-body { max-height: 400px; }
  .f-body > ul { padding: 4px 2px 16px; }
}

/* ---------- performance & motion comfort ---------- */
img { content-visibility: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .ticker-move { animation: none; padding-left: 0; }
}

/* =========================================================
   v4: photo albums, fancybox drawer grid, youtube lite cards
   ========================================================= */
/* album cards on the gallery page */
.album-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--trans); display: block; }
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.album-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.album-card:hover img { transform: scale(1.05); }
.album-card .al-body { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(8,16,42,.88), transparent); color: #fff; }
.album-card .al-body h3 { color: #fff; font-size: 1.05rem; }
.album-card .al-count { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #ffe9a8; }
.album-card .al-count svg { width: 13px; height: 13px; }
.album-card .al-open { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); color: var(--navy-800); font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; opacity: 0; transform: translateY(-6px); transition: var(--trans); }
.album-card:hover .al-open { opacity: 1; transform: none; }

/* photo grid inside the right-side drawer */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.album-photo { position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--border); }
.album-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.album-photo:hover img { transform: scale(1.06); }
.album-photo figcaption { position: absolute; inset: auto 0 0 0; font-size: .72rem; color: #fff; padding: 18px 10px 8px; background: linear-gradient(to top, rgba(8,16,42,.85), transparent); opacity: 0; transition: var(--trans); }
.album-photo:hover figcaption { opacity: 1; }
@media (max-width: 768px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }

/* youtube lite cards */
.yt-lite { position: relative; aspect-ratio: 16/9; border-radius: 0; overflow: hidden; cursor: pointer; background: #0b1b3a; }
.yt-lite img.yt-thumb { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform .5s ease, opacity var(--trans); }
.yt-lite:hover img.yt-thumb { transform: scale(1.05); opacity: 1; }
.yt-lite .yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 66px; height: 46px; background: rgba(224,32,27,.92); border-radius: 12px; display: grid; place-items: center; transition: var(--trans); }
.yt-lite:hover .yt-play { transform: translate(-50%,-50%) scale(1.1); }
.yt-lite .yt-play svg { width: 22px; height: 22px; color: #fff; }
.yt-lite iframe { width: 100%; height: 100%; border: 0; }

/* fancybox polish */
.fancybox__container { --fancybox-bg: rgba(8, 14, 34, .96); z-index: 800; }

/* =========================================================
   v5: WhatsApp float, video modal, events cards, MVV
   ========================================================= */
/* floating WhatsApp button */
.wa-float {
  /* stacked directly above the go-top button (right side) — never overlaps */
  position: fixed; bottom: 88px; right: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .65);
  transition: var(--trans);
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
@media (max-width: 640px) { .wa-float { width: 50px; height: 50px; bottom: 82px; right: 25px; } .wa-float svg { width: 26px; height: 26px; } }

/* video modal — 80% width, centered, autoplay iframe inside */
.video-modal-overlay {
  position: fixed; inset: 0; z-index: 700; background: rgba(6, 12, 32, .82);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; opacity: 0; transition: opacity .25s ease;
}
.video-modal-overlay.open { opacity: 1; }
.video-modal { width: 80%; max-width: 1280px; position: relative; transform: translateY(14px) scale(.98); transition: transform .28s ease; }
.video-modal-overlay.open .video-modal { transform: none; }
.video-modal-frame { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal-close {
  position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.05rem; display: grid; place-items: center; transition: var(--trans);
}
.video-modal-close:hover { background: var(--gold); color: var(--navy-900); transform: rotate(90deg); }
@media (max-width: 768px) { .video-modal { width: 95%; } .video-modal-close { top: -44px; } }

/* event cards (separated Upcoming Events section) */
.event-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.event-card .em-date { width: 60px; height: 60px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--navy-700)); color: #fff; display: grid; place-items: center; text-align: center; flex-shrink: 0; }
.event-card .em-date b { font-size: 1.35rem; line-height: 1; display: block; }
.event-card .em-date small { font-size: .66rem; letter-spacing: 1px; }
.event-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.event-card p { color: var(--muted); font-size: .84rem; }
.event-card .ev-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent); font-size: .8rem; font-weight: 600; }
.event-card .ev-meta svg { width: 14px; height: 14px; }

/* drawer album captions with details */
.album-photo figcaption b { display: block; font-size: .76rem; }
.album-photo figcaption small { display: block; font-size: .66rem; opacity: .85; line-height: 1.35; margin-top: 2px; }

/* clickable cards */
.program-card[data-detail], .club-card[data-detail], .facility-card[data-detail] { cursor: pointer; }

/* =========================================================
   v1.8: About Us 3-image collage (home)
   ========================================================= */
.about-collage { position: relative; padding: 30px 0 120px; }
.ac-dots { position: absolute; width: 130px; height: 130px; z-index: 0;
  background-image: radial-gradient(currentColor 2.2px, transparent 2.4px);
  background-size: 16px 16px; opacity: .5; }
.ac-dots-1 { top: -6px; right: -30px; color: var(--gold); }
.ac-dots-2 { bottom: 66px; left: 30%; color: var(--teal); }
.ac-big { position: relative; width: 90%; margin-left: auto; z-index: 1; }
.ac-big img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.ac-badge {
  position: absolute; top: 20px; left: -26px; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(120deg, var(--navy-700), var(--teal)); color: #fff;
  padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow);
  font-weight: 700; font-size: .74rem; letter-spacing: 1.5px; max-width: 86%;
}
.ac-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.ac-sm { position: absolute; z-index: 2; border: 8px solid var(--surface);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.ac-sm img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; display: block; }
.ac-sm-1 { left: -2%; bottom: 34px; width: 42%; transform: rotate(-5deg); }
.ac-sm-2 { right: 0; bottom: -34px; width: 54%; }
.about-collage:hover .ac-sm-1 { transform: rotate(-3deg) translateY(-4px); }
.ac-sm, .ac-big img { transition: transform .35s ease; }
@media (max-width: 640px) {
  .about-collage { padding: 24px 0 96px; }
  .ac-badge { left: -8px; padding: 10px 14px; font-size: .64rem; }
  .ac-dots { width: 90px; height: 90px; }
}

/* collage images are clickable (open in Fancybox) */
.ac-big img, .ac-sm { cursor: zoom-in; }

/* =========================================================
   v1.9: drawer attachments, pdf viewer, drawer video
   ========================================================= */
.attach-list { display: grid; gap: 10px; }
.attach { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.at-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: .64rem; font-weight: 800; letter-spacing: .5px; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--teal)); flex-shrink: 0; }
.at-ico.is-pdf { background: linear-gradient(135deg, #d63a3a, #a02020); }
.at-name { flex: 1; min-width: 140px; font-weight: 600; font-size: .88rem; }
.at-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.at-btn { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 9px; font-size: .78rem; font-weight: 700; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-soft); cursor: pointer; transition: var(--trans); }
.at-btn:hover { border-color: var(--accent); color: var(--brand); }
html[data-theme="dark"] .at-btn:hover { color: #fff; }
.at-btn.at-dl { background: linear-gradient(120deg, var(--navy-700), var(--navy-600)); color: #fff; border-color: transparent; }
.at-btn.at-dl:hover { transform: translateY(-2px); color: #fff; }

.drawer-video { border-radius: 14px; overflow: hidden; margin: 4px 0 8px; max-width: 560px; }
.drawer-imgs { margin-bottom: 6px; }

.pdf-modal { width: 80%; max-width: 1100px; }
.pdf-frame { height: 85vh; border-radius: 14px; overflow: hidden; background: #2a2f3a; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.pdf-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 768px) { .pdf-modal { width: 95%; } .pdf-frame { height: 78vh; } }

/* leadership message cards + facility tiles are clickable */
.msg-card[data-detail], .tile[data-detail], .person-card[data-detail] { cursor: pointer; transition: var(--trans); }
.person-card[data-detail]:hover, .tile[data-detail]:hover { border-color: var(--accent); }


/* =========================================================
   v1.9.1: profile drawer, centered media, album description
   ========================================================= */
/* round profile photo at the top of a person's statement */
.drawer-profile { float: left; margin: 4px 22px 12px 0; }
.drawer-body::after { content: ""; display: block; clear: both; }
.dp-ring { display: inline-block; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--teal)); box-shadow: var(--shadow-sm); }
.dp-ring img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; border: 5px solid var(--bg-alt); background: var(--bg-alt); }

/* video + photo blocks inside the drawer are centered, modern spacing */
.drawer-center { text-align: center; margin-top: 6px; clear: both; }
.drawer-center h4 { text-align: center; }
.drawer-center .drawer-video { margin: 0 auto 10px; }
.drawer-center .album-grid { max-width: 700px; margin: 0 auto 8px; text-align: left; }
.drawer-center .attach-list { max-width: 700px; margin: 0 auto; text-align: left; }

/* album description shown at the top of an opened album */
.album-about { max-width: 720px; margin: 0 auto 20px; text-align: center; color: var(--text-soft); font-size: .95rem; line-height: 1.7; padding: 14px 18px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border); }


/* v1.9.3: photo grids inside the right sidebar are centered */
.detail-drawer .album-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.detail-drawer .album-photo { width: 225px; max-width: 46%; }

/* =========================================================
   v1.10: pagination, downloads list, event tabs
   ========================================================= */
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pager button { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-weight: 700; font-size: .92rem; transition: var(--trans); }
.pager button:hover:not(:disabled):not(.cur) { border-color: var(--accent); color: var(--brand); }
html[data-theme="dark"] .pager button:hover:not(:disabled):not(.cur) { color: #fff; }
.pager button.cur { background: linear-gradient(120deg, var(--navy-700), var(--navy-600)); color: #fff; border-color: transparent; }
.pager button:disabled { opacity: .4; cursor: default; }

.dl-row .at-name { display: flex; flex-direction: column; gap: 2px; }
.dl-desc { font-weight: 400; color: var(--muted); font-size: .78rem; }

.em-past { background: linear-gradient(135deg, #6b7690, #4a5468) !important; }
.ev-count { font-variant-numeric: tabular-nums; }

/* v1.10.1: full-width events list flows as a two-up card grid */
.ev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ev-grid .event-card { margin-bottom: 0 !important; }
@media (max-width: 768px) { .ev-grid { grid-template-columns: 1fr; } }
