/* ═══════════════════════════════════════════════
   AMA — Alumni Association of Mangan School
   Global Styles  |  75th Anniversary Edition
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --sky:       #4A8FCC;
  --sky-lt:    #D6EAFB;
  --gold:      #D4840A;
  --gold-lt:   #F5B942;
  --gold-pale: #FEF3D8;
  --deep:      #1C3A5E;
  --forest:    #2C6B4A;
  --forest-lt: #E8F5EE;
  --orange:    #D9581A;
  --white:     #FFFFFF;
  --off-white: #F8FBFF;
  --text:      #12233F;
  --text-mid:  #374965;
  --text-muted:#6B82A0;
  --border:    rgba(74,143,204,0.18);
  --shadow-blue: 0 6px 32px rgba(28,58,94,0.12);
  --shadow-gold: 0 6px 32px rgba(212,132,10,0.20);
  --r: 18px;
  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
  --italic: 'Cormorant Garamond', Georgia, serif;
}

/* ══════════════════════════════════════════════
   ANIMATION KEYFRAMES
   ══════════════════════════════════════════════ */

/* Ripple click effect */
@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}

/* Title sweep bar */
@keyframes sweepBar {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Left/right slide for timeline */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Fade up — used by pillar & stat */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gentle pulse for active nav */
@keyframes navPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.70; }
}

/* ── CROSS-BROWSER RESET ── */
*, *::before, *::after { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(74,143,204,0.22); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
a { -webkit-tap-highlight-color: transparent; }
button { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; }

/* Safari: backdrop-filter fallback */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { background: rgba(255,255,255,0.98); }
  .mob-nav { background: rgba(255,255,255,0.99); }
  .principal-card { background: rgba(10,22,46,0.92); }
  .mem-card { background: rgba(10,22,46,0.85); }
}

/* Firefox: hide scrollbar on nav-links */
.nav-links { scrollbar-width: none; }
/* IE/Edge legacy: hide scrollbar */
.nav-links { -ms-overflow-style: none; }

/* ── SHARED BUTTONS ── */
.btn-sky {
  background: var(--sky); color: #fff; padding: 12px 30px; border-radius: 50px;
  border: none; font-size: 0.87rem; font-weight: 700; letter-spacing: 0.05em;
  text-decoration: none; display: inline-block; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 5px 22px rgba(74,143,204,0.35);
}
.btn-sky:hover { background: #3B7DB8; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(74,143,204,0.45); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt)); color: #fff;
  padding: 12px 30px; border-radius: 50px; border: none;
  font-size: 0.87rem; font-weight: 700; letter-spacing: 0.05em;
  text-decoration: none; display: inline-block; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-outline-sky {
  background: transparent; color: var(--deep); padding: 11px 28px; border-radius: 50px;
  border: 2px solid rgba(28,58,94,0.30); font-size: 0.87rem; font-weight: 600;
  text-decoration: none; display: inline-block;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline-sky:hover { border-color: var(--sky); color: var(--sky); background: var(--sky-lt); transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   TITLE SWEEP REVEAL
   ══════════════════════════════════════════════ */
.title-sweep {
  position: relative; display: inline-block;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}
.title-sweep.title-revealed {
  -webkit-clip-path: inset(0 0% 0 0);
  clip-path: inset(0 0% 0 0);
  -webkit-transition: clip-path 0.85s cubic-bezier(0.77,0,0.18,1);
  transition: clip-path 0.85s cubic-bezier(0.77,0,0.18,1);
}
.title-sweep::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold-lt), var(--sky));
  pointer-events: none;
  -webkit-transform: scaleX(0); transform: scaleX(0);
  -webkit-transform-origin: left; transform-origin: left;
}
.title-sweep.title-revealed::after {
  -webkit-animation: sweepBar 0.85s cubic-bezier(0.77,0,0.18,1) forwards;
  animation: sweepBar 0.85s cubic-bezier(0.77,0,0.18,1) forwards;
}

/* ══════════════════════════════════════════════
   PILLAR + STAT FADE-UP
   ══════════════════════════════════════════════ */
.pillar, .stat {
  opacity: 0; -webkit-transform: translateY(14px); transform: translateY(14px);
}
.pillar.on, .stat.on {
  -webkit-animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
  animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ── SHARED SECTION LAYOUT ── */
.sec { padding: 88px 5%; }
.sec-inner { max-width: 1160px; margin: 0 auto; }
.sec-bg-white  { background: var(--white); }
.sec-bg-sky    { background: var(--sky-lt); }
.sec-bg-gold   { background: var(--gold-pale); }

.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.69rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sky); font-weight: 700; margin-bottom: 11px;
}
.sec-tag::before { content: ''; display: inline-block; width: 26px; height: 2px; background: var(--sky); border-radius: 1px; }

.sec-title {
  font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700; color: var(--deep); line-height: 1.15; margin-bottom: 14px;
}
.sec-title em { font-style: italic; color: var(--gold); }
.sec-lead { font-size: 1rem; color: var(--text-muted); max-width: 600px; line-height: 1.82; margin-bottom: 48px; }
.rule { width: 52px; height: 3px; background: linear-gradient(90deg, var(--sky), var(--gold-lt)); border-radius: 2px; margin: 16px 0 34px; }

/* ── LOADER ── */
.loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity 0.5s;
}
.loader.out { opacity: 0; pointer-events: none; }
.loader img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--gold-lt); animation: loaderPulse 2s ease-in-out infinite; }
@keyframes loaderPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74,143,204,0.30); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(74,143,204,0); }
}
.loader-bar { width: 180px; height: 2px; background: rgba(74,143,204,0.15); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--gold-lt)); animation: loadFill 1.5s ease forwards; }
@keyframes loadFill { to { width: 100%; } }
.loader-txt { font-size: 0.67rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sky); font-weight: 700; }

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.nav {
  position: -webkit-sticky;
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: 64px;
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
  padding: 0 4%;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  -webkit-transition: box-shadow 0.3s; transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 3px 20px rgba(28,58,94,0.10); }

/* Brand */
.nav-brand { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 10px; text-decoration: none; -ms-flex-negative: 0; flex-shrink: 0; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; -o-object-fit: cover; object-fit: cover; border: 2px solid var(--gold-lt); box-shadow: 0 2px 10px rgba(212,132,10,0.22); }
.nav-brand-text { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; color: var(--deep); line-height: 1.2; }
.nav-brand-text small { display: block; font-family: var(--sans); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

/* Scrollable link strip */
.nav-links {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  gap: 0; list-style: none;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; scrollbar-width: none;
  -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto;
  margin: 0 16px; padding: 0 4px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links li { -ms-flex-negative: 0; flex-shrink: 0; }
.nav-links a {
  display: block; padding: 8px 12px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none; white-space: nowrap;
  position: relative; padding-bottom: 10px;
  -webkit-transition: color 0.2s; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 12px; right: 12px;
  height: 2px; background: var(--gold); border-radius: 1px;
  width: 0; -webkit-transition: width 0.3s; transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: calc(100% - 24px); }
.nav-links a.active { background: rgba(212,132,10,0.08); border-radius: 6px; }

/* Donate button — navbar */
.nav-donate {
  -ms-flex-negative: 0; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--deep); border: none; border-radius: 50px;
  padding: 8px 18px; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.05em; cursor: pointer;
  -webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 3px 14px rgba(212,132,10,0.30);
  white-space: nowrap;
}
.nav-donate:hover { opacity: 0.88; -webkit-transform: translateY(-1px); transform: translateY(-1px); }

/* Mobile donate button */
.mob-donate-btn {
  margin-top: 12px; padding: 12px 36px; border-radius: 50px; border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--deep); font-size: 1rem; font-weight: 800; cursor: pointer;
}

