/* ==========================================================================
   THE DILIGENT PUBLIC SCHOOL / HR. SECONDARY, MOIRANG
   Institutional Portal Stylesheet (Inspired by Rayburn High School Layout)
   ========================================================================== */

:root {
  --navy-950: #071124;
  --navy-900: #0c1b38;
  --navy-800: #152c59;
  --navy-700: #1e3d78;
  --royal-600: #1d4ed8;
  --sky-500: #0284c7;
  --sky-100: #e0f2fe;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-400: #fbbf24;
  --gold-100: #fef3c7;
  --maroon-700: #991b1b;
  --maroon-600: #dc2626;
  --emerald-600: #15803d;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(12, 27, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(12, 27, 56, 0.1);
  --shadow-lg: 0 16px 40px rgba(12, 27, 56, 0.15);
  --shadow-xl: 0 24px 56px rgba(7, 17, 36, 0.22);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif-heading {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--navy-900);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. TOP UTILITY BAR & NEWS TICKER (Rayburn High Style)
   ========================================================================== */
.top-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.top-contact-list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.85);
}

.top-contact-item i {
  color: var(--gold-400);
  font-size: 0.88rem;
}

.top-contact-item:hover {
  color: var(--gold-400);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-quick-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

.top-quick-link:hover {
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.06);
}

.btn-erp-top {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.btn-erp-top:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}

/* Announcement Ticker Strip */
.ticker-bar {
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.84rem;
  border-bottom: 2px solid var(--gold-500);
}

.ticker-wrap {
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
}

.ticker-label {
  background: var(--maroon-600);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.ticker-label::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  border-left: 10px solid var(--maroon-600);
}

.ticker-track-container {
  flex: 1;
  overflow: hidden;
  padding-left: 20px;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll 38s linear infinite;
  gap: 48px;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
}

.ticker-badge {
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   2. MAIN INSTITUTIONAL HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(12, 27, 56, 0.09);
  border-bottom: 1px solid rgba(12, 27, 56, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-main {
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(12, 27, 56, 0.15));
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-sub-top {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.85px;
  color: var(--maroon-700);
  margin-bottom: 1px;
  white-space: nowrap;
}

.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(0.96rem, 1.22vw, 1.16rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.25px;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-affiliation {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-top: 2px;
  white-space: nowrap;
}

.brand-motto-pill {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: var(--navy-800);
  background: var(--gold-100);
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 1px 8px;
  border-radius: 4px;
  width: fit-content;
  white-space: nowrap;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--slate-200);
  padding: 4px 6px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 var(--white), 0 2px 8px rgba(12, 27, 56, 0.05);
  flex-shrink: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-900);
  border-radius: 7px;
  white-space: nowrap;
  position: relative;
  transition: all 0.22s ease;
}

.nav-link i.fa-chevron-down {
  font-size: 0.65rem;
  color: var(--slate-500);
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-link.active {
  color: var(--gold-400);
  background: var(--navy-900);
  box-shadow: 0 3px 10px rgba(12, 27, 56, 0.22);
}

.nav-link.active i.fa-chevron-down {
  color: var(--gold-400);
}

.nav-item:hover > .nav-link:not(.active) {
  color: var(--royal-600);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(12, 27, 56, 0.08);
}

.nav-item:hover > .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
  color: var(--royal-600);
}

.nav-item:hover > .nav-link.active i.fa-chevron-down {
  color: var(--gold-400);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--gold-500);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.24s ease;
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-700);
  white-space: nowrap;
}

.dropdown-link i {
  width: 16px;
  color: var(--gold-600);
  font-size: 0.85rem;
}

.dropdown-link:hover {
  background: var(--sky-100);
  color: var(--navy-900);
  padding-left: 22px;
}

.nav-cta-erp {
  margin-left: 5px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid rgba(217, 119, 6, 0.45);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.nav-cta-erp i {
  color: var(--navy-950);
}

.nav-cta-erp:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(12, 27, 56, 0.25);
}

.nav-cta-erp:hover i {
  color: var(--gold-400);
}


