/* ==========================================================================
   Holy Family High School & Jr. College - Comprehensive Design System
   Mahakali Caves Road, Chakala, Andheri (East), Mumbai 400093
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ==========================================================================
   1. CORE DESIGN TOKENS & LIGHT THEME (DEFAULT)
   ========================================================================== */
:root,
html,
html[data-theme="light"] {
  /* Safe Area Inset Tokens */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);

  /* School Identity Palette (Marian Navy & Heritage Gold) */
  --hfhs-navy-primary: #133863;
  --hfhs-navy-dark:    #0B2038;
  --hfhs-navy-light:   #1D4A7D;
  --hfhs-gold-primary: #C8963E;
  --hfhs-gold-hover:   #B38230;
  --hfhs-gold-soft:    #FDF8EE;
  --hfhs-text-dark:    #1E293B;
  --hfhs-text-muted:   #64748B;
  --hfhs-text-light:   #F8FAFC;
  --hfhs-border-light: #E2E8F0;
  --hfhs-border-dark:  rgba(255, 255, 255, 0.12);
  --hfhs-shadow:       0 4px 18px -2px rgba(11, 32, 56, 0.08);

  /* Institutional Identity Colors */
  --header-red: #133863;
  --header-red-hover: #0B2038;
  --header-navy: #0B2038;
  --header-navy-hover: #133863;
  --header-navy-dark: #07192f;

  --primary-900: #07192f;
  --primary-800: #0d284a;
  --primary-700: #133966;
  --primary-600: #1c4e8a;
  --primary-500: #2563eb;
  --primary-400: #3b82f6;
  --primary-100: #e0edff;
  --primary-50: #f0f7ff;

  /* Accent Gold Tokens */
  --accent-gold-900: #785308;
  --accent-gold-700: #b47d0e;
  --accent-gold-600: #c59b27;
  --accent-gold-500: #eab308;
  --accent-gold-400: #f5c842;
  --accent-gold-100: #fef9c3;
  --accent-gold-50: #fefce8;

  /* House Colors */
  --house-gandhi: #d97706;
  --house-nehru: #0284c7;
  --house-shivaji: #dc2626;
  --house-tagore: #16a34a;

  /* Surfaces & Backgrounds */
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.95);
  --bg-glass-strong: rgba(255, 255, 255, 0.98);
  --bg-input: #ffffff;
  --bg-dropdown: #ffffff;
  --bg-table-stripe: #f8fafc;
  --bg-table-head: #07192f;
  --text-table-head: #ffffff;

  /* Text Colors */
  --text-primary: #07192f;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-heading: #07192f;
  --text-inverse: #ffffff;
  --text-inverse-muted: #cbd5e1;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-card: #e2e8f0;
  --border-card-hover: #c59b27;
  --border-input: #cbd5e1;
  --border-glass: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px -2px rgba(7, 25, 47, 0.06);
  --shadow-card-hover: 0 14px 35px -4px rgba(7, 25, 47, 0.12);
  --shadow-dropdown: 0 12px 36px rgba(0, 0, 0, 0.14);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Containers & Radii */
  --container-max: 1240px;
  --container-wide: 1360px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ==========================================================================
   2. DARK THEME TOKENS & SURFACE OVERRIDES
   ========================================================================== */
html[data-theme="dark"] {
  /* Surfaces & Backgrounds (Sophisticated Deep Navy & Blue-Grey — Never Pure Black) */
  --bg-body:        #0B1F33; /* Main background: Deep Calm Navy */
  --bg-surface:     #102A43; /* Header & Elevated surfaces */
  --bg-subtle:      #12304D; /* Subtle section bands */
  --bg-muted:       #163A5C; /* Secondary surfaces */
  --bg-card:        #163A5C; /* Cards / containers */
  --bg-card-hover:  #1B466B; /* Interactive card hover */
  --bg-card-subtle: #133454; /* Subtle cards */
  --bg-glass:       rgba(16, 42, 67, 0.92);
  --bg-glass-card:  rgba(22, 58, 92, 0.94);
  --bg-glass-strong:rgba(16, 42, 67, 0.98);
  --bg-input:       #102A43; /* Form input fields */
  --bg-dropdown:    #102A43; /* Dropdowns & menus */
  --bg-table-stripe:#12304D; /* Table zebra stripes */
  --bg-table-head:  #102A43; /* Table header */
  --text-table-head:#F5F8FC;

  /* Text Colors */
  --text-primary:   #F5F8FC; /* Primary high-contrast text */
  --text-secondary: #C5D3E0; /* Secondary readable text */
  --text-muted:     #91A8BC; /* Muted captions & metadata */
  --text-subtle:    #7995AB; /* Subtle icons & hints */
  --text-heading:   #F5F8FC; /* Headings */
  --text-inverse:   #0B1F33;
  --text-inverse-muted: #2B5575;

  /* Borders & Dividers */
  --border-light:   #2B5575; /* Subtle borders */
  --border-subtle:  #244866;
  --border-card:    #2B5575; /* Clean card separation */
  --border-card-hover:#487294; /* Soft blue-grey border on hover */
  --border-input:   #2B5575;
  --border-glass:   rgba(72, 114, 148, 0.35);

  /* Shadows (Soft Deep Navy Tones — Never Harsh Black) */
  --shadow-sm:      0 2px 6px rgba(5, 15, 25, 0.25);
  --shadow-md:      0 4px 14px rgba(5, 15, 25, 0.35);
  --shadow-lg:      0 10px 28px rgba(5, 15, 25, 0.45);
  --shadow-xl:      0 20px 40px rgba(5, 15, 25, 0.55);
  --shadow-card:    0 4px 16px rgba(5, 15, 25, 0.30);
  --shadow-card-hover: 0 10px 28px rgba(5, 15, 25, 0.45), 0 0 12px rgba(56, 189, 248, 0.12);
  --shadow-dropdown:0 16px 40px rgba(5, 15, 25, 0.55);
}

/* Global Theme Transition */
body,
header,
footer,
section,
.section-card,
.result-card,
.news-card,
.faculty-card,
.facility-card,
.doc-card,
.contact-card,
.pta-card,
.house-card,
.matrix-month-card,
.agenda-card,
.modal-content,
.pdf-modal-container,
.form-input,
.mobile-drawer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   3. UNIVERSAL THEME BINDINGS — LIGHT & DARK
   ========================================================================== */
html[data-theme="light"] body {
  background-color: var(--bg-body);
  color: var(--text-primary);
}

html[data-theme="dark"] body {
  background-color: var(--bg-body);
  color: var(--text-primary);
}

/* Cards System */
.section-card,
.result-card,
.news-card,
.faculty-card,
.facility-card,
.doc-card,
.contact-card,
.pta-card,
.house-card,
.matrix-month-card,
.agenda-month-group,
.agenda-card,
.stat-card,
.quick-action-card,
.document-card,
.honour-card,
.timeline-item,
.about-block,
.gallery-item-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-card) !important;
}

.section-card:hover,
.result-card:hover,
.news-card:hover,
.faculty-card:hover,
.facility-card:hover,
.doc-card:hover,
.contact-card:hover,
.pta-card:hover,
.house-card:hover,
.quick-action-card:hover {
  border-color: var(--border-card-hover) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

/* Universal Forms, Inputs, Modals & Tables */
.form-input,
.form-select,
.form-textarea,
.contact-input,
.contact-textarea,
.search-input-field,
.cal-search-input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-input) !important;
  color: var(--text-primary) !important;
}

.modal-content,
.pdf-modal-container {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-card) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-xl) !important;
}

table,
.table-custom,
.results-table,
.honour-table,
.cal-matrix-table {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-light);
}

table th,
.table-custom th,
.results-table th,
.honour-table th,
.cal-matrix-table th {
  background: var(--bg-table-head) !important;
  color: var(--text-table-head) !important;
  border-color: var(--border-light) !important;
}

table td,
.table-custom td,
.results-table td,
.honour-table td,
.cal-matrix-table td {
  border-color: var(--border-light) !important;
  color: var(--text-primary);
}

table tr:nth-child(even) td,
.table-custom tr:nth-child(even) td,
.results-table tr:nth-child(even) td,
.honour-table tr:nth-child(even) td {
  background: var(--bg-table-stripe);
}

/* Headings & Text (Theme Responsive) */
h1, h2, h3, h4, h5, h6,
.section-title,
.glass-brand-title,
.faculty-name,
.facility-title,
.doc-title,
.agenda-details h4,
.result-exam-title,
.honour-title {
  color: var(--text-heading);
}

p,
.faculty-role,
.facility-desc,
.agenda-details p,
.event-desc,
.about-desc,
.contact-desc {
  color: var(--text-secondary);
}

.section-subtitle,
.meta-text,
.card-date,
.doc-meta {
  color: var(--text-muted);
}

/* Explicit Dark Backdrop Elements (Always Crisp White / Gold) */
.hero-building-title,
.hero-slide-badge,
.hero-building-tag,
.hero-title,
.hero-stats-ribbon .stat-number,
.loader-school-title,
.footer-title,
.footer-logo-title {
  color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   Universal SVG Safety Constraints (Strict Size Bounds & No Page Blow-Up)
   ══════════════════════════════════════════════════════════════════════════ */
svg {
  max-width: 100%;
}

.floating-social-sidebar svg,
.floating-social-circle svg,
.topbar-social-icon-btn svg,
.social-card-icon svg,
.mobile-drawer-social-btn svg,
.footer-social-btn svg,
.footer-strip-pill svg {
  width: 18px;
  height: 18px;
  max-width: 22px;
  max-height: 22px;
  display: block;
}

/* Filled Brand Logos (Instagram, Facebook, YouTube) */
.footer-social-btn.instagram svg,
.footer-social-btn.facebook svg,
.footer-social-btn.youtube svg,
.footer-strip-pill.instagram svg,
.footer-strip-pill.facebook svg,
.footer-strip-pill.red svg,
.social-card-icon svg {
  fill: currentColor !important;
  stroke: none !important;
}

/* Stroke-based Utility & Action Icons (Email, Map Location, Documents, Phone) */
.footer-social-btn svg[fill="none"],
.footer-social-btn svg[stroke],
.floating-social-circle svg[fill="none"],
.floating-social-circle svg[stroke],
.footer-social-btn.email svg,
.footer-social-btn.location svg,
.footer-social-btn.documents svg,
.footer-social-btn.phone svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.glass-nav-link svg {
  width: 11px !important;
  height: 11px !important;
  max-width: 11px !important;
  max-height: 11px !important;
  display: inline-block !important;
  vertical-align: middle;
  margin-left: 4px;
}

.hero-building-desc,
.hero-subtitle,
.hero-stats-ribbon .stat-label,
.footer-desc,
.footer-contact-item {
  color: #f1f5f9 !important;
}

/* Motto Banner Theme Contrast */
html[data-theme="dark"] .motto-banner,
html[data-theme="dark"] .motto-highlight-box {
  background: rgba(220, 38, 38, 0.16) !important;
  border: 1px solid rgba(220, 38, 38, 0.4) !important;
}

html[data-theme="dark"] .motto-banner h3,
html[data-theme="dark"] .motto-banner h4,
html[data-theme="dark"] .motto-highlight-box strong {
  color: #fca5a5 !important;
}

html[data-theme="dark"] .motto-banner p,
html[data-theme="dark"] .motto-highlight-box p {
  color: #e2e8f0 !important;
}

/* Outline Buttons Theming */
.btn-outline {
  border: 1.5px solid var(--primary-700);
  color: var(--primary-700);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-700);
  color: #ffffff;
}

html[data-theme="dark"] .btn-outline {
  border-color: #f5c842 !important;
  color: #f5c842 !important;
  background: rgba(245, 200, 66, 0.08) !important;
}
html[data-theme="dark"] .btn-outline:hover {
  background: #f5c842 !important;
  color: #030c18 !important;
}

/* Admission Criteria & Guidelines Items */
.admission-criteria-item {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-primary) !important;
}
.criteria-desc,
.criteria-text,
.guideline-item {
  color: var(--text-secondary) !important;
}

/* Principal Spotlight / Letter */
.principal-spotlight,
.principal-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  color: var(--text-primary) !important;
}

/* Calendar & Events Theming */
.calendar-page-wrap,
.calendar-section {
  background: var(--bg-subtle) !important;
}

.calendar-card,
.calendar-events-sidebar {
  background: var(--bg-card) !important;
  border-color: var(--border-card) !important;
  box-shadow: var(--shadow-lg) !important;
}

html[data-theme="light"] .calendar-day-head {
  background: #f1f5f9 !important;
  color: #102a43 !important;
}
html[data-theme="dark"] .calendar-day-head {
  background: #102A43 !important;
  color: #93c5fd !important;
}

.calendar-day-cell {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-light) !important;
}

html[data-theme="light"] .calendar-day-cell:hover {
  background: #fefce8 !important;
}
html[data-theme="dark"] .calendar-day-cell:hover {
  background: #1B466B !important;
}

html[data-theme="light"] .calendar-day-cell.selected {
  background: #fef9c3 !important;
}
html[data-theme="dark"] .calendar-day-cell.selected {
  background: #1E4670 !important;
}

.calendar-day-cell.other-month {
  background: var(--bg-subtle) !important;
  color: var(--text-subtle) !important;
}

.day-number {
  color: var(--text-primary) !important;
}

.cal-month-pill {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  color: var(--text-secondary) !important;
}

.cal-month-pill.active {
  background: var(--primary-900) !important;
  color: #ffffff !important;
  border-color: var(--accent-gold-400) !important;
}

.cal-search-filter-bar {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
}

.cal-search-input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-input) !important;
  color: var(--text-primary) !important;
}

.cal-filter-chip {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-secondary) !important;
}

.cal-filter-chip.active {
  background: var(--primary-900) !important;
  border-color: var(--accent-gold-400) !important;
  color: var(--accent-gold-400) !important;
}

.cal-control-bar {
  background: var(--bg-glass-card) !important;
  border: 1px solid var(--border-glass) !important;
}

.selected-day-panel,
.event-item {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-light) !important;
}

.selected-event-row {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
}

.selected-event-title,
.event-title {
  color: var(--text-heading) !important;
}

/* Results Section Theming */
.results-section {
  background-color: var(--bg-subtle) !important;
}

.result-stream-item {
  background-color: var(--bg-subtle) !important;
}

.stream-name {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .result-year-badge {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}
html[data-theme="dark"] .result-year-badge {
  background-color: rgba(37, 99, 235, 0.25) !important;
  color: #93c5fd !important;
  border-color: rgba(147, 197, 253, 0.35) !important;
}

/* Forms & Interactive Inputs */
.form-input,
.doc-search-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-input) !important;
}

.form-input:focus,
.doc-search-input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-500) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

/* Modals & Dialogs */
.modal-content,
.pdf-modal-container,
.lightbox-content {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-card) !important;
  box-shadow: var(--shadow-xl) !important;
}

.pdf-modal-header {
  border-bottom: 1px solid var(--border-light) !important;
}

/* Mobile Drawer & Dropdowns */
.mobile-drawer {
  background: var(--bg-dropdown) !important;
  border-right: 1px solid var(--border-light) !important;
}

.glass-dropdown-menu {
  background: var(--bg-dropdown) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: var(--shadow-dropdown) !important;
}

.mobile-nav-link,
.glass-dropdown-link {
  color: var(--text-primary) !important;
}

.mobile-nav-link:hover,
.mobile-nav-link.active,
.glass-dropdown-link:hover {
  color: var(--accent-gold-400) !important;
  background: var(--bg-subtle) !important;
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-gold-400);
  color: var(--accent-gold-400);
  transform: scale(1.08);
}

/* ==========================================================================
   4. BRAND-NEW CINEMATIC INSTITUTIONAL PAGE LOADER
   - Z-Index: 99999999 (Highest Priority)
   - Deep Luxury Obsidian & Midnight Sapphire Backdrop
   - Dual-Orbit Glowing Rings + High-Gloss 3D School Crest
   - Shimmering Typography & Liquid Gold Progress Bar
   ========================================================================== */
