/* ==========================================================================
   LASKARPUR HIGH SCHOOL (H.S.) - MASTER DESIGN SYSTEM
   Approved Direction: Concept A "PREMIUM INSTITUTIONAL"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Concept A: Academic Royal & Heritage Gold Palette */
  --primary-950: #071326; /* Deepest Canvas / High-Contrast Headings */
  --primary-900: #0B1E3B; /* Oxford Navy Base Anchor */
  --primary-800: #142E54; /* Elevated Card Surface / Deep Header */
  --primary-700: #1B3B6F; /* Deep Academy Blue */
  --primary-600: #2563EB; /* Interactive Blue */
  --primary-500: #3B82F6; /* Accent Blue */
  --primary-100: #DBEAFE; /* Soft Ice Blue */
  --primary-50:  #EFF6FF; /* Tint Canvas */

  --accent-gold-700: #9A7220; /* Deep Burnished Gold */
  --accent-gold-600: #B38628; /* Classic Academy Gold */
  --accent-gold-500: #C89B3C; /* Heritage Gold (Approved Anchor) */
  --accent-gold-400: #DFB55C; /* Warm Gold Hover */
  --accent-gold-100: #FAF4E5; /* Subtle Gold Tint Container */
  --accent-gold-50:  #FCF9F0; /* Soft Gold Light Surface */

  --accent-green-600: #059669;
  --accent-green-500: #10B981;
  --accent-green-100: #D1FAE5;

  --accent-red-600: #DC2626;
  --accent-red-500: #EF4444;
  --accent-red-100: #FEE2E2;

  --neutral-900: #0F172A; /* Slate Black */
  --neutral-800: #1E293B; /* Charcoal Slate */
  --neutral-700: #334155; /* Deep Neutral */
  --neutral-600: #475569; /* Body Copy Slate */
  --neutral-500: #64748B; /* Muted Caption */
  --neutral-400: #94A3B8; /* Subtle Border */
  --neutral-300: #CBD5E1; /* Hairline Divider */
  --neutral-200: #E2E8F0; /* Card Border Light */
  --neutral-100: #F1F5F9; /* Surface Neutral */
  --neutral-50:  #F8FAFC; /* Primary Light Canvas */
  --neutral-white: #FFFFFF;

  /* Typography Stacks */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-bengali: 'Hind Siliguri', 'Noto Sans Bengali', 'Kalpurush', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SF Mono', Consolas, monospace;

  /* Shadows & Elevation */
  --shadow-xs: 0 1px 2px 0 rgba(7, 19, 38, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(7, 19, 38, 0.06), 0 1px 2px 0 rgba(7, 19, 38, 0.04);
  --shadow-md: 0 4px 12px -1px rgba(7, 19, 38, 0.08), 0 2px 6px -1px rgba(7, 19, 38, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(7, 19, 38, 0.10), 0 4px 8px -2px rgba(7, 19, 38, 0.05);
  --shadow-xl: 0 24px 48px -12px rgba(7, 19, 38, 0.16);
  --shadow-gold: 0 8px 20px -4px rgba(200, 155, 60, 0.35);
  --shadow-floating: 0 24px 48px -12px rgba(7, 19, 38, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

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

  /* Frosted Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-dark-bg: rgba(11, 30, 59, 0.88);
  --glass-border: rgba(226, 232, 240, 0.85);
  --glass-dark-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(7, 19, 38, 0.12);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-700);
  background-color: var(--neutral-50);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

button, input, select, textarea {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--neutral-900);
  line-height: 1.25;
  font-weight: 700;
}

/* ==========================================================================
   Layout Containers & Grid
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

.section-dark {
  background-color: var(--primary-900);
  color: var(--neutral-100);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--neutral-white);
}

.section-alt {
  background-color: var(--neutral-100);
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

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

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--neutral-500);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--neutral-400);
}

/* ==========================================================================
   Top Announcement & Contact Bar
   ========================================================================== */
.top-bar {
  background-color: var(--primary-900);
  color: var(--neutral-300);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar a {
  color: var(--neutral-300);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.top-bar a:hover {
  color: var(--accent-gold-400);
}

.top-bar-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-400);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Marquee Notice Ticker */
.notice-ticker-bar {
  background: linear-gradient(90deg, #1e3a8a, #0f2b46);
  color: #fff;
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  font-size: 0.9rem;
}

.ticker-label {
  background: var(--accent-gold-500);
  color: var(--neutral-900);
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-right: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  animation: ticker-slide 28s linear infinite;
  padding-left: 100%;
}

@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.25rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 0;
}

/* Institutional Identity & Brand Block */
.brand-identity-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

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

.brand-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--accent-gold-500);
  box-shadow: 0 2px 8px rgba(7, 19, 38, 0.12);
  background: #ffffff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-identity:hover .brand-logo {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neutral-500);
  margin-top: 0.2rem;
  white-space: nowrap;
}

/* Dedicated Institutional UDISE Badge */
.header-udise-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--accent-gold-500);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  user-select: all;
  transition: border-color var(--transition-fast);
}

