/* ==========================================================================
   AMAR BOOND ACADEMY (PRIMARY) — style.css
   Premium CBSE School Website | Pure Vanilla CSS
   Sections:
   01. Design Tokens & Themes
   02. Reset & Base
   03. Utilities & Buttons
   04. Preloader & Progress
   05. Top Bar & Announcement
   06. Header / Nav / Mega Menu
   07. Hero Slider
   08. Stats, About, Principal
   09. Editorial Marquee
   10. Why Choose Us (Manifesto Chapters)
   11. Academics
   12. Facilities Bento
   13. Admissions Steps
   14. Achievements / Gallery
   15. News & Notices
   16. Testimonials
   17. Student Life / FAQ
   18. Contact / Newsletter
   19. Footer
   20. Subpage Components
   21. Overlays (Search, Lightbox, Theme Panel, Toast)
   22. Dark Mode refinements
   23. Responsive
   24. Accessibility & Motion prefs
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & THEMES
   -------------------------------------------------------------------------- */
:root {
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Brand constants */
  --c-navy: #0A1128;
  --c-royal: #1C3144;
  --c-sky: #59A5D8;
  --c-gold: #D4AF37;
  --c-orange: #FF7F50;
  --c-green: #8FBC8F;
  --c-white: #FFFFFF;

  /* Active theme (overridden by [data-theme]) */
  --c-primary: #1E3A8A;
  --c-primary-2: #3B82F6;
  --c-accent: #D4AF37;
  --c-accent-2: #F59E0B;

  /* Light surfaces */
  --bg: #F5F8FD;
  --surface: #FFFFFF;
  --surface-2: #EDF2FA;
  --text: #0E1B33;
  --text-2: #4B5876;
  --border: rgba(14, 27, 51, 0.09);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 6px 18px rgba(10, 17, 40, 0.06);
  --shadow: 0 20px 40px rgba(10, 17, 40, 0.07);
  --shadow-lg: 0 34px 70px rgba(10, 17, 40, 0.12);

  --grad: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
  --grad-accent: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);

  --radius: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --space-section: clamp(5.5rem, 9vw, 10rem);
  --container: 1400px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* Multi-theme system — each theme re-skins every component via variables */