/* Mobile Header Actions (Visible ERP Button & Drawer Overlay) */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-erp-pill {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  border: 1px solid rgba(217, 119, 6, 0.5);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mobile-erp-pill:hover,
.mobile-erp-pill:active {
  background: var(--navy-900);
  color: var(--gold-400);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 36, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-btn {
  display: none;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================================
   3. HERO CAROUSEL SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  height: 640px;
  min-height: 520px;
  background: var(--navy-950);
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 17, 36, 0.90) 0%,
    rgba(12, 27, 56, 0.72) 52%,
    rgba(12, 27, 56, 0.35) 100%
  );
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
  color: var(--white);
  padding-bottom: 40px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: var(--gold-400);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero-title span {
  color: var(--gold-400);
}

.hero-desc {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  max-width: 620px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.55);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}

/* Carousel Controls */
.hero-controls {
  position: absolute;
  bottom: 95px;
  right: 5%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 27, 56, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  width: 28px;
  background: var(--gold-400);
}

/* ==========================================================================
   4. FLOATING QUICK ACCESS PORTAL CARDS (Rayburn High Feature Strip)
   ========================================================================== */
.quick-portal-strip {
  position: relative;
  z-index: 20;
  margin-top: -64px;
  margin-bottom: 30px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--navy-800);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.portal-card:nth-child(2) { border-bottom-color: var(--gold-500); }
.portal-card:nth-child(3) { border-bottom-color: var(--maroon-600); }
.portal-card:nth-child(4) { border-bottom-color: var(--emerald-600); }

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.portal-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.portal-card:nth-child(2) .portal-icon { background: var(--gold-100); color: var(--gold-600); }
.portal-card:nth-child(3) .portal-icon { background: #fee2e2; color: var(--maroon-600); }
.portal-card:nth-child(4) .portal-icon { background: #dcfce7; color: var(--emerald-600); }

.portal-card:hover .portal-icon {
  background: var(--navy-900);
  color: var(--gold-400);
}

.portal-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.portal-info p {
  font-size: 0.83rem;
  color: var(--slate-600);
  margin-bottom: 8px;
}

.portal-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--royal-600);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   5. SECTION HEADERS & COMMON UTILITIES
   ========================================================================== */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--white);
}

.section-navy {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--maroon-700);
  background: #fee2e2;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-navy .section-kicker {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-400);
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-navy .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--slate-600);
}

.section-navy .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   6. "A WORD ABOUT DPS MOIRANG" & FOUNDERS / PRINCIPAL'S MESSAGE (Rayburn Layout)
   ========================================================================== */
.about-welcome-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: start;
}

.about-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.affil-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky-100);
  color: var(--navy-800);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.about-lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 16px;
}

.about-text {
  color: var(--slate-700);
  margin-bottom: 18px;
  font-size: 0.96rem;
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.pillar-chip {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.pillar-chip i {
  font-size: 1.2rem;
  color: var(--navy-800);
  margin-bottom: 6px;
  display: block;
}

.pillar-chip span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-900);
}

.about-photo-collage {
  position: relative;
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo-collage img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.about-photo-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(transparent, rgba(7, 17, 36, 0.9));
  color: var(--white);
  padding: 24px 20px 14px;
  font-size: 0.86rem;
  font-weight: 500;
}

/* Principal & Founder Message Box (Right Column - Rayburn High Style) */
.leadership-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.leadership-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 24px 28px;
  border-bottom: 4px solid var(--gold-500);
  display: flex;
  align-items: center;
  gap: 16px;
}

.leadership-header img {
  width: 58px;
  height: 58px;
}

.leadership-header h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 3px;
}

.leadership-header p {
  font-size: 0.82rem;
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.leadership-body {
  padding: 28px;
}

.founder-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.founder-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--navy-800);
  padding: 14px;
  border-radius: var(--radius-sm);
}

.founder-box:nth-child(2) {
  border-left-color: var(--maroon-600);
}

.founder-role {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--maroon-700);
  margin-bottom: 4px;
}

.founder-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
}