/* Hamburger */
.hamburger { display: none; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 5px; cursor: pointer; -ms-flex-negative: 0; flex-shrink: 0; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--deep); border-radius: 2px; }

/* Mobile fullscreen nav */
.mob-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(255,255,255,0.98);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  -webkit-box-orient: vertical; -webkit-box-direction: normal;
  -ms-flex-direction: column; flex-direction: column;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start;
  padding: 80px 24px 40px; gap: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mob-nav.open { display: -webkit-box; display: -ms-flexbox; display: flex; }
.mob-brand {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 12px; margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border); width: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.mob-brand img { width: 48px; height: 48px; border-radius: 50%; -o-object-fit: cover; object-fit: cover; border: 2px solid var(--gold-lt); }
.mob-brand span { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; color: var(--deep); text-align: center; max-width: 200px; line-height: 1.3; }
.mob-nav a {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--deep);
  text-decoration: none; padding: 14px 0; width: 100%; text-align: center;
  border-bottom: 1px solid rgba(74,143,204,0.10);
  -webkit-transition: color 0.2s; transition: color 0.2s;
}
.mob-nav a:hover, .mob-nav a:active { color: var(--gold); }
.mob-close { position: absolute; top: 18px; right: 22px; font-size: 1.8rem; cursor: pointer; color: var(--sky); line-height: 1; padding: 4px 8px; }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.90) 30%, rgba(255,255,255,0.40) 60%, transparent 100%);
}
.hero-school {
  position: absolute; bottom: 180px; left: 5%;
  width: clamp(200px, 28vw, 300px); border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(28,58,94,0.25), 0 0 0 3px rgba(74,143,204,0.30);
  animation: floatUp 7s ease-in-out infinite; z-index: 2;
}
.hero-school img { width: 100%; height: 180px; object-fit: cover; }
.hero-school-lbl { background: var(--white); padding: 9px 14px; font-size: 0.70rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); border-top: 2.5px solid var(--gold-lt); }
@keyframes floatUp { 0%,100%{transform:translateY(0) rotate(-0.8deg)} 50%{transform:translateY(-9px) rotate(-0.8deg)} }

/* ── Hero pinned card ── */
@keyframes pinFloat {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-10px) rotate(-1.5deg); }
}
.hero-pin-card {
  position: absolute;
  bottom: 200px; left: 5%;
  width: clamp(190px, 22vw, 280px);
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 18px 14px 14px;
  box-shadow: 0 8px 32px rgba(28,58,94,0.18), 0 2px 8px rgba(0,0,0,0.08);
  animation: pinFloat 6s ease-in-out infinite;
  z-index: 4;
  -webkit-animation: pinFloat 6s ease-in-out infinite;
}
.hero-pin-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}
/* Green pin */
.hero-pin {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6ee86e, #1a8c1a);
  box-shadow: 0 3px 10px rgba(26,140,26,0.55), 0 0 0 3px rgba(255,255,255,0.9);
}
.hero-pin::after {
  content: '';
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 10px;
  background: linear-gradient(to bottom, #1a8c1a, transparent);
  border-radius: 2px;
}
.hero-pin-tag {
  font-size: 0.58rem; letter-spacing: 0.20em; text-transform: uppercase;
  font-weight: 800; color: #1a8c1a;
  background: rgba(26,140,26,0.09); border-radius: 50px;
  padding: 2px 10px; display: inline-block; margin-bottom: 6px;
}
.hero-pin-title {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 900;
  color: var(--deep); line-height: 1.2; margin-bottom: 6px;
}
.hero-pin-date {
  font-size: 0.72rem; font-weight: 700; color: var(--gold);
  margin-bottom: 3px;
}
.hero-pin-venue {
  font-size: 0.68rem; color: var(--text-muted); margin-bottom: 10px;
}
.hero-pin-divider {
  height: 1px; background: rgba(26,140,26,0.18);
  margin-bottom: 10px;
}
.hero-pin-agenda {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 10px;
}
.hero-pin-agenda li {
  font-size: 0.67rem; color: var(--text-mid);
  padding-left: 12px; position: relative; line-height: 1.4;
}
.hero-pin-agenda li::before {
  content: '✦'; position: absolute; left: 0;
  color: #1a8c1a; font-size: 0.50rem; top: 2px;
}
.hero-pin-footer {
  font-size: 0.60rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); text-align: center;
  padding-top: 8px; border-top: 1px dashed rgba(28,58,94,0.12);
}