[data-theme="classic"]  { --c-primary:#1E3A8A; --c-primary-2:#3B82F6; --c-accent:#D4AF37; --c-accent-2:#F59E0B; }
[data-theme="royal"]    { --c-primary:#1D4ED8; --c-primary-2:#60A5FA; --c-accent:#F59E0B; --c-accent-2:#FBBF24; }
[data-theme="ocean"]    { --c-primary:#0369A1; --c-primary-2:#38BDF8; --c-accent:#F59E0B; --c-accent-2:#2DD4BF; }
[data-theme="forest"]   { --c-primary:#15803D; --c-primary-2:#4ADE80; --c-accent:#D4AF37; --c-accent-2:#84CC16; }
[data-theme="purple"]   { --c-primary:#6D28D9; --c-primary-2:#A78BFA; --c-accent:#F59E0B; --c-accent-2:#F472B6; }
[data-theme="sunset"]   { --c-primary:#C2410C; --c-primary-2:#FB923C; --c-accent:#FBBF24; --c-accent-2:#EF4444; }
[data-theme="teal"]     { --c-primary:#0F766E; --c-primary-2:#2DD4BF; --c-accent:#F59E0B; --c-accent-2:#38BDF8; }
[data-theme="emerald"]  { --c-primary:#047857; --c-primary-2:#34D399; --c-accent:#D4AF37; --c-accent-2:#F59E0B; }
[data-theme="darkblue"] { --c-primary:#172554; --c-primary-2:#1E40AF; --c-accent:#D4AF37; --c-accent-2:#59A5D8; }
[data-theme="midnight"] { --c-primary:#0B1220; --c-primary-2:#334155; --c-accent:#D4AF37; --c-accent-2:#94A3B8; }

/* Dark mode — independent of colour theme */
[data-mode="dark"] {
  --bg: #050A15;
  --surface: #0F172A;
  --surface-2: #131E36;
  --text: #F8FAFC;
  --text-2: #94A3B8;
  --border: rgba(148, 163, 184, 0.14);
  --glass-bg: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(148, 163, 184, 0.18);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 34px 70px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   02. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip; /* clip keeps position:sticky working, unlike hidden */
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip; /* clip (not hidden) keeps position:sticky working everywhere */
  transition: background-color 0.5s ease, color 0.5s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary-2); text-decoration: none; transition: color 0.3s ease; }
ul, ol { list-style: none; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); }
h4 { font-size: 1.2rem; }

::selection { background: var(--c-primary-2); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--c-primary-2); border-radius: 99px; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--c-primary);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 0 0 14px 14px;
  font-weight: 700;
  transition: top 0.3s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   03. UTILITIES & BUTTONS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--space-section); position: relative; }
.section-tint { background: var(--surface-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head p { color: var(--text-2); margin-top: 1.1rem; font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.accent-text { color: var(--c-accent); }

/* Buttons — pill shaped, ripple-ready */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 32px -10px rgba(30, 58, 138, 0.55); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -12px rgba(30, 58, 138, 0.6); color: #fff; }

.btn-accent { background: var(--grad-accent); color: #231a02; box-shadow: 0 14px 32px -10px rgba(212, 175, 55, 0.5); }
.btn-accent:hover { transform: translateY(-3px); color: #231a02; }

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.26); transform: translateY(-3px); color: #fff; }

.btn-outline { border: 2px solid var(--c-primary-2); color: var(--c-primary-2); background: transparent; }
.btn-outline:hover { background: var(--c-primary-2); color: #fff; transform: translateY(-3px); }

.btn-ghost { color: var(--c-primary-2); padding-inline: 0.4rem; }
.btn-ghost:hover { color: var(--c-primary); }

.ripple-ink {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.65s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Scroll reveal system (JS adds .in-view) */
[data-reveal] {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-64px); }
[data-reveal="right"] { transform: translateX(64px); }
[data-reveal="zoom"]  { transform: scale(0.88); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].in-view { opacity: 1; transform: none; }

/* Masked line-by-line reveal (hero signature moment) */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line-inner {
  display: block;
  transform: translateY(115%) rotate(2.5deg);
  transform-origin: left top;
  transition: transform 1.1s var(--ease);
  transition-delay: var(--line-delay, 0s);
  will-change: transform;
}
.lines-in .line-inner { transform: translateY(0) rotate(0); }

/* Tilt & glow cards */
.tilt { transform-style: preserve-3d; transition: transform 0.5s var(--ease); }
.glow-card { position: relative; }
.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(89, 165, 216, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glow-card:hover::after { opacity: 1; }

/* Gradient border card */
.grad-border {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
}
.grad-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.grad-border:hover::before { opacity: 1; }

/* --------------------------------------------------------------------------
   04. PRELOADER & SCROLL PROGRESS
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--c-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  animation: preloaderFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 12px 30px rgba(89, 165, 216, 0.45));
}
@keyframes preloaderFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.preloader-name {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.34em;
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
}
.preloader-name span { color: var(--c-gold); }
.preloader-bar {
  width: 180px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.preloader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c-sky), var(--c-gold));
  animation: preloadSlide 1.1s ease-in-out infinite;
}
@keyframes preloadSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 400;
  background: transparent;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-primary-2), var(--c-accent));
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   05. TOP BAR & ANNOUNCEMENT
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  position: relative;
  z-index: 96;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-block: 0.3rem;
}
.topbar a { color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a:hover { color: var(--c-gold); }
.topbar svg { width: 14px; height: 14px; }
.topbar-left { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-social { display: flex; gap: 0.35rem; }
.topbar-social a {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.topbar-social a:hover { background: var(--c-primary-2); transform: translateY(-2px); }
.topbar-social svg { width: 12px; height: 12px; }

/* Announcement bar — slow editorial marquee */
.announce {
  background: var(--grad);
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 95;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.announce-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
  padding-block: 0.5rem;
}
.announce:hover .announce-track { animation-play-state: paused; }
.announce-track span { display: inline-flex; align-items: center; gap: 1.4rem; padding-inline: 1.4rem; white-space: nowrap; }
.announce-track b { color: var(--c-gold); font-weight: 800; }
.announce-track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); flex: none; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   06. HEADER / NAV / MEGA MENU
   -------------------------------------------------------------------------- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 300;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.site-header .nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: var(--header-h);
  transition: min-height 0.4s ease;
}
.site-header.scrolled {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled .nav-shell { min-height: 68px; }

/* Logo */
.brand { display: flex; align-items: center; gap: 0.8rem; flex: none; }
.brand-mark { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 4px 14px rgba(10, 17, 40, 0.18); transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { line-height: 1.1; }
.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand-text small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-primary-2);
}

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.main-nav > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 12px;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover, .nav-link.active, li:focus-within > .nav-link { color: var(--c-primary-2); }
.nav-link:hover::after, .nav-link.active::after, li:focus-within > .nav-link::after { transform: scaleX(1); }
.nav-link .caret { width: 12px; height: 12px; transition: transform 0.35s ease; }
li:hover > .nav-link .caret, li:focus-within > .nav-link .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 12px);
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 0.7rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s;
  z-index: 50;
}
li:hover > .dropdown, li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.dropdown a svg { width: 15px; height: 15px; color: var(--c-primary-2); flex: none; }
.dropdown a:hover { background: var(--surface-2); color: var(--c-primary-2); transform: translateX(4px); }

/* Mega panel */
.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 12px);
  width: min(860px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 1.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s;
  z-index: 50;
}
li:hover > .mega-panel, li:focus-within > .mega-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-feature { position: relative; border-radius: 18px; overflow: hidden; min-height: 240px; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mega-feature:hover img { transform: scale(1.06); }
.mega-feature .mega-feature-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem;
  background: linear-gradient(transparent, rgba(10, 17, 40, 0.9));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}
.mega-col h5 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  margin-bottom: 0.8rem;
}
.mega-col a {
  display: block;
  padding: 0.45rem 0;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.25s ease, transform 0.25s ease;
}
.mega-col a:hover { color: var(--c-primary-2); transform: translateX(5px); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.55rem; flex: none; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.35s var(--ease), background-color 0.3s ease, color 0.3s ease;
}
.icon-btn:hover { background: var(--c-primary-2); color: #fff; transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }
.header-cta { display: inline-flex; }

/* Dark mode toggle — animated sun/moon */
.mode-toggle { position: relative; overflow: hidden; }
.mode-toggle svg { position: absolute; transition: transform 0.55s var(--ease), opacity 0.4s ease; }
.mode-toggle .icon-sun { transform: translateY(0) rotate(0deg); opacity: 1; }
.mode-toggle .icon-moon { transform: translateY(150%) rotate(-120deg); opacity: 0; }
[data-mode="dark"] .mode-toggle .icon-sun { transform: translateY(-150%) rotate(120deg); opacity: 0; }
[data-mode="dark"] .mode-toggle .icon-moon { transform: translateY(0) rotate(0deg); opacity: 1; }

/* Hamburger */
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; z-index: 320; }
.hamburger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s ease, top 0.4s var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
body.nav-open .hamburger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: var(--surface);
  padding: 6.5rem var(--pad-x) 3rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
body.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav details { border-bottom: 1px solid var(--border); }
.mobile-nav summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--text);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 16px; height: 16px; transition: transform 0.35s ease; color: var(--c-primary-2); }
.mobile-nav details[open] summary svg { transform: rotate(180deg); }
.mobile-nav .m-sub { padding: 0 0 1rem 0.8rem; display: grid; gap: 0.15rem; }
.mobile-nav .m-sub a { padding: 0.5rem 0.4rem; color: var(--text-2); font-weight: 600; border-radius: 8px; }
.mobile-nav .m-sub a:hover { color: var(--c-primary-2); background: var(--surface-2); }
.mobile-nav > a.m-link {
  padding: 1rem 0.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: 1.4rem; align-self: flex-start; }

/* --------------------------------------------------------------------------
   07. HERO SLIDER
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--c-navy);
  overflow: hidden;
}
#hero-particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 7s var(--ease);
  will-change: transform;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 17, 40, 0.94) 0%, rgba(10, 17, 40, 0.62) 46%, rgba(10, 17, 40, 0.28) 100%);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 78% 30%, rgba(89, 165, 216, 0.22), transparent 70%);
}

.hero-content { position: relative; z-index: 4; color: #fff; padding-block: 6rem; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.6rem;
}
.hero-eyebrow::before { content: ""; width: 44px; height: 2px; background: var(--c-gold); }

.hero-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.06;
  max-width: 16ch;
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-gold), #ffe9a8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-bottom: 2.4rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Floating shapes */
.hero-shapes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.shape { position: absolute; opacity: 0.7; animation: floatY 9s ease-in-out infinite; }
.shape-1 { top: 16%; right: 9%; width: 130px; height: 130px; border-radius: 32% 68% 62% 38% / 45% 40% 60% 55%; background: linear-gradient(135deg, rgba(89,165,216,0.35), rgba(212,175,55,0.22)); filter: blur(2px); }
.shape-2 { bottom: 24%; right: 22%; width: 74px; height: 74px; border: 2px solid rgba(212, 175, 55, 0.55); border-radius: 22px; animation-delay: -3s; transform: rotate(18deg); }
.shape-3 { top: 30%; right: 30%; width: 20px; height: 20px; border-radius: 50%; background: var(--c-gold); animation-delay: -5s; }
.shape-4 { bottom: 34%; left: 4%; width: 90px; height: 90px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.28); animation-delay: -2s; }
.shape-5 { top: 12%; left: 38%; width: 14px; height: 14px; border-radius: 50%; background: var(--c-sky); animation-delay: -7s; }
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-26px) rotate(8deg); } }