.principal-quote {
  position: relative;
  font-style: italic;
  color: var(--slate-700);
  background: var(--gold-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  font-size: 0.93rem;
  border-left: 4px solid var(--gold-600);
}

.tips-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.tips-card h4 {
  color: var(--gold-400);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 0.82rem;
}

.tips-grid div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tips-grid i {
  color: var(--gold-400);
  font-size: 0.75rem;
}

/* ==========================================================================
   7. STATS COUNTER BANNER
   ========================================================================== */
.stats-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 54px 0;
  color: var(--white);
  border-top: 3px solid var(--gold-500);
  border-bottom: 3px solid var(--gold-500);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  font-size: 2rem;
  color: var(--gold-400);
  margin-bottom: 10px;
}

.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* ==========================================================================
   8. SPECIAL FEATURES & SCHOLARSHIPS (From Prospectus)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-500);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
}

/* ==========================================================================
   9. CAMPUS FACILITIES & INFRASTRUCTURE (With Real DPS Photos)
   ========================================================================== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.facility-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.facility-img-wrap {
  position: relative;
  height: 225px;
  overflow: hidden;
}

.facility-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-card:hover .facility-img-wrap img {
  transform: scale(1.07);
}

.facility-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy-900);
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 11px;
  border-radius: 4px;
}

.facility-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.facility-body h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.facility-body p {
  font-size: 0.9rem;
  color: var(--slate-600);
  flex: 1;
}

/* ==========================================================================
   10. ACADEMICS, UNIFORM, ADMISSIONS & PROSPECTUS TABS (Rayburn High Style)
   ========================================================================== */
.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.tab-btn {
  background: var(--white);
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.tab-btn i {
  color: var(--gold-600);
}

.tab-btn:hover {
  border-color: var(--navy-800);
  color: var(--navy-900);
}

.tab-btn.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(12, 27, 56, 0.22);
}

.tab-btn.active i {
  color: var(--gold-400);
}

.tab-panel {
  display: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.academic-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.tier-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius-md);
  padding: 22px 18px;
}

.tier-box:nth-child(2) { border-top-color: var(--sky-500); }
.tier-box:nth-child(3) { border-top-color: var(--gold-500); }
.tier-box:nth-child(4) { border-top-color: var(--maroon-600); }

.tier-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--maroon-700);
  letter-spacing: 1px;
}

.tier-box h4 {
  font-size: 1.15rem;
  margin: 6px 0 10px;
}

.tier-box p {
  font-size: 0.86rem;
  color: var(--slate-600);
}

.policy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.policy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--slate-50);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  font-size: 0.9rem;
}

.policy-item i {
  color: var(--emerald-600);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Anthem & Prayers Grid */
.prayers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prayer-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 24px;
}

.prayer-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prayer-poem {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--slate-800);
  white-space: pre-line;
}

/* School Anthem Audio Player */
.anthem-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, #fffbf0 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
  position: relative;
}

.anthem-player-main {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.anthem-play-btn {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon-700));
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.anthem-play-btn:hover { transform: scale(1.08); }
.anthem-play-btn .fa-play { margin-left: 3px; }

.anthem-player.is-playing .anthem-play-btn {
  animation: anthemPulse 1.6s ease-in-out infinite;
  background: linear-gradient(135deg, var(--maroon-700), #7f1d1d);
}

@keyframes anthemPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

.anthem-info {
  flex: 1;
  min-width: 0;
}

.anthem-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.anthem-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--maroon-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.anthem-title i { color: var(--gold-600); }

/* Audio Equalizer animation */
.anthem-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-left: 4px;
}

.anthem-eq span {
  display: inline-block;
  width: 3px;
  height: 4px;
  background: var(--maroon-600);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.anthem-player.is-playing .anthem-eq span:nth-child(1) { animation: eqBar 0.6s ease-in-out infinite alternate; }
.anthem-player.is-playing .anthem-eq span:nth-child(2) { animation: eqBar 0.9s ease-in-out 0.2s infinite alternate; }
.anthem-player.is-playing .anthem-eq span:nth-child(3) { animation: eqBar 0.7s ease-in-out 0.4s infinite alternate; }
.anthem-player.is-playing .anthem-eq span:nth-child(4) { animation: eqBar 0.8s ease-in-out 0.1s infinite alternate; }

@keyframes eqBar {
  0% { height: 3px; }
  100% { height: 14px; }
}

.anthem-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.anthem-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-700);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}