.header-udise-badge:hover {
  border-color: var(--primary-300);
  border-left-color: var(--accent-gold-600);
}

.header-udise-badge .udise-badge-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-700);
  line-height: 1;
  margin-bottom: 2px;
}

.header-udise-badge .udise-badge-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Nav Menu List */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--neutral-700);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-600);
  background-color: var(--primary-50);
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  list-style: none;
  z-index: 1010;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--primary-50);
  color: var(--primary-600);
  padding-left: 1.5rem;
}

/* Navigation Admissions Badges */
.nav-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.badge-status-open {
  background-color: var(--accent-green-600);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.badge-status-upcoming {
  background-color: var(--accent-gold-500);
  color: var(--neutral-900);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.badge-status-closed {
  background-color: var(--neutral-400);
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  font-size: 1.25rem;
  color: var(--neutral-800);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.mobile-toggle:hover {
  background-color: var(--neutral-100);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1.2;
}

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

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--primary-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-gold {
  background: var(--accent-gold-500);
  color: var(--neutral-900);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--accent-gold-400);
  color: var(--neutral-900);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(245, 158, 11, 0.45);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--primary-900);
  border-color: #fff;
  transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
  background: var(--primary-600);
  color: #fff;
}

/* ==========================================================================
   Hero Section - Concept A: "PREMIUM INSTITUTIONAL"
   Asymmetric Composition with Verified Telemetry Floating Cards
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-950) 0%, var(--primary-900) 55%, var(--primary-800) 100%);
  color: #fff;
  padding: 6.5rem 0 7.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 155, 60, 0.2);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 15% 25%, #2563EB 0%, transparent 45%),
                    radial-gradient(circle at 85% 75%, #C89B3C 0%, transparent 42%),
                    radial-gradient(circle at 50% 50%, #071326 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(200, 155, 60, 0.15);
  border: 1px solid rgba(200, 155, 60, 0.35);
  color: var(--accent-gold-400);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero-title .gold-accent {
  background: linear-gradient(120deg, var(--accent-gold-400), var(--accent-gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-trust-indicators {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #94A3B8;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust-item i {
  color: var(--accent-gold-400);
}

/* Hero Right Column: Layered Asymmetric Subject & Floating Telemetry Cards */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(7, 19, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 30, 59, 0.6);
  backdrop-filter: blur(8px);
}

.hero-visual-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

/* Floating Card 1: Top Right Telemetry */
.hero-float-card-top {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  background: rgba(7, 19, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 155, 60, 0.4);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 5;
  animation: floatSubtle1 6s ease-in-out infinite;
}

/* Floating Card 2: Bottom Left Telemetry */
.hero-float-card-bottom {
  position: absolute;
  bottom: -1.5rem;
  left: -1.25rem;
  background: rgba(7, 19, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 5;
  animation: floatSubtle2 7s ease-in-out infinite 0.5s;
}

.hero-float-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-500);
  color: var(--primary-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(200, 155, 60, 0.3);
}

.hero-float-icon.blue {
  background: var(--primary-600);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.hero-float-text h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.hero-float-text p {
  font-size: 0.76rem;
  color: #94A3B8;
  margin: 0;
  font-family: var(--font-mono);
}

@keyframes floatSubtle1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatSubtle2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-card-top, .hero-float-card-bottom {
    animation: none !important;
  }
}

/* ==========================================================================
   Trust & Statutory Accreditation Strip
   ========================================================================== */
.trust-strip {
  background: var(--neutral-white);
  border-bottom: 1px solid var(--neutral-200);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-xs);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-right: 1px solid var(--neutral-200);
  min-width: 0;
}