/* Hero controls */
.hero-controls {
  position: absolute;
  z-index: 6;
  right: var(--pad-x);
  bottom: 7.5rem;
  display: flex;
  gap: 0.7rem;
}
.hero-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.35s ease, transform 0.35s var(--ease);
}
.hero-arrow:hover { background: var(--c-primary-2); transform: translateY(-3px); }
.hero-arrow svg { width: 20px; height: 20px; }

.hero-dots {
  position: absolute;
  z-index: 6;
  left: var(--pad-x);
  bottom: 7.5rem;
  display: flex;
  gap: 0.6rem;
}
.hero-dot {
  width: 34px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  position: relative;
  transition: background-color 0.3s ease;
}
.hero-dot i {
  position: absolute;
  inset: 0;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dot.active i { animation: dotFill 6.5s linear forwards; }
@keyframes dotFill { to { transform: scaleX(1); } }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
}
.scroll-hint .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  position: relative;
}
.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--c-gold);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Hero wave */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 5; line-height: 0; pointer-events: none; }
.hero-wave svg { width: 100%; height: 110px; display: block; }
.hero-wave .wave-a { animation: waveMove 14s linear infinite; }
.hero-wave .wave-b { animation: waveMove 22s linear infinite reverse; opacity: 0.5; }
@keyframes waveMove { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   08. STATS, ABOUT, PRINCIPAL
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.stats { position: relative; z-index: 10; margin-top: -64px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2vw, 2rem);
}
.stats-grid.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: 0.6rem 1rem; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-2); font-weight: 700; font-size: 0.9rem; }

