/* ============================================================================
   The Global Public School — Premium Theme
   ========================================================================= */

:root {
  --navy-900: #2B3A4A;
  --navy-800: #3A4D60;
  --navy-700: #4C6178;
  --gold-500: #e3ae09;
  --gold-600: #9E4423;
  --ink-900: #1E2530;
  --ink-600: #4A5568;
  --ink-400: #8592A6;
  --bg-soft: #F7F2ED;
  --bg-card: #FFFFFF;
  --border-soft: #E8DFD5;
  --success: #1E9E6B;
  --danger: #D64545;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(43, 58, 74, 0.06);
  --shadow-md: 0 10px 30px rgba(43, 58, 74, 0.10);
  --shadow-lg: 0 20px 50px rgba(43, 58, 74, 0.16);
  --container: 1180px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--ink-900);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; line-height: 1.25; color: var(--navy-900); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--gold-600); background: rgba(193,85,44,0.12);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
}
/* Visually hidden but readable by screen readers/crawlers — standard WAI technique. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--ink-600); font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 13px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900); color: #D7DCE1; font-size: 13.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; flex-wrap: wrap; gap: 6px; }
.topbar-links { display: flex; gap: 22px; align-items: center; }
.topbar-links a { display: flex; align-items: center; gap: 6px; color: #D7DCE1; transition: color var(--transition); }
.topbar-links a:hover { color: var(--gold-500); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border-radius: 50%; font-size: 12px; color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.topbar-social a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 1px 0 var(--border-soft);
  transition: box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text .name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy-900); }
.brand-text .trust-line { font-size: 11px; font-weight: 500; color: var(--ink-600); }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--ink-900);
  border-radius: 999px; transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-soft); color: var(--navy-800); }
.nav-cta { margin-left: 10px; }
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { background: var(--navy-800); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-soft);
  background: #fff; align-items: center; justify-content: center; font-size: 20px; color: var(--navy-900); cursor: pointer;
}

/* ---------- Announcement ticker ---------- */
.ticker-bar { background: var(--gold-500); color: var(--navy-900); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; height: 42px; }
.ticker-label {
  flex: none; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  background: var(--navy-900); color: #fff; height: 42px; padding: 0 18px; text-transform: uppercase; letter-spacing: 0.5px;
}
.ticker-track-wrap { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-track {
  display: inline-flex; gap: 48px; padding-left: 100%;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-track a { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }

/* ---------- Hero slider ---------- */
.hero { position: relative; color: #fff; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease;
  background-size: cover; background-position: center;
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(43,58,74,0.50) 0%, rgba(43,58,74,0.25) 45%, rgba(43,58,74,0.05) 100%);
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 100px 0; }
.hero-content h1, .hero-content p, .hero-content .eyebrow { text-shadow: 0 2px 6px rgba(0,0,0,0.65); }
.hero-content .eyebrow { background: rgba(193,85,44,0.18); color: var(--gold-500); }
.hero-content h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 18px; }
.hero-content p { font-size: 17px; color: #D9DEE3; margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-dots { position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.hero-dots button.active { background: var(--gold-500); transform: scale(1.25); }

.hero-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
}
.hero-arrow:hover { background: rgba(255,255,255,0.28); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--navy-900); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.stat-item { text-align: center; color: #fff; }
.stat-item .num { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 700; color: var(--gold-500); }
.stat-item .label { font-size: 13.5px; color: #D7DCE1; margin-top: 4px; }

/* ---------- About snippet ---------- */
.about-snippet { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-media .badge-card {
  position: absolute; bottom: -22px; right: -22px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 18px 22px; display: flex; align-items: center; gap: 14px; max-width: 220px;
}
.badge-card .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-500); display: flex; align-items: center; justify-content: center; color: var(--navy-900); font-size: 18px; flex: none; }
.badge-card .txt strong { display: block; font-size: 15px; color: var(--navy-900); }
.badge-card .txt span { font-size: 12.5px; color: var(--ink-600); }
.about-copy h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.about-copy p { color: var(--ink-600); margin-bottom: 16px; }
.about-points { display: grid; gap: 12px; margin: 22px 0 28px; }
.about-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-900); font-weight: 500; font-size: 15px; }
.about-points i { color: var(--success); margin-top: 3px; }

/* ---------- Key highlights ---------- */
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.highlight-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 32px 26px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.highlight-icon {
  width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-500); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.highlight-card h3 { font-size: 18px; margin-bottom: 8px; }