/* Hide on very small screens */
@media (max-width: 600px) { .hero-pin-card { display: none; } }
.hero-body { position: relative; z-index: 3; margin-top: auto; padding: 0 5% 72px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo-wrap { position: relative; display: inline-block; margin-bottom: 20px; }
.logo-wrap img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-lt); box-shadow: 0 4px 24px rgba(212,132,10,0.30), 0 0 0 6px rgba(74,143,204,0.12); }
.logo-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1.5px dashed rgba(74,143,204,0.30); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); border: 1.5px solid rgba(74,143,204,0.30); border-radius: 50px; padding: 6px 18px; margin-bottom: 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); box-shadow: 0 2px 12px rgba(74,143,204,0.12); }
.hero-pill::before,.hero-pill::after { content: '★'; font-size: 0.55rem; color: var(--gold-lt); }
.hero-75 { font-family: var(--serif); font-size: clamp(6rem,14vw,10rem); font-weight: 900; line-height: 0.85; letter-spacing: -0.02em; color: var(--deep); text-shadow: 0 3px 0 rgba(74,143,204,0.18); margin-bottom: 10px; }
.hero-75 span { background: linear-gradient(135deg, var(--gold), var(--gold-lt), var(--orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-name { font-family: var(--serif); font-size: clamp(1.4rem,3.5vw,2.3rem); font-weight: 700; color: var(--deep); line-height: 1.2; margin-bottom: 7px; }
.hero-motto { font-family: var(--italic); font-style: italic; font-size: clamp(1.1rem,2.2vw,1.5rem); color: var(--orange); margin-bottom: 7px; }
.hero-loc { font-size: 0.76rem; letter-spacing: 0.20em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }
.hero-loc strong { color: var(--deep); font-weight: 700; }
.hero-btns { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3; }
.scroll-hint span { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.scroll-bar { width: 1.5px; height: 36px; background: linear-gradient(to bottom, var(--sky), transparent); position: relative; overflow: hidden; }
.scroll-bar::after { content: ''; position: absolute; top: -100%; width: 100%; height: 50%; background: var(--sky); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { to { top: 200%; } }

/* ══════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════ */
.stats { background: linear-gradient(135deg, var(--deep) 0%, #1A4A7A 100%); padding: 44px 5%; display: flex; justify-content: center; flex-wrap: wrap; }
.stat { flex: 1; min-width: 130px; max-width: 190px; text-align: center; padding: 8px 20px; position: relative; }
.stat+.stat::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(255,255,255,0.14); }
.stat-n { font-family: var(--serif); font-size: 2.6rem; font-weight: 900; color: var(--gold-lt); line-height: 1; }
.stat-l { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 5px; }

/* ══════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photo { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-blue); }
.about-photo img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--r); }
.photo-badge { position: absolute; bottom: 18px; left: 18px; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 11px 16px; box-shadow: 0 4px 16px rgba(28,58,94,0.14); }
.photo-badge strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 900; color: var(--gold); line-height: 1; }
.photo-badge span { font-size: 0.67rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.about-text p { font-size: 1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }

/* About photo strip */
.about-photo-strip {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 40px;
}
.aps-item { border-radius: 10px; overflow: hidden; height: 140px; }
.aps-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.aps-item:hover img { transform: scale(1.06); }

/* About principal message */
.about-principal {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--deep) 0%, #16213E 100%);
  border-radius: 18px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.about-principal::before {
  content: '';
  position: absolute; inset: 0;
  background: url('./assets/school-aerial.jpeg') center/cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.ap-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 50px;
  margin-bottom: 24px;
}
.ap-body {
  display: flex; align-items: flex-start; gap: 28px; position: relative;
}
.ap-portrait {
  display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0;
}
.ap-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.ap-photo {
  width: 90px; height: 110px; border-radius: 10px;
  object-fit: cover; object-position: top center;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.ap-name-block { text-align: center; }
.ap-name { color: var(--gold); font-weight: 700; font-size: 0.82rem; white-space: nowrap; }
.ap-title { color: rgba(255,255,255,0.5); font-size: 0.70rem; margin-top: 2px; }
.ap-quote {
  color: rgba(255,255,255,0.88);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.85;
  font-style: italic;
  margin: 0; position: relative;
}
.ap-qmark {
  font-size: 4rem; line-height: 0.6;
  color: var(--gold); opacity: 0.4;
  float: left; margin-right: 8px; font-family: Georgia, serif;
}

.about-president {
  margin-top: 24px;
  background: linear-gradient(135deg, #1a2a4a 0%, var(--deep) 100%);
  border-radius: 18px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--gold);
}
.about-president::before {
  content: '';
  position: absolute; inset: 0;
  background: url('./assets/school-aerial.jpeg') center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.ap-quote-wrap { flex: 1; position: relative; }
.ap-read-more { display: none; }
.ap-toggle {
  margin-top: 14px;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
}
.ap-toggle:hover { background: rgba(255,255,255,0.08); }

/* Footer donate bar */
.f-donate-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, #c9972a 100%);
  border-radius: 14px;
  padding: 20px 28px;
  margin-bottom: 40px;
}
.f-donate-text { display: flex; flex-direction: column; gap: 4px; }
.f-donate-text strong { color: var(--ink); font-size: 1rem; font-weight: 800; }
.f-donate-text span { color: rgba(28,35,63,0.75); font-size: 0.82rem; }
.f-donate-btn {
  background: var(--deep);
  color: var(--gold);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.f-donate-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

@media (max-width: 600px) {
  .f-donate-bar { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .about-photo-strip { grid-template-columns: repeat(2,1fr); }
  .ap-body { flex-direction: column; gap: 16px; }
  .about-principal { padding: 24px 20px; }
  .about-president { padding: 24px 20px; }
  .ap-quote { font-size: 0.92rem; }
}
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 26px; }
.pillar { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 16px; transition: transform 0.25s, box-shadow 0.25s; box-shadow: 0 2px 10px rgba(74,143,204,0.06); }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-blue); }
.pillar-ico { font-size: 1.4rem; margin-bottom: 6px; }
.pillar h4 { font-family: var(--serif); font-size: 0.96rem; font-weight: 700; color: var(--deep); margin-bottom: 3px; }
.pillar p { font-size: 0.79rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════════════
   VOICES FROM OUR HILLS
   ══════════════════════════════════════════════ */
.voices-section {
  position: relative; overflow: hidden; padding: 100px 5%;
}
.voices-bg {
  position: absolute; inset: 0;
}
.voices-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.voices-section:hover .voices-bg img { transform: scale(1.0); }
.voices-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6,18,38,0.88) 0%,
    rgba(12,30,60,0.82) 40%,
    rgba(6,20,40,0.90) 100%
  );
}
.voices-inner {
  position: relative; z-index: 2;
  max-width: 1160px; margin: 0 auto;
}

/* Heading */
.voices-heading { text-align: center; margin-bottom: 56px; }
.voices-tag {
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-lt); font-weight: 700; margin-bottom: 14px; display: block;
}
.voices-title {
  font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 14px;
}
.voices-title em { font-style: italic; color: var(--gold-lt); }
.voices-lead {
  font-size: 1rem; color: rgba(255,255,255,0.60);
  max-width: 580px; margin: 0 auto; line-height: 1.78;
}

/* ── Principal's card ── */
.principal-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(245,185,66,0.30);
  backdrop-filter: blur(20px);
  border-radius: 20px; padding: 40px 44px;
  margin-bottom: 52px;
  position: relative; overflow: hidden;
}
.principal-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
}
.principal-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--deep); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 50px; margin-bottom: 28px;
}
.principal-body {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start;
}
.principal-portrait {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-lt));
  border: 3px solid rgba(245,185,66,0.50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.principal-icon { font-size: 2.2rem; line-height: 1; }
.principal-content { position: relative; }
.principal-qmark {
  font-family: var(--serif); font-size: 6rem; line-height: 0.6;
  color: rgba(245,185,66,0.25); position: absolute; top: 0; left: -8px;
  font-weight: 900;
}
.principal-text {
  font-family: var(--italic); font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: rgba(255,255,255,0.88); line-height: 1.80;
  padding-left: 20px; margin-bottom: 22px;
}
.principal-sig { display: flex; align-items: center; gap: 14px; padding-left: 20px; }
.principal-sig-line { width: 32px; height: 2px; background: var(--gold-lt); flex-shrink: 0; }
.principal-name { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--gold-lt); }
.principal-title-txt { font-size: 0.72rem; letter-spacing: 0.10em; color: rgba(255,255,255,0.50); margin-top: 2px; text-transform: uppercase; }

/* ── Alumni memory grid ── */
.mem-heading {
  text-align: center; margin-bottom: 28px;
}
.mem-heading span {
  display: inline-block;
  font-size: 0.70rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); font-weight: 600;
  padding: 0 16px; position: relative;
}
.mem-heading span::before, .mem-heading span::after {
  content: ''; position: absolute; top: 50%; width: 60px; height: 1px;
  background: rgba(255,255,255,0.18);
}
.mem-heading span::before { right: 100%; }
.mem-heading span::after  { left: 100%; }