.lead { color: var(--text-2); font-size: 1.08rem; margin-top: 1.2rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.about-media { position: relative; }
.about-media .frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius-lg);
  transform: rotate(-3.5deg) translate(16px, 16px);
}
.about-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  right: -14px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.9rem 1.3rem;
  box-shadow: var(--shadow);
  animation: floatY 7s ease-in-out infinite;
}
.about-badge svg { width: 34px; height: 34px; color: var(--c-accent); }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.about-badge span { font-size: 0.8rem; color: var(--text-2); font-weight: 700; }

.check-list { display: grid; gap: 0.85rem; margin: 1.6rem 0 2.2rem; }
.check-list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; color: var(--text); }
.check-list svg {
  width: 24px; height: 24px; flex: none;
  color: #fff;
  background: var(--grad);
  border-radius: 50%;
  padding: 5px;
}

.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.call-card { display: flex; align-items: center; gap: 0.9rem; color: var(--text); }
.call-card svg {
  width: 46px; height: 46px;
  padding: 12px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--c-primary-2);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}
.call-card:hover svg { background: var(--c-primary-2); color: #fff; transform: rotate(-8deg); }
.call-card small { display: block; font-size: 0.76rem; color: var(--text-2); font-weight: 700; }
.call-card strong { font-family: var(--font-head); font-size: 1.1rem; }

/* Principal */
.principal-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3.5vw, 3.4rem);
  align-items: center;
}
.principal-photo { position: relative; }
.principal-photo img {
  width: 100%;
  aspect-ratio: 5 / 5.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.principal-plate {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  border-radius: 16px;
  padding: 0.7rem 1.4rem;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.principal-plate strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.principal-plate span { font-size: 0.75rem; opacity: 0.85; }
.principal-quote { position: relative; }
.quote-mark { width: 54px; height: 54px; color: var(--c-accent); opacity: 0.5; margin-bottom: 0.6rem; }
.principal-quote h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin-bottom: 1.2rem; }
.principal-quote > p:not(.eyebrow) { color: var(--text-2); margin-bottom: 1.8rem; }

/* --------------------------------------------------------------------------
   09. EDITORIAL MARQUEE
   -------------------------------------------------------------------------- */
.marquee-big {
  overflow: hidden;
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: clamp(1.6rem, 3.4vw, 3rem);
}
.marquee-big .m-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee-big:hover .m-track { animation-play-state: paused; }
.marquee-big span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-2);
  padding-inline: 1.6rem;
  white-space: nowrap;
}
.marquee-big span.fill { color: var(--c-primary-2); -webkit-text-stroke: 0; }
.marquee-big .m-dot { color: var(--c-accent); -webkit-text-stroke: 0; font-size: clamp(1.2rem, 2.4vw, 2rem); }

/* --------------------------------------------------------------------------
   10. WHY CHOOSE US — MANIFESTO CHAPTERS
   -------------------------------------------------------------------------- */
.chapters { border-bottom: 1px solid var(--border); }
.chapter {
  display: grid;
  grid-template-columns: 130px 1fr 1.15fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 3.4vw, 2.8rem) 0.6rem;
  border-top: 1px solid var(--border);
  transition: background-color 0.4s ease;
}
.chapter:hover { background: var(--surface); }
.chapter-num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-primary-2);
  transition: color 0.4s ease, -webkit-text-stroke 0.4s ease, transform 0.5s var(--ease);
}
.chapter:hover .chapter-num { color: var(--c-primary-2); -webkit-text-stroke: 0; transform: translateX(8px); }
.chapter h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.chapter p { color: var(--text-2); }

