/* ==========================================================================
   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);

  /* Institutional Identity Colors */
  --header-red: #d91b1b;
  --header-red-hover: #b91515;
  --header-navy: #07192f;
  --header-navy-hover: #0f2744;
  --header-navy-dark: #040c18;

  --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 */
  --bg-body: #030c18;
  --bg-surface: #07192f;
  --bg-subtle: #09203c;
  --bg-muted: #0d284a;
  --bg-card: #091f3a;
  --bg-card-hover: #0e2d52;
  --bg-card-subtle: #081a33;
  --bg-glass: rgba(7, 25, 47, 0.88);
  --bg-glass-card: rgba(9, 31, 58, 0.88);
  --bg-glass-strong: rgba(5, 18, 36, 0.95);
  --bg-input: #06182e;
  --bg-dropdown: #07192f;
  --bg-table-stripe: #07192f;
  --bg-table-head: #030c18;
  --text-table-head: #f5c842;

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

  /* Borders & Dividers */
  --border-light: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.16);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-card-hover: #f5c842;
  --border-input: rgba(255, 255, 255, 0.18);
  --border-glass: rgba(255, 255, 255, 0.12);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 200, 66, 0.15);
  --shadow-dropdown: 0 16px 40px rgba(0, 0, 0, 0.7);
}

/* 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;
}

/* 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;
}

.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: #1e3a8a !important;
}
html[data-theme="dark"] .calendar-day-head {
  background: #06182e !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: #0f2d52 !important;
}

html[data-theme="light"] .calendar-day-cell.selected {
  background: #fef9c3 !important;
}
html[data-theme="dark"] .calendar-day-cell.selected {
  background: #1e3a66 !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;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--primary-50);
  color: var(--primary-700);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-100);
  margin-bottom: 1rem;
}

.section-tag.gold {
  background-color: var(--accent-gold-50);
  color: var(--accent-gold-900);
  border-color: var(--accent-gold-100);
}

.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: linear-gradient(180deg, #07192f 0%, #0b2341 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(245, 200, 66, 0.9);
  box-shadow: 0 10px 28px rgba(4, 12, 24, 0.2);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  padding-top: var(--sat);
}

.glass-header.scrolled {
  background: linear-gradient(180deg, #07192f 0%, #0d2a4f 100%);
  box-shadow: 0 12px 32px rgba(4, 12, 24, 0.26);
}

/* ─── Utility Topbar ─── */
.glass-topbar {
  display: none;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  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: var(--text-secondary);
  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: var(--accent-gold-400); }

.topbar-info-item svg {
  width: 12px; height: 12px;
  color: var(--accent-gold-400);
  flex-shrink: 0;
}

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

.topbar-link {
  color: var(--text-secondary);
  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: var(--accent-gold-400);
  background: rgba(196, 155, 39, 0.12);
}

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

.glass-navbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 88px;
  width: 100%;
  padding: 0.7rem 0;
}

/* ─── Brand ─── */
.glass-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0.25rem 1rem 0.25rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  margin-right: 0.25rem;
  transition: opacity 0.2s ease;
  max-width: none;
  -webkit-tap-highlight-color: transparent;
}

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

.glass-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.18));
  flex-shrink: 0;
}

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

.glass-brand-title {
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 1vw, 1.28rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.glass-brand-subtitle {
  font-size: clamp(0.52rem, 0.56vw, 0.68rem);
  font-weight: 700;
  color: #f5c842;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.12rem;
  white-space: nowrap;
}

/* ─── Desktop Nav — Elegant Underline Style ─── */
.glass-nav {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: visible;
  min-width: 0;
  justify-content: center;
  padding: 0;
}

.glass-nav-rows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 100%;
}

.glass-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.2rem, 0.5vw, 0.65rem);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.glass-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

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

.glass-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  min-height: 32px;
  padding: 0.48rem 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 0.76vw, 0.82rem);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.glass-nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 3px;
  background: var(--accent-gold-400);
  border-radius: 999px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
  opacity: 0;
}

.glass-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 200, 66, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.glass-nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.glass-nav-item.active > .glass-nav-link {
  color: #07192f;
  font-weight: 700;
  background: linear-gradient(180deg, #f5c842 0%, #e7b137 100%);
  box-shadow: 0 8px 18px rgba(245, 200, 66, 0.22);
  border-color: rgba(255,255,255,0.3);
}

.glass-nav-item.active > .glass-nav-link::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
  background: var(--accent-gold-400);
}