.mem-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.mem-grid--ten {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .mem-grid--ten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .mem-grid--ten { grid-template-columns: 1fr; } }
.mem-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  border-radius: 16px; padding: 28px;
  position: relative; overflow: hidden;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
  opacity: 0; transform: translateY(10px);
}
.mem-card.on {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease, background 0.3s, border-color 0.3s;
}
.mem-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(245,185,66,0.28);
  transform: translateY(-3px);
}
.mem-quote-mark {
  font-family: var(--serif); font-size: 4rem; line-height: 0.6;
  color: var(--gold-lt); opacity: 0.40; font-weight: 900;
  margin-bottom: 10px;
}
.mem-text {
  font-family: var(--italic); font-style: italic;
  font-size: 0.98rem; color: rgba(255,255,255,0.82);
  line-height: 1.80; margin-bottom: 20px;
}
.mem-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08);
}
.mem-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--deep), var(--sky));
  border: 2px solid rgba(245,185,66,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--gold-lt);
}
.mem-name { font-family: var(--serif); font-size: 0.92rem; font-weight: 700; color: rgba(255,255,255,0.90); }
.mem-meta { font-size: 0.72rem; color: rgba(255,255,255,0.50); margin-top: 1px; }
.mem-batch { font-size: 0.68rem; color: var(--gold-lt); font-weight: 600; margin-top: 2px; }

/* Responsive */
@media (max-width: 860px) {
  .principal-body { grid-template-columns: 1fr; }
  .principal-portrait { margin: 0 auto; }
  .mem-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   JUBILEE BANNER — Creative redesign
   ══════════════════════════════════════════════ */
.jubilee {
  position: relative; overflow: hidden;
  padding: 80px 5% 72px;
  background: linear-gradient(160deg, #0D2240 0%, #1C3A5E 40%, #0F2535 100%);
}

/* ── Pure CSS canvas layers ── */
.j-canvas { position: absolute; inset: 0; pointer-events: none; }

/* Giant "75" watermark */
.j-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-size: clamp(20rem, 40vw, 36rem); font-weight: 900;
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  user-select: none; white-space: nowrap;
  letter-spacing: -0.05em;
}

/* CSS mountain silhouette at the bottom */
.j-mountains { position: absolute; bottom: 0; left: 0; right: 0; height: 160px; }
.j-peak {
  position: absolute; bottom: 0;
  border-left: solid transparent;
  border-right: solid transparent;
  border-bottom: solid rgba(255,255,255,0.04);
}
.j-peak1 { left: -2%; border-left-width: 22vw; border-right-width: 22vw; border-bottom-width: 130px; }
.j-peak2 { left: 18%;  border-left-width: 18vw; border-right-width: 18vw; border-bottom-width: 160px; border-bottom-color: rgba(255,255,255,0.055); }
.j-peak3 { right: 10%; border-left-width: 20vw; border-right-width: 20vw; border-bottom-width: 120px; }
.j-peak4 { right: -5%; border-left-width: 16vw; border-right-width: 16vw; border-bottom-width: 100px; border-bottom-color: rgba(255,255,255,0.03); }

/* Floating gold orbs */
.j-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,185,66,0.18) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}
.j-orb1 { width: 400px; height: 400px; top: -100px; left: -80px; animation-delay: 0s; }
.j-orb2 { width: 300px; height: 300px; bottom: -60px; right: -40px; animation-delay: 3s; }
.j-orb3 { width: 200px; height: 200px; top: 30%; right: 20%; animation-delay: 5s; }
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.02); }
}

/* ── Content body ── */
.j-body { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }

/* Year pill */
.j-pill {
  display: inline-block;
  background: rgba(245,185,66,0.15); border: 1px solid rgba(245,185,66,0.40);
  border-radius: 50px; padding: 7px 22px;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 40px;
}

/* Split layout */
.j-split {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 0 48px; margin-bottom: 44px;
}

/* Left: giant 75 */
.j-left { text-align: right; }
.j-big75 {
  font-family: var(--serif); font-size: clamp(8rem, 18vw, 14rem);
  font-weight: 900; line-height: 0.82;
  background: linear-gradient(160deg, #FDD835 0%, var(--gold-lt) 40%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 6px 24px rgba(212,132,10,0.60));
}
.j-years-text {
  font-size: 0.80rem; letter-spacing: 0.40em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-top: 4px;
}

/* Centre divider */
.j-divider-line {
  width: 1.5px; height: 220px;
  background: linear-gradient(to bottom, transparent, rgba(245,185,66,0.50) 30%, rgba(245,185,66,0.50) 70%, transparent);
}

/* Right: school photo */
.j-right { text-align: left; }
.j-school-frame {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.40), 0 0 0 2px rgba(245,185,66,0.30);
  max-width: 380px;
}
.j-school-frame img { width: 100%; height: 210px; object-fit: cover; display: block; }
.j-school-label {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(10px);
  padding: 12px 16px; border-top: 2px solid rgba(245,185,66,0.40);
}
.j-school-label strong { display: block; font-family: var(--serif); font-size: 0.95rem; color: rgba(255,255,255,0.92); font-weight: 700; }
.j-school-label span { font-size: 0.70rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-lt); }

/* Bottom motto */
.j-motto { text-align: center; margin-bottom: 32px; }
.j-motto-rule {
  display: flex; align-items: center; gap: 14px;
  max-width: 560px; margin: 0 auto 18px;
}
.j-motto-rule::before,.j-motto-rule::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.18); }
.j-motto-rule::after { content: '✦'; flex: 0; font-size: 0.55rem; color: var(--gold-lt); }
.j-motto-rule::before { content: '✦'; flex: 0; font-size: 0.55rem; color: var(--gold-lt); }

.j-tagline {
  font-family: var(--italic); font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem); color: rgba(255,255,255,0.80);
  line-height: 1.6; margin-bottom: 10px;
}
.j-tagline em { font-style: normal; color: var(--gold-lt); font-weight: 600; }
.j-sub-tagline {
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.95); letter-spacing: 0.02em;
}
.j-sub-tagline strong { color: var(--gold-lt); font-weight: 700; }