/* --------------------------------------------------------------------------
   11. ACADEMICS
   -------------------------------------------------------------------------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.prog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.prog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.prog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.prog-card:hover::before { transform: scaleX(1); }
.prog-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  box-shadow: 0 12px 26px -8px rgba(30, 58, 138, 0.5);
}
.prog-icon svg { width: 30px; height: 30px; }
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.28rem 0.85rem;
  margin-bottom: 0.8rem;
}
.chip-gold { color: #8a6d1f; background: rgba(212, 175, 55, 0.14); border-color: rgba(212, 175, 55, 0.4); }
.chip-green { color: #1c7c4c; background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.4); }
.prog-card h3 { margin-bottom: 0.2rem; }
.prog-classes { font-weight: 800; color: var(--c-primary-2); font-size: 0.88rem; margin-bottom: 0.9rem; }
.prog-card > p:not(.prog-classes) { color: var(--text-2); font-size: 0.96rem; margin-bottom: 1.2rem; }

/* --------------------------------------------------------------------------
   12. FACILITIES BENTO
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1.2rem;
}
.bento-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.bento-item.big { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }
.bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
  z-index: -1;
}
.bento-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(10, 17, 40, 0) 40%, rgba(10, 17, 40, 0.85) 100%);
  transition: background 0.5s ease;
  z-index: 0;
}
.bento-item:hover img { transform: scale(1.08); }
.b-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem 1.4rem; color: #fff; z-index: 1; }
.b-cap h3 { color: #fff; font-size: 1.15rem; }
.b-cap p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s ease; }
.bento-item:hover .b-cap p { max-height: 60px; opacity: 1; }

/* --------------------------------------------------------------------------
   13. ADMISSIONS STEPS + CTA BAND
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-bottom: 3.4rem; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: -22px;
  left: 1.6rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px -6px rgba(30, 58, 138, 0.55);
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-2); font-size: 0.93rem; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.8rem, 4vw, 3.4rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -90px; left: 12%;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
}
.cta-band-text h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band-text p { color: rgba(255, 255, 255, 0.85); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   14. ACHIEVEMENTS + GALLERY
   -------------------------------------------------------------------------- */
.achieve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.achieve-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.achieve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.achieve-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.achieve-card p { color: var(--text-2); font-size: 0.92rem; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.g-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 14 / 9;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s ease;
}
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, transparent 55%, rgba(10, 17, 40, 0.55));
  opacity: 0;
  transition: opacity 0.5s ease;
}
.g-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }
.g-item:hover .g-cap { opacity: 1; transform: translateY(0); }
.center-actions { text-align: center; margin-top: 2.6rem; }

/* --------------------------------------------------------------------------
   15. NEWS & NOTICES (TABS)
   -------------------------------------------------------------------------- */
.tab-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.tab-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 99px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}
.tab-btn:hover { transform: translateY(-2px); color: var(--c-primary-2); }
.tab-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -8px rgba(30, 58, 138, 0.5); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; animation: panelIn 0.6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card time { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent-2); }
.news-card h3 { font-size: 1.12rem; margin: 0.6rem 0; }
.news-card p { color: var(--text-2); font-size: 0.94rem; margin-bottom: 1rem; }

.tab-panel[data-panel="notices"].active, .tab-panel[data-panel="events"].active { grid-template-columns: 1fr; }
.notice-list { display: grid; gap: 0.7rem; }
.notice-list li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.3rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.notice-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.notice-list time {
  flex: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--c-primary-2);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  text-align: center;
}
.notice-list a { color: var(--text); font-weight: 600; flex: 1; }
.notice-list a:hover { color: var(--c-primary-2); }

/* --------------------------------------------------------------------------
   16. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testi-slider { max-width: 860px; margin-inline: auto; overflow: hidden; }
.testi-track { display: flex; transition: transform 0.7s var(--ease); }
.testi-card {
  flex: 0 0 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 4vw, 3.2rem);
  text-align: center;
}
.stars { color: var(--c-gold); font-size: 1.2rem; letter-spacing: 0.3em; margin-bottom: 1.2rem; }
.testi-card > p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--text); max-width: 56ch; margin: 0 auto 1.8rem; }
.testi-card footer { display: flex; align-items: center; justify-content: center; gap: 0.9rem; }
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
}
.testi-card footer strong { display: block; font-family: var(--font-head); }
.testi-card footer span:not(.avatar) { font-size: 0.85rem; color: var(--text-2); }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.8rem; }
.testi-nav .hero-arrow { background: var(--surface); border-color: var(--border); color: var(--text); width: 46px; height: 46px; }
.testi-nav .hero-arrow:hover { background: var(--c-primary-2); color: #fff; }
.testi-dots { display: flex; gap: 0.5rem; }
.testi-dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: background-color 0.3s ease, transform 0.3s ease; }
.testi-dots button.active { background: var(--c-primary-2); transform: scale(1.3); }

/* --------------------------------------------------------------------------
   17. STUDENT LIFE BANNER + FAQ
   -------------------------------------------------------------------------- */
.life-banner { position: relative; overflow: hidden; padding-block: clamp(6rem, 12vw, 11rem); }
.life-bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.life-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 17, 40, 0.9), rgba(10, 17, 40, 0.45)); }
.life-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.life-content h2 { color: #fff; margin-bottom: 1rem; }
.life-content h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-gold), #ffe9a8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.life-content p { color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; font-size: 1.1rem; }

.faq-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--c-primary-2); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--surface-2); transition: background-color 0.3s ease, transform 0.45s var(--ease); }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--c-primary-2);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease), background-color 0.3s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--c-primary-2); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 1.4rem 1.3rem; color: var(--text-2); }