.glass-nav-link svg {
  width: 9px; height: 9px;
  transition: transform 0.22s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.glass-nav-link span {
  color: var(--accent-gold-400);
  font-size: 0.7em;
  line-height: 1;
  transition: transform 0.22s ease;
}

.glass-nav-item:hover > .glass-nav-link span {
  transform: rotate(180deg);
}

.glass-nav-item:hover > .glass-nav-link svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* ─── Dropdown Panels — Theme Adaptive ─── */
.glass-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: rgba(7, 25, 47, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--accent-gold-400);
  border-radius: 8px 8px 12px 12px;
  box-shadow: 0 22px 40px rgba(3, 8, 18, 0.34);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
  pointer-events: none;
}

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

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

.glass-dropdown-link {
  display: flex;
  align-items: center;
  padding: 0.58rem 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.16s ease, background 0.16s ease, padding-left 0.16s ease;
  gap: 0.5rem;
  position: relative;
  border-radius: 7px;
  -webkit-tap-highlight-color: transparent;
}

/* Left gold accent bar on hover */
.glass-dropdown-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 2px;
  background: var(--accent-gold-400);
  border-radius: 1px;
  opacity: 0;
  transform: scaleY(0);
  transition: all 0.18s ease;
}

.glass-dropdown-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  padding-left: 0.95rem;
}

.glass-dropdown-link:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.glass-dropdown-parent {
  position: relative;
}

.glass-dropdown-parent > .glass-dropdown-link span {
  margin-left: auto;
  color: var(--accent-gold-400);
}

.glass-dropdown-nested {
  top: -0.5rem;
  left: calc(100% + 0.45rem);
  transform: translateX(-6px);
  min-width: 245px;
}

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

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

.marathi-menu-text {
  font-family: 'Noto Sans Devanagari', sans-serif;
  letter-spacing: 0;
}

/* ─── Header Actions ─── */
.glass-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.4rem 0 0.4rem 0.4rem;
}

/* Refined Gold CTA */
.glass-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  background: linear-gradient(180deg, #f5c842 0%, #d9a734 100%);
  border: 1px solid rgba(255,255,255,0.18);
  color: #07192f;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 16px rgba(7, 25, 47, 0.12);
}