#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 99999999 !important;
  background: radial-gradient(circle at 50% 45%, #081d38 0%, #030d1d 55%, #01050c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s ease;
  pointer-events: all;
  overflow: hidden;
}

#pageLoader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(1.04) !important;
  pointer-events: none !important;
}

/* Ambient Pulsing Gold Aura */
.loader-particles {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(245, 200, 66, 0.16) 0%, rgba(7, 25, 47, 0) 65%);
  animation: loaderAuraPulse 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes loaderAuraPulse {
  0% { transform: scale(0.85); opacity: 0.45; }
  100% { transform: scale(1.2); opacity: 0.95; }
}

.loader-content-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  padding: 2.5rem 2rem;
  max-width: 540px;
}

/* Luminous Dual-Ring Orbital Crest Container */
.loader-emblem-halo {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Orbiting Dashed Ring */
.loader-emblem-halo::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 200, 66, 0.45);
  animation: loaderOrbitCW 10s linear infinite;
}

/* Inner Counter-Rotating Golden Glow Arc */
.loader-emblem-halo::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #f5c842;
  border-right-color: #c59b27;
  filter: drop-shadow(0 0 8px #f5c842);
  animation: loaderOrbitCCW 2.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes loaderOrbitCW {
  to { transform: rotate(360deg); }
}

@keyframes loaderOrbitCCW {
  to { transform: rotate(-360deg); }
}

/* High-Gloss School Crest with 3D Depth */
.loader-crest-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ffffff;
  padding: 7px;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(245, 200, 66, 0.5), 0 10px 30px rgba(0, 0, 0, 0.85);
  border: 2.5px solid #f5c842;
  animation: loaderCrestFloat 2.6s ease-in-out infinite alternate;
}

@keyframes loaderCrestFloat {
  0% { transform: translateY(0px) scale(0.97); }
  100% { transform: translateY(-5px) scale(1.03); }
}

/* Typography in Loader */
.loader-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.loader-school-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 40%, #f5c842 80%, #d49516 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  margin: 0;
  text-transform: uppercase;
}

.loader-school-motto {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5c842;
  opacity: 0.95;
  text-shadow: 0 0 10px rgba(245, 200, 66, 0.4);
}

/* Liquid Gold Progress Track & Sweep */
.loader-progress-track {
  width: 200px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: 0.4rem;
  border: 1px solid rgba(245, 200, 66, 0.3);
  box-shadow: 0 0 16px rgba(245, 200, 66, 0.2);
}

.loader-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #c59b27 0%, #f5c842 50%, #ffffff 75%, #f5c842 90%, #c59b27 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  animation: loaderProgressAnim 1.6s ease-in-out infinite;
  box-shadow: 0 0 14px #f5c842;
}

@keyframes loaderProgressAnim {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   5. LOADING STATE ISOLATION (Hides Floating Buttons While Loading)
   ========================================================================== */
body.is-loading {
  overflow: hidden !important;
  touch-action: none;
}

body.is-loading .floating-social-sidebar,
body.is-loading .floating-social-dock,
body.is-loading #scrollTopBtn,
body.is-loading .social-floating-trigger {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(80px) !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-left: var(--sal);
  padding-right: var(--sar);
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--primary-800);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 { font-size: clamp(1.85rem, 3.8vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p, li, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.25rem;
}

button, input, select, textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
  padding-right: clamp(1rem, 2.5vw, 1.5rem);
}

.site-container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
  padding-right: clamp(1rem, 2.5vw, 1.5rem);
}

.section-padding {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.38rem 1.15rem;
  background-color: #fffbeb !important;
  color: #92400e !important;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.06);
}

.section-tag.gold,
.section-tag.gold-tag {
  background-color: #fffbeb !important;
  color: #92400e !important;
  border-color: rgba(217, 119, 6, 0.3) !important;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   PREMIUM EDITORIAL GLASS HEADER — "FROSTED GOLD" INSTITUTIONAL UI 2026–27
   Clean underline-indicator nav, no island/pill backgrounds on nav links
   ========================================================================== */

.glass-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  padding-top: var(--sat);
}

.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 24px rgba(7, 25, 47, 0.08);
}

/* ─── Utility Topbar ─── */
.glass-topbar {
  display: none;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.32rem 0;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.glass-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
}

.topbar-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.topbar-info-item:hover { color: #d91b1b; }

.topbar-info-item svg {
  width: 12px; height: 12px;
  color: #d91b1b;
  flex-shrink: 0;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
}

.topbar-link {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.topbar-link:hover {
  color: #07192f;
  background: rgba(196, 155, 39, 0.12);
}

/* ─── Main Navbar ─── */
.glass-navbar {
  padding: 0;
  position: relative;
}

/* ==========================================================================
   MODERN FLOATING PILL INSTITUTIONAL HEADER (FINAL 2026-27 DESIGN)
   ========================================================================== */
.glass-header {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 0.75rem 0 !important;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1100;
  transition: all 0.3s ease;
}

.header-floating-pill {
  background: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.4rem !important;
  min-height: 80px;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  box-sizing: border-box;
  gap: 0.5rem;
}

/* ─── Brand Lockup with Sub-Divider ─── */
.glass-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0.2rem 0;
  transition: opacity 0.2s ease;
  max-width: none;
  -webkit-tap-highlight-color: transparent;
}

.glass-brand:hover { opacity: 0.95; }

.glass-brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.glass-brand:hover .glass-brand-logo {
  transform: scale(1.03);
}

.glass-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
}

.glass-brand-title {
  font-family: var(--font-heading);
  font-size: clamp(0.96rem, 1.05vw, 1.15rem);
  font-weight: 800;
  color: #0b2038 !important;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.glass-brand-sub-divider {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.glass-brand-sub-divider .sub-line {
  height: 1px;
  width: 18px;
  background: #cbd5e1;
  display: inline-block;
}

.glass-brand-sub-divider .sub-text {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── Desktop Nav — Exact 2-Tier Grid with Icons ─── */
.glass-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  overflow: visible;
  min-width: 0;
  padding: 0 0.5rem;
}

.glass-nav-list {
  display: grid;
  grid-template-columns: repeat(5, auto) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(0.35rem, 0.65vw, 0.85rem);
  row-gap: 0.30rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Row 1 Grid Placements */
.nav-r1-c1 { grid-row: 1; grid-column: 1; justify-self: start; }
.nav-r1-c2 { grid-row: 1; grid-column: 2; }
.nav-r1-c3 { grid-row: 1; grid-column: 3; }
.nav-r1-c4 { grid-row: 1; grid-column: 4; }
.nav-r1-c5 { grid-row: 1; grid-column: 5; }

/* Row 2 Grid Placements — Facilities directly under Home, etc. */
.nav-r2-c1 { grid-row: 2; grid-column: 1; justify-self: start; }
.nav-r2-c2 { grid-row: 2; grid-column: 2; }
.nav-r2-c3 { grid-row: 2; grid-column: 3; }
.nav-r2-c4 { grid-row: 2; grid-column: 4; }
.nav-r2-c5 { grid-row: 2; grid-column: 5; }
.nav-r2-c6 { grid-row: 2; grid-column: 6; }

/* ==========================================================================
   DYNAMIC ACTIVE NAVIGATION STYLES (Route-Aware Active Red State)
   ========================================================================== */

.glass-nav-item.nav-home-item {
  display: flex;
  align-items: center;
}

/* 1. Main Navigation Items: When ACTIVE -> Vibrant Crimson Red Button */
.glass-nav-item.active > .glass-nav-link {
  background: #c8102e !important;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 0.32rem 0.80rem;
  border: 1px solid #b00d27 !important;
  box-shadow: 0 2px 7px rgba(200, 16, 46, 0.26) !important;
  transition: all 0.2s ease;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.glass-nav-item.active > .glass-nav-link:hover {
  background: #ab0d26 !important;
  border-color: #940a20 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.35) !important;
}

.glass-nav-item.active > .glass-nav-link .nav-icon {
  width: 13px;
  height: 13px;
  color: #ffffff !important;
  fill: currentColor;
  stroke: #ffffff;
  flex-shrink: 0;
}

.glass-nav-item.active > .glass-nav-link .chevron-icon {
  color: #ffffff !important;
}

/* 2. When Home is INACTIVE -> Default clean institutional link */
.glass-nav-item.nav-home-item:not(.active) > .glass-nav-link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #0b2038 !important;
  font-family: var(--font-sans);
  font-size: clamp(0.79rem, 0.82vw, 0.88rem);
  font-weight: 600;
  padding: 0.10rem 0.15rem;
  border-radius: 4px;
}

.glass-nav-item.nav-home-item:not(.active) > .glass-nav-link .nav-icon {
  color: #0b2038 !important;
  fill: currentColor;
  stroke: none;
}

.glass-nav-item.nav-home-item:not(.active) > .glass-nav-link:hover {
  color: #c8963e !important;
}

.glass-nav-item.nav-home-item:not(.active) > .glass-nav-link:hover .nav-icon {
  color: #c8963e !important;
}

/* Dark mode overrides for inactive Home */
html[data-theme="dark"] .glass-nav-item.nav-home-item:not(.active) > .glass-nav-link {
  color: #F5F8FC !important;
}
html[data-theme="dark"] .glass-nav-item.nav-home-item:not(.active) > .glass-nav-link .nav-icon {
  color: #F5F8FC !important;
}
html[data-theme="dark"] .glass-nav-item.nav-home-item:not(.active) > .glass-nav-link:hover {
  color: #c8963e !important;
}

.glass-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.glass-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.10rem 0.15rem;
  color: #0b2038 !important;
  font-family: var(--font-sans);
  font-size: clamp(0.79rem, 0.82vw, 0.88rem);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s ease;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.glass-nav-link .nav-icon {
  width: 13px;
  height: 13px;
  color: #0b2038;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.glass-nav-link .chevron-icon {
  width: 9px;
  height: 9px;
  max-width: 9px;
  max-height: 9px;
  transition: transform 0.22s ease;
  color: #64748b;
  flex-shrink: 0;
  display: inline-block !important;
  margin-left: 2px;
  vertical-align: middle;
}

.glass-nav-link:hover {
  color: #c8963e !important;
}

.glass-nav-link:hover .nav-icon,
.glass-nav-link:hover .chevron-icon {
  color: #c8963e !important;
}

.glass-nav-item:hover > .glass-nav-link .chevron-icon,
.glass-nav-item.dropdown-open > .glass-nav-link .chevron-icon {
  transform: rotate(180deg);
  color: #c8963e !important;
}

/* ─── Dropdown Panels — Marian Navy Accent & Crisp Clean Card ─── */
.glass-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  width: max-content;
  max-width: min(92vw, 440px);
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 3.5px solid #133863 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(11, 32, 56, 0.12) !important;
  padding: 0.45rem !important;
  list-style: none !important;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
  pointer-events: none;
}

.glass-nav-item:hover > .glass-dropdown,
.glass-nav-item.dropdown-open > .glass-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.glass-dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.glass-dropdown-link {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  color: #1e293b !important;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
  border-radius: 6px;
  background: transparent;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.glass-dropdown-link:hover {
  color: #133863 !important;
  background: #fdf8ee !important;
  font-weight: 600;
  padding-left: 1rem;
}

.glass-dropdown-link.active,
.glass-nested-dropdown .glass-dropdown-link.active {
  color: #c8102e !important;
  background: rgba(200, 16, 46, 0.08) !important;
  font-weight: 700 !important;
  border-left: 3px solid #c8102e !important;
  padding-left: 0.95rem !important;
}

html[data-theme="dark"] .glass-dropdown-link.active,
html[data-theme="dark"] .glass-nested-dropdown .glass-dropdown-link.active {
  color: #ff6b81 !important;
  background: rgba(200, 16, 46, 0.16) !important;
  border-left: 3px solid #ff4d6d !important;
}

/* ─── Nested Flyout Dropdowns for Multi-level menus (Academics -> Roll of Honour) ─── */
.glass-dropdown-nested-parent {
  position: relative;
}

.glass-dropdown-link.has-submenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glass-dropdown-link.has-submenu .chevron-right-icon {
  margin-left: 0.5rem;
  transition: transform 0.15s ease;
}

.glass-dropdown-nested-parent:hover .chevron-right-icon {
  transform: translateX(2px);
}

.glass-nested-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0.25rem;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-top: 3.5px solid #c8963e !important;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14) !important;
  padding: 0.5rem;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1250;
  pointer-events: none;
}

.glass-dropdown-nested-parent:hover > .glass-nested-dropdown,
.glass-dropdown-nested-parent.dropdown-open > .glass-nested-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: all;
}

/* Mobile nested submenu */
.mobile-sub-nested {
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.5rem 0;
  list-style: none;
  display: block;
}

.mobile-sub-nested-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
}

/* ─── Right Action Area: Divider + Search Circle + Theme Toggle + Admissions Pill ─── */
.glass-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  padding: 0.25rem 0;
}

.header-action-divider {
  width: 1px;
  height: 42px;
  background: #e2e8f0;
  margin: 0 0.35rem;
  flex-shrink: 0;
}

/* ─── Stacked Search & Theme Toggle Column (Exact match to reference image) ─── */
.header-utility-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.header-search-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b2038;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-search-circle-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #c8102e;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-search-circle-btn svg {
  width: 15px;
  height: 15px;
}

/* Theme Toggle Switch Pill */
.theme-toggle-switch {
  width: 48px;
  height: 24px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  box-sizing: border-box;
  flex-shrink: 0;
  outline: none;
}

.theme-toggle-switch:hover {
  border-color: #94a3b8;
}

.theme-switch-track-sun {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  width: 12px;
  height: 12px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.theme-switch-track-moon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  width: 12px;
  height: 12px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.theme-switch-thumb .sun-icon {
  width: 11px;
  height: 11px;
  stroke: #d97706;
}

.theme-switch-thumb .moon-icon {
  width: 10px;
  height: 10px;
  fill: #38bdf8;
}

[data-theme="dark"] .theme-toggle-switch {
  background: #0f2b48;
  border-color: #2b5575;
}

[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(22px);
  background: #07192f;
  color: #38bdf8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .theme-switch-track-sun {
  opacity: 0.35;
  color: #94a3b8;
}

[data-theme="dark"] .theme-switch-track-moon {
  opacity: 0.9;
  color: #38bdf8;
}

/* Admissions Rectangular CTA Button (Exact Reference Design: NOT pill-shaped, slightly rounded corners) */
.glass-cta-btn.modern-admissions-btn,
.glass-cta-btn.modern-admissions-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.48rem 0.95rem;
  width: clamp(190px, 13vw, 220px);
  background: #0b2038 !important;
  border: 1px solid #07182c !important;
  color: #ffffff !important;
  font-family: var(--font-heading);
  border-radius: 10px !important;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(11, 32, 56, 0.25) !important;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.glass-cta-btn.modern-admissions-btn:hover,
.glass-cta-btn.modern-admissions-pill:hover {
  background: #061527 !important;
  box-shadow: 0 6px 18px rgba(11, 32, 56, 0.35) !important;
  transform: translateY(-1px);
}

.modern-admissions-btn .cta-icon-left svg,
.modern-admissions-pill .cta-icon-left svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  display: block;
  flex-shrink: 0;
}

.modern-admissions-btn .cta-text-wrap,
.modern-admissions-pill .cta-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
  flex: 1;
}

.modern-admissions-btn .cta-line1,
.modern-admissions-pill .cta-line1 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #e2e8f0 !important;
}

.modern-admissions-btn .cta-line2,
.modern-admissions-pill .cta-line2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff !important;
}

.modern-admissions-btn .cta-line3,
.modern-admissions-pill .cta-line3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f5c842 !important;
}

.modern-admissions-btn .cta-arrow-right svg,
.modern-admissions-pill .cta-arrow-right svg {
  width: 17px;
  height: 17px;
  stroke: #ffffff;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.modern-admissions-btn:hover .cta-arrow-right svg,
.modern-admissions-pill:hover .cta-arrow-right svg {
  transform: translateX(3px);
}

.mobile-menu-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #133863;
  padding: 0.45rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
  background: #fdf8ee;
  border-color: #c8963e;
  color: #c8963e;
}