/* --------------------------------------------------------------------------
   18. CONTACT + NEWSLETTER
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-info { display: grid; gap: 1.1rem; }
.info-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.info-card svg { width: 26px; height: 26px; flex: none; color: var(--c-primary-2); margin-top: 3px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.info-card p { color: var(--text-2); font-size: 0.94rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
}
.contact-form h3 { margin-bottom: 0.3rem; }
.form-sub { color: var(--text-2); font-size: 0.92rem; margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 0.45rem; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary-2);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}
.form-field input.error, .form-field textarea.error { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12); }
.form-note { margin-top: 1rem; font-size: 0.8rem; color: var(--text-2); }

.newsletter { padding-block: clamp(3.5rem, 7vw, 6rem); }
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
  background: var(--c-navy);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 4.5vw, 3.6rem) clamp(1.8rem, 4vw, 3.4rem);
  position: relative;
  overflow: hidden;
}
.newsletter-inner::before {
  content: "";
  position: absolute;
  top: -80px; right: 8%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 165, 216, 0.25), transparent 70%);
}
.newsletter-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.newsletter-inner p { color: rgba(255, 255, 255, 0.75); }
.newsletter-form { display: flex; gap: 0.7rem; flex-wrap: wrap; position: relative; z-index: 1; }
.newsletter-form input {
  min-width: min(320px, 78vw);
  padding: 1rem 1.4rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter-form input:focus { outline: none; border-color: var(--c-gold); }

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary-2), var(--c-accent), var(--c-primary-2));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2.5rem;
}
.footer-brand p { margin: 1.2rem 0 1.6rem; font-size: 0.95rem; max-width: 40ch; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 0.3s ease, transform 0.35s var(--ease);
}
.footer-social a:hover { background: var(--c-primary-2); transform: translateY(-4px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-col a:hover { color: var(--c-gold); padding-left: 6px; }
.footer-contact p { font-size: 0.94rem; margin-bottom: 0.9rem; }
.footer-contact a { color: rgba(255, 255, 255, 0.85); }
.footer-contact a:hover { color: var(--c-gold); }
.footer-news { display: flex; gap: 0.5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.footer-news input {
  flex: 1;
  min-width: 180px;
  padding: 0.8rem 1.1rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.footer-news input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-news input:focus { outline: none; border-color: var(--c-gold); }
.footer-news .btn { padding: 0.8rem 1.5rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 1.4rem; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.85rem; }
.footer-links a { color: rgba(255, 255, 255, 0.72); }
.footer-links a:hover { color: var(--c-gold); }

/* --------------------------------------------------------------------------
   21. OVERLAYS — SEARCH, THEME PANEL, BACK TO TOP, TOAST, LIGHTBOX
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 17, 40, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh var(--pad-x) 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box {
  width: min(640px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
  position: relative;
  transform: translateY(-24px);
  transition: transform 0.45s var(--ease);
}
.search-overlay.open .search-box { transform: none; }
.search-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.search-close svg { width: 16px; height: 16px; }
.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.2rem;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.05rem;
}
.search-box input:focus { outline: none; border-color: var(--c-primary-2); }
.search-results { margin-top: 1rem; display: grid; gap: 0.3rem; max-height: 320px; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 12px; color: var(--text); font-weight: 600; }
.search-results a:hover { background: var(--surface-2); color: var(--c-primary-2); }
.search-results a svg { width: 15px; height: 15px; color: var(--c-primary-2); }
.search-empty { color: var(--text-2); padding: 0.6rem 0.9rem; }

.theme-panel {
  position: fixed;
  top: 50%;
  right: 4.6rem;
  transform: translate(120%, -50%);
  z-index: 450;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  width: 240px;
  visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0.55s;
}
.theme-panel.open { transform: translate(0, -50%); visibility: visible; }
.theme-panel h4 { margin-bottom: 1rem; font-size: 0.95rem; }
.swatch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.swatch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-2);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.swatch:hover { transform: translateY(-3px) scale(1.04); border-color: var(--c-primary-2); }
.swatch.active { border-color: var(--c-primary-2); color: var(--text); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
.swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); transition: transform 0.3s var(--ease); }
.swatch.active i { transform: scale(1.25); }

/* Floating side rail — theme switcher & dark mode (right edge of screen) */
.side-rail {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 430;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: opacity 0.3s ease;
}
body.nav-open .side-rail { opacity: 0; pointer-events: none; }
.side-rail .icon-btn {
  width: 46px;
  height: 46px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.45s var(--ease), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.side-rail .icon-btn:hover { transform: scale(1.14) rotate(-10deg); background: var(--c-primary-2); color: #fff; }
.side-rail .icon-btn:active { transform: scale(0.9); }
/* Gentle attention pulse on the theme button */
.side-rail [data-theme-open]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--c-primary-2);
  opacity: 0;
  animation: ringPulse 3s ease-out infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0% { transform: scale(0.85); opacity: 0.55; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { opacity: 0; }
}
/* Playful click animations */
.mode-toggle.flip { animation: modeFlip 0.65s var(--ease); }
@keyframes modeFlip {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.28); }
  100% { transform: rotate(360deg) scale(1); }
}
.side-rail [data-theme-open].pop { animation: themePop 0.5s var(--ease); }
@keyframes themePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3) rotate(12deg); }
  100% { transform: scale(1); }
}
@media (max-width: 768px) {
  .side-rail { right: 0.55rem; }
  .side-rail .icon-btn { width: 42px; height: 42px; }
}