.highlight-card p { color: var(--ink-600); font-size: 14.5px; }
.highlight-card:has(.highlight-more) { position: relative; }
.highlight-more { border: 0; background: transparent; color: var(--navy-900); font: inherit; font-size: 14px; font-weight: 600; margin-top: 18px; cursor: pointer; }
.highlight-more::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-md); }
.highlight-more:focus-visible { outline: none; }
.highlight-more:focus-visible::after { outline: 3px solid var(--gold-500); outline-offset: 4px; }
.highlight-more i { margin-left: 6px; }
.highlight-dialog { margin: auto; width: min(560px, calc(100% - 32px)); max-height: 85vh; overflow-y: auto; border: 0; border-radius: var(--radius-lg); padding: 36px 28px; color: var(--ink-900); box-shadow: var(--shadow-lg); }
.highlight-dialog::backdrop { background: rgba(30, 37, 48, 0.65); }
.highlight-dialog h2 { padding-right: 24px; margin: 10px 0 18px; font-size: clamp(22px, 5vw, 28px); }
.highlight-dialog p { color: var(--ink-600); margin-bottom: 24px; }
.highlight-dialog-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--navy-900); font-size: 28px; cursor: pointer; }
body.highlight-dialog-open { overflow: hidden; }

/* ---------- Video section ---------- */
.video-section { position: relative; }
.video-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9; background: var(--navy-900);
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Programs ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.program-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.program-media { aspect-ratio: 4/3; overflow: hidden; }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.program-card:hover .program-media img { transform: scale(1.06); }
.program-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.program-body .p-icon { color: var(--gold-600); font-size: 20px; margin-bottom: 10px; }
.program-body h3 { font-size: 18px; margin-bottom: 8px; }
.program-body p { color: var(--ink-600); font-size: 14.5px; flex: 1; }

/* ---------- Faculty ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.faculty-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.faculty-photo { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-soft); }
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.faculty-card:hover .faculty-photo img { transform: scale(1.06); }
.faculty-body { padding: 18px 20px 22px; }
.faculty-type-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.faculty-type-badge.is-teaching { background: rgba(30, 158, 107, 0.15); color: var(--success); }
.faculty-type-badge.is-admin { background: rgba(227, 174, 9, 0.18); color: #8A6A05; }
.faculty-body h3 { font-size: 16.5px; margin-bottom: 4px; }
.faculty-designation { color: var(--gold-600); font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.faculty-qualification { color: var(--ink-600); font-size: 13px; }

/* ---------- Gallery preview ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px;
  background: rgba(43,58,74,0); opacity: 0; transition: background var(--transition), opacity var(--transition);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { background: rgba(43,58,74,0.55); opacity: 1; }
.gallery-more { text-align: center; margin-top: 30px; }

/* ---------- Gallery page filters (gallery.php) ---------- */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; justify-content: center;
}
.gallery-filter-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 22px; border: 1.5px solid var(--border-soft); border-radius: 999px;
  background: #fff; color: var(--ink-600); font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.gallery-filter-btn:hover { border-color: var(--navy-800); color: var(--navy-900); }
.gallery-filter-btn.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-count {
  font-size: 11px; font-weight: 700; background: rgba(0,0,0,0.10);
  padding: 1px 7px; border-radius: 999px; min-width: 22px; text-align: center;
}
.gallery-filter-btn.active .filter-count { background: rgba(255,255,255,0.20); }
.gallery-empty {
  text-align: center; padding: 80px 20px; color: var(--ink-400);
}
.gallery-empty i { font-size: 42px; margin-bottom: 14px; display: block; }
.gallery-empty p { font-size: 15px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6,20,32,0.92); z-index: 999; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 24px; right: 30px; width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 20px; cursor: pointer;
}