.j-btns { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn-white { background: rgba(255,255,255,0.95); color: var(--deep); padding: 12px 28px; border-radius: 50px; font-size: 0.86rem; font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.2s; display: inline-block; }
.btn-white:hover { background: #fff; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: rgba(255,255,255,0.88); padding: 11px 26px; border-radius: 50px; border: 1.5px solid rgba(255,255,255,0.35); font-size: 0.86rem; font-weight: 600; text-decoration: none; transition: border-color 0.2s, transform 0.2s; display: inline-block; }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.70); transform: translateY(-2px); }

/* Responsive jubilee */
@media (max-width: 768px) {
  .j-split { grid-template-columns: 1fr; gap: 28px 0; }
  .j-divider-line { display: none; }
  .j-left { text-align: center; }
  .j-right { text-align: center; }
  .j-school-frame { max-width: 100%; margin: 0 auto; }
  .j-watermark { font-size: 14rem; }
}

/* ══════════════════════════════════════════════
   EVENTS
   ══════════════════════════════════════════════ */
/* ── Events grids ── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 16px; }
.events-grid--past { grid-template-columns: 1fr; }
.events-grid--rest { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* Featured next-up event — centred single card */
.ev-featured-wrap { display: flex; justify-content: center; }
.ev-featured-wrap .ev-card { width: 100%; max-width: 560px; }

/* Section divider label */
.ev-section-label {
  text-align: center; margin: 32px 0 20px; position: relative;
}
.ev-section-label span {
  display: inline-block; font-size: 0.70rem; letter-spacing: 0.24em;
  text-transform: uppercase; font-weight: 700; color: var(--sky);
  background: var(--sky-lt); padding: 5px 20px; border-radius: 50px;
  border: 1px solid rgba(74,143,204,0.22);
}
.ev-section-label--upcoming span { color: var(--deep); background: rgba(28,58,94,0.07); border-color: rgba(28,58,94,0.15); }

/* Base card */
.ev-card { background: var(--white); border: 1.5px solid rgba(74,143,204,0.14); border-radius: var(--r); padding: 28px; box-shadow: 0 2px 16px rgba(28,58,94,0.06); transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; opacity: 0; transform: translateY(10px); }
.ev-card.on { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s; }
.ev-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--sky), var(--gold-lt)); }
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-blue); }

/* Past card variant */
.ev-card--past { border-color: rgba(212,132,10,0.20); }
.ev-card--past::before { background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }

/* Split layout */
.ev-card--split { padding: 0; overflow: hidden; }
.ev-card--split .ev-past-badge { position: absolute; top: 14px; right: 14px; z-index: 2; }
.ev-split-body { display: flex; flex-direction: row; min-height: 320px; }
.ev-split-text { flex: 0 0 50%; width: 50%; padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.ev-split-text h3 { font-size: 1.15rem; margin-top: 2px; }
.ev-split-text p  { font-size: 0.87rem; line-height: 1.65; color: var(--text-mid); flex: 1; }
.ev-split-photos  { flex: 0 0 50%; width: 50%; position: relative; overflow: hidden; background: #111; min-height: 300px; }

/* Slideshow */
.ev-slideshow { position: relative; width: 100%; height: 100%; min-height: 300px; cursor: pointer; }
.ev-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.ev-slide.active { opacity: 1; }
.ev-slide-counter {
  position: absolute; bottom: 36px; right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 0.72rem;
  padding: 3px 10px; border-radius: 50px;
  z-index: 2;
}
.ev-slide-hint {
  position: absolute; bottom: 10px; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.75); font-size: 0.72rem;
  z-index: 2;
}
.ev-slideshow--empty {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 0.85rem;
  background: #1a1a2e;
}

@media (max-width: 768px) {
  .ev-split-body { flex-direction: column; }
  .ev-split-text { flex: unset; width: 100%; padding: 22px 18px; }
  .ev-split-photos { flex: unset; width: 100%; min-height: 240px; order: -1; }
  .ev-slideshow { min-height: 240px; }
}
.ev-past-badge {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--deep); font-size: 0.60rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px;
}

/* Date pill */
.ev-date { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background: var(--deep); border-radius: 10px; padding: 8px 14px; margin-bottom: 16px; min-width: 56px; }
.ev-date .d { font-family: var(--serif); font-size: 1.65rem; font-weight: 900; color: var(--gold-lt); line-height: 1; }
.ev-date .m { font-size: 0.60rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.60); }

/* Tag */
.ev-tag { display: inline-block; background: var(--sky-lt); border: 1px solid rgba(74,143,204,0.25); border-radius: 50px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); padding: 3px 11px; margin-bottom: 9px; }
.ev-card--past .ev-tag { background: rgba(212,132,10,0.08); border-color: rgba(212,132,10,0.25); color: var(--gold); }

.ev-card h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; color: var(--deep); margin-bottom: 8px; line-height: 1.3; }
.ev-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.72; }
.ev-meta { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 12px; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(74,143,204,0.10); font-size: 0.75rem; color: var(--text-muted); }

/* Photo thumbnails strip */
.ev-thumbs {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  gap: 6px; margin-top: 14px; -ms-flex-wrap: wrap; flex-wrap: wrap;
}
.ev-thumbs img {
  width: 64px; height: 64px; -o-object-fit: cover; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  border: 2px solid rgba(212,132,10,0.20);
  -webkit-transition: transform 0.2s, border-color 0.2s;
  transition: transform 0.2s, border-color 0.2s;
}
.ev-thumbs img:hover { -webkit-transform: scale(1.06); transform: scale(1.06); border-color: var(--gold-lt); }
.ev-more-count {
  width: 64px; height: 64px; border-radius: 8px;
  background: var(--deep); color: var(--gold-lt);
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; font-weight: 700; cursor: pointer;
}
.ev-upcoming-invite {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 180px;
  margin-bottom: 14px;
  cursor: pointer;
  display: block;
  transition: transform 0.3s;
}
.ev-upcoming-invite:hover { transform: scale(1.02); }

.ev-invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background 0.2s, color 0.2s;
}
.ev-invite-btn:hover { background: var(--gold); color: #fff; }

/* Invite image modal */
.invite-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.invite-modal.open { display: flex; }
.invite-modal-inner {
  position: relative;
  max-width: 540px;
  width: 100%;
}
.invite-modal-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.invite-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #333;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 10;
  transition: background 0.2s;
}
.invite-close:hover { background: #f0f0f0; }

.ev-gallery-btn {
  display: block; width: 100%; margin-top: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--deep); border: none; border-radius: 10px;
  padding: 10px 0; font-size: 0.80rem; font-weight: 700;
  letter-spacing: 0.08em; cursor: pointer;
  -webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
  transition: opacity 0.2s, transform 0.2s;
}
.ev-gallery-btn:hover { opacity: 0.88; -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.ev-no-photos {
  margin-top: 14px; padding: 10px; border-radius: 10px;
  background: rgba(74,143,204,0.06); border: 1px dashed rgba(74,143,204,0.20);
  font-size: 0.75rem; color: var(--text-muted); text-align: center;
}

/* ══════════════════════════════════════════════
   DONATE MODAL
   ══════════════════════════════════════════════ */
.donate-modal {
  display: none; position: fixed; inset: 0; z-index: 9500;
  background: rgba(6,14,30,0.80);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
  padding: 20px;
}
.donate-modal.open { display: -webkit-box; display: -ms-flexbox; display: flex; }
.donate-modal-inner {
  background: var(--white); border-radius: 24px;
  padding: 36px 32px 28px; width: 100%; max-width: 480px;
  position: relative; max-height: 90vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 80px rgba(0,0,0,0.30);
}
.dm-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 1.5rem;
  color: var(--text-muted); cursor: pointer; line-height: 1; padding: 4px 8px;
  -webkit-transition: color 0.2s; transition: color 0.2s;
}
.dm-close:hover { color: var(--deep); }