/* Recent news & events marquee */
.news-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.nm-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  padding: 0.6rem 0.2rem;
  animation: marquee 42s linear infinite;
}
.news-marquee:hover .nm-track { animation-play-state: paused; }
.nm-card {
  width: 330px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}
.nm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.nm-card .nm-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.nm-card .nm-top .chip { margin-bottom: 0; }
.nm-card time { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent-2); }
.nm-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.nm-card p { color: var(--text-2); font-size: 0.9rem; }

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 440;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top svg { width: 20px; height: 20px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 140%);
  z-index: 600;
  background: var(--c-navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  padding: 0.95rem 1.8rem;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.55s var(--ease);
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.success { border-color: rgba(52, 211, 153, 0.6); }
.toast.error { border-color: rgba(225, 29, 72, 0.7); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 550;
  background: rgba(5, 10, 21, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.5s var(--ease);
}
.lightbox.open img { transform: none; }
.lightbox-cap {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  max-width: min(1100px, 94vw);
}
.lightbox-cap:empty { display: none; }

/* --------------------------------------------------------------------------
   20. SUBPAGE COMPONENTS
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3.2rem, 6vw, 5rem);
  background: var(--c-navy);
  color: #fff;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.3; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 17, 40, 0.88), rgba(10, 17, 40, 0.4)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin: 0.7rem 0 0.9rem; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 62ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.breadcrumb a { color: var(--c-gold); }
.breadcrumb span[aria-current] { color: rgba(255, 255, 255, 0.7); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; padding-block: clamp(2.2rem, 4vw, 3.6rem); }
.split + .split { border-top: 1px solid var(--border); }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); margin-bottom: 1rem; }
.split p { color: var(--text-2); margin-bottom: 1rem; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.vm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.vm-card::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px; background: var(--grad-accent); }
.vm-card h3 { margin-bottom: 0.8rem; }
.vm-card p { color: var(--text-2); }
.vm-card ul { list-style: disc; padding-left: 1.3rem; color: var(--text-2); display: grid; gap: 0.45rem; }
.motto-band {
  margin-top: 2.6rem;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--text);
  max-width: 760px;
  margin-inline: auto;
}
.motto-band strong { color: var(--c-primary-2); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-block: 1.4rem; }
.table-wrap table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 600px; }
.table-wrap th { background: var(--grad); color: #fff; text-align: left; font-family: var(--font-head); font-size: 0.88rem; padding: 1rem 1.2rem; white-space: nowrap; }
.table-wrap td { padding: 0.9rem 1.2rem; border-top: 1px solid var(--border); color: var(--text-2); font-size: 0.94rem; }
.table-wrap tr:hover td { background: var(--surface-2); }
.table-note { font-size: 0.82rem; color: var(--text-2); }

/* Timeline */
.timeline { position: relative; padding-left: 2.2rem; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--grad); border-radius: 2px; }
.t-item { position: relative; padding-bottom: 2.2rem; }
.t-item::before { content: ""; position: absolute; left: -2.2rem; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.18); }
.t-item time { font-family: var(--font-head); font-weight: 800; color: var(--c-primary-2); font-size: 0.85rem; letter-spacing: 0.1em; }
.t-item h3 { font-size: 1.2rem; margin: 0.3rem 0 0.4rem; }
.t-item p { color: var(--text-2); }

/* Faculty / people cards */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.faculty-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.faculty-card .avatar { width: 76px; height: 76px; margin: 0 auto 1rem; font-size: 1.5rem; }
.avatar-img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; box-shadow: var(--shadow-sm); }
.faculty-card h3 { font-size: 1.05rem; }
.faculty-card span { color: var(--text-2); font-size: 0.86rem; font-weight: 600; }

/* Skill / progress bars */
.skill { margin-bottom: 1.3rem; }
.skill-top { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.45rem; }
.skill-bar { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.skill-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.5s var(--ease) 0.2s; }
.skill.in-view .skill-bar i { width: var(--val); }

/* Downloads */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.dl-card { display: flex; flex-direction: column; gap: 0.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dl-card svg { width: 34px; height: 34px; color: var(--c-primary-2); }
.dl-card h3 { font-size: 1.05rem; }
.dl-card p { color: var(--text-2); font-size: 0.9rem; flex: 1; }

/* Video gallery */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.video-grid-real { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 1.6rem; justify-content: center; }
.video-card-real { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface); }
.video-card-real video { width: 100%; aspect-ratio: 9 / 16; display: block; background: #0a1128; }
.video-caption { padding: 1rem 1.15rem 1.2rem; font-size: 0.92rem; line-height: 1.6; color: var(--text-2); }
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-sm); cursor: pointer; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.video-card:hover img { transform: scale(1.06); }
.video-card::after { content: ""; position: absolute; inset: 0; background: rgba(10, 17, 40, 0.35); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1.5px solid rgba(255, 255, 255, 0.6); display: grid; place-items: center; transition: transform 0.4s var(--ease), background-color 0.3s ease; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); background: var(--c-primary-2); }
.play-btn svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }

/* Legal pages */
.legal { max-width: 840px; }
.legal h2 { font-size: 1.45rem; margin: 2.4rem 0 0.8rem; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { list-style: disc; padding-left: 1.5rem; display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.legal strong { color: var(--text); }

/* 404 */
.nf { min-height: 68vh; display: flex; align-items: center; }
.nf-inner { text-align: center; max-width: 620px; margin-inline: auto; }
.nf-code { font-family: var(--font-head); font-size: clamp(6rem, 17vw, 11rem); font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nf-inner p { color: var(--text-2); margin: 1rem 0 2rem; }

/* --------------------------------------------------------------------------
   22. DARK MODE REFINEMENTS
   -------------------------------------------------------------------------- */
[data-mode="dark"] .about-media img,
[data-mode="dark"] .bento-item img,
[data-mode="dark"] .g-item img,
[data-mode="dark"] .split-media img,
[data-mode="dark"] .principal-photo img { filter: brightness(0.88); }
[data-mode="dark"] .hero { background: #03060f; }
[data-mode="dark"] .newsletter-inner { background: #0B1428; }

/* --------------------------------------------------------------------------
   23. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1600px) {
  .nav-link { padding: 0.7rem 0.55rem; font-size: 0.84rem; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-text strong { font-size: 0.92rem; }
  .brand-text small { font-size: 0.58rem; letter-spacing: 0.2em; }
  .header-cta { padding: 0.85rem 1.4rem; font-size: 0.86rem; }
}

@media (max-width: 1400px) {
  .header-cta { display: none; }
}

@media (max-width: 1200px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .achieve-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(3, 1fr); }
  .chapter { grid-template-columns: 90px 1fr; }
  .chapter p { grid-column: 2; }
}

@media (max-width: 1150px) {
  .main-nav, .mega-panel, .dropdown { display: none; }
  .hamburger { display: block; }
  .header-cta { display: none; }
}

@media (max-width: 1024px) {
  .about-grid, .faq-grid, .contact-grid, .split, .vm-grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .principal-card { grid-template-columns: 1fr; }
  .principal-photo { max-width: 340px; margin-inline: auto; }
  .tab-panel.active { grid-template-columns: 1fr 1fr; }
  .tab-panel[data-panel="notices"].active, .tab-panel[data-panel="events"].active { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .dl-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .header-cta { display: none; }
  .topbar-left a[href^="mailto"] { display: none; }
  .topbar-loc { display: none; }
  /* Compact mobile header so nothing overflows */
  .nav-shell { gap: 0.6rem; }
  .brand { gap: 0.55rem; }
  .brand-mark { width: 38px !important; height: 38px !important; }
  .brand-text strong { font-size: 0.8rem; }
  .brand-text small { font-size: 0.5rem; letter-spacing: 0.14em; }
  .header-actions { gap: 0.4rem; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .header-actions .icon-btn svg { width: 16px; height: 16px; }
  .hamburger { width: 40px; height: 40px; }
  .hamburger span { left: 10px; width: 20px; }
  .hamburger span:nth-child(1) { top: 13px; }
  .hamburger span:nth-child(2) { top: 19px; }
  .hamburger span:nth-child(3) { top: 25px; }
  body.nav-open .hamburger span:nth-child(1) { top: 19px; }
  body.nav-open .hamburger span:nth-child(3) { top: 19px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .stat + .stat::before { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .bento-item.big { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-grid { grid-template-columns: 1fr; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .hero-controls { bottom: 6rem; }
  .hero-dots { bottom: 6rem; }
  .scroll-hint { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; gap: 0.4rem; }
  .chapter p { grid-column: auto; }
  .chapter-num { font-size: 2.2rem; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .steps, .achieve-grid, .gallery-grid, .dl-grid, .video-grid, .footer-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento-item.big, .bento-item.wide { grid-column: span 1; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-content { padding-block: 4rem 8rem; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-controls { right: var(--pad-x); bottom: 5.2rem; }
  .hero-arrow { width: 46px; height: 46px; }
  .hero-dots { bottom: 5.6rem; }
  .stats { margin-top: -40px; }
  .about-badge { right: 8px; padding: 0.7rem 1rem; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
  .theme-panel { right: 3.8rem; width: min(240px, 72vw); }
  .testi-card { padding: 1.6rem 1.2rem; }
  .contact-form { padding: 1.5rem 1.2rem; }
  .cta-band-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .brand-text strong { font-size: 0.72rem; }
  .brand-text small { font-size: 0.46rem; }
}

/* --------------------------------------------------------------------------
   24. ACCESSIBILITY & MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .line-inner { transform: none; }
}