.anthem-progress {
  --anthem-fill: 0%;
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--maroon-600) var(--anthem-fill), #fde68a var(--anthem-fill));
  outline: none;
  cursor: pointer;
}

.anthem-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--maroon-700);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.anthem-progress::-webkit-slider-thumb:hover { transform: scale(1.2); }

.anthem-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--maroon-700);
  border: 2px solid #fff;
}

.anthem-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.anthem-vol-btn {
  background: none;
  border: none;
  color: var(--maroon-700);
  font-size: 0.92rem;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.anthem-vol-btn:hover { color: var(--gold-600); }

.anthem-vol-slider {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #fde68a;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.anthem-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--maroon-600);
  border: 2px solid #fff;
  cursor: pointer;
}

.anthem-status-msg {
  font-size: 0.72rem;
  color: var(--maroon-700);
  font-weight: 600;
  margin-top: 2px;
  display: none;
}
.anthem-status-msg.show { display: block; }

/* ==========================================================================
   11. HOUSE SYSTEM & CO-CURRICULAR CLUBS
   ========================================================================== */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.house-card {
  border-radius: var(--radius-md);
  padding: 26px 20px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.house-card:hover {
  transform: translateY(-5px);
}

.house-spring { background: linear-gradient(135deg, #15803d, #166534); }
.house-summer { background: linear-gradient(135deg, #d97706, #b45309); }
.house-autumn { background: linear-gradient(135deg, #dc2626, #991b1b); }
.house-winter { background: linear-gradient(135deg, #0284c7, #1e3a8a); }

.house-card i {
  font-size: 2.2rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.house-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.house-card p {
  font-size: 0.84rem;
  opacity: 0.9;
}

/* ==========================================================================
   12. EVENTS & CIRCULARS / NOTICE BOARD (Rayburn Dual Column Layout)
   ========================================================================== */
.updates-dual-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.event-img {
  position: relative;
  height: 185px;
  overflow: hidden;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-img img {
  transform: scale(1.06);
}

.event-date-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.event-body {
  padding: 18px;
}

.event-body h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.event-body p {
  font-size: 0.85rem;
  color: var(--slate-600);
}

/* Circulars & Notice Board Box */
.notice-board {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notice-header {
  background: var(--navy-900);
  color: var(--white);
  padding: 20px 24px;
  border-bottom: 3px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice-header h3 {
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-header h3 i {
  color: var(--gold-400);
}

.notice-list {
  padding: 16px 22px;
  divide-y: 1px solid var(--slate-200);
  flex: 1;
}

.notice-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--slate-200);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-cal {
  background: var(--sky-100);
  color: var(--navy-900);
  border-radius: 8px;
  min-width: 54px;
  text-align: center;
  padding: 6px 4px;
  flex-shrink: 0;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.notice-cal span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--maroon-600);
}

.notice-cal strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.notice-text h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 3px;
}

.notice-text p {
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* ==========================================================================
   13. PHOTO GALLERY WITH CATEGORY FILTERS & LIGHTBOX
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--navy-900);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  height: 230px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--navy-950);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(7, 17, 36, 0.88) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: var(--white);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-400);
  letter-spacing: 0.8px;
}

.gallery-overlay h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 3px;
}

.gallery-zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.9);
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 36, 0.94);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.lightbox-img {
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 14px;
  font-size: 1.02rem;
  font-weight: 600;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

.lightbox-close { top: -54px; right: 0; }
.lightbox-prev { top: 45%; left: -64px; }
.lightbox-next { top: 45%; right: -64px; }

/* ==========================================================================
   14. ERP PORTAL CALLOUT BANNER
   ========================================================================== */
.erp-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--royal-600) 100%);
  color: var(--white);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.erp-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.erp-banner-text {
  max-width: 680px;
}

.erp-banner-text h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
}

.erp-banner-text p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

/* ==========================================================================
   15. FOOTER (Rayburn High Sitemap + Cyber Arena Tech Credits)
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 72px;
  border-top: 4px solid var(--gold-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.9fr 1.1fr;
  gap: 36px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-brand span {
  display: block;
  font-size: 0.76rem;
  color: var(--gold-400);
  font-weight: 600;
}

.footer-about-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 3px;
  background: var(--gold-500);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  font-size: 0.72rem;
  color: var(--gold-400);
}

.footer-links a:hover {
  color: var(--gold-400);
  transform: translateX(4px);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact-list i {
  color: var(--gold-400);
  margin-top: 4px;
  width: 16px;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.developer-credit a {
  color: var(--gold-400);
  font-weight: 700;
}

.developer-credit a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ==========================================================================
   16. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1180px) {
  .brand-title { font-size: 1.18rem; }
  .brand-sub-top { font-size: 0.58rem; letter-spacing: 0.5px; }
  .brand-affiliation { font-size: 0.65rem; }
  .nav-link { padding: 7px 9px; font-size: 0.81rem; }
  .nav-cta-erp { padding: 7px 12px; font-size: 0.81rem; }
}

@media (max-width: 1080px) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .about-welcome-grid { grid-template-columns: 1fr; }
  .academic-tiers { grid-template-columns: repeat(2, 1fr); }
  .updates-dual-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  
/* Mobile Header Actions (Visible ERP Button & Drawer Overlay) */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-erp-pill {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  border: 1px solid rgba(217, 119, 6, 0.5);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mobile-erp-pill:hover,
.mobile-erp-pill:active {
  background: var(--navy-900);
  color: var(--gold-400);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 36, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--navy-950);
    border: none;
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 30px;
    transition: right 0.35s ease;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: var(--shadow-xl);
  }
  .main-nav.open { right: 0; }
  .nav-link { color: var(--white); padding: 12px 14px; font-size: 0.92rem; }
  .nav-item:hover > .nav-link:not(.active) { background: rgba(255, 255, 255, 0.08); color: var(--gold-400); }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gold-500);
    margin-left: 14px;
    display: none;
  }
  .nav-item.open .dropdown-menu { display: block; }
  .dropdown-link { color: rgba(255, 255, 255, 0.8); }
  .nav-cta-erp { margin: 14px 0 0; justify-content: center; background: var(--gold-500); color: var(--navy-950); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .houses-grid { grid-template-columns: repeat(2, 1fr); }
  .prayers-grid { grid-template-columns: 1fr; }
  .pillars-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .portal-grid,
  .facilities-grid,
  .features-grid,
  .academic-tiers,
  .events-list,
  .policy-list,
  .founder-profiles,
  .houses-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section { height: 560px; }
  .quick-portal-strip { margin-top: 20px; }
  .brand-title { font-size: 1.15rem; }
  .brand-logo { width: 54px; height: 54px; }
  .tab-panel { padding: 22px 16px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}


/* ==========================================================================
   17. DYNAMIC LEADERSHIP (PRINCIPAL & BOARD MEMBERS) & ALUMNI SECTION STYLES
   ========================================================================== */
.cms-leadership-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}

.cms-leader-item {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--navy-800);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
}

.cms-leader-item:nth-child(even) {
  border-left-color: var(--gold-500);
}

.cms-leader-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.cms-leader-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-500);
  background: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.cms-leader-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 9px;
  border-radius: 50px;
  margin-bottom: 4px;
}