/* Header */
.dm-header { text-align: center; margin-bottom: 24px; }
.dm-logo { width: 60px; height: 60px; border-radius: 50%; -o-object-fit: cover; object-fit: cover; margin: 0 auto 12px; border: 2px solid var(--gold-lt); }
.dm-tag { display: inline-block; background: rgba(212,132,10,0.10); border: 1px solid rgba(212,132,10,0.30); border-radius: 50px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); padding: 3px 14px; margin-bottom: 10px; }
.dm-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; color: var(--deep); line-height: 1.2; margin-bottom: 8px; }
.dm-sub { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; max-width: 340px; margin: 0 auto; }

/* Bank details card */
.dm-card {
  background: var(--off-white); border-radius: 16px;
  padding: 20px; margin-bottom: 18px;
  border: 1px solid var(--border);
}
.dm-card-label {
  font-size: 0.65rem; letter-spacing: 0.20em; text-transform: uppercase;
  font-weight: 800; color: var(--sky); margin-bottom: 14px;
}
.dm-row {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 8px; padding: 9px 0;
  border-bottom: 1px solid rgba(74,143,204,0.10);
}
.dm-row:last-child { border-bottom: none; }
.dm-label {
  font-size: 0.70rem; color: var(--text-muted); font-weight: 600;
  min-width: 110px; -ms-flex-negative: 0; flex-shrink: 0;
}
.dm-value {
  font-size: 0.82rem; color: var(--deep); font-weight: 700;
  -webkit-box-flex: 1; -ms-flex: 1; flex: 1; word-break: break-all;
}
.dm-value--mono { font-family: 'Courier New', monospace; font-size: 0.88rem; letter-spacing: 0.06em; color: var(--deep); }
.dm-copy {
  background: var(--deep); color: #fff; border: none; border-radius: 6px;
  font-size: 0.62rem; font-weight: 700; padding: 4px 10px; cursor: pointer;
  -ms-flex-negative: 0; flex-shrink: 0; letter-spacing: 0.06em;
  -webkit-transition: background 0.2s; transition: background 0.2s;
}
.dm-copy:hover { background: var(--sky); }

/* Note */
.dm-note { font-size: 0.76rem; color: var(--text-muted); line-height: 1.65; background: rgba(74,143,204,0.06); border-radius: 10px; padding: 12px 14px; border-left: 3px solid var(--sky); margin-bottom: 16px; }
.dm-note strong { color: var(--deep); }

/* Footer */
.dm-footer { text-align: center; font-size: 0.62rem; letter-spacing: 0.20em; text-transform: uppercase; color: var(--text-muted); }

/* Copied toast */
.dm-copied {
  position: absolute; bottom: 24px; left: 50%; -webkit-transform: translateX(-50%) translateY(10px); transform: translateX(-50%) translateY(10px);
  background: var(--deep); color: var(--gold-lt); font-size: 0.78rem; font-weight: 700;
  padding: 8px 20px; border-radius: 50px; pointer-events: none;
  opacity: 0; -webkit-transition: opacity 0.2s, -webkit-transform 0.2s; transition: opacity 0.2s, transform 0.2s;
}
.dm-copied.show { opacity: 1; -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  .donate-modal-inner { padding: 28px 18px 24px; border-radius: 18px; }
  .dm-label { min-width: 88px; font-size: 0.65rem; }
  .dm-title { font-size: 1.25rem; }
}

/* ══════════════════════════════════════════════
   GALLERY LIGHTBOX MODAL
   ══════════════════════════════════════════════ */
.gallery-modal {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(6,14,30,0.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.gallery-modal.open { display: -webkit-box; display: -ms-flexbox; display: flex; }
.gallery-modal-inner {
  position: relative; width: 100%; max-width: 900px;
  margin: 0 auto; padding: 20px;
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal;
  -ms-flex-direction: column; flex-direction: column;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 12px;
}
.gm-close {
  position: absolute; top: 0; right: 20px;
  background: none; border: none; color: rgba(255,255,255,0.70);
  font-size: 2rem; cursor: pointer; line-height: 1; padding: 4px 10px;
  -webkit-transition: color 0.2s; transition: color 0.2s;
}
.gm-close:hover { color: var(--gold-lt); }
.gm-title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  color: var(--gold-lt); letter-spacing: 0.06em; text-align: center;
  padding-top: 8px;
}
.gm-main {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 12px; width: 100%;
}
.gm-img {
  -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
  max-height: 60vh; width: 100%;
  -o-object-fit: contain; object-fit: contain;
  border-radius: 12px;
}
.gm-arrow {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 2rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; -ms-flex-negative: 0; flex-shrink: 0;
  -webkit-transition: background 0.2s; transition: background 0.2s;
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.gm-arrow:hover { background: rgba(245,185,66,0.25); }
.gm-counter { font-size: 0.75rem; color: rgba(255,255,255,0.45); letter-spacing: 0.12em; }
.gm-strip {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  gap: 8px; overflow-x: auto; padding: 4px 0;
  max-width: 100%; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gm-strip::-webkit-scrollbar { display: none; }
.gm-thumb {
  width: 56px; height: 56px; -ms-flex-negative: 0; flex-shrink: 0;
  -o-object-fit: cover; object-fit: cover; border-radius: 8px;
  cursor: pointer; opacity: 0.55; border: 2px solid transparent;
  -webkit-transition: opacity 0.2s, border-color 0.2s;
  transition: opacity 0.2s, border-color 0.2s;
}
.gm-thumb.active, .gm-thumb:hover { opacity: 1; border-color: var(--gold-lt); }

@media (max-width: 580px) {
  .gm-img { max-height: 50vh; }
  .gm-arrow { width: 36px; height: 36px; font-size: 1.4rem; }
  .gallery-modal-inner { padding: 16px 10px; }
}

/* ══════════════════════════════════════════════
   HISTORY TIMELINE
   ══════════════════════════════════════════════ */
.tl { position: relative; max-width: 820px; margin: 0 auto; }
.tl::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, var(--sky) 6%, var(--gold-lt) 50%, var(--sky) 94%, transparent); transform: translateX(-50%); }
.tl-row { display: grid; grid-template-columns: 1fr 44px 1fr; margin-bottom: 48px; opacity: 0; }
.tl-row[data-dir="left"]  { -webkit-transform: translateX(-40px); transform: translateX(-40px); }
.tl-row[data-dir="right"] { -webkit-transform: translateX(40px);  transform: translateX(40px); }
.tl-row.on { opacity: 1; -webkit-transform: translate(0); transform: translate(0); -webkit-transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), -webkit-transform 0.8s cubic-bezier(0.22,1,0.36,1); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.tl-row:nth-child(odd)  .tl-box { grid-column: 1; padding-right: 34px; text-align: right; }
.tl-row:nth-child(even) .tl-box { grid-column: 3; padding-left: 34px; text-align: left; }
.tl-row .tl-dot-col { grid-column: 2; display: flex; justify-content: center; padding-top: 10px; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold-lt); border: 3px solid var(--white); box-shadow: 0 0 0 3px rgba(74,143,204,0.28); }
.tl-box { background: var(--white); border: 1.5px solid rgba(74,143,204,0.14); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-blue); transition: transform 0.25s, box-shadow 0.25s; }
.tl-box:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(28,58,94,0.14); }
.tl-yr { font-family: var(--serif); font-size: 1.8rem; font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 5px; }
.tl-ev { font-family: var(--serif); font-size: 0.98rem; font-weight: 700; color: var(--deep); margin-bottom: 5px; }
.tl-p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.70; }