.mobile-menu-toggle svg { width: 22px; height: 22px; }

/* ══════════════════════════════════════════════════════════════════════════
   Header Responsive Breakpoints (Fine-tuned for 2-Tier Institutional Header)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1440px) {
  .header-floating-pill {
    padding: 0.5rem 1rem !important;
    gap: 0.4rem;
  }
  .glass-brand {
    flex-shrink: 0 !important;
  }
  .glass-brand-text {
    flex-shrink: 0 !important;
  }
  .glass-brand-title {
    font-size: 0.95rem;
    white-space: nowrap !important;
  }
  .glass-nav-list {
    column-gap: 0.40rem;
    row-gap: 0.25rem;
  }
  .glass-nav-link {
    font-size: 0.80rem;
    padding: 0.08rem 0.12rem;
  }
  .glass-cta-btn.modern-admissions-btn {
    width: auto !important;
    padding: 0.45rem 0.85rem !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }
  .modern-admissions-btn .cta-line1 {
    display: none;
  }
  .modern-admissions-btn .cta-line2 {
    font-size: 0.88rem !important;
  }
  .modern-admissions-btn .cta-line3 {
    font-size: 0.70rem !important;
  }
}

@media (max-width: 1300px) {
  .header-floating-pill {
    padding: 0.45rem 0.75rem !important;
    gap: 0.35rem;
  }
  .glass-brand {
    flex-shrink: 0 !important;
  }
  .glass-brand-text {
    flex-shrink: 0 !important;
  }
  .glass-brand-logo {
    width: 42px;
    height: 42px;
  }
  .glass-brand-title {
    font-size: 0.88rem;
    white-space: nowrap !important;
  }
  .glass-brand-sub-divider .sub-text {
    font-size: 0.55rem;
  }
  .glass-nav-list {
    column-gap: 0.25rem;
    row-gap: 0.22rem;
  }
  .glass-nav-link {
    font-size: 0.75rem;
    padding: 0.06rem 0.08rem;
    gap: 0.2rem;
  }
  .glass-nav-link .nav-icon {
    width: 11px;
    height: 11px;
  }
  .glass-cta-btn.modern-admissions-btn {
    width: auto !important;
    padding: 0.40rem 0.70rem !important;
    flex-shrink: 0 !important;
  }
  .header-action-divider {
    margin: 0 0.3rem;
  }
}

/* Switch cleanly to responsive mobile drawer at 1200px and adapt floating header */
@media (max-width: 1200px) {
  .glass-topbar { display: none !important; }
  .glass-nav { display: none !important; }
  .glass-actions .glass-cta-btn { display: none !important; }
  .mobile-menu-toggle { display: inline-flex !important; }

  .glass-header {
    padding: 0.5rem 0 !important;
  }

  .header-floating-pill {
    min-height: 64px !important;
    padding: 0.45rem 1rem !important;
    border-radius: 16px !important;
    gap: 0.5rem;
  }

  .glass-brand {
    gap: 0.6rem;
    flex-shrink: 0 !important;
  }

  .glass-brand-text {
    flex-shrink: 0 !important;
  }

  .glass-brand-logo {
    width: 44px;
    height: 44px;
  }

  .glass-brand-title {
    font-size: 0.92rem;
    white-space: nowrap !important;
  }

  .glass-brand-sub-divider .sub-text {
    font-size: 0.56rem;
  }

  .header-action-divider {
    height: 32px;
    margin: 0 0.2rem;
  }

  .glass-actions {
    gap: 0.6rem;
  }
}

@media (max-width: 768px) {
  .site-container,
  .site-container-wide {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .glass-header {
    padding: 0.4rem 0 !important;
  }

  .header-floating-pill {
    min-height: 58px !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 14px !important;
    gap: 0.4rem;
  }

  .glass-brand {
    gap: 0.5rem;
    flex-shrink: 0 !important;
  }

  .glass-brand-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .glass-brand-text {
    flex-shrink: 0 !important;
  }

  .glass-brand-title {
    font-size: clamp(0.78rem, 3vw, 0.86rem);
    line-height: 1.15;
    white-space: nowrap !important;
  }

  .glass-brand-sub-divider {
    gap: 0.25rem;
    margin-top: 0.15rem;
  }

  .glass-brand-sub-divider .sub-line {
    width: 10px;
  }

  .glass-brand-sub-divider .sub-text {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .header-action-divider {
    display: none !important;
  }

  .glass-actions {
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .header-utility-stack {
    gap: 3px;
  }

  .header-search-circle-btn {
    width: 28px;
    height: 28px;
  }

  .header-search-circle-btn svg {
    width: 13px;
    height: 13px;
  }

  .theme-toggle-switch {
    width: 38px;
    height: 20px;
    padding: 1px 2px;
  }

  .theme-switch-thumb {
    width: 15px;
    height: 15px;
  }

  [data-theme="dark"] .theme-switch-thumb {
    transform: translateX(-18px);
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    padding: 0.35rem;
    border-radius: 8px;
  }

  .mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .site-container,
  .site-container-wide {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .header-floating-pill {
    min-height: 52px !important;
    padding: 0.35rem 0.55rem !important;
    border-radius: 12px !important;
    gap: 0.3rem;
  }

  .glass-brand {
    gap: 0.4rem;
  }

  .glass-brand-logo {
    width: 36px;
    height: 36px;
  }

  .glass-brand-title {
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .glass-brand-sub-divider {
    margin-top: 0.1rem;
    gap: 0.2rem;
  }

  .glass-brand-sub-divider .sub-line {
    width: 6px;
  }

  .glass-brand-sub-divider .sub-text {
    font-size: 0.46rem;
    letter-spacing: 0.05em;
  }

  .glass-actions {
    gap: 0.35rem;
  }

  .header-search-circle-btn {
    width: 26px;
    height: 26px;
  }

  .header-search-circle-btn svg {
    width: 12px;
    height: 12px;
  }

  .theme-toggle-switch {
    width: 34px;
    height: 18px;
    padding: 1px 2px;
  }

  .theme-switch-icon.sun-icon svg {
    width: 10px;
    height: 10px;
  }

  .theme-switch-thumb {
    width: 14px;
    height: 14px;
  }

  .theme-switch-thumb .moon-icon {
    width: 7px;
    height: 7px;
  }

  [data-theme="dark"] .theme-switch-thumb {
    transform: translateX(-16px);
  }

  .mobile-menu-toggle {
    width: 34px;
    height: 34px;
    padding: 0.3rem;
  }

  .mobile-menu-toggle svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 360px) {
  .site-container,
  .site-container-wide {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
  }

  .header-floating-pill {
    padding: 0.3rem 0.45rem !important;
  }

  .glass-brand-logo {
    width: 32px;
    height: 32px;
  }

  .glass-brand-title {
    font-size: 0.68rem;
  }

  .glass-brand-sub-divider .sub-line {
    display: none;
  }

  .glass-brand-sub-divider .sub-text {
    font-size: 0.44rem;
  }
}



/* ==========================================================================
   NOTICE TICKER BAR — Single-Line Non-Wrapping News Ticker (42px)
   ========================================================================== */
.notice-ticker-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: 42px !important;
  max-height: 42px !important;
  min-height: 42px !important;
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 900;
  box-sizing: border-box;
}

.notice-ticker-label {
  flex-shrink: 0;
  background: #fef08a;
  color: #854d0e;
  border-right: 1px solid #fde047;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 1.1rem;
  height: 100%;
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  white-space: nowrap !important;
}

.notice-ticker-track {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 1.25rem;
  white-space: nowrap !important;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.notice-ticker-inner {
  display: inline-flex !important;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap !important;
  animation: tickerScroll 32s linear infinite;
  cursor: default;
  will-change: transform;
}

.notice-ticker-inner:hover {
  animation-play-state: paused;
}

.notice-item {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.notice-item::before {
  content: '•';
  color: #d91b1b;
  font-size: 1.1rem;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Full-Width Campus Photo Hero Slider / Banner (International Ivy Standard)
   ========================================================================== */
.hero-building-slider {
  position: relative;
  width: 100%;
  min-height: clamp(460px, 55vh, 580px);
  background-color: #06152b;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-building-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.82) contrast(1.08);
  transform: scale(1.02);
  transition: transform 6s ease;
}

.hero-building-slider:hover .hero-building-bg {
  transform: scale(1.05);
}

.hero-building-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 15, 30, 0.45) 0%, rgba(5, 18, 36, 0.85) 100%);
}

.hero-building-content {
  position: relative;
  z-index: 5;
  color: #ffffff;
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem) 0;
  max-width: 840px;
}

.hero-building-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(8, 26, 49, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent-gold-400);
  border: 1px solid rgba(230, 185, 88, 0.4);
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  flex-wrap: wrap;
}

.hero-building-title {
  color: #ffffff;
  font-size: clamp(1.75rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-building-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 720px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Floating Stats Ribbon on Hero */
.hero-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: rgba(6, 20, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid #f5c842;
  border-radius: 16px;
  padding: 1.4rem 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 1rem;
  box-sizing: border-box;
  justify-content: center;
}

.hero-stat-item:first-child {
  padding-left: 0.25rem;
}

.hero-stat-item:last-child {
  border-right: none;
  padding-right: 0.25rem;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: #facc15;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.hero-stat-label {
  font-size: clamp(0.68rem, 0.92vw, 0.78rem);
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
    padding: 1.25rem 1.4rem;
  }
  .hero-stat-item:nth-child(2) {
    border-right: none;
  }
  .hero-stat-item:nth-child(3) {
    padding-left: 0.25rem;
  }
}

@media (max-width: 520px) {
  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem 1rem;
    padding: 1rem 1rem;
    margin-top: 1.75rem;
  }
  .hero-stat-item {
    padding: 0 0.5rem;
  }
  .hero-stat-number {
    font-size: 1.35rem;
  }
  .hero-stat-label {
    font-size: 0.64rem;
  }
}

/* ==========================================================================
   Notice Bar & Results Grid
   ========================================================================== */
.announcement-bar {
  background-color: #07192f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  color: #ffffff;
  overflow: hidden;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1rem;
}

.announcement-badge {
  background: #eab308;
  background: linear-gradient(135deg, #f5c842 0%, #eab308 100%);
  color: #07192f;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 1.45rem 0.45rem 0.95rem;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  border-radius: 0;
}

.announcement-badge svg {
  width: 14px;
  height: 14px;
  fill: #07192f;
}

.announcement-ticker {
  flex: 1;
  font-size: 0.88rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.35rem 0;
}

.announcement-ticker a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-ticker a:hover {
  color: #f5c842;
}

.announcement-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-gold-500);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.results-section {
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-light);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.result-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-gold-500);
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.result-exam-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-year-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-100);
}

.result-stream-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.result-stream-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.15rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--header-navy);
}

.result-stream-item.perfect {
  border-left-color: var(--header-red);
  background-color: rgba(217, 27, 27, 0.08);
}

.stream-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.98rem;
}

.stream-percentage {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-gold-500);
}

.stream-percentage.gold {
  color: var(--header-red);
}

.result-card-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
}

.result-congrats-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-gold-700);
}

/* ==========================================================================
   Buttons, Identity, Facilities & Footer
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--header-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 55, 94, 0.25);
}

.btn-primary:hover {
  background-color: var(--header-navy-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-red {
  background-color: var(--header-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 27, 27, 0.25);
}

.btn-red:hover {
  background-color: var(--header-red-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #d49516 0%, #b47d0e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(180, 125, 14, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e5a420 0%, #c48914 100%);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-subtle);
  color: var(--primary-800);
}

.btn-outline:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-700);
  color: var(--primary-900);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--header-navy);
  border-color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Identity & Vision */
.identity-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.vision-card {
  background: linear-gradient(135deg, #07192f 0%, #17375e 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-gold-500);
  text-transform: uppercase;
}

.vision-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  text-transform: uppercase;
  margin: 1rem 0 1.5rem 0;
}

.vision-author {
  font-size: 0.92rem;
  color: var(--text-inverse-muted);
}

.motto-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.motto-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.motto-torch-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.motto-torch-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.motto-text-group h3 {
  font-size: 1.25rem;
  color: var(--header-red);
  margin-bottom: 0.15rem;
}

.motto-text-group span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.motto-explanation {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 991px) {
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Principal & Leadership Spotlight */
.principal-spotlight {
  background-color: #ffffff;
}

.principal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 3.5rem);
  align-items: center;
}

.principal-image-wrap {
  width: 100%;
  max-width: 100%;
}

.principal-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
  background-color: var(--primary-50);
  width: 100%;
}

.principal-photo {
  width: 100%;
  height: auto;
  max-height: 440px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  display: block;
}

.principal-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(to top, rgba(7, 25, 47, 0.9) 0%, rgba(7, 25, 47, 0) 100%);
  color: #ffffff;
}

.principal-overlay-name {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: #ffffff;
}

.principal-overlay-title {
  font-size: 0.85rem;
  color: var(--accent-gold-500);
  font-weight: 600;
}

.principal-message-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.principal-salutation {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  font-weight: 700;
  color: var(--primary-900);
}

.principal-excerpt {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.principal-highlights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 0.5rem 0;
}

.principal-highlight-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background-color: var(--primary-50);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-900);
  min-width: 0;
}

.principal-highlight-badge span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.principal-highlight-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-600);
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .principal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .principal-image-wrap {
    max-width: 400px;
    margin: 0 auto;
  }
  .principal-photo {
    max-height: 400px;
  }
}

@media (max-width: 576px) {
  .principal-highlights-list {
    grid-template-columns: 1fr;
  }
  .principal-image-wrap {
    max-width: 100%;
  }
  .principal-photo {
    max-height: 320px;
  }
}

/* Facilities Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.facility-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.facility-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--header-navy);
}

.facility-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.facility-card:hover .facility-image {
  transform: scale(1.05);
}

.facility-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  background-color: rgba(7, 25, 47, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.facility-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.facility-title {
  font-size: 1.2rem;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.facility-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Document Vault */
.document-library-section {
  background-color: var(--bg-subtle);
}

.doc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background-color: var(--bg-surface);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.doc-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.doc-filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.doc-filter-btn:hover {
  background-color: var(--primary-50);
  color: var(--header-navy);
}

.doc-filter-btn.active {
  background-color: var(--header-navy);
  color: #ffffff;
}

.doc-search-wrap {
  position: relative;
  min-width: 260px;
}

.doc-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  outline: none;
}

.doc-search-input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.doc-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.document-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.document-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--header-navy);
}

.doc-card-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.doc-icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-color: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.doc-meta-content {
  flex: 1;
}

.doc-category-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--header-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.doc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-900);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.doc-submeta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.btn-doc-preview, .btn-doc-download {
  flex: 1;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-doc-preview {
  background-color: var(--primary-50);
  color: var(--header-navy);
  border: 1px solid var(--primary-100);
}

.btn-doc-preview:hover {
  background-color: var(--header-navy);
  color: #ffffff;
}

.btn-doc-download {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-doc-download:hover {
  background-color: var(--bg-subtle);
  color: var(--primary-900);
}

/* Admissions Grid */
.admissions-spotlight-section {
  background: linear-gradient(135deg, #07192f 0%, #17375e 100%);
  color: #ffffff;
}

.admissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.admission-tier-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.admission-tier-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.admission-tier-header {
  margin-bottom: 1.5rem;
}

.admission-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(217, 27, 27, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(217, 27, 27, 0.4);
}

.admission-title {
  color: #ffffff;
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.admission-year {
  color: var(--text-inverse-muted);
  font-size: 0.9rem;
}

.admission-criteria-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admission-criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-inverse-muted);
}

.admission-criteria-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-gold-500);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.admission-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.news-card-image-wrap {
  height: 180px;
  background-color: var(--header-navy);
  position: relative;
  overflow: hidden;
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-900);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Faculty */
.faculty-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.faculty-tab-btn {
  padding: 0.65rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faculty-tab-btn:hover {
  background-color: var(--primary-50);
  color: var(--header-navy);
}

.faculty-tab-btn.active {
  background-color: var(--header-navy);
  color: #ffffff;
  border-color: var(--header-navy);
  box-shadow: 0 4px 12px rgba(23, 55, 94, 0.25);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
  gap: 1.5rem;
}

.faculty-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.15rem;
  text-align: center;
  box-shadow: 0 4px 18px rgba(7, 25, 47, 0.05);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.faculty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d91b1b 0%, #f5c842 50%, #07192f 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -6px rgba(7, 25, 47, 0.14);
  border-color: #f5c842;
}

.faculty-card:hover::before {
  opacity: 1;
}

.faculty-avatar-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  position: relative;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2f6 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.faculty-card:hover .faculty-avatar {
  transform: scale(1.05);
}

.faculty-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.faculty-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.55rem;
  background: #f0f7ff;
  color: #1c4e8a;
  border: 1px solid #d0e1fd;
}