.badge-md {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
}

.badge-principal {
  background: #fee2e2;
  color: var(--maroon-700);
}

.badge-board {
  background: var(--sky-100);
  color: var(--navy-800);
}

.cms-leader-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 2px;
}

.cms-leader-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-600);
}

.cms-leader-words {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--slate-700);
  background: var(--white);
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-500);
  line-height: 1.6;
}

/* Distinguished Alumni Grid */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.alumni-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--gold-500);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.alumni-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.alumni-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.alumni-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--navy-800);
  flex-shrink: 0;
  background: var(--slate-100);
}

.alumni-batch {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--maroon-700);
  background: #fee2e2;
  padding: 2px 9px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.alumni-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
}

.alumni-role {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-600);
}

.alumni-words {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--slate-700);
  background: var(--slate-50);
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--navy-800);
  flex: 1;
  line-height: 1.65;
}

.alumni-words i {
  color: var(--gold-500);
  margin-right: 6px;
}

@media (max-width: 1080px) {
  .alumni-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .alumni-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   18. YOUTUBE EMBEDDED VIDEOS SHOWCASE & FOOTER GOOGLE MAP
   ========================================================================== */
.youtube-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.youtube-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--maroon-600);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.youtube-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.youtube-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--navy-950);
  overflow: hidden;
}