/* ---------- Videos page (videos.php) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover, .video-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-md); outline: none; }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-900); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-badge {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(30, 37, 48, 0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: background var(--transition), transform var(--transition);
}
.video-card:hover .play-badge { background: var(--gold-600); transform: scale(1.08); }
.video-card-body { padding: 18px 20px 22px; }
.video-card-body h3 { font-size: 17px; line-height: 1.4; margin-bottom: 6px; }
.video-card-body p { color: var(--ink-600); font-size: 13.5px; line-height: 1.6; }

.video-lightbox {
  position: fixed; inset: 0; background: rgba(6,20,32,0.94); z-index: 999; display: none;
  align-items: center; justify-content: center; padding: 30px;
}
.video-lightbox.open { display: flex; }
.video-lightbox-inner { width: 100%; max-width: 900px; }
.video-lightbox-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.video-lightbox-info { padding: 18px 4px 0; color: #fff; }
.video-lightbox-info h3 { font-size: 18px; margin-bottom: 6px; }
.video-lightbox-info p { color: #C3CBD3; font-size: 14px; line-height: 1.7; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius-lg);
  padding: 50px 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.cta-banner p { color: #D7DCE1; }

/* ---------- Footer ---------- */
.site-footer { background: #1A222B; color: #D7DCE1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col p, .footer-col li { font-size: 14.5px; color: #AAB4BC; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold-500); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand span { color: #fff; font-weight: 700; font-family: 'Poppins', sans-serif; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact i { color: var(--gold-500); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex;
  align-items: center; justify-content: center; transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 13.5px; color: #838F98; }
.footer-credit { margin-top: 6px; font-size: 11.5px; color: #6B7681; }
.footer-credit a { color: #6B7681; text-decoration: underline; text-decoration-color: rgba(107,118,129,0.5); transition: color var(--transition); }
.footer-credit a:hover { color: var(--gold-500); }
@media (max-width: 640px) {
  .footer-bottom { padding-left: 24px; padding-right: 24px; }
  .footer-credit { padding-bottom: 46px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-500); border: none; display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-md); cursor: pointer; z-index: 90; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Floating contact widget ---------- */
.float-contact {
  position: fixed; left: 18px; bottom: 24px; z-index: 95;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 1; visibility: visible; transition: opacity var(--transition), visibility var(--transition);
}
.float-contact.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.float-contact-btn {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold-600); color: #fff;
  border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 17px;
  box-shadow: var(--shadow-lg); transition: background var(--transition), transform var(--transition);
}
.float-contact-btn:hover { background: var(--navy-900); transform: translateX(4px); }
.float-contact-btn.wa:hover { background: #25D366; }
@media (max-width: 640px) {
  .float-contact { left: 12px; bottom: 16px; gap: 8px; }
  .float-contact-btn { width: 44px; height: 44px; font-size: 16px; }
}

/* ---------- Inner page header ---------- */
.page-header {
  position: relative; color: #fff; overflow: hidden;
  padding: 130px 0 56px; background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
}
.page-header .eyebrow { background: rgba(193,85,44,0.18); color: var(--gold-500); }
.page-header h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin: 10px 0 8px; }
.page-header p { color: #D9DEE3; font-size: 15.5px; max-width: 560px; }

/* ---------- Contact / Admission forms ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }

.contact-info-card {
  background: var(--navy-900); color: #fff; border-radius: var(--radius-lg);
  padding: 36px 30px; box-shadow: var(--shadow-lg);
}
.contact-info-card h3 { color: #fff; margin-bottom: 6px; }
.contact-info-card > p { color: #C9D1D9; font-size: 14.5px; margin-bottom: 26px; }
.contact-info-list { list-style: none; margin-bottom: 26px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-list .icon {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-500);
}
.contact-info-list strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-info-list span, .contact-info-list a { color: #C9D1D9; font-size: 14px; }
.contact-info-list a:hover { color: var(--gold-500); }
.contact-info-card .footer-social a { background: rgba(255,255,255,0.1); }

.form-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.form-card h3 { margin-bottom: 4px; }
.form-card > p.form-sub { color: var(--ink-600); font-size: 14.5px; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-600); margin-bottom: 6px; }
.form-group .req { color: var(--gold-600); }

.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink-900); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(43,58,74,0.12); }
textarea.form-control { resize: vertical; min-height: 110px; }

.field-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; }

.form-alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 20px; line-height: 1.5;
}
.form-alert.error { background: #FDEDED; border: 1px solid #F3C6C6; color: #A32E2E; }
.form-alert.success { background: #EAF7F0; border: 1px solid #BEE6CF; color: #1E7A4C; }
.form-alert i { margin-top: 2px; }

.admission-section .form-card { max-width: 780px; margin: 0 auto; }

/* ---------- Facilities page ---------- */
.facility-jumpnav {
  background: #fff; border-bottom: 1px solid var(--border-soft);
  position: sticky; top: var(--header-h, 80px); z-index: 40;
}
.facility-jumpnav-inner { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 24px; overflow-x: auto; }
.facility-jumpnav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-600); white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.facility-jumpnav a:hover { background: var(--bg-soft); color: var(--navy-900); }
.facility-jumpnav a i { color: var(--gold-600); transition: color var(--transition); }
.facility-jumpnav a.active { background: var(--navy-900); color: #fff; }
.facility-jumpnav a.active i { color: var(--gold-500); }

.facility-block { scroll-margin-top: calc(var(--header-h, 80px) + var(--jumpnav-h, 56px) + 18px); }

/* Alternating two-column layout per facility */
.facility-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.facility-layout.reverse .facility-visual { order: 2; }
.facility-layout.reverse .facility-copy { order: 1; }
.facility-layout + .facility-gallery { margin-top: 48px; }

.facility-visual { position: relative; }

/* Cover panel — looks intentional and premium even with no real photo yet */
.facility-cover {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.facility-cover.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.facility-cover.is-placeholder {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  display: flex; align-items: center; justify-content: center;
}
.facility-cover-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px),
    radial-gradient(circle at 82% 18%, rgba(227,174,9,0.22) 0%, transparent 46%);
}
.facility-cover-icon {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500); font-size: 40px;
}
.facility-index-badge {
  position: absolute; bottom: -20px; left: 28px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 12px 18px; display: flex; align-items: baseline; gap: 4px;
  border-left: 3px solid var(--gold-500);
}
.facility-index-badge .num { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; color: var(--navy-900); }
.facility-index-badge .total { font-size: 12.5px; color: var(--ink-400); font-weight: 600; }

.facility-copy .eyebrow i { margin-right: 6px; }
.facility-copy h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.facility-lead {
  font-size: 17px; font-weight: 600; color: var(--navy-900); line-height: 1.5;
  padding-left: 16px; border-left: 3px solid var(--gold-500); margin-bottom: 18px;
}
.facility-content { padding-top: 18px; border-top: 1px solid var(--border-soft); }
.facility-content p { color: var(--ink-600); font-size: 15px; white-space: pre-line; }
.facility-copy > .facility-lead:last-child { margin-bottom: 0; }

.facility-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px;
}
.facility-gallery .gallery-item { aspect-ratio: 4/3; }