/* ══════════════════════════════════════════════
   MEMBERS
   ══════════════════════════════════════════════ */
/* ── Members grids ── */
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 18px; margin-bottom: 36px; }
.m-grid--patrons  { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin-left: auto; margin-right: auto; }
.m-grid--advisors { grid-template-columns: repeat(2, 1fr); max-width: 480px; margin-left: auto; margin-right: auto; }
.m-grid--exec     { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* Section label divider */
.m-section-label {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 700; color: var(--sky); text-align: center;
  margin: 32px 0 16px; position: relative;
}
.m-section-label::before, .m-section-label::after {
  content: ''; position: absolute; top: 50%; width: 28%; height: 1px;
  background: var(--border);
}
.m-section-label::before { right: calc(50% + 90px); }
.m-section-label::after  { left:  calc(50% + 90px); }

/* Base card */
.m-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r); padding: 26px 16px; text-align: center; box-shadow: 0 2px 14px rgba(28,58,94,0.06); transition: transform 0.3s, box-shadow 0.3s; opacity: 0; transform: translateY(10px); }
.m-card.on { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s; }
.m-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-blue); }
.m-card h4 { font-family: var(--serif); font-size: 0.96rem; font-weight: 700; color: var(--deep); margin-bottom: 4px; line-height: 1.3; }

/* Avatar */
.m-av { width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(135deg, var(--deep), var(--sky)); border: 3px solid var(--sky-lt); margin: 0 auto 13px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: #fff; }

/* Role tag */
.m-role { font-size: 0.68rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--sky); font-weight: 700; margin-bottom: 3px; }
.m-batch { font-size: 0.75rem; color: var(--text-muted); }

/* Patron variant — gold */
.m-card--patron { border-color: rgba(212,132,10,0.30); background: linear-gradient(160deg, #fffdf5, var(--white)); }
.m-card--patron:hover { box-shadow: var(--shadow-gold); }
.m-av--patron { background: linear-gradient(135deg, var(--gold), var(--gold-lt)); border-color: rgba(212,132,10,0.25); font-size: 1.2rem; }
.m-av--photo { background: none; border: 3px solid var(--gold-lt); overflow: hidden; }
.m-av--photo img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; -o-object-position: center top; object-position: center top; border-radius: 50%; }
.m-role--patron { color: var(--gold); }
.m-depts {
  list-style: none; margin-top: 12px; padding: 10px 0 0;
  border-top: 1px dashed rgba(212,132,10,0.25);
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal;
  -ms-flex-direction: column; flex-direction: column; gap: 6px;
}
.m-depts li {
  font-size: 0.72rem; color: var(--text-mid); line-height: 1.45;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(212,132,10,0.07);
  border-left: 2.5px solid var(--gold-lt);
  text-align: left;
}

/* Advisor variant — forest green */
.m-card--advisor { border-color: rgba(44,107,74,0.22); }
.m-av--advisor { background: linear-gradient(135deg, var(--forest), #3d8f62); border-color: rgba(44,107,74,0.20); }

/* Executive variant — compact */
.m-card--exec { padding: 18px 12px; }
.m-card--exec h4 { font-size: 0.85rem; }
.m-av--exec { width: 54px; height: 54px; font-size: 1.1rem; }

/* Footer note */
.m-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; font-style: italic; }

/* ══════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════ */
.gal-hero { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 340px; gap: 12px; margin-bottom: 12px; }
.gal-hero-right { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gitem { border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; opacity: 0; transform: translateY(8px); }
.gitem.on { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease, transform 0.8s ease; }
.gitem img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.22,1,0.36,1); transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.gitem:hover img { -webkit-transform: scale(1.08); transform: scale(1.08); }
.gitem-cap { -webkit-transition: opacity 0.4s, -webkit-transform 0.4s; transition: opacity 0.4s, transform 0.4s; -webkit-transform: translateY(8px); transform: translateY(8px); }
.gitem:hover .gitem-cap { -webkit-transform: translateY(0); transform: translateY(0); }
.gitem-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 16px 14px; background: linear-gradient(to top, rgba(28,58,94,0.72), transparent); color: #fff; font-family: var(--serif); font-size: 0.92rem; font-weight: 600; opacity: 0; transition: opacity 0.3s; }
.gitem:hover .gitem-cap { opacity: 1; }
.gal-logo-tile { border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--deep), #1A4A7A); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.gal-logo-tile img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-lt); margin-bottom: 12px; }
.gal-logo-tile span { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.90); }
.gal-logo-tile small { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-lt); margin-top: 3px; display: block; }
.gal-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.gal-row .gitem { height: 180px; }

/* ── School Gallery Grid ── */
.sg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 10px;
  margin-top: 32px;
}
/* Make items 0,3,6 taller (portrait feel) */
.sg-item { position: relative; overflow: hidden; border-radius: 12px; cursor: pointer; background: #111; }
.sg-item--0, .sg-item--3, .sg-item--6 { grid-row: span 2; }
.sg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); min-height: 160px; }
.sg-item:hover img { transform: scale(1.07); }
.sg-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(to top, rgba(10,20,40,0.80), transparent);
  color: #fff; font-size: 0.78rem; font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.sg-item:hover .sg-cap { opacity: 1; transform: translateY(0); }
.sg-zoom {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  opacity: 0; transition: opacity 0.3s;
}
.sg-item:hover .sg-zoom { opacity: 1; }