.faculty-section-badge.admin {
  background: #fefce8;
  color: #854d0e;
  border-color: #fef08a;
}

.faculty-section-badge.secondary {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.faculty-section-badge.primary {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.faculty-section-badge.pre-primary {
  background: #faf5ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

.faculty-section-badge.marathi {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.faculty-section-badge.junior-college {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.faculty-section-badge.loyola-school {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.faculty-section-badge.office {
  background: #fdf4ff;
  color: #a21caf;
  border-color: #f5d0fe;
}

.faculty-section-badge.support {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.faculty-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
  line-height: 1.25;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.faculty-designation {
  font-size: 0.82rem;
  color: #d91b1b;
  font-weight: 600;
  line-height: 1.25;
}

.faculty-section {
  display: none;
}

/* ==========================================================================
   CAMPUS FACILITIES & INFRASTRUCTURE SYSTEM
   ========================================================================== */
.facilities-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
}

.facility-filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border-light, #e2e8f0);
  background: #ffffff;
  color: #1e293b;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.facility-filter-btn:hover {
  border-color: #c8963e;
  color: #133863;
  background: #fdf8ee;
  transform: translateY(-1px);
}

.facility-filter-btn.active {
  background: #133863;
  color: #ffffff;
  border-color: #133863;
  box-shadow: 0 4px 14px rgba(19, 56, 99, 0.28);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 2.25rem;
}

.facility-card {
  background-color: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 32, 56, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.facility-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #133863 0%, #c8963e 50%, #0b2038 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -8px rgba(11, 32, 56, 0.15);
  border-color: rgba(200, 150, 62, 0.45);
}

.facility-card:hover::before {
  opacity: 1;
}

.facility-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #0b2038;
}

.facility-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.facility-card:hover .facility-image {
  transform: scale(1.06);
}

.facility-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 32, 56, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f5c842;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(245, 200, 66, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.facility-content {
  padding: 1.65rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.facility-tag-label {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8963e;
  margin-bottom: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.facility-tag-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8963e;
}

.facility-title {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  color: #0b2038;
  margin: 0 0 0.75rem 0;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.facility-desc {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .facilities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .facility-content {
    padding: 1.35rem 1.4rem 1.5rem;
  }
  .facility-title {
    font-size: 1.2rem;
  }
}

/* Houses */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.75rem;
}

.house-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  border-top: 6px solid var(--header-navy);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.house-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.house-card.gandhi { border-top-color: var(--house-gandhi); }
.house-card.nehru { border-top-color: var(--house-nehru); }
.house-card.shivaji { border-top-color: var(--house-shivaji); }
.house-card.tagore { border-top-color: var(--house-tagore); }

.house-emblem-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.house-card.gandhi .house-emblem-wrap { background-color: var(--house-gandhi); color: #785308; }
.house-card.nehru .house-emblem-wrap { background-color: var(--house-nehru); }
.house-card.shivaji .house-emblem-wrap { background-color: var(--house-shivaji); }
.house-card.tagore .house-emblem-wrap { background-color: var(--house-tagore); }

.house-name {
  font-size: 1.35rem;
  color: var(--primary-900);
  margin-bottom: 0.25rem;
}

.house-color-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.house-motto-box {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  width: 100%;
}

.house-motto-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.house-motto-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-900);
}

/* Enhanced House Showcase System - Square Portraits */
.house-portrait-wrap,
.house-square-portrait {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 1.25rem auto;
  border: 4px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(11, 32, 56, 0.12);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.house-card:hover .house-portrait-wrap,
.house-card:hover .house-square-portrait {
  transform: scale(1.05);
}

.house-card.gandhi .house-portrait-wrap,
.house-card.gandhi .house-square-portrait { border-color: #d97706; box-shadow: 0 8px 25px rgba(217, 119, 6, 0.25); }
.house-card.nehru .house-portrait-wrap,
.house-card.nehru .house-square-portrait { border-color: #0284c7; box-shadow: 0 8px 25px rgba(2, 132, 199, 0.25); }
.house-card.shivaji .house-portrait-wrap,
.house-card.shivaji .house-square-portrait { border-color: #dc2626; box-shadow: 0 8px 25px rgba(220, 38, 38, 0.25); }
.house-card.tagore .house-portrait-wrap,
.house-card.tagore .house-square-portrait { border-color: #16a34a; box-shadow: 0 8px 25px rgba(22, 163, 74, 0.25); }

.house-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.house-historic-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(11, 32, 56, 0.05);
  margin: 2.5rem 0;
}

.house-historic-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.house-historic-table th {
  background: #0b2038;
  color: #ffffff;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.house-historic-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.house-historic-table tr:last-child td {
  border-bottom: none;
}

.house-historic-table tr:hover td {
  background-color: #fdf8ee;
}

.house-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.house-color-pill.yellow { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.house-color-pill.blue { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.house-color-pill.red { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.house-color-pill.green { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

.house-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.house-color-pill.yellow .house-color-dot { background: #d97706; }
.house-color-pill.blue .house-color-dot { background: #0284c7; }
.house-color-pill.red .house-color-dot { background: #dc2626; }
.house-color-pill.green .house-color-dot { background: #16a34a; }

/* Student Council Specific Layouts */
.council-grid-2col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.75rem;
  align-items: center;
}

@media (max-width: 991px) {
  .council-grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.council-hierarchy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.council-role-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 18px rgba(11, 32, 56, 0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.council-role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  bottom: 0;
  background: #133863;
}

.council-role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 32, 56, 0.12);
  border-color: #c8963e;
}

.council-role-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b2038;
  margin-bottom: 0.5rem;
}

.council-role-desc {
  font-size: 0.90rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.council-oath-banner {
  background: linear-gradient(135deg, #0b2038 0%, #133863 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(200, 150, 62, 0.4);
  box-shadow: 0 10px 30px rgba(11, 32, 56, 0.18);
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.council-oath-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Gallery & Modals */
.gallery-masonry {
  columns: 4 240px;
  column-gap: 1.25rem;
}

.gallery-masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-color: var(--header-navy);
}

.gallery-masonry-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-smooth);
}

.gallery-masonry-item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 25, 47, 0.85) 0%, rgba(7, 25, 47, 0) 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-masonry-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 25, 47, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background-color: #ffffff;
  color: var(--header-navy);
}

/* PDF Modal */
.pdf-viewer-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 25, 47, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}

.pdf-viewer-modal.active {
  opacity: 1;
  visibility: visible;
}

.pdf-modal-container {
  width: 100%;
  max-width: 900px;
  height: 85vh;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: var(--header-navy);
  color: #ffffff;
}

.pdf-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-modal-body {
  flex: 1;
  background-color: var(--bg-subtle);
  overflow: hidden;
}

/* Timeline */
.timeline-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary-100);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 2rem;
}

.timeline-bullet {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--header-navy);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 2px var(--header-red);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--header-red);
  margin-bottom: 0.25rem;
}

.timeline-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ─────────────────────────────────────────────
   PREMIUM GLASS MOBILE DRAWER
───────────────────────────────────────────── */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #06152c 0%, #081a34 60%, #071629 100%);
  border-left: 1px solid rgba(197, 155, 39, 0.2);
  z-index: 1999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding-top: var(--sat);
  overscroll-behavior: contain;
}

.mobile-drawer.active {
  transform: translateX(0);
}

/* Drawer top gold glow band */
.mobile-drawer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e5b958 50%, transparent);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(197, 155, 39, 0.18);
  flex-shrink: 0;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-drawer-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 0 0 1.5px #c59b27;
}

.mobile-brand-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
}

.mobile-brand-sub {
  font-size: 0.57rem;
  color: #c59b27;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.mobile-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-close:hover {
  background: rgba(197, 155, 39, 0.2);
  border-color: #c59b27;
  color: #e5b958;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 155, 39, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-drawer-body::-webkit-scrollbar { width: 4px; }
.mobile-drawer-body::-webkit-scrollbar-track { background: transparent; }
.mobile-drawer-body::-webkit-scrollbar-thumb { background: rgba(197, 155, 39, 0.3); border-radius: 2px; }

.mobile-nav-list {
  list-style: none;
  padding: 0 0.75rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-nav-item {
  border-radius: 8px;
  overflow: hidden;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fbbf24;
  background: rgba(197, 155, 39, 0.1);
}

.mobile-accordion-btn {
  background: transparent;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}

.mobile-accordion-btn:hover,
.mobile-accordion-btn.expanded {
  color: #fbbf24;
  background: rgba(197, 155, 39, 0.1);
}

.mobile-accordion-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.mobile-accordion-btn.expanded svg {
  transform: rotate(180deg);
  opacity: 1;
}

.mobile-submenu {
  display: none;
  list-style: none;
  padding: 0.3rem 0 0.5rem 0.75rem;
  margin: 0;
  border-left: 2px solid rgba(197, 155, 39, 0.25);
  margin-left: 1rem;
  margin-bottom: 0.25rem;
}

.mobile-submenu.open { display: block; }

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.83rem;
  color: rgba(148, 163, 184, 0.9);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.16s ease;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}

.mobile-sub-link::before {
  content: '›';
  color: #c59b27;
  font-size: 1rem;
  line-height: 1;
}

.mobile-sub-link:hover {
  color: #fff;
  background: rgba(197, 155, 39, 0.08);
}

.mobile-drawer-footer {
  padding: 1rem 1.25rem calc(1rem + var(--sab));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.mobile-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #c59b27, #e5b958);
  color: #050e1c;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-cta:hover {
  background: linear-gradient(135deg, #deb238, #f5cc6a);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.5);
}

/* ==========================================================================
   ULTRA-PREMIUM INSTITUTIONAL FOOTER REDESIGN (2026–27)
   Holy Family High School & Jr. College • Jesuit Heritage Est. 1944
   ========================================================================== */
/* ==========================================================================
   COMPACT ULTRA-PREMIUM INSTITUTIONAL FOOTER (HOLY FAMILY HIGH SCHOOL & JR. COLLEGE)
   ========================================================================== */
.site-footer {
  background-color: #0b1f33;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(200, 150, 62, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(43, 85, 117, 0.15) 0%, transparent 45%),
    linear-gradient(180deg, #102a43 0%, #0b1f33 60%, #081726 100%);
  color: #c5d3e0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #2b5575;
  font-family: var(--font-body);
}

/* Glowing Top Accent Border */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 0%, #a17917 15%, #f5c842 50%, #a17917 85%, transparent 100%);
  box-shadow: 0 0 12px rgba(245, 200, 66, 0.4);
  z-index: 2;
}

/* Ambient Background Glows */
.footer-ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
}

.footer-ambient-glow.glow-gold {
  top: 0;
  left: -5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.15) 0%, transparent 70%);
}

.footer-ambient-glow.glow-blue {
  bottom: 0;
  right: -5%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

/* ==========================================================================
   Section 1: Compact Quick Connect & Notification Bar (Slim Top Strip)
   ========================================================================== */
.footer-top-strip {
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.footer-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-strip-gateways {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.76rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-strip-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 200, 66, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-strip-pill.gold {
  background: rgba(245, 200, 66, 0.08);
  border-color: rgba(245, 200, 66, 0.3);
  color: #f5c842;
}

.footer-strip-pill.gold:hover {
  background: rgba(245, 200, 66, 0.18);
  border-color: #f5c842;
  box-shadow: 0 0 12px rgba(245, 200, 66, 0.25);
}

.footer-strip-pill.red {
  color: #f87171;
}

.footer-strip-pill.red:hover {
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.strip-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.strip-pill-sub {
  color: #94a3b8;
  font-size: 0.7rem;
}

.footer-strip-form {
  display: flex;
  align-items: center;
}

.footer-strip-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.18rem 0.22rem 0.18rem 0.65rem;
  transition: all 0.2s ease;
}

.footer-strip-input-wrap:focus-within {
  border-color: #f5c842;
  box-shadow: 0 0 0 2px rgba(245, 200, 66, 0.2);
}

.footer-strip-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.8rem;
  outline: none;
  width: 180px;
  padding: 0.25rem 0;
}

.footer-strip-input::placeholder {
  color: #64748b;
  font-size: 0.76rem;
}

.footer-strip-btn {
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, #c59b27, #f5c842);
  color: #04080f;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-strip-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   Section 2: Main Compact 4-Column Grid
   ========================================================================== */
.footer-main {
  padding: 2.25rem 0 1.75rem 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.95fr 0.95fr 1.15fr;
  gap: 2.25rem;
}

/* Col 1: Brand & Heritage */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-crest-frame {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 0 0 1.5px #c59b27, 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-crest {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand-title-wrap {
  flex: 1;
  min-width: 0;
}

.footer-school-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.footer-tagline {
  font-size: 0.62rem;
  color: #f5c842;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-top: 0.15rem;
}

.footer-about-text {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.footer-affiliation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-affil-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: #cbd5e1;
}

.footer-affil-badge strong {
  color: #f5c842;
  font-weight: 700;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  position: relative;
}

.footer-social-btn svg {
  width: 17px !important;
  height: 17px !important;
  transition: transform 0.2s ease;
}

.footer-social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  color: #ffffff;
}

.footer-social-btn:hover svg {
  transform: scale(1.1);
}

/* Branded Signature Colors on Hover */
.footer-social-btn.instagram:hover,
.footer-social-btn:nth-child(1):hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 5px 16px rgba(225, 48, 108, 0.45);
}

.footer-social-btn.facebook:hover,
.footer-social-btn:nth-child(2):hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  box-shadow: 0 5px 16px rgba(24, 119, 242, 0.45);
}

.footer-social-btn.youtube:hover,
.footer-social-btn:nth-child(3):hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  box-shadow: 0 5px 16px rgba(255, 0, 0, 0.45);
}

.footer-social-btn.email:hover,
.footer-social-btn[href^="mailto"]:hover,
.footer-social-btn:nth-child(4):hover {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  box-shadow: 0 5px 16px rgba(245, 158, 11, 0.45);
}

.footer-social-btn.location:hover,
.footer-social-btn[href*="map"]:hover,
.footer-social-btn:nth-child(5):hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 5px 16px rgba(239, 68, 68, 0.45);
}

.footer-social-btn.documents:hover,
.footer-social-btn[href*="documents"]:hover,
.footer-social-btn:nth-child(6):hover {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 5px 16px rgba(59, 130, 246, 0.45);
}

.footer-social-btn.phone:hover,
.footer-social-btn[href^="tel"]:hover,
.footer-social-btn:nth-child(7):hover {
  background: #10b981 !important;
  border-color: #10b981 !important;
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.45);
}

/* Columns 2 & 3: Structured Navigation Lists */
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  position: relative;
  padding-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #c59b27, #f5c842);
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.footer-links-list a {
  color: #94a3b8;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links-list a::before {
  content: '›';
  color: #c59b27;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 0.25rem;
}

.footer-links-list a:hover::before {
  transform: translateX(2px);
  color: #f5c842;
}

/* Column 4: Contact & Helpdesk */
.footer-contact-col {
  display: flex;
  flex-direction: column;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

.footer-contact-item svg {
  width: 14px;
  height: 14px;
  stroke: #f5c842;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-contact-details {
  flex: 1;
  min-width: 0;
}

.footer-contact-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
  word-break: break-all;
}