.trust-card:last-child {
  border-right: none;
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-800);
  border: 1px solid var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.trust-card.gold .trust-icon-box {
  background: var(--accent-gold-50);
  color: var(--accent-gold-700);
  border-color: var(--accent-gold-100);
}

.trust-content {
  min-width: 0;
  flex: 1;
}

.trust-content h5 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-950);
  margin-bottom: 0.15rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.trust-content p {
  font-size: 0.76rem;
  color: var(--neutral-500);
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ==========================================================================
   Statistics Banner
   ========================================================================== */
.stats-strip {
  background: var(--neutral-white);
  padding: 3.5rem 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--neutral-200);
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 1rem;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--neutral-200);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Cards, Grid & General UI
   ========================================================================== */
.card {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--neutral-300);
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ==========================================================================
   Facilities Section - Asymmetric Editorial Layout
   ========================================================================== */
.facilities-editorial-layout {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  gap: 2rem;
  align-items: stretch;
}

.facility-featured-card {
  background: linear-gradient(145deg, var(--primary-950) 0%, var(--primary-900) 60%, var(--primary-800) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(200, 155, 60, 0.35);
  position: relative;
  overflow: hidden;
}

.facility-featured-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.facility-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(200, 155, 60, 0.18);
  border: 1px solid var(--accent-gold-500);
  color: var(--accent-gold-400);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.facility-featured-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--accent-gold-400);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.facility-featured-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.facility-featured-title {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.facility-featured-desc {
  color: #CBD5E1;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.facility-featured-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}

.fac-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #E2E8F0;
}

.fac-pill i {
  color: var(--accent-gold-400);
  font-size: 0.85rem;
}

.facilities-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.facility-card-compact {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.facility-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

.facility-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.facility-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* Facility Card Standard */
.facility-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.facility-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.facility-card:hover .facility-icon-wrap {
  background: var(--primary-600);
  color: #fff;
  transform: scale(1.08);
}

.facility-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--neutral-900);
}

.facility-desc {
  font-size: 0.95rem;
  color: var(--neutral-600);
  line-height: 1.6;
  flex: 1;
}

/* ==========================================================================
   Headmaster Signature Showcase Section (Recreation of Reference Image 2)
   ========================================================================== */