/* ---------- About Us page ---------- */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-block.reverse .about-media { order: 2; }
.about-block.reverse .about-copy { order: 1; }
.about-block .about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-block .about-copy h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.about-block .about-copy p { color: var(--ink-600); white-space: pre-line; }
.about-block + .about-block { margin-top: 64px; }
.about-block.no-image { grid-template-columns: 1fr; max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vm-col-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 19px; color: var(--navy-900); }
.vm-col-title i { color: var(--gold-600); }
.vm-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 22px 24px; margin-bottom: 14px;
}
.vm-card h4 { font-size: 15px; margin-bottom: 6px; }
.vm-card p { color: var(--ink-600); font-size: 14.5px; white-space: pre-line; }

.leaders-grid { display: grid; gap: 28px; }
.leader-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); scroll-margin-top: 100px;
}
.leader-photo { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-body .role-title { color: var(--gold-600); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.leader-body h3 { font-size: 22px; margin-bottom: 2px; }
.leader-body .designation { color: var(--ink-400); font-size: 14px; margin-bottom: 14px; }
.leader-body .message { color: var(--ink-600); white-space: pre-line; position: relative; padding-left: 22px; }
.leader-body .message i { position: absolute; left: 0; top: 3px; color: var(--border-soft); font-size: 16px; }

/* ============================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .highlights-grid, .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-snippet { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-block { grid-template-columns: 1fr; }
  .about-block.reverse .about-media, .about-block.reverse .about-copy { order: initial; }
  .vm-grid { grid-template-columns: 1fr; }
  .leader-card { grid-template-columns: 160px 1fr; padding: 24px; }
  .facility-gallery { grid-template-columns: repeat(3, 1fr); }
  .facility-layout { grid-template-columns: 1fr; gap: 40px; }
  .facility-layout.reverse .facility-visual, .facility-layout.reverse .facility-copy { order: initial; }
  .facility-visual { max-width: 460px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  .topbar-links span.hide-sm { display: none; }
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 84vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 90px 24px 24px; box-shadow: var(--shadow-lg); transition: right var(--transition); z-index: 120; }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .highlights-grid, .programs-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .play-badge { width: 50px; height: 50px; font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; padding: 48px 0 30px; }
  .hero-arrow { display: none; }
  .cta-banner { padding: 34px 26px; text-align: center; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .page-header { padding: 110px 0 44px; }
  .leader-card { grid-template-columns: 1fr; text-align: center; }
  .leader-photo { max-width: 180px; margin: 0 auto; }
  .leader-body .message { padding-left: 0; }
  .leader-body .message i { display: none; }
  .facility-gallery { grid-template-columns: repeat(2, 1fr); }
  .facility-jumpnav-inner { padding: 8px 16px; }
  .facility-cover-icon { width: 72px; height: 72px; font-size: 30px; }
  .facility-index-badge { left: 16px; bottom: -16px; padding: 9px 14px; }
  .facility-index-badge .num { font-size: 17px; }
  .facility-copy { margin-top: 30px; }
  .facility-lead { font-size: 16px; }
}