.footer-contact-link:hover {
  color: #f5c842;
}

/* Compact Visiting Hours */
.footer-timing-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  background: rgba(245, 200, 66, 0.04);
  border: 1px solid rgba(245, 200, 66, 0.18);
  border-radius: 7px;
  font-size: 0.73rem;
  color: #cbd5e1;
  margin-top: 0.2rem;
}

.footer-timing-compact strong {
  color: #f5c842;
}

.footer-timing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.footer-apply-badge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.35);
  border-radius: 8px;
  color: #f5c842;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 0.3rem;
}

.footer-apply-badge-btn:hover {
  background: linear-gradient(135deg, #c59b27, #f5c842);
  color: #04080f;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.35);
}

/* ==========================================================================
   Section 3: Compact Footer Bottom Sub-Bar
   ========================================================================== */
.footer-bottom {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright-text {
  color: #94a3b8;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-copyright-text strong {
  color: #f1f5f9;
  font-weight: 700;
}

.copyright-trigger {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.copyright-trigger:focus-visible {
  outline: 2px solid #f5c842;
  outline-offset: 3px;
  border-radius: 3px;
}

.developer-modal[hidden] {
  display: none;
}

.developer-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(3, 12, 24, 0.62);
  backdrop-filter: blur(6px);
}

.developer-modal-card {
  position: relative;
  width: min(100%, 420px);
  padding: 2.25rem 2rem 2rem;
  background: #ffffff;
  color: #132238;
  border: 1px solid #dce5ef;
  border-top: 4px solid #d8aa37;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(3, 12, 24, 0.28);
  text-align: center;
}

.developer-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #cbd8e6;
  border-radius: 50%;
  background: #f7f9fc;
  color: #132238;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.developer-modal-kicker {
  color: #b47d0e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.developer-modal-card h2 {
  margin: 0.5rem 0 1rem;
  color: #07192f;
  font-family: var(--font-heading);
}

.developer-modal-card p {
  margin: 0.55rem 0;
  color: #475569;
}

.developer-modal-card strong {
  color: #07192f;
}

.footer-dev-credit-inline {
  color: #64748b;
  font-size: 0.74rem;
}

.footer-dev-credit-inline strong {
  color: #cbd5e1;
}

.footer-designed-by {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-designed-by a {
  color: #ea580c !important;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-designed-by a:hover {
  color: #f97316 !important;
  text-decoration: underline;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #94a3b8;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
  color: #f5c842;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.25);
  border-radius: 5px;
  color: #f5c842 !important;
  font-weight: 700;
  font-size: 0.72rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.footer-back-to-top:hover {
  background: #f5c842;
  color: #04080f !important;
  transform: translateY(-1px);
}

.footer-designed-by {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #94a3b8;
  font-size: 0.76rem;
}

.footer-designed-by a {
  color: #f5c842;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-designed-by a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Footer Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .footer-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .footer-strip-form {
    width: 100%;
  }
  .footer-strip-input-wrap {
    width: 100%;
  }
  .footer-strip-input {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-strip-gateways {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .footer-strip-pill {
    justify-content: center;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }
  .footer-copyright-text {
    justify-content: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .footer-gateways-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .footer-social-row {
    justify-content: flex-start;
  }
  .footer-timing-slot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

/* Redundant page loader removed — consolidated in core design system */

/* ==========================================================================
   FULL MOBILE RESPONSIVE & iOS SYSTEM
   ========================================================================== */
@media (max-width: 900px) {
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.7rem; }
}

@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.88rem; }

  .site-container, .site-container-wide { padding: 0 1rem; }

  /* iOS Auto-Zoom Prevention on Form Inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    appearance: none;
  }

  /* Hero */
  .hero-building-slider { min-height: 380px; }
  .hero-content-wrap { padding: 1.5rem 1rem; }
  .hero-headline { font-size: 1.7rem; line-height: 1.3; }
  .hero-subtext { font-size: 0.85rem; }
  .hero-badge { font-size: 0.63rem; padding: 0.28rem 0.75rem; }
  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
    padding: 1.25rem 1.4rem;
  }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Grids */
  .results-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .facilities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .news-grid { grid-template-columns: 1fr; }

  /* Two-column layouts */
  .about-two-col,
  .contact-two-col { flex-direction: column; gap: 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-main { padding: 2.5rem 0 1.5rem; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.3rem; }
  .hero-headline { font-size: 1.4rem; }
  .hero-stats-ribbon { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.85rem 1rem; 
    padding: 1.1rem 1rem; 
  }
  .hero-stat-number { font-size: 1.35rem; }
  .hero-stat-label { font-size: 0.64rem; }

  .faculty-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { 
    flex-direction: column; 
    text-align: center; 
    gap: 0.5rem; 
    padding-bottom: calc(0.5rem + var(--sab));
  }

  .btn { padding: 0.6rem 1.1rem; font-size: 0.83rem; }
  .btn-lg { padding: 0.7rem 1.4rem; font-size: 0.88rem; }
}

/* ==========================================================================
   EXPLICIT THEME SPECIALIZATIONS — DARK & LIGHT HEADERS
   ========================================================================== */

/* ─── DARK THEME HEADER ─── */
html[data-theme="dark"] .glass-header {
  background: rgba(4, 14, 28, 0.94) !important;
  border-bottom: 1px solid rgba(245, 200, 66, 0.28) !important;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] .glass-header.scrolled {
  background: rgba(3, 10, 20, 0.98) !important;
  border-bottom-color: rgba(245, 200, 66, 0.45) !important;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="dark"] .glass-topbar {
  background: #020710 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .topbar-info-item,
html[data-theme="dark"] .topbar-link {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .topbar-info-item:hover,
html[data-theme="dark"] .topbar-link:hover {
  color: #f5c842 !important;
}

html[data-theme="dark"] .header-floating-pill {
  background: #102A43 !important;
  border-color: #2B5575 !important;
  box-shadow: 0 8px 30px rgba(5, 15, 25, 0.45) !important;
}

html[data-theme="dark"] .glass-brand-title {
  color: #F5F8FC !important;
}

html[data-theme="dark"] .glass-brand-sub-divider .sub-line {
  background: #2B5575 !important;
}

html[data-theme="dark"] .glass-brand-sub-divider .sub-text {
  color: #91A8BC !important;
}

html[data-theme="dark"] .glass-brand-subtitle {
  color: #f5c842 !important;
}

html[data-theme="dark"] .glass-brand {
  border-right-color: #2B5575 !important;
}

html[data-theme="dark"] .glass-nav-link {
  color: #C5D3E0 !important;
}

html[data-theme="dark"] .glass-nav-link .nav-icon {
  color: #C5D3E0 !important;
}

html[data-theme="dark"] .glass-nav-link .chevron-icon {
  color: #91A8BC !important;
}

html[data-theme="dark"] .glass-nav-link:hover {
  color: #F5F8FC !important;
}

html[data-theme="dark"] .glass-nav-link:hover .nav-icon,
html[data-theme="dark"] .glass-nav-link:hover .chevron-icon {
  color: #F5F8FC !important;
}

html[data-theme="dark"] .glass-nav-item.active > .glass-nav-link {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .glass-nav-item.active > .glass-nav-link .nav-icon {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .header-action-divider {
  background: #2B5575 !important;
}

html[data-theme="dark"] .header-search-circle-btn {
  background: #163A5C !important;
  border-color: #2B5575 !important;
  color: #F5F8FC !important;
}

html[data-theme="dark"] .header-search-circle-btn:hover {
  background: #1B466B !important;
  border-color: #487294 !important;
  color: #38bdf8 !important;
}

html[data-theme="dark"] .modern-admissions-btn,
html[data-theme="dark"] .modern-admissions-pill {
  background: #0B1F33 !important;
  border: 1px solid #2B5575 !important;
}

html[data-theme="dark"] .modern-admissions-btn:hover,
html[data-theme="dark"] .modern-admissions-pill:hover {
  background: #102A43 !important;
  border-color: #487294 !important;
}

html[data-theme="dark"] .mobile-menu-toggle {
  background: #163A5C !important;
  border-color: #2B5575 !important;
  color: #F5F8FC !important;
}

html[data-theme="dark"] .glass-dropdown {
  background: #102A43 !important;
  border: 1px solid #2B5575 !important;
  border-top: 3px solid #c8102e !important;
  box-shadow: 0 16px 40px rgba(5, 15, 25, 0.55) !important;
}

html[data-theme="dark"] .glass-dropdown-link {
  color: #C5D3E0 !important;
}

html[data-theme="dark"] .glass-dropdown-link:hover {
  color: #F5F8FC !important;
  background: #163A5C !important;
}

html[data-theme="dark"] .glass-nested-dropdown {
  background: #102A43 !important;
  border: 1px solid #2B5575 !important;
  box-shadow: 0 16px 40px rgba(5, 15, 25, 0.55) !important;
}

html[data-theme="dark"] .mobile-drawer {
  background: #0B1F33 !important;
  border-right: 1px solid #2B5575 !important;
}
html[data-theme="dark"] .mobile-drawer-header {
  background: #102A43 !important;
  border-bottom: 1px solid #2B5575 !important;
}
html[data-theme="dark"] .mobile-brand-title { color: #F5F8FC !important; }
html[data-theme="dark"] .mobile-brand-sub { color: #91A8BC !important; }
html[data-theme="dark"] .mobile-nav-link,
html[data-theme="dark"] .mobile-accordion-btn { color: #C5D3E0 !important; }
html[data-theme="dark"] .mobile-nav-link:hover,
html[data-theme="dark"] .mobile-nav-link.active,
html[data-theme="dark"] .mobile-accordion-btn:hover { color: #F5F8FC !important; background: #163A5C !important; }
html[data-theme="dark"] .mobile-submenu { background: #102A43 !important; border-left: 2px solid #2B5575 !important; }
html[data-theme="dark"] .mobile-sub-link { color: #91A8BC !important; }
html[data-theme="dark"] .mobile-sub-link:hover { color: #F5F8FC !important; }
html[data-theme="dark"] .mobile-drawer-close { color: #F5F8FC !important; border-color: #2B5575 !important; background: #163A5C !important; }

/* ─── LIGHT THEME HEADER ─── */
html[data-theme="light"] .glass-header {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

html[data-theme="light"] .glass-header.scrolled {
  background: transparent !important;
}

html[data-theme="light"] .glass-topbar {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .topbar-info-item {
  color: #475569 !important;
}
html[data-theme="light"] .topbar-info-item:hover {
  color: #d91b1b !important;
}

html[data-theme="light"] .topbar-link {
  color: #334155 !important;
}
html[data-theme="light"] .topbar-link:hover {
  color: #07192f !important;
  background: rgba(197, 155, 39, 0.12) !important;
}

html[data-theme="light"] .glass-brand-title {
  color: #07192f !important;
}

html[data-theme="light"] .glass-brand {
  border-right-color: transparent !important;
}

html[data-theme="light"] .glass-nav-link {
  color: #0f2744 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .glass-nav-link:hover {
  color: #d91b1b !important;
  background: transparent !important;
}

/* Active Nav Item gets the red button style across ALL pages */
html[data-theme="light"] .glass-nav-item.active > .glass-nav-link {
  background: linear-gradient(135deg, #d91b1b 0%, #b91515 100%) !important;
  color: #ffffff !important;
  border: 1px solid #991b1b !important;
  box-shadow: 0 2px 7px rgba(217, 27, 27, 0.28) !important;
  border-radius: 9px !important;
  padding: 0.32rem 0.80rem !important;
}

html[data-theme="light"] .glass-nav-item.active > .glass-nav-link .nav-icon,
html[data-theme="light"] .glass-nav-item.active > .glass-nav-link .chevron-icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: currentColor !important;
}

/* When Home is NOT active, it is transparent with navy text */
html[data-theme="light"] .glass-nav-item.nav-home-item:not(.active) > .glass-nav-link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #0f2744 !important;
  padding: 0.10rem 0.15rem !important;
}

html[data-theme="light"] .glass-nav-item.nav-home-item:not(.active) > .glass-nav-link .nav-icon {
  color: #0f2744 !important;
}

html[data-theme="light"] .glass-dropdown {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-top: 3.5px solid #c8963e !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  height: auto !important;
  min-height: 0 !important;
}

html[data-theme="light"] .glass-dropdown-link {
  color: #0f2744 !important;
  font-weight: 500 !important;
}

html[data-theme="light"] .glass-dropdown-link:hover {
  color: #133863 !important;
  background: #fdf8ee !important;
  border-left: none !important;
  padding-left: 1rem;
}

html[data-theme="light"] .mobile-drawer {
  background: #ffffff !important;
  border-right-color: #e2e8f0 !important;
}
html[data-theme="light"] .mobile-drawer-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .mobile-brand-title { color: #07192f !important; }
html[data-theme="light"] .mobile-brand-sub { color: #b47d0e !important; }
html[data-theme="light"] .mobile-nav-link,
html[data-theme="light"] .mobile-accordion-btn { color: #1e293b !important; }
html[data-theme="light"] .mobile-nav-link:hover,
html[data-theme="light"] .mobile-nav-link.active,
html[data-theme="light"] .mobile-accordion-btn:hover { color: #b47d0e !important; background: #f8fafc !important; }
html[data-theme="light"] .mobile-sub-link { color: #475569 !important; }
html[data-theme="light"] .mobile-sub-link:hover { color: #b47d0e !important; }
html[data-theme="light"] .mobile-drawer-close { color: #334155 !important; border-color: #cbd5e1 !important; background: #f1f5f9 !important; }

/* ==========================================================================
   NOTICE TICKER — Single-Line Horizontal Scrolling Announcement Bar
   ========================================================================== */
.notice-ticker-bar,
html[data-theme="light"] .notice-ticker-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: 42px !important;
  max-height: 42px !important;
  min-height: 42px !important;
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 900;
  box-sizing: border-box;
}

.notice-ticker-label,
html[data-theme="light"] .notice-ticker-label {
  flex-shrink: 0;
  background: #fef08a !important;
  color: #854d0e !important;
  border-right: 1px solid #fde047 !important;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 1.1rem;
  height: 100%;
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  white-space: nowrap !important;
}

.notice-ticker-track,
html[data-theme="light"] .notice-ticker-track {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 1.25rem;
  white-space: nowrap !important;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.notice-ticker-inner,
html[data-theme="light"] .notice-ticker-inner {
  display: inline-flex !important;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap !important;
  animation: tickerScroll 32s linear infinite;
  cursor: default;
  will-change: transform;
}

.notice-ticker-inner:hover {
  animation-play-state: paused;
}

.notice-item,
html[data-theme="light"] .notice-item {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f2744 !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.notice-item::before,
html[data-theme="light"] .notice-item::before {
  content: '•';
  color: #d91b1b !important;
  font-size: 1.1rem;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
.theme-toggle-btn {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5b958;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: rgba(197, 155, 39, 0.18);
  border-color: rgba(197, 155, 39, 0.45);
  transform: rotate(20deg);
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(0,0,0,0.06) !important;
  border-color: rgba(0,0,0,0.15) !important;
  color: #b58320 !important;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c59b27, #e5b958);
  border: none;
  color: #04080f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.4);
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

#scrollTopBtn:hover {
  box-shadow: 0 10px 28px rgba(197, 155, 39, 0.6);
  transform: translateY(-2px) scale(1.05);
}

#scrollTopBtn svg { width: 18px; height: 18px; }

/* ==========================================================================
   SCROLL-IN ANIMATIONS
   ========================================================================== */
.anim-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.anim-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}



/* ==========================================================================
   ENHANCED SECTION STYLES — Premium Body Design
   ========================================================================== */
.section {
  position: relative;
}

/* Alternating subtle section tints */
.section:nth-child(odd) {
  background: rgba(5, 14, 30, 0.0);
}

/* Premium card hover effects */
.section-card,
.result-card,
.news-card,
.faculty-card,
.facility-card {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease !important;
}

.section-card:hover,
.result-card:hover,
.news-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(197, 155, 39, 0.3) !important;
}

/* Section title gold accent underline matching School Anthem */
.section-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3.5px;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  border-radius: 9999px;
  margin: 0.75rem auto 1.5rem auto;
}

.section-header.text-left .section-title::after,
.archive-section-header .section-title::after,
.header-text-block .section-title::after,
.principal-message-content .section-title::after {
  margin: 0.75rem 0 1.5rem 0;
}



/* ==========================================================================
   SCROLL-TOP MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  #scrollTopBtn { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; }
  .notice-ticker-label { font-size: 0.58rem; padding: 0 0.6rem; }
  .notice-item { font-size: 0.68rem; }
  .notice-ticker-bar { height: 30px; }
}

/* ==========================================================================
   STATE-OF-THE-ART INSTITUTIONAL CALENDAR SYSTEM (2026–27)
   ========================================================================== */
.calendar-page-wrap {
  background: #040c18;
  min-height: 100vh;
}

/* Calendar Hero & Stat Highlights */
.calendar-hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(197, 155, 39, 0.15), transparent 45%),
              linear-gradient(135deg, #051428 0%, #0a213e 50%, #07172c 100%);
  padding: 4.5rem 0 3.5rem 0;
  color: #ffffff;
  border-bottom: 1px solid rgba(197, 155, 39, 0.2);
  overflow: hidden;
}

.calendar-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.calendar-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.calendar-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cal-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: all 0.25s ease;
}

.cal-stat-card:hover {
  background: rgba(197, 155, 39, 0.08);
  border-color: rgba(245, 200, 66, 0.3);
  transform: translateY(-2px);
}

.cal-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(245, 200, 66, 0.12);
  border: 1px solid rgba(245, 200, 66, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c842;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cal-stat-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.calendar-nav-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.cal-stat-label {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* Year & Mode Top Control Bar */
.calendar-control-bar {
  background: rgba(10, 26, 48, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cal-control-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Year Stepper / Switcher */
.cal-year-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.cal-year-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cal-year-btn:hover {
  color: #ffffff;
}

.cal-year-btn.active {
  background: linear-gradient(135deg, #c59b27, #e5b958);
  color: #050f1c;
  box-shadow: 0 2px 10px rgba(197, 155, 39, 0.4);
}

/* View Mode Toggles */
.cal-view-modes {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.cal-view-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.cal-view-btn svg {
  width: 15px;
  height: 15px;
}

.cal-view-btn:hover {
  color: #ffffff;
}

.cal-view-btn.active {
  background: rgba(245, 200, 66, 0.18);
  color: #f5c842;
  border: 1px solid rgba(245, 200, 66, 0.3);
}

/* Quick Action Buttons (Print, Today, Sync) */
.cal-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cal-action-btn svg {
  width: 15px;
  height: 15px;
}

.cal-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cal-action-btn.btn-gold {
  background: linear-gradient(135deg, #c59b27, #e5b958);
  color: #04080f;
  border: none;
}

.cal-action-btn.btn-gold:hover {
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.4);
  transform: translateY(-1px);
}

/* 12-Month Interactive Ribbon / Carousel */
.cal-months-ribbon-wrap {
  padding: 1.25rem 0 0.5rem;
  overflow: hidden;
}

.cal-months-ribbon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 155, 39, 0.3) transparent;
}

.cal-months-ribbon::-webkit-scrollbar {
  height: 4px;
}

.cal-months-ribbon::-webkit-scrollbar-thumb {
  background: rgba(197, 155, 39, 0.3);
  border-radius: 999px;
}

.cal-month-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: rgba(15, 29, 49, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.cal-month-pill:hover {
  background: rgba(26, 46, 75, 0.9);
  color: #ffffff;
  border-color: rgba(245, 200, 66, 0.3);
  transform: translateY(-1px);
}

.cal-month-pill.active {
  background: linear-gradient(135deg, #133966 0%, #0d284a 100%);
  border-color: #f5c842;
  color: #ffffff;
  box-shadow: 0 0 0 1px #f5c842, 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cal-month-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.2);
  color: #f5c842;
  font-size: 0.68rem;
  font-weight: 800;
}

.cal-month-pill.active .cal-month-pill-count {
  background: #f5c842;
  color: #07192f;
}

/* Live Search & Filter Ribbon */
.cal-search-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1.25rem;
  background: rgba(15, 29, 49, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.cal-search-box {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.cal-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.cal-search-input {
  width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 2.25rem;
  background: rgba(6, 17, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s ease;
}

.cal-search-input:focus {
  border-color: #f5c842;
  box-shadow: 0 0 0 2px rgba(245, 200, 66, 0.2);
}

.cal-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cal-filter-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-filter-chip:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cal-filter-chip.active {
  background: rgba(245, 200, 66, 0.18);
  border-color: #f5c842;
  color: #fcd34d;
}

.cal-filter-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Institutional Section Filter Bar (Pre-primary, Primary, Secondary) */
.cal-section-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.25rem 0.25rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.cal-section-label {
  color: #f5c842;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cal-section-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cal-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
}

.cal-section-pill:hover {
  background: rgba(245, 200, 66, 0.15);
  border-color: rgba(245, 200, 66, 0.4);
  color: #fcd34d;
}

.cal-section-pill.active {
  background: #f5c842;
  border-color: #f5c842;
  color: #07192f;
  box-shadow: 0 4px 12px rgba(245, 200, 66, 0.3);
}

.section-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  vertical-align: middle;
}

.section-badge.pre-primary {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}

.section-badge.primary {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.section-badge.secondary {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

/* Category Colors */
.chip-dot.exam, .legend-dot.exam, .cat-badge.exam { background-color: #ef4444; }
.chip-dot.holiday, .legend-dot.holiday, .cat-badge.holiday { background-color: #10b981; }
.chip-dot.sports, .legend-dot.sports, .cat-badge.sports { background-color: #38bdf8; }
.chip-dot.cultural, .legend-dot.cultural, .cat-badge.cultural { background-color: #c084fc; }
.chip-dot.event, .legend-dot.event, .cat-badge.event { background-color: #f59e0b; }
.chip-dot.pta, .legend-dot.pta, .cat-badge.pta { background-color: #fb923c; }

/* Main Calendar Section */
.calendar-section {
  padding: 1rem 0 4rem;
  background: #040c18 !important;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.75rem;
  align-items: start;
}

/* Main Calendar Card */
.calendar-card {
  background: #081a33;
  border: 1px solid rgba(197, 155, 39, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 1.75rem;
  background: linear-gradient(135deg, #07192f 0%, #0d284a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-kicker {
  display: block;
  color: #f5c842;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.calendar-month-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.calendar-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.calendar-nav-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background: #f5c842;
  border-color: #f5c842;
  color: #07192f;
  transform: scale(1.05);
}

.calendar-month-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.15);
  border: 1px solid rgba(245, 200, 66, 0.35);
  color: #fcd34d;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
}

/* Day Names Header */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.calendar-day-head {
  padding: 0.85rem 0.4rem;
  background: #06152b;
  color: #94a3b8;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-day-head.sunday {
  color: #f87171;
}

/* Calendar Day Cells */
.calendar-day-cell {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.65rem;
  border: 0;
  border-radius: 0;
  background: #091c36;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  outline: none;
}

.calendar-day-cell:hover {
  background: #0e294e;
  box-shadow: inset 0 0 0 1.5px rgba(245, 200, 66, 0.5);
  z-index: 2;
}

.calendar-day-cell.selected {
  background: #11315c;
  box-shadow: inset 0 0 0 2px #f5c842;
  z-index: 3;
}

.calendar-day-cell.other-month {
  background: #051020;
  color: #475569;
  cursor: default;
  opacity: 0.6;
}

.calendar-day-cell.sunday {
  background: #0a1b33;
}

.calendar-day-cell.sunday .day-number {
  color: #f87171;
}

.day-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.day-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #f1f5f9;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.calendar-day-cell.today .day-number {
  background: linear-gradient(135deg, #c59b27, #e5b958);
  color: #04080f;
  box-shadow: 0 0 10px rgba(245, 200, 66, 0.5);
}

.day-holiday-star {
  font-size: 0.75rem;
  color: #34d399;
}

/* Event Preview Pills */
.event-preview {
  display: block;
  width: 100%;
  padding: 0.26rem 0.45rem;
  border-left: 3px solid #f59e0b;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.calendar-day-cell:hover .event-preview {
  transform: translateX(1px);
}

.event-preview.exam {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.event-preview.holiday {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.event-preview.sports {
  border-left-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.event-preview.cultural {
  border-left-color: #c084fc;
  background: rgba(192, 132, 252, 0.18);
  color: #e9d5ff;
}

.event-preview.pta {
  border-left-color: #fb923c;
  background: rgba(251, 146, 60, 0.18);
  color: #fed7aa;
}

.event-more {
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 700;
  padding-left: 0.2rem;
}

/* Selected Day Panel */
.selected-day-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  margin: 1.5rem 1.75rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(197, 155, 39, 0.25);
  border-radius: 14px;
  background: rgba(5, 15, 30, 0.85);
}

.selected-day-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a2446 0%, #06172d 100%);
  border: 1px solid rgba(245, 200, 66, 0.25);
  color: #ffffff;
}

.selected-month {
  color: #f5c842;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-date-number {
  margin-top: 0.2rem;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.selected-weekday {
  margin-top: 0.35rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}

.selected-day-events {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.selected-event-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.selected-event-row .legend-dot {
  margin-top: 0.35rem;
}

.selected-event-title {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.selected-event-desc {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.45;
}

.selected-empty {
  color: #64748b;
  font-size: 0.84rem;
  padding: 0.5rem 0;
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem 1.75rem 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
}

.legend-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Sidebar Events List */
.calendar-events-sidebar {
  position: sticky;
  top: 150px;
  padding: 1.5rem;
  background: #081a33;
  border: 1px solid rgba(197, 155, 39, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.sidebar-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.calendar-events-sidebar h3 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.sidebar-subhead {
  margin: 0 0 1.25rem;
  color: #94a3b8;
  font-size: 0.82rem;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 155, 39, 0.3) transparent;
}

.events-list::-webkit-scrollbar {
  width: 4px;
}

.events-list::-webkit-scrollbar-thumb {
  background: rgba(197, 155, 39, 0.3);
  border-radius: 4px;
}

.event-item {
  padding: 0.95rem 1.05rem;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
  border-color: rgba(245, 200, 66, 0.3);
}

.event-item.exam { border-left-color: #ef4444; }
.event-item.holiday { border-left-color: #10b981; }
.event-item.sports { border-left-color: #38bdf8; }
.event-item.cultural { border-left-color: #c084fc; }
.event-item.pta { border-left-color: #fb923c; }

.event-date-badge {
  margin-bottom: 0.25rem;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-title {
  margin-bottom: 0.25rem;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.event-desc {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.45;
}

.no-events-msg {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

/* ==========================================================================
   YEAR OVERVIEW MATRIX (12-MONTH GRID VIEW)
   ========================================================================== */
.year-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.matrix-month-card {
  background: #081a33;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.22s ease;
}

.matrix-month-card:hover {
  border-color: #f5c842;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.matrix-month-card.current {
  border-color: #f5c842;
  background: linear-gradient(180deg, #0c2447 0%, #081a33 100%);
}

.matrix-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.matrix-month-name {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
}

.matrix-month-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.15);
  color: #fcd34d;
}

.matrix-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.matrix-mini-head {
  font-size: 0.58rem;
  color: #64748b;
  font-weight: 700;
  padding-bottom: 0.25rem;
}

.matrix-mini-head.sun {
  color: #f87171;
}

.matrix-mini-day {
  font-size: 0.66rem;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #cbd5e1;
  position: relative;
}

.matrix-mini-day.has-event {
  font-weight: 800;
}

.matrix-mini-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f5c842;
}

.matrix-mini-day.today {
  background: #f5c842;
  color: #07192f;
  font-weight: 800;
}

.matrix-mini-day.other-month {
  opacity: 0.2;
}

/* ==========================================================================
   AGENDA / TIMELINE VIEW
   ========================================================================== */
.agenda-view-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agenda-month-group {
  background: #081a33;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

.agenda-month-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #f5c842;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.agenda-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.agenda-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.agenda-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 200, 66, 0.3);
  transform: translateX(3px);
}

.agenda-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.agenda-date-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.agenda-date-day {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.15rem;
}

.agenda-details h4 {
  margin: 0 0 0.25rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.agenda-details p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ==========================================================================
   CONTENT PROTECTION SYSTEM (Institutional Anti-Scrape & Protected Notices)
   ========================================================================== */
.content-protected {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.content-protection-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(197, 155, 39, 0.08);
  border: 1px solid rgba(197, 155, 39, 0.25);
  border-radius: 10px;
  color: #fcd34d;
  font-size: 0.78rem;
  margin-bottom: 1.5rem;
}

.content-protection-banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Protection Alert Toast */
#protectionToast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #07192f;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid #c59b27;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#protectionToast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Print Watermarking */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .glass-header, .notice-ticker-bar, .calendar-control-bar, .cal-months-ribbon-wrap, .cal-search-filter-bar, .site-footer, #scrollTopBtn, .cal-actions {
    display: none !important;
  }
  .calendar-layout {
    grid-template-columns: 1fr !important;
  }
  .calendar-card {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .calendar-day-cell {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e2e8f0 !important;
  }
  .day-number {
    color: #000000 !important;
  }
  .print-watermark {
    display: block !important;
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 2px solid #07192f;
    margin-bottom: 1.5rem;
  }
}

.print-watermark {
  display: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS FOR CALENDAR
   ========================================================================== */
@media (max-width: 1024px) {
  .calendar-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-events-sidebar {
    position: static;
  }
  .year-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .calendar-hero-stats {
    grid-template-columns: 1fr;
  }
  .cal-control-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .cal-year-selector, .cal-view-modes, .cal-actions {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cal-year-selector::-webkit-scrollbar,
  .cal-view-modes::-webkit-scrollbar,
  .cal-actions::-webkit-scrollbar {
    display: none;
  }
  .cal-view-btn, .cal-year-btn, .cal-action-btn {
    min-height: 42px;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
  }
  .cal-search-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .cal-search-box {
    max-width: 100%;
  }
  .cal-filter-chips, .cal-section-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cal-filter-chips::-webkit-scrollbar,
  .cal-section-pills::-webkit-scrollbar {
    display: none;
  }
  .cal-filter-chip, .cal-section-pill {
    flex-shrink: 0;
    min-height: 36px;
  }
  .year-matrix-grid {
    grid-template-columns: 1fr;
  }
  .agenda-card {
    grid-template-columns: 75px 1fr;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 640px) {
  .calendar-header {
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .calendar-nav-btns {
    width: 100%;
    justify-content: space-between;
  }
  .calendar-nav-btn {
    width: 40px;
    height: 40px;
  }
  .calendar-day-head {
    padding: 0.5rem 0.1rem;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }
  .calendar-day-cell {
    min-height: 75px;
    padding: 0.35rem 0.2rem;
  }
  .selected-day-panel {
    grid-template-columns: 1fr;
    margin: 0.85rem;
    padding: 1rem;
  }
  .selected-day-date {
    min-height: 80px;
    padding: 0.8rem;
  }
  .selected-date-number {
    font-size: 1.85rem;
  }
  .calendar-legend {
    margin: 0.85rem;
    padding-top: 0.85rem;
    gap: 0.5rem 1rem;
  }
  .agenda-card {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .agenda-date-box {
    flex-direction: row;
    gap: 0.65rem;
    justify-content: flex-start;
    padding: 0.45rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .calendar-section {
    padding: 0.75rem 0 3rem;
  }
  .calendar-day-cell {
    min-height: 62px;
    padding: 0.25rem 0.15rem;
    gap: 0.15rem;
  }
  .day-number {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }
  .event-preview {
    font-size: 0.56rem;
    padding: 0.15rem 0.2rem;
    border-left-width: 2.5px;
    line-height: 1.2;
  }
  .event-more {
    font-size: 0.58rem;
  }
  .agenda-month-group {
    padding: 1rem;
    border-radius: 12px;
  }
}

/* ==========================================================================
   2026-27 SOCIAL MEDIA INTEGRATION SUITE
   - Topbar Micro Social Badges
   - Dedicated Institutional Social Hub Section
   - Floating Quick Social Dock
   - Footer Brand Color Hover States
   - Mobile Drawer Quick Social Group
   ========================================================================== */

/* Topbar Social Group */
.topbar-social-group {
  display: none !important;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.35rem;
  margin-left: 0.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(203, 213, 225, 0.85);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.topbar-social-icon-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.topbar-social-icon-btn:hover {
  transform: translateY(-1.5px) scale(1.08);
}

.topbar-social-icon-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #e1306c;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(225, 48, 108, 0.4);
}

.topbar-social-icon-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(24, 119, 242, 0.4);
}

.topbar-social-icon-btn.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.45);
}

/* Dedicated Social Channels Showcase Section */
.social-channels-section {
  position: relative;
  background: linear-gradient(180deg, rgba(4, 12, 24, 0.98) 0%, rgba(7, 25, 47, 0.95) 50%, rgba(4, 12, 24, 0.98) 100%);
  border-top: 1px solid rgba(245, 200, 66, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: 4.5rem 0;
}

.social-ambient-bg {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  z-index: 0;
}

.social-ambient-bg.glow-ig {
  top: 15%;
  left: 5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #e1306c 0%, transparent 70%);
}

.social-ambient-bg.glow-fb {
  bottom: 10%;
  left: 45%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #1877f2 0%, transparent 70%);
}

.social-ambient-bg.glow-yt {
  top: 20%;
  right: 5%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #ff0000 0%, transparent 70%);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

.social-card {
  position: relative;
  background: rgba(8, 26, 51, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: all 0.35s ease;
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/* Card Themes */
.social-card.card-instagram::before {
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-card.card-instagram:hover {
  border-color: rgba(225, 48, 108, 0.4);
  box-shadow: 0 20px 45px rgba(225, 48, 108, 0.18);
}

.social-card.card-facebook::before {
  background: linear-gradient(90deg, #1877f2, #3b5998, #00c6ff);
}
.social-card.card-facebook:hover {
  border-color: rgba(24, 119, 242, 0.4);
  box-shadow: 0 20px 45px rgba(24, 119, 242, 0.18);
}

.social-card.card-youtube::before {
  background: linear-gradient(90deg, #ff0000, #cc0000, #ff4e50);
}
.social-card.card-youtube:hover {
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 20px 45px rgba(255, 0, 0, 0.18);
}

.social-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.social-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.social-card:hover .social-icon-wrapper {
  transform: scale(1.1) rotate(4deg);
}

.social-icon-wrapper.ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon-wrapper.fb {
  background: #1877f2;
}

.social-icon-wrapper.yt {
  background: #ff0000;
}

.social-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.social-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.social-card.card-instagram .social-badge-pill {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
  background: rgba(244, 114, 182, 0.08);
}

.social-card.card-facebook .social-badge-pill {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.08);
}

.social-card.card-youtube .social-badge-pill {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

.social-card-body {
  margin-bottom: 1.75rem;
}

.social-handle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-verified-tick {
  color: #38bdf8;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-channel-title {
  font-size: 0.8rem;
  color: #f5c842;
  font-weight: 600;
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.social-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

.social-card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-card.card-instagram .social-card-action-btn {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(240, 148, 51, 0.15));
  border: 1px solid rgba(225, 48, 108, 0.35);
  color: #fbcfe8;
}
.social-card.card-instagram .social-card-action-btn:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.35);
  transform: translateY(-2px);
}

.social-card.card-facebook .social-card-action-btn {
  background: rgba(24, 119, 242, 0.12);
  border: 1px solid rgba(24, 119, 242, 0.35);
  color: #bfdbfe;
}
.social-card.card-facebook .social-card-action-btn:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
  transform: translateY(-2px);
}

.social-card.card-youtube .social-card-action-btn {
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #fecaca;
}
.social-card.card-youtube .social-card-action-btn:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   FLOATING SOCIAL MEDIA SIDEBAR (Matches User's Reference Screenshot)
   - Vertical stack of solid circular badges
   - Facebook (#1877F2)
   - Instagram (Gradient #f09433 -> #bc1888)
   - WhatsApp (#25D366)
   - YouTube (#FF0000)
   ========================================================================== */
.floating-social-sidebar,
.floating-social-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease, visibility 0.5s ease;
  animation: socialSidebarPopIn 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes socialSidebarPopIn {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(75px) scale(0.8);
  }
  65% {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-6px) scale(1.04);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

.floating-social-circle,
.floating-circle-btn,
.floating-social-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.25s ease;
  position: relative;
  flex-shrink: 0;
  color: #ffffff !important;
}

.floating-social-circle:nth-child(1) { animation: socialPillIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both; }
.floating-social-circle:nth-child(2) { animation: socialPillIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both; }
.floating-social-circle:nth-child(3) { animation: socialPillIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both; }
.floating-social-circle:nth-child(4) { animation: socialPillIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both; }

@keyframes socialPillIn {
  0% {
    opacity: 0;
    transform: translateX(45px) scale(0.6);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.floating-social-circle:hover,
.floating-circle-btn:hover,
.floating-social-item:hover {
  transform: scale(1.15) translateX(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.floating-social-circle svg,
.floating-circle-btn svg,
.floating-social-item svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  fill: #ffffff !important;
  color: #ffffff !important;
  stroke: none !important;
  transition: transform 0.2s ease;
  display: block;
}

.floating-social-circle svg path,
.floating-circle-btn svg path,
.floating-social-item svg path {
  fill: #ffffff !important;
  color: #ffffff !important;
  stroke: none !important;
}

.floating-social-circle.facebook,
.floating-circle-btn.facebook,
.floating-social-item.facebook {
  background: #1877f2 !important;
}

.floating-social-circle.instagram,
.floating-circle-btn.instagram,
.floating-social-item.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.floating-social-circle.whatsapp,
.floating-circle-btn.whatsapp,
.floating-social-item.whatsapp {
  background: #25d366 !important;
}

.floating-social-circle.youtube,
.floating-circle-btn.youtube,
.floating-social-item.youtube {
  background: #ff0000 !important;
}

.floating-social-circle .social-tooltip,
.floating-circle-btn .social-tooltip,
.floating-social-item .floating-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  padding: 0.35rem 0.75rem;
  background: #07192f;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.floating-social-circle .social-tooltip::after,
.floating-circle-btn .social-tooltip::after,
.floating-social-item .floating-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #07192f;
}

.floating-social-circle:hover .social-tooltip,
.floating-circle-btn:hover .social-tooltip,
.floating-social-item:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Footer Social Row Buttons Brand Hover Specializations */
.footer-social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.45) !important;
}

.footer-social-btn.facebook:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.45) !important;
}

.footer-social-btn.youtube:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.45) !important;
}

/* Footer Strip Pills for Socials */
.footer-strip-pill.instagram:hover {
  border-color: rgba(225, 48, 108, 0.6);
  color: #f472b6;
  box-shadow: 0 0 10px rgba(225, 48, 108, 0.25);
}

.footer-strip-pill.facebook:hover {
  border-color: rgba(24, 119, 242, 0.6);
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(24, 119, 242, 0.25);
}

/* Mobile Drawer Social Row */
.mobile-drawer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-drawer-social-btn.instagram:hover,
.mobile-drawer-social-btn.instagram:active {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  color: #ffffff;
}

.mobile-drawer-social-btn.facebook:hover,
.mobile-drawer-social-btn.facebook:active {
  background: #1877f2;
  border-color: transparent;
  color: #ffffff;
}

.mobile-drawer-social-btn.youtube:hover,
.mobile-drawer-social-btn.youtube:active {
  background: #ff0000;
  border-color: transparent;
  color: #ffffff;
}

/* Responsive Rules for Social Grid & Floating Dock */
@media (max-width: 992px) {
  .social-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .floating-social-sidebar,
  .floating-social-dock {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .topbar-social-group {
    display: none;
  }
  .social-channels-section {
    padding: 3rem 0;
  }
  .floating-social-sidebar,
  .floating-social-dock {
    display: none !important;
  }
}

/* Contact Page - Light Institutional Layout */
.contact-page {
  background: #f7f9fc !important;
  color: #132238 !important;
}

.contact-page .contact-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem !important;
  background: linear-gradient(135deg, #07192f 0%, #123c69 100%) !important;
}

.contact-page .contact-hero::after {
  content: '';
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(245, 200, 66, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(245, 200, 66, 0.04), 0 0 0 4rem rgba(245, 200, 66, 0.03);
}

.contact-page .contact-hero .site-container {
  position: relative;
  z-index: 1;
}

.contact-page .contact-hero .section-tag {
  color: #f5c842 !important;
  letter-spacing: 0.14em;
}

.contact-page .contact-hero h1 {
  max-width: 760px;
  margin-bottom: 0.85rem !important;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 4rem) !important;
  line-height: 1.05;
}

.contact-page .contact-hero p {
  max-width: 680px;
  color: #dbe7f5 !important;
  line-height: 1.7;
}

.contact-page .contact-content-section {
  padding: 4rem 0 5rem !important;
  background: #f7f9fc !important;
}

.contact-page .identity-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
  gap: 1.5rem !important;
  align-items: stretch;
}

.contact-page .identity-grid > .motto-card {
  min-width: 0;
  padding: 2rem !important;
  background: #ffffff !important;
  border: 1px solid #dce5ef !important;
  border-top: 4px solid #d8aa37 !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 34px rgba(7, 25, 47, 0.08) !important;
}

.contact-page .identity-grid h2,
.contact-page .contact-map-card h3 {
  color: #07192f !important;
  font-family: var(--font-heading);
}

.contact-page .identity-grid strong,
.contact-page .identity-grid label {
  color: #132238 !important;
}

.contact-page .identity-grid a {
  color: #165aa3 !important;
  font-weight: 600;
}

.contact-page .identity-grid a:hover {
  color: #b47d0e !important;
}

.contact-page .identity-grid .doc-search-input {
  width: 100%;
  min-height: 48px;
  color: #132238 !important;
  background: #fbfdff !important;
  border: 1px solid #cbd8e6 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.contact-page .identity-grid textarea.doc-search-input {
  min-height: 120px;
}

.contact-page .identity-grid .doc-search-input::placeholder {
  color: #7890a8 !important;
}

.contact-page .identity-grid .doc-search-input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.13);
  border-color: #2563eb !important;
}

.contact-page .identity-grid .btn-primary {
  min-height: 50px;
  background: #07192f !important;
  border-color: #07192f !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

.contact-page .identity-grid .btn-primary:hover {
  background: #123c69 !important;
  border-color: #123c69 !important;
}

.contact-page .contact-map-card {
  border-radius: 14px !important;
  border: 1px solid #dce5ef !important;
  box-shadow: 0 14px 34px rgba(7, 25, 47, 0.08) !important;
}

.contact-page .contact-map-card > div:first-child {
  padding: 1.4rem 1.75rem !important;
  background: #ffffff;
}

.contact-page .contact-map-card iframe {
  display: block;
  filter: saturate(0.9);
}

/* Legacy floating theme buttons hidden */
.legacy-theme-toggle-btn {
  display: none !important;
}

/* Legacy modal trigger hidden */
.footer-dev-credit-inline {
  display: none !important;
}

@media (max-width: 991px) {
  .contact-page .identity-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-page .contact-hero {
    padding: 3.5rem 0 3rem !important;
  }

  .contact-page .contact-content-section {
    padding: 2.5rem 0 3.5rem !important;
  }
}

@media (max-width: 640px) {
  .floating-social-sidebar,
  .floating-social-dock {
    display: none !important;
  }
}

/* ==========================================================================
   ENHANCED RESPONSIVE ADMISSIONS & DOCUMENT VAULT STYLES (2026-27)
   ========================================================================== */
.admission-calc-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  transition: all var(--transition-normal);
}

.admission-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 868px) {
  .admission-calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .admission-calc-card {
    padding: 1.5rem;
    margin-top: -1.5rem;
  }
}

.calc-inputs-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.calc-select {
  flex: 1;
  min-width: 100px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-medium);
  font-size: 0.95rem;
  background-color: #f8fafc;
  color: var(--text-primary);
  outline: none;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(7, 25, 47, 0.12);
  background-color: #ffffff;
}

.calc-result-box {
  background: linear-gradient(135deg, #07192f 0%, #102a4d 100%);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold-400);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-result-status {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.calc-result-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Steps Process Grid */
.admission-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  color: var(--accent-gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(7, 25, 47, 0.15);
}

.step-card h4 {
  color: var(--primary-900);
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Document Checklist Grid */
.docs-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.doc-check-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.2s ease;
}

.doc-check-item:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-sm);
  background-color: #fafbfc;
}

.doc-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon-badge svg {
  width: 20px;
  height: 20px;
}

.doc-check-content h5 {
  font-size: 0.98rem;
  color: var(--primary-900);
  margin-bottom: 0.25rem;
}

.doc-check-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

/* Accordion FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto 0 auto;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq-card[open] {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-md);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--primary-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  list-style: none;
  user-select: none;
}

.faq-header::-webkit-details-marker {
  display: none;
}

.faq-header::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-600);
  transition: transform 0.2s ease;
}

.faq-card[open] .faq-header::after {
  content: "âˆ’";
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

/* ==========================================================================
   FACULTY DIRECTORY & CARDS SYSTEM (Verified 6 Official Categories)
   ========================================================================== */
.faculty-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.faculty-tab-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faculty-tab-btn:hover {
  background: #f1f5f9;
  color: #07192f;
  border-color: #94a3b8;
}

.faculty-tab-btn.active {
  background: #07192f;
  color: #ffffff;
  border-color: #07192f;
  box-shadow: 0 4px 12px rgba(7, 25, 47, 0.2);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.faculty-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.faculty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(7, 25, 47, 0.09);
  border-color: #cbd5e1;
}

.faculty-avatar-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
}

.faculty-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1;
}

.faculty-card:hover .faculty-avatar {
  transform: scale(1.03);
}

.faculty-card-body {
  padding: 1.15rem 1rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  align-items: center;
}

.faculty-section-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.faculty-section-badge.pre-primary {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.faculty-section-badge.primary {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.faculty-section-badge.secondary {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.faculty-section-badge.marathi {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.faculty-section-badge.junior-college {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.faculty-section-badge.support {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.faculty-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: #07192f;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.faculty-designation {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .faculty-card-body {
    padding: 0.85rem 0.65rem;
  }
  .faculty-name {
    font-size: 0.92rem;
  }
  .faculty-designation {
    font-size: 0.76rem;
  }
  .faculty-tabs {
    gap: 0.35rem;
  }
  .faculty-tab-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   Global Spotlight Search Modal (Instant Multi-Category Live Search)
   ========================================================================== */
.global-search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.global-search-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.global-search-modal-card {
  width: 100%;
  max-width: 680px;
  background: #0d1e36;
  background: linear-gradient(180deg, #102646 0%, #0a192e 100%);
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 40px rgba(217, 27, 27, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 7rem);
  transform: translateY(-16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-search-modal-backdrop.active .global-search-modal-card {
  transform: translateY(0) scale(1);
}

.global-search-header {
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.global-search-icon {
  width: 22px;
  height: 22px;
  color: #f5c842;
  flex-shrink: 0;
}

.global-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 500;
  color: #ffffff;
  padding: 0;
}

.global-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.global-search-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.global-search-close-btn:hover {
  background: #d91b1b;
  border-color: #d91b1b;
  color: #ffffff;
}

.global-search-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.global-search-chips::-webkit-scrollbar {
  display: none;
}

.global-search-chip {
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.global-search-chip:hover,
.global-search-chip.active {
  background: #f5c842;
  color: #07192f;
  border-color: #f5c842;
}

.global-search-results {
  padding: 0.75rem 0.85rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 420px;
}

.global-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.global-search-item:hover,
.global-search-item.selected {
  background: rgba(245, 200, 66, 0.12);
  border-color: rgba(245, 200, 66, 0.35);
  transform: translateX(4px);
}

.global-search-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.global-search-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.global-search-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.global-search-item-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search-item-title mark {
  background: rgba(245, 200, 66, 0.35);
  color: #fef08a;
  border-radius: 2px;
  padding: 0 2px;
}

.global-search-item-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search-item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.global-search-category-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.global-search-arrow {
  color: #f5c842;
  font-size: 1.1rem;
  transition: transform 0.18s ease;
}

.global-search-item:hover .global-search-arrow {
  transform: translateX(3px);
}

.global-search-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #94a3b8;
}

.global-search-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.global-search-empty h5 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.global-search-footer {
  padding: 0.75rem 1.4rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

.global-search-kbd-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.global-search-kbd-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.global-search-kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.68rem;
  font-family: monospace;
  color: #e2e8f0;
}

@media (max-width: 640px) {
  .global-search-modal-backdrop {
    padding: 1.5rem 0.6rem;
    align-items: center;
  }
  .global-search-modal-card {
    max-height: 85vh;
    border-radius: 14px;
  }
  .global-search-header {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }
  .global-search-input {
    font-size: 0.95rem;
  }
  .global-search-chips {
    padding: 0.45rem 0.8rem;
    gap: 0.35rem;
  }
  .global-search-results {
    padding: 0.5rem;
    max-height: 320px;
  }
  .global-search-item {
    padding: 0.65rem 0.75rem;
  }
  .global-search-item-title {
    font-size: 0.85rem;
  }
  .global-search-item-desc {
    font-size: 0.72rem;
  }
  .global-search-footer {
    padding: 0.55rem 0.85rem;
    font-size: 0.70rem;
    justify-content: center;
    text-align: center;
  }
  .global-search-kbd-group {
    display: none !important;
  }
  .global-search-footer span {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    display: block;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .global-search-modal-backdrop {
    padding: 0.75rem 0.4rem;
  }
  .global-search-modal-card {
    max-height: 90vh;
    border-radius: 12px;
  }
  .global-search-header {
    padding: 0.7rem 0.75rem;
  }
  .global-search-input {
    font-size: 0.88rem;
  }
  .global-search-results {
    max-height: 260px;
  }
  .global-search-item-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  .global-search-category-badge {
    display: none;
  }
}

/* ==========================================================================
   ROLL OF HONOUR & INSTITUTIONAL RESULTS STYLING
   ========================================================================== */
.site-breadcrumb {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  font-size: 0.88rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
  color: #133863;
}

.breadcrumb-item.active {
  color: #0b2038;
  font-weight: 700;
}

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 0.8rem;
  user-select: none;
}

.honour-table-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 3rem;
}

.honour-table-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #07192f 0%, #0d284a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.honour-table-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
}

.honour-data-table {
  width: 100%;
  border-collapse: collapse;
}

.honour-data-table th {
  background: #0b2038;
  color: #ffffff;
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}

.honour-data-table td {
  padding: 1.05rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #1e293b;
  vertical-align: middle;
}

.honour-data-table tr:hover td {
  background-color: #fdf8ee;
}

.honour-data-table .year-badge-cell {
  font-weight: 800;
  color: #0b2038;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.honour-data-table .percent-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(200, 150, 62, 0.12);
  color: #92400e;
  border: 1px solid rgba(200, 150, 62, 0.3);
  border-radius: 9999px;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.honour-data-table .pass-100-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.92rem;
}

.pending-data-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: #f1f5f9;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.82rem;
  font-style: italic;
}

/* ==========================================================================
   MARCH OF ST. IGNATIUS - TRADITIONAL JESUIT HYMN CARD (FULL WIDTH SHOWCASE)
   ========================================================================== */
.ignatius-hymn-card {
  position: relative;
  margin-top: 3.5rem;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(165deg, #ffffff 0%, #fdfcf9 50%, #f7f3ea 100%);
  border: 1.5px solid rgba(197, 155, 39, 0.45);
  border-radius: 20px;
  padding: 2.75rem 2.5rem 2.25rem;
  box-shadow: 0 10px 30px -5px rgba(11, 32, 56, 0.08), 0 0 0 1px rgba(197, 155, 39, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="dark"] .ignatius-hymn-card {
  background: linear-gradient(165deg, #133454 0%, #102a43 55%, #0c2035 100%);
  border-color: rgba(234, 179, 8, 0.35);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(234, 179, 8, 0.2);
}

.ignatius-hymn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c59b27 0%, #eab308 30%, #c8102e 60%, #c59b27 100%);
}

.ignatius-hymn-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(197, 155, 39, 0.25);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ignatius-hymn-title-wrap {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.ignatius-hymn-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.2), rgba(197, 155, 39, 0.05));
  border: 1.5px solid rgba(197, 155, 39, 0.4);
  color: #c59b27;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.15);
}

html[data-theme="dark"] .ignatius-hymn-icon-badge {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(234, 179, 8, 0.08));
  border-color: rgba(234, 179, 8, 0.45);
  color: #f5c842;
}

.ignatius-hymn-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ignatius-hymn-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

.ignatius-hymn-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ignatius-badge-gold {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid rgba(197, 155, 39, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

html[data-theme="dark"] .ignatius-badge-gold {
  color: #fef08a;
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(234, 179, 8, 0.4);
}

.ignatius-badge-latin {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0b2038;
  background: rgba(11, 32, 56, 0.08);
  border: 1px solid rgba(11, 32, 56, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

html[data-theme="dark"] .ignatius-badge-latin {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.35);
}

.ignatius-hymn-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .ignatius-hymn-body {
    grid-template-columns: 1fr;
  }
}

.ignatius-stanza {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  padding: 1.35rem 1.65rem;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .ignatius-stanza {
  background: rgba(22, 58, 92, 0.45);
  border-color: rgba(43, 85, 117, 0.6);
}

.ignatius-stanza:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(197, 155, 39, 0.35);
  transform: translateY(-1px);
}

html[data-theme="dark"] .ignatius-stanza:hover {
  background: rgba(22, 58, 92, 0.7);
  border-color: rgba(234, 179, 8, 0.4);
}

.ignatius-stanza-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b58320;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html[data-theme="dark"] .ignatius-stanza-label {
  color: #f5c842;
}

.ignatius-stanza-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-primary);
  font-style: italic;
  margin: 0;
}

.ignatius-repeat-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  font-style: normal;
  color: #b58320;
  background: rgba(197, 155, 39, 0.15);
  padding: 1px 7px;
  border-radius: 6px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

html[data-theme="dark"] .ignatius-repeat-badge {
  color: #fef08a;
  background: rgba(234, 179, 8, 0.2);
}

/* Chorus / Refrain Box */
.ignatius-chorus-card {
  position: relative;
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.12) 0%, rgba(197, 155, 39, 0.05) 100%);
  border: 1.5px solid rgba(197, 155, 39, 0.45);
  border-left: 5px solid #c59b27;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 15px -2px rgba(197, 155, 39, 0.15);
}

html[data-theme="dark"] .ignatius-chorus-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(16, 42, 67, 0.6) 100%);
  border-color: rgba(234, 179, 8, 0.45);
  border-left: 5px solid #eab308;
}

.ignatius-chorus-card .ignatius-stanza-label {
  color: #92400e;
}

html[data-theme="dark"] .ignatius-chorus-card .ignatius-stanza-label {
  color: #fef08a;
}

.ignatius-chorus-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.85;
  color: #92400e;
  font-style: italic;
  margin: 0;
}

html[data-theme="dark"] .ignatius-chorus-text {
  color: #fef08a;
}

/* Finale Climax Banner */
.ignatius-finale-card {
  position: relative;
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(197, 155, 39, 0.08) 100%);
  border: 1.5px solid rgba(200, 16, 46, 0.3);
  border-left: 5px solid #c8102e;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 16px -2px rgba(200, 16, 46, 0.12);
}

html[data-theme="dark"] .ignatius-finale-card {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.2) 0%, rgba(16, 42, 67, 0.7) 100%);
  border-color: rgba(248, 113, 113, 0.4);
  border-left: 5px solid #ef4444;
}

.ignatius-finale-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8102e;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html[data-theme="dark"] .ignatius-finale-label {
  color: #fca5a5;
}

.ignatius-finale-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.85;
  color: #b91c1c;
  font-style: italic;
  margin: 0;
}

html[data-theme="dark"] .ignatius-finale-text {
  color: #fecaca;
}

.ignatius-hymn-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(197, 155, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PAST PRINCIPALS ULTRA-PREMIUM ARCHIVAL HERITAGE SHOWCASE
   ========================================================================== */
.principals-archive-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.05) 0%, #f8fafc 45%, #f1f5f9 100%);
  overflow: hidden;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.archive-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.header-text-block {
  max-width: 720px;
}

.header-badge-row {
  margin-bottom: 0.75rem;
}

.section-tag.gold-tag {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
}

.archive-stage-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.4rem 0.6rem;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(11, 32, 56, 0.06);
}

.stage-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0b2038;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.stage-nav-btn:hover {
  background: #0b2038;
  color: #ffffff;
  border-color: #0b2038;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(11, 32, 56, 0.25);
}

.stage-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b2038;
  user-select: none;
}

.counter-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.counter-current {
  color: #d97706;
  font-size: 1.05rem;
  font-weight: 800;
  min-width: 1.35rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.counter-divider {
  color: #cbd5e1;
}

.counter-total {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

/* Main Viewport & Stage Track */
.principals-stage-viewport {
  position: relative;
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  padding: 0.5rem 0 !important;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.principals-stage-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  width: 100% !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.principal-slide-card {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

/* Stage Card: Archival Ivory & Jesuit Gold */
.stage-card-inner {
  width: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #fdfbf7 55%, #faf6ee 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.22);
  border-radius: 24px;
  padding: 2.25rem 2.75rem;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2.5rem !important;
  box-shadow: 0 16px 48px rgba(11, 32, 56, 0.08), 0 2px 10px rgba(217, 119, 6, 0.06);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 270px;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.stage-card-inner:hover {
  box-shadow: 0 22px 56px rgba(11, 32, 56, 0.12), 0 4px 16px rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.4);
}

.stage-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #c8963e 0%, #f59e0b 50%, #d97706 100%);
}

.card-heritage-watermark {
  position: absolute;
  right: -25px;
  bottom: -25px;
  width: 220px;
  height: 220px;
  color: rgba(217, 119, 6, 0.05);
  pointer-events: none;
  z-index: 1;
}

/* Left Column: Portrait Showcase */
.stage-portrait-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.portrait-frame-outer {
  position: relative;
  padding: 6px;
  background: linear-gradient(145deg, #e5b95c, #b38226, #875d11);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(11, 32, 56, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.35s ease;
}

.stage-card-inner:hover .portrait-frame-outer {
  transform: translateY(-2px);
}

.portrait-frame-inner {
  width: 190px;
  height: 190px;
  border-radius: 17px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.stage-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.stage-card-inner:hover .stage-portrait-img {
  transform: scale(1.04);
}

.portrait-plaque {
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0b2038 0%, #133863 100%);
  color: #fef3c7;
  padding: 0.28rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  white-space: nowrap;
  z-index: 3;
}

/* No-Photo Archival Heraldry */
.portrait-frame-outer.no-photo-frame {
  background: linear-gradient(145deg, #cbd5e1, #94a3b8);
  box-shadow: 0 10px 24px rgba(11, 32, 56, 0.08);
}

.portrait-frame-inner.no-photo-inner {
  background: linear-gradient(135deg, #fefbf3 0%, #f7f2e4 100%);
}

.no-photo-heraldry {
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

.heraldry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.heraldry-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.heraldry-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #b45309;
  opacity: 0.8;
}

/* Right Column: Editorial Tribute */
.stage-content-col {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.tenure-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92400e;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.ribbon-sparkle {
  color: #d97706;
  font-size: 0.9rem;
}

.ribbon-label {
  font-weight: 500;
  color: #78350f;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.archive-catalog-number {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  background: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.stage-principal-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0b2038;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.35rem;
}

.stage-principal-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stage-quote-box {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  border-left: 3.5px solid #d97706;
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.4rem 1.1rem 2.5rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.quote-mark {
  position: absolute;
  left: 0.65rem;
  top: -0.4rem;
  font-family: Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
  color: #d97706;
  opacity: 0.35;
  user-select: none;
}

.stage-principal-bio {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  margin: 0;
  font-style: normal;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.stage-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(203, 213, 225, 0.8);
  flex-wrap: wrap;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

/* Interactive Chronological Heritage Timeline Strip */
.principals-timeline-container {
  max-width: 980px;
  margin: 1.25rem auto 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.15rem 1.4rem;
  box-shadow: 0 6px 22px rgba(11, 32, 56, 0.05);
}

.timeline-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-meta-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #0b2038;
}

.timeline-meta-title svg {
  color: #d97706;
}

.timeline-meta-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
}

.principals-timeline-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.65rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.principals-timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

.principals-timeline-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.timeline-era-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.55rem 0.95rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.timeline-era-btn .era-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.timeline-era-btn .era-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0b2038;
  white-space: nowrap;
}

.timeline-era-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.timeline-era-btn.active {
  background: linear-gradient(135deg, #0b2038 0%, #133863 100%);
  border-color: #d97706;
  box-shadow: 0 4px 14px rgba(11, 32, 56, 0.22);
  transform: translateY(-2px);
}

.timeline-era-btn.active .era-year {
  color: #f59e0b;
}

.timeline-era-btn.active .era-name {
  color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 820px) {
  .stage-card-inner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 2.25rem 1.75rem !important;
    gap: 1.75rem !important;
  }

  .stage-content-col {
    align-items: center !important;
    text-align: center !important;
  }

  .stage-meta-header {
    justify-content: center !important;
  }

  .stage-principal-role {
    justify-content: center !important;
  }

  .stage-quote-box {
    border-left: none;
    border-top: 3.5px solid #d97706;
    border-radius: 0 0 12px 12px;
    padding: 1.25rem 1rem 1rem !important;
    text-align: center;
  }

  .quote-mark {
    display: none;
  }

  .stage-card-footer {
    justify-content: center !important;
  }
}

@media (max-width: 640px) {
  .archive-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage-card-inner {
    padding: 1.75rem 1.25rem !important;
    border-radius: 18px;
  }

  .portrait-frame-inner,
  .no-photo-heraldry {
    width: 150px;
    height: 150px;
  }

  .stage-principal-name {
    font-size: 1.45rem;
  }

  .stage-principal-bio {
    font-size: 0.92rem;
  }
}

/* Dark Theme Compatibility */
html[data-theme="dark"] .principals-archive-section {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, #07192f 45%, #051324 100%) !important;
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .archive-stage-controls {
  background: #0d1e33;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .stage-nav-btn {
  background: #07192f;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

html[data-theme="dark"] .stage-nav-btn:hover {
  background: #f59e0b;
  color: #07192f;
  border-color: #f59e0b;
}

html[data-theme="dark"] .counter-divider {
  color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .stage-card-inner {
  background: linear-gradient(145deg, #0d1e33 0%, #0b1a2d 60%, #071424 100%);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(217, 119, 6, 0.1);
}

html[data-theme="dark"] .stage-principal-name {
  color: #f8fafc;
}

html[data-theme="dark"] .stage-principal-bio {
  color: #cbd5e1;
}

html[data-theme="dark"] .stage-quote-box {
  background: rgba(11, 32, 56, 0.6);
  box-shadow: none;
}

html[data-theme="dark"] .footer-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

html[data-theme="dark"] .archive-catalog-number {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

html[data-theme="dark"] .principals-timeline-container {
  background: #0d1e33;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .timeline-meta-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .timeline-meta-bar {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .timeline-era-btn {
  background: #07192f;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .timeline-era-btn .era-name {
  color: #cbd5e1;
}

html[data-theme="dark"] .timeline-era-btn.active {
  background: linear-gradient(135deg, #133863 0%, #1e4b82 100%);
  border-color: #f59e0b;
}

html[data-theme="dark"] .portrait-frame-inner.no-photo-inner {
  background: linear-gradient(135deg, #0f2744 0%, #0b1a2d 100%);
}