.headmaster-showcase-section {
  position: relative;
  padding: 5rem 1rem;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hm-masterpiece-card {
  max-width: 1140px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 25px 65px -15px rgba(10, 28, 55, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  display: grid;
  grid-template-columns: 46% 54%;
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

/* Left Chamber: Portrait & Navy Treatment */
.hm-chamber-portrait {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #071c36 0%, #0d284f 50%, #06152a 100%);
  min-height: 540px;
  display: flex;
  align-items: flex-end;
}

.hm-left-building-blend {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0.16;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 1;
}

.hm-crest-watermark {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 130px;
  height: 130px;
  color: #d4af37;
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
}

.hm-crest-watermark svg {
  width: 100%;
  height: 100%;
}

.hm-portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  display: block;
}

.hm-gold-swoosh {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 190px;
  height: 170px;
  pointer-events: none;
  z-index: 4;
}

.hm-gold-swoosh svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating Identity Capsule */
.hm-floating-capsule {
  position: absolute;
  bottom: 28px;
  left: 22px;
  right: 26px;
  z-index: 6;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(8, 22, 45, 0.94) 0%, rgba(13, 34, 66, 0.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 14px 35px rgba(2, 8, 20, 0.55), 0 2px 8px rgba(212, 175, 55, 0.2);
  padding: 0.75rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.hm-capsule-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #d4af37;
  background: radial-gradient(circle, #1a3c66 0%, #081a33 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
  color: #f59e0b;
  font-size: 1.3rem;
  transform: rotate(-25deg);
}

.hm-capsule-details {
  flex: 1;
  min-width: 0;
}

.hm-capsule-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-capsule-desig {
  font-size: 0.75rem;
  font-weight: 800;
  color: #d4af37;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hm-capsule-qual {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Curved Heritage Gold Divider Seam */
.hm-curved-divider {
  position: absolute;
  top: 0;
  right: -1px;
  width: 60px;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.hm-curved-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Right Chamber: Pure White Message Panel */
.hm-chamber-message {
  background: #ffffff;
  padding: 3.5rem 3.75rem 3.25rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hm-message-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hm-quote-symbol {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.2rem;
  line-height: 1;
  color: #d97706;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  user-select: none;
}

.hm-message-content {
  font-size: 1.05rem;
  line-height: 1.82;
  color: #334155;
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hm-sign-hierarchy {
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.hm-sign-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0a1f3d;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.3px;
}

.hm-sign-title {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

.hm-cta-action {
  margin-top: 0.25rem;
}

.hm-cta-button {
  background: #0d284f;
  color: #ffffff !important;
  padding: 0.95rem 1.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(13, 40, 79, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}

.hm-cta-button:hover,
.hm-cta-button:focus-visible {
  background: #143b6e;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 40, 79, 0.35);
  outline: none;
}

/* ==========================================================================
   Headmaster Speech Video Section (Dedicated Placement Below)
   ========================================================================== */
.headmaster-speech-section {
  background: var(--neutral-50);
  padding: 5rem 1rem;
  border-bottom: 1px solid var(--neutral-200);
  position: relative;
}

.hm-speech-video-container {
  max-width: 960px;
  margin: 0 auto;
  background: var(--primary-950);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 55px -12px rgba(11, 30, 59, 0.25);
  border: 2px solid rgba(212, 175, 55, 0.35);
}

.hm-speech-player-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  background: #000000;
  overflow: hidden;
}

.hm-speech-player-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hm-speech-preview-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 30, 59, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-gold-400);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.hm-speech-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.hm-speech-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold-500), #f59e0b);
  transition: width 0.2s linear;
}

.hm-speech-completion-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(11, 30, 59, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-in-out;
}

.hm-speech-completion-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hm-speech-completion-card {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hm-speech-completion-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid var(--accent-gold-400);
  color: var(--accent-gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.hm-speech-completion-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.hm-speech-completion-desc {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

.hm-speech-completion-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.hm-speech-meta-card {
  padding: 1.85rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--primary-950), var(--primary-900));
  color: #ffffff;
}

.hm-speech-meta-left {
  flex: 1;
  min-width: 280px;
}

.hm-speech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-gold-500);
  color: var(--primary-950);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.hm-speech-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.hm-speech-speaker {
  font-size: 0.92rem;
  color: var(--accent-gold-300);
  margin-bottom: 0.75rem;
}

.hm-speech-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

.hm-speech-meta-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.hm-speech-empty-card {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px dashed var(--neutral-300);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.hm-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.hm-empty-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.hm-empty-desc {
  color: var(--neutral-600);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .hm-masterpiece-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .hm-chamber-portrait {
    min-height: 440px;
    height: 440px;
  }
  .hm-curved-divider {
    display: none;
  }
  .hm-chamber-message {
    padding: 2.75rem 2rem;
  }
  .hm-floating-capsule {
    left: 16px;
    right: 16px;
    bottom: 20px;
    padding: 0.65rem 1rem;
    gap: 0.85rem;
  }
  .hm-capsule-badge {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
  .hm-capsule-name {
    font-size: 1.1rem;
  }
  .hm-speech-meta-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .hm-speech-meta-right {
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
  }
}

@media (max-width: 575px) {
  .headmaster-showcase-section {
    padding: 3rem 0.75rem;
  }
  .hm-chamber-portrait {
    height: 380px;
    min-height: 380px;
  }
  .hm-chamber-message {
    padding: 2rem 1.25rem;
  }
  .hm-quote-symbol {
    font-size: 3.2rem;
  }
  .hm-message-content {
    font-size: 0.98rem;
    line-height: 1.7;
  }
  .hm-floating-capsule {
    left: 12px;
    right: 12px;
    bottom: 14px;
  }
  .hm-cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Notice Board
   ========================================================================== */
.notice-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-300);
  background: var(--neutral-white);
  color: var(--neutral-700);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-600);
  color: #fff;
  border-color: var(--primary-600);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notice-card {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all var(--transition-fast);
}

.notice-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.notice-card.pinned {
  border-left: 5px solid var(--accent-gold-500);
  background: #fffdf7;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.notice-date-badge {
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  text-align: center;
  min-width: 65px;
  flex-shrink: 0;
  border: 1px solid var(--primary-100);
}

.notice-date-day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.notice-date-month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.notice-info {
  flex: 1;
}

.notice-badge-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.cat-Exam { background: #fee2e2; color: #b91c1c; }
.cat-Admission { background: #dcfce7; color: #15803d; }
.cat-Important { background: #fef3c7; color: #b45309; }
.cat-Holiday { background: #ede9fe; color: #6d28d9; }
.cat-General { background: #e0f2fe; color: #0369a1; }
.cat-Event { background: #fce7f3; color: #be185d; }

.notice-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
}

.notice-desc-preview {
  font-size: 0.88rem;
  color: var(--neutral-500);
}

/* ==========================================================================
   Teacher Directory Cards
   ========================================================================== */
.teacher-card {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: center;
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--neutral-300);
}

.teacher-card-img-wrap {
  background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
  padding: 2rem 1.5rem 1rem 1.5rem;
  display: flex;
  justify-content: center;
}

.teacher-card-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  background: #fff;
}

.teacher-card-body {
  padding: 1.5rem;
}

.teacher-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
}

.teacher-desig {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

.teacher-badge-subj {
  display: inline-block;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.teacher-qual {
  font-size: 0.85rem;
  color: var(--neutral-500);
}

/* ==========================================================================
   History Timeline
   ========================================================================== */
.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-gold-500), var(--primary-600), var(--primary-900));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 2rem;
  width: 22px;
  height: 22px;
  background: var(--neutral-white);
  border: 4px solid var(--accent-gold-500);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.timeline-item.left .timeline-dot {
  right: -11px;
}

.timeline-item.right .timeline-dot {
  left: -11px;
}

.timeline-card {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  transition: transform var(--transition-normal);
}

.timeline-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.timeline-year-pill {
  display: inline-block;
  background: var(--primary-900);
  color: var(--accent-gold-400);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.timeline-milestone-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 0.75rem;
}

.timeline-text {
  font-size: 0.92rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* ==========================================================================
   Masonry Photo Gallery & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
  cursor: pointer;
  height: 260px;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.9) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity var(--transition-normal);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  color: #cbd5e1;
  font-size: 0.85rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

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

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

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

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition-fast);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-close { top: -3rem; right: 0; }
.lightbox-prev { left: -4rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -4rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Forms & Contact
   ========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--neutral-900);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px var(--primary-100);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-900);
  color: #94a3b8;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent-gold-500);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-gold-400);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.88rem;
}

.dev-credit {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.dev-credit strong {
  color: var(--accent-gold-400);
}

/* ==========================================================================
   Back to top & Utilities
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-700);
  transform: translateY(-4px);
}

/* ==========================================================================
   Accessibility & Focus States
   ========================================================================== */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
  outline: 3px solid var(--accent-gold-400) !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual-img {
    height: 380px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-card:nth-child(2) {
    border-right: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card:nth-child(2)::after {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .headmaster-box {
    grid-template-columns: 1fr;
  }
  .facilities-editorial-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
  }
  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--neutral-white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--neutral-200);
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu .nav-link {
    min-height: 48px;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--neutral-50);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin: 0.5rem 0;
  }
  .nav-item-dropdown.active .dropdown-menu {
    display: block;
  }
  .hero-section {
    padding: 4.5rem 0 5rem 0;
  }
  .hero-visual-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-float-card-top, .hero-float-card-bottom {
    position: static;
    width: 100%;
    transform: none !important;
    animation: none !important;
  }
  .hero-visual-img {
    height: 300px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .trust-card {
    border-right: none;
    border-bottom: 1px solid var(--neutral-200);
    padding: 0.75rem 0.5rem;
  }
  .trust-card:last-child {
    border-bottom: none;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .facilities-subgrid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card::after {
    display: none !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
  }
  .top-bar-left, .top-bar-right {
    justify-content: center;
    flex-wrap: wrap;
  }
  .history-timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 55px;
    padding-right: 1rem;
    text-align: left !important;
  }
  .timeline-dot {
    left: 9px !important;
  }
  .notice-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-identity-block {
    gap: 0.75rem;
  }
  .brand-logo {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }
  .brand-name {
    font-size: 1.05rem;
    line-height: 1.15;
  }
  .brand-sub {
    font-size: 0.70rem;
  }
  .header-udise-badge {
    display: none !important;
  }
  .dev-credit {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-udise-badge {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