/* School gallery lightbox */
.sg-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(5,10,20,0.96);
  z-index: 2000; align-items: center; justify-content: center;
  padding: 16px;
}
.sg-modal.open { display: flex; }
.sg-modal-inner {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 900px; gap: 12px;
}
.sg-close {
  position: fixed; top: 16px; right: 20px;
  background: rgba(255,255,255,0.12); color: #fff;
  border: none; border-radius: 50%; width: 40px; height: 40px;
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.sg-close:hover { background: rgba(201,168,76,0.5); }
.sg-modal-title { color: rgba(255,255,255,0.7); font-size: 0.85rem; letter-spacing: 0.08em; }
.sg-modal-main { display: flex; align-items: center; gap: 12px; width: 100%; }
.sg-modal-img { flex: 1; max-height: 70vh; object-fit: contain; border-radius: 8px; display: block; }
.sg-arrow {
  background: rgba(255,255,255,0.10); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s;
}
.sg-arrow:hover { background: rgba(201,168,76,0.35); }
.sg-modal-counter { color: rgba(255,255,255,0.4); font-size: 0.75rem; letter-spacing: 0.12em; }
.sg-modal-strip {
  display: flex; gap: 8px; overflow-x: auto; width: 100%; padding: 4px 0;
  scrollbar-width: none;
}
.sg-modal-strip::-webkit-scrollbar { display: none; }
.sg-thumb {
  width: 60px; height: 60px; object-fit: cover; border-radius: 6px;
  opacity: 0.45; cursor: pointer; flex-shrink: 0;
  border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s;
}
.sg-thumb.active, .sg-thumb:hover { opacity: 1; border-color: var(--gold); }

@media (max-width: 768px) {
  .sg-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sg-item--0, .sg-item--3, .sg-item--6 { grid-row: span 1; }
  .sg-modal-main { gap: 6px; }
  .sg-arrow { width: 36px; height: 36px; font-size: 1.4rem; }
  .sg-modal-img { max-height: 55vh; }
}
@media (max-width: 480px) {
  .sg-grid { grid-template-columns: repeat(2, 1fr); }
  .sg-cap { opacity: 1; transform: none; }
  .sg-zoom { display: none; }
}

/* ══════════════════════════════════════════════
   QUOTE
   ══════════════════════════════════════════════ */
.quote-sec { background: var(--gold-pale); padding: 70px 5%; text-align: center; border-top: 2px solid rgba(212,132,10,0.14); border-bottom: 2px solid rgba(212,132,10,0.14); }
.qm { font-family: var(--serif); font-size: 5.5rem; line-height: 0.5; color: var(--gold-lt); display: block; margin-bottom: 24px; padding-top: 20px; }
blockquote { font-family: var(--italic); font-style: italic; font-size: clamp(1.25rem,2.5vw,1.85rem); color: var(--deep); max-width: 760px; margin: 0 auto 16px; line-height: 1.55; }
blockquote strong { color: var(--gold); font-style: normal; }
.q-attr { font-size: 0.73rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-top: 16px; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer { background: var(--deep); padding: 56px 5% 26px; }
.f-inner { max-width: 1160px; margin: 0 auto; }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.f-brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-lt); margin-bottom: 12px; }
.f-brand h3 { font-family: var(--serif); font-size: 1.05rem; color: rgba(255,255,255,0.92); margin-bottom: 8px; }
.f-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.48); line-height: 1.72; max-width: 260px; }
.f-social { display: flex; gap: 9px; margin-top: 16px; }
.f-social a { width: 33px; height: 33px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.50); font-size: 0.82rem; text-decoration: none; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.f-social a:hover { border-color: var(--gold-lt); color: var(--gold-lt); transform: translateY(-2px); }
.f-col h4 { font-size: 0.68rem; letter-spacing: 0.20em; text-transform: uppercase; color: var(--gold-lt); font-weight: 700; margin-bottom: 14px; }
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 8px; }
.f-col a { color: rgba(255,255,255,0.48); text-decoration: none; font-size: 0.84rem; transition: color 0.2s; }
.f-col a:hover { color: rgba(255,255,255,0.88); }
.f-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.10); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.f-bottom p { font-size: 0.74rem; color: rgba(255,255,255,0.38); }
.f-bottom .g { color: var(--gold-lt); }

/* ══════════════════════════════════════════════
   RESPONSIVE — Desktop · Tablet · Mobile
   ══════════════════════════════════════════════ */

/* ── Large desktop: show all links comfortably ── */
@media (min-width: 1200px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 14px; font-size: 0.78rem; }
}

/* ── Tablet landscape & small desktop (900–1199px) ── */
@media (max-width: 1199px) and (min-width: 901px) {
  .nav-links a { padding: 8px 9px; font-size: 0.72rem; }
}

/* ── Tablet portrait & below: hamburger ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: -webkit-box; display: -ms-flexbox; display: flex; }

  /* Sections */
  .sec { padding: 64px 5%; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo img { height: 320px; }

  /* Timeline: single column */
  .tl::before { left: 18px; }
  .tl-row { grid-template-columns: 36px 1fr; gap: 0 12px; }
  .tl-row:nth-child(odd) .tl-box,
  .tl-row:nth-child(even) .tl-box { grid-column: 2; padding: 18px; text-align: left; }
  .tl-row .tl-dot-col { grid-column: 1; }

  /* Gallery */
  .gal-hero { grid-template-columns: 1fr; grid-template-rows: 260px auto; }
  .gal-hero-right { grid-template-columns: 1fr 1fr; grid-template-rows: 160px; }

  /* Footer */
  .f-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Members */
  .m-grid { grid-template-columns: repeat(3, 1fr); }

  /* Voices */
  .mem-grid { grid-template-columns: 1fr; }
  .principal-body { grid-template-columns: 1fr; }
  .principal-portrait { margin: 0 auto; }
}

/* ── Mobile landscape + small tablet (581–768px) ── */
@media (max-width: 768px) {
  .hero-75 { font-size: clamp(4.5rem, 14vw, 6rem); }
  .hero-name { font-size: clamp(1.2rem, 4vw, 1.8rem); }
  .ev-grid { grid-template-columns: 1fr; }
  .m-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { padding: 32px 4%; gap: 0; }
  .stat { min-width: 100px; padding: 10px; }
  .stat-n { font-size: 2rem; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .principal-card { padding: 28px 20px; }
  .principal-text { font-size: 1rem; }
}

/* ── Mobile portrait (≤580px) ── */
@media (max-width: 580px) {
  .nav { height: 60px; padding: 0 4%; }
  .nav-brand-text { font-size: 0.88rem; }
  .nav-brand-text small { display: none; }

  .sec { padding: 52px 4%; }

  .hero-75 { font-size: clamp(4rem, 16vw, 5.5rem); }
  .hero-btns { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 10px; }
  .hero-btns a { width: 100%; max-width: 280px; text-align: center; }

  .pillars { grid-template-columns: 1fr; }
  .about-photo img { height: 240px; }

  .stats { -ms-flex-wrap: wrap; flex-wrap: wrap; }
  .stat { min-width: 45%; -webkit-box-flex: 0; -ms-flex: 0 0 45%; flex: 0 0 45%; padding: 14px 8px; }
  .stat+.stat::before { display: none; }

  .m-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .gal-row { grid-template-columns: 1fr; }
  .gal-hero-right { grid-template-columns: 1fr; grid-template-rows: repeat(2, 160px); }

  .f-grid { grid-template-columns: 1fr; }
  .f-bottom { text-align: center; }

  .mem-grid { grid-template-columns: 1fr; }
  .voices-section { padding: 64px 4%; }
  .principal-card { padding: 22px 16px; }

  /* Timeline stays single column */
  .tl-yr { font-size: 1.4rem; }
  .tl-ev { font-size: 0.95rem; }

  .j-big75 { font-size: clamp(5rem, 20vw, 8rem); }
  .j-split { grid-template-columns: 1fr; }
  .j-divider-line { display: none; }
  .j-school-frame { margin: 0 auto; max-width: 100%; }
  .j-left { text-align: center; }
}