.youtube-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.youtube-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--maroon-700);
  background: #fee2e2;
  padding: 3px 10px;
  border-radius: 50px;
  width: fit-content;
}

.youtube-card-body h3 {
  font-size: 1.18rem;
  color: var(--navy-900);
  line-height: 1.35;
}

.youtube-card-body p {
  font-size: 0.88rem;
  color: var(--slate-600);
  flex: 1;
}

.youtube-card-footer {
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25);
}

.btn-youtube-link:hover {
  background: #991b1b;
  color: var(--white);
  transform: translateY(-1px);
}

/* Footer Google Map Card */
.footer-map-card {
  margin-top: 32px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.footer-map-header {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: rgba(12, 27, 56, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-map-title i {
  font-size: 1.5rem;
  color: var(--gold-400);
}

.footer-map-title h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.footer-map-title p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.btn-map-directions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-map-directions:hover {
  background: var(--gold-400);
  color: var(--navy-950);
  transform: translateY(-1px);
}

.footer-map-frame-wrap {
  width: 100%;
  line-height: 0;
  background: var(--navy-900);
}

@media (max-width: 860px) {
  .youtube-videos-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   MANAGING DIRECTOR DESK & MESSAGE SECTION
   ========================================================================== */
.md-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 80px 0;
  position: relative;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.md-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}

.md-profile-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(12, 27, 56, 0.08), 0 3px 10px rgba(12, 27, 56, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  text-align: center;
  position: sticky;
  top: 100px;
}

.md-photo-wrapper {
  position: relative;
  background: linear-gradient(135deg, #0c1b38 0%, #1e3a8a 100%);
  padding: 24px 24px 0 24px;
}

.md-photo-wrapper img {
  width: 100%;
  max-width: 280px;
  height: 340px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: block;
  margin: 0 auto;
}

.md-profile-info {
  padding: 24px 20px;
}

.md-badge-pill {
  display: inline-block;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.md-profile-name {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0c1b38;
  margin-bottom: 4px;
}

.md-profile-role {
  font-size: 0.92rem;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 4px;
}

.md-profile-school {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 16px;
}

.md-profile-quote {
  background: #f8fafc;
  border-left: 3px solid #d97706;
  padding: 10px 14px;
  font-style: italic;
  font-size: 0.84rem;
  color: #334155;
  border-radius: 0 8px 8px 0;
  text-align: left;
}

.md-content-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(12, 27, 56, 0.08);
  border: 1px solid #e2e8f0;
  padding: 40px 48px;
}

.md-content-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d97706;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.md-content-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #0c1b38;
  line-height: 1.3;
  margin-bottom: 8px;
}

.md-content-theme {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.md-content-body {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.85;
}

.md-content-body p {
  margin-bottom: 18px;
  text-align: justify;
}

.md-content-body p:first-of-type::first-letter {
  font-size: 2.4rem;
  font-weight: 800;
  float: left;
  line-height: 1;
  padding-right: 10px;
  color: #0c1b38;
  font-family: 'Cinzel', serif;
}

.md-signoff {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.md-signoff-text {
  font-size: 0.95rem;
}

.md-signoff-text .warm-regards {
  color: #64748b;
  margin-bottom: 6px;
}

.md-signoff-text .sign-name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0c1b38;
}

.md-signoff-text .sign-title {
  color: #d97706;
  font-weight: 700;
  font-size: 0.9rem;
}

.md-signoff-text .sign-school {
  color: #475569;
  font-size: 0.85rem;
}

.md-signoff-quote {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #1e3a8a;
  background: #f1f5f9;
  padding: 12px 18px;
  border-radius: 8px;
  border-left: 3px solid #1e3a8a;
  max-width: 380px;
}

@media (max-width: 992px) {
  .md-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .md-profile-card {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }
  .md-content-card {
    padding: 28px 24px;
  }
  .md-content-heading {
    font-size: 1.5rem;
  }
}