.glass-cta-btn:hover {
  background: linear-gradient(180deg, #f7d15d 0%, #e4ad32 100%);
  border-color: rgba(255,255,255,0.28);
  color: #07192f;
  box-shadow: 0 10px 22px rgba(245, 200, 66, 0.22);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #07192f;
  padding: 0.4rem;
  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: #e2e8f0; }
.mobile-menu-toggle svg { width: 22px; height: 22px; }

/* ══════════════════════════════════════════════════════════════════════════
   Header Responsive Breakpoints (Zero-Overlap Precision Layout)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1400px) {
  .glass-brand {
    gap: 0.5rem;
    padding-right: 0.5rem;
    margin-right: 0.1rem;
  }
  .glass-brand-logo {
    width: 42px;
    height: 42px;
  }
  .glass-brand-title {
    font-size: 0.74rem;
  }
  .glass-brand-subtitle {
    font-size: 0.50rem;
    letter-spacing: 0.06em;
  }
  .glass-nav-row {
    gap: 0.1rem;
  }
  .glass-nav-list {
    gap: 0.1rem;
  }
  .glass-nav-link {
    font-size: 0.67rem;
    padding: 0.32rem 0.22rem;
    gap: 0.15rem;
  }
  .glass-nav-link svg {
    width: 7px;
    height: 7px;
  }
  .glass-cta-btn {
    padding: 0.30rem 0.65rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 1260px) {
  .glass-brand {
    gap: 0.35rem;
    padding-right: 0.35rem;
    margin-right: 0;
    border-right-color: rgba(255, 255, 255, 0.1);
  }
  .glass-brand-logo {
    width: 36px;
    height: 36px;
  }
  .glass-brand-title {
    font-size: 0.68rem;
  }
  .glass-brand-subtitle {
    display: none;
  }
  .glass-nav-link {
    font-size: 0.62rem;
    padding: 0.28rem 0.15rem;
    gap: 0.1rem;
  }
  .glass-nav-link svg {
    display: none;
  }
  .glass-cta-btn {
    padding: 0.26rem 0.50rem;
    font-size: 0.64rem;
  }
}

/* Switch to sleek mobile drawer at 1160px where 12 nav items + brand can no longer coexist cleanly */
@media (max-width: 1160px) {
  .glass-topbar { display: none; }
  .glass-nav { display: none; }
  .glass-actions .glass-cta-btn { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .glass-brand { border-right: none; }
  .glass-navbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .glass-navbar-inner {
    min-height: 60px;
    padding: 0.5rem 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }
  .glass-brand {
    gap: 0.5rem;
    padding-right: 0.25rem;
    margin-right: 0;
    min-width: 0;
  }
  .glass-brand-logo {
    width: 40px;
    height: 40px;
  }
  .glass-brand-title {
    font-size: clamp(0.72rem, 2.8vw, 0.92rem);
    white-space: normal;
    line-height: 1.15;
    word-break: break-word;
  }
  .glass-brand-subtitle {
    font-size: 0.52rem;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 380px) {
  .glass-brand-logo {
    width: 34px;
    height: 34px;
  }
  .glass-brand-title {
    font-size: 0.72rem;
    line-height: 1.15;
  }
  .glass-brand-subtitle {
    display: none;
  }
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
  }
}



/* ==========================================================================
   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: clamp(0.75rem, 1.5vw, 1.5rem);
  background: rgba(6, 20, 38, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--accent-gold-500);
  border-radius: 12px;
  padding: clamp(1rem, 2vw, 1.5rem 2rem);
  margin-top: 2.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 0.75rem;
}

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

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #facc15;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
}

.hero-stat-label {
  font-size: clamp(0.65rem, 1vw, 0.76rem);
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

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

@media (max-width: 480px) {
  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.85rem 0.75rem;
    margin-top: 1.5rem;
  }
  .hero-stat-number {
    font-size: 1.35rem;
  }
  .hero-stat-label {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   Notice Bar & Results Grid
   ========================================================================== */
.announcement-bar {
  background-color: var(--header-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  color: #ffffff;
}

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

.announcement-badge {
  background: var(--header-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.announcement-ticker {
  flex: 1;
  font-size: 0.92rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.announcement-ticker a:hover {
  color: var(--accent-gold-500);
}

.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%, 210px), 1fr));
  gap: 1.75rem;
}

.faculty-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.faculty-avatar-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem auto;
  border: 3px solid var(--primary-50);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.25rem;
}

.faculty-designation {
  font-size: 0.85rem;
  color: var(--header-red);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.faculty-section {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 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);
}

/* 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: #030813;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(197, 155, 39, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(30, 86, 160, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, #051020 0%, #030813 60%, #01040a 100%);
  color: #94a3b8;
  position: relative;
  overflow: hidden;
  border-top: none;
  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.5rem;
  margin-top: 0.15rem;
}

.footer-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-btn svg {
  width: 14px;
  height: 14px;
}

.footer-social-btn:hover {
  background: #f5c842;
  border-color: #f5c842;
  color: #04080f;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(245, 200, 66, 0.35);
}

/* 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) {
  .glass-navbar-inner { min-height: 48px; }
  .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: 0.75rem;
    padding: 1rem 1.25rem;
  }
  .hero-stat-number { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.65rem; }
  .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: 1fr 1fr; gap: 0.5rem; padding: 0.85rem; }
  .hero-stat-number { font-size: 1.3rem; }

  .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"] .glass-brand-title {
  color: #ffffff !important;
}

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

html[data-theme="dark"] .glass-brand {
  border-right-color: rgba(255, 255, 255, 0.12) !important;
}

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

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

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

html[data-theme="dark"] .glass-dropdown {
  background: #07192f !important;
  border: 1px solid rgba(245, 200, 66, 0.25) !important;
  border-top: 2px solid #f5c842 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
}

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

html[data-theme="dark"] .glass-dropdown-link:hover {
  color: #f5c842 !important;
  background: rgba(245, 200, 66, 0.12) !important;
}

html[data-theme="dark"] .mobile-drawer {
  background: #06182e !important;
  border-right-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .mobile-drawer-header {
  background: #030d1d !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .mobile-brand-title { color: #ffffff !important; }
html[data-theme="dark"] .mobile-brand-sub { color: #f5c842 !important; }
html[data-theme="dark"] .mobile-nav-link,
html[data-theme="dark"] .mobile-accordion-btn { color: #cbd5e1 !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: #f5c842 !important; background: rgba(245, 200, 66, 0.1) !important; }
html[data-theme="dark"] .mobile-sub-link { color: #94a3b8 !important; }
html[data-theme="dark"] .mobile-sub-link:hover { color: #f5c842 !important; }
html[data-theme="dark"] .mobile-drawer-close { color: #ffffff !important; border-color: rgba(255, 255, 255, 0.15) !important; background: rgba(255, 255, 255, 0.06) !important; }

/* ─── LIGHT THEME HEADER ─── */
html[data-theme="light"] .glass-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .glass-header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !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: #07192f !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-subtitle {
  color: #b47d0e !important;
}

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

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

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

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

html[data-theme="light"] .glass-dropdown {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 2px solid #c59b27 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1) !important;
}

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

html[data-theme="light"] .glass-dropdown-link:hover {
  color: #07192f !important;
  background: #f8fafc !important;
}

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 — Scrolling Announcement Bar
   ========================================================================== */
.notice-ticker-bar {
  background: linear-gradient(135deg, #071829, #0d2645);
  border-bottom: 1px solid rgba(197, 155, 39, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 34px;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.notice-ticker-label {
  flex-shrink: 0;
  background: linear-gradient(135deg, #c59b27, #e5b958);
  color: #04080f;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 0.85rem;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  white-space: nowrap;
  position: relative;
}

/* Gold chevron arrow after label */
.notice-ticker-label::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 10px solid #c59b27;
  z-index: 3;
}

.notice-ticker-track {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 14px;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.notice-ticker-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: tickerScroll 38s linear infinite;
  cursor: default;
}

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

.notice-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.9);
  letter-spacing: 0.01em;
}

.notice-item::before {
  content: '●';
  color: #e5b958;
  font-size: 0.45rem;
  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 */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #c59b27, #e5b958);
  border-radius: 2px;
  margin-top: 0.5rem;
}



/* ==========================================================================
   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%;
}

/* 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;
  }
  .cal-year-selector, .cal-view-modes, .cal-actions {
    justify-content: center;
  }
  .cal-search-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cal-search-box {
    max-width: 100%;
  }
  .year-matrix-grid {
    grid-template-columns: 1fr;
  }
  .agenda-card {
    grid-template-columns: 80px 1fr;
  }
}

@media (max-width: 640px) {
  .calendar-header {
    padding: 1rem;
  }
  .calendar-day-head {
    padding: 0.55rem 0.15rem;
    font-size: 0.56rem;
  }
  .calendar-day-cell {
    min-height: 80px;
    padding: 0.4rem 0.25rem;
  }
  .selected-day-panel {
    grid-template-columns: 1fr;
    margin: 1rem;
  }
  .selected-day-date {
    min-height: 92px;
  }
  .calendar-legend {
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .calendar-day-cell {
    min-height: 68px;
    padding: 0.35rem 0.2rem;
  }
  .day-number {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }
  .event-preview {
    font-size: 0.58rem;
    padding: 0.15rem 0.25rem;
  }
}

/* ==========================================================================
   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;
}

.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;
  height: 22px;
  fill: #ffffff;
  transition: transform 0.2s ease;
}

.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 {
    right: 10px;
  }
  .floating-social-circle,
  .floating-circle-btn {
    width: 38px;
    height: 38px;
  }
  .floating-social-circle svg,
  .floating-circle-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 768px) {
  .topbar-social-group {
    display: none;
  }
  .social-channels-section {
    padding: 3rem 0;
  }
  .floating-social-sidebar,
  .floating-social-dock {
    top: auto !important;
    bottom: 14px !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    gap: 12px !important;
    background: rgba(6, 21, 44, 0.92) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 7px 16px !important;
    border-radius: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    animation: socialDockSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both !important;
    max-width: 92vw !important;
    z-index: 9990 !important;
  }

  @keyframes socialDockSlideUp {
    0% {
      opacity: 0;
      visibility: hidden;
      transform: translateX(-50%) translateY(40px) scale(0.9);
    }
    100% {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }

  .floating-social-circle,
  .floating-circle-btn,
  .floating-social-item {
    width: 38px !important;
    height: 38px !important;
    border-width: 1.5px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    animation: none !important;
  }

  .floating-social-circle:hover,
  .floating-circle-btn:hover,
  .floating-social-item:hover,
  .floating-social-circle:active,
  .floating-circle-btn:active,
  .floating-social-item:active {
    transform: scale(1.15) translateY(-3px) !important;
  }

  .floating-social-circle svg,
  .floating-circle-btn svg,
  .floating-social-item svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Hide intrusive tooltips on touch devices */
  .floating-social-circle .social-tooltip,
  .floating-circle-btn .social-tooltip,
  .floating-social-item .floating-tooltip {
    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);
}

#themeToggleBtn,
.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 {
    top: auto !important;
    bottom: 12px !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 6px 14px !important;
  }
  .floating-social-circle,
  .floating-circle-btn {
    width: 36px !important;
    height: 36px !important;
  }
  .floating-social-circle svg,
  .floating-circle-btn svg {
    width: 17px !important;
    height: 17px !important;
  }
}
