/* ==========================================================================
   Askari Foundation School System & Pre Cadet Academy - Main Stylesheet
   Design Language: Modern US School Standard (Light Theme, High Contrast)
   ========================================================================== */

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

:root {
  /* Color Palette based on Askari Emblem */
  --primary-navy: #0F2942;
  --primary-navy-dark: #09192A;
  --primary-navy-light: #1D4268;
  --accent-red: #A91D22;
  --accent-red-hover: #8B1418;
  --cadet-green: #1E5631;
  --cadet-green-light: #2D7A47;
  --gold-accent: #D4AF37;
  --gold-hover: #B59226;
  
  /* Neutral Light Theme Colors */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;
  --border-color: #E2E8F0;
  --border-strong: #CBD5E1;
  
  /* Text Colors (High Contrast WCAG Compliance) */
  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --text-white: #FFFFFF;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(15, 41, 66, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 41, 66, 0.08), 0 8px 10px -6px rgba(15, 41, 66, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 41, 66, 0.12), 0 10px 15px -5px rgba(15, 41, 66, 0.06);
  --shadow-gold: 0 8px 20px rgba(212, 175, 55, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-crest: 'Cinzel', serif;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Utility Classes & Layout Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: rgba(169, 29, 34, 0.08);
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(169, 29, 34, 0.2);
}

.section-tag.tag-green {
  background-color: rgba(30, 86, 49, 0.08);
  color: var(--cadet-green);
  border-color: rgba(30, 86, 49, 0.2);
}

.section-tag.tag-gold {
  background-color: rgba(212, 175, 55, 0.12);
  color: #B58A15;
  border-color: rgba(212, 175, 55, 0.3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--accent-red);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-navy {
  background-color: var(--primary-navy);
  color: var(--text-white);
}

.btn-navy:hover {
  background-color: var(--primary-navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-green {
  background-color: var(--cadet-green);
  color: var(--text-white);
}

.btn-green:hover {
  background-color: var(--cadet-green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold-accent);
  color: var(--primary-navy-dark);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   Header & Navigation (US School Standard)
   ========================================================================== */

/* Top Ticker Alert Bar */
.top-ticker {
  background: linear-gradient(90deg, var(--accent-red) 0%, #851419 100%);
  color: var(--text-white);
  padding: 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 1.5rem;
}

.ticker-badge {
  background-color: var(--gold-accent);
  color: var(--primary-navy-dark);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  z-index: 1;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-text {
  white-space: nowrap;
  animation: ticker-slide 25s linear infinite;
  display: flex;
  gap: 3rem;
}

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

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

/* Top Utility Header */
.top-utility-bar {
  background-color: var(--primary-navy-dark);
  color: #94A3B8;
  padding: 0.45rem 0;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.utility-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.utility-info span, .utility-info a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #CBD5E1;
}

.utility-info a:hover {
  color: var(--gold-accent);
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.utility-links a {
  color: #CBD5E1;
  font-weight: 500;
}

.utility-links a:hover {
  color: var(--text-white);
}

.portal-btn {
  background: rgba(255,255,255,0.1);
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  color: var(--gold-accent) !important;
  font-weight: 700 !important;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.portal-btn:hover {
  background: var(--gold-accent) !important;
  color: var(--primary-navy-dark) !important;
}

/* Main Navbar */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-motto {
  font-size: 0.625rem;
  color: var(--cadet-green);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary-navy);
  padding: 0.4rem 0.2rem;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-red);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.cadet-link {
  color: var(--cadet-green);
}

.nav-link.cadet-link::after {
  background-color: var(--cadet-green);
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  z-index: 100;
}

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

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.dropdown-item:hover {
  background-color: var(--bg-alt);
  color: var(--accent-red);
  padding-left: 1.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* ==========================================================================
   Parallax Hero Section
   ========================================================================== */
.hero-parallax {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  background: linear-gradient(135deg, rgba(15, 41, 66, 0.92) 0%, rgba(9, 25, 42, 0.85) 50%, rgba(30, 86, 49, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 850px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-accent);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span.text-gold {
  color: var(--gold-accent);
}

.hero-title span.text-red {
  color: #FF5A5F;
}

.hero-description {
  font-size: 1.25rem;
  color: #E2E8F0;
  margin-bottom: 2.25rem;
  line-height: 1.6;
  font-weight: 400;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Page Specific Hero Headers */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem 0;
  background-color: var(--primary-navy);
  color: var(--text-white);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 41, 66, 0.95) 0%, rgba(15, 41, 66, 0.85) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.breadcrumb a {
  color: var(--gold-accent);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Quick Access Action Cards (US School Feature Grid)
   ========================================================================== */
.quick-action-section {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary-navy);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.action-card.card-red { border-top-color: var(--accent-red); }
.action-card.card-green { border-top-color: var(--cadet-green); }
.action-card.card-gold { border-top-color: var(--gold-accent); }

.action-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--bg-alt);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.action-card.card-red .action-card-icon {
  background-color: rgba(169, 29, 34, 0.1);
  color: var(--accent-red);
}

.action-card.card-green .action-card-icon {
  background-color: rgba(30, 86, 49, 0.1);
  color: var(--cadet-green);
}

.action-card.card-gold .action-card-icon {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--gold-hover);
}

.action-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.action-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.action-card-link {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.action-card-link:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   Leadership & Welcome Message Section
   ========================================================================== */
.welcome-section {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}

.welcome-image-wrapper {
  position: relative;
}

.welcome-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.welcome-badge-overlay {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background-color: var(--primary-navy);
  color: var(--text-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gold-accent);
  max-width: 260px;
}

.welcome-badge-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.welcome-badge-sub {
  font-size: 0.8rem;
  color: #CBD5E1;
}

.quote-box {
  background-color: var(--bg-main);
  border-left: 4px solid var(--accent-red);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ==========================================================================
   Pre Cadet Academy Feature Section
   ========================================================================== */
.cadet-feature-section {
  background: linear-gradient(135deg, #09192A 0%, var(--primary-navy) 100%);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.cadet-feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.cadet-feature-content h2 {
  color: var(--text-white);
}

.cadet-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.pillar-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.pillar-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cadet-green);
  transform: translateY(-3px);
}

.pillar-icon {
  font-size: 1.5rem;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: #CBD5E1;
}

.cadet-image-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(212, 175, 55, 0.4);
}

.cadet-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.cadet-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 1.5rem;
  color: var(--text-white);
}

/* ==========================================================================
   Statistics Counter Banner
   ========================================================================== */
.stats-banner {
  background-color: var(--cadet-green);
  color: var(--text-white);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #E2E8F0;
}

/* ==========================================================================
   Academic Wings & Programs
   ========================================================================== */
.academic-wings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.academic-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.academic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.academic-card-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.academic-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.academic-card:hover .academic-card-img {
  transform: scale(1.08);
}

.academic-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-navy);
  color: var(--gold-accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.academic-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.academic-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.academic-list {
  margin-bottom: 1.5rem;
}

.academic-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.academic-list li i {
  color: var(--accent-red);
}

/* ==========================================================================
   Gallery Grid & Filter Tabs
   ========================================================================== */
.gallery-filter-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-alt);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

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

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 41, 66, 0.9) 0%, rgba(15, 41, 66, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--text-white);
}

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

.gallery-item:hover .gallery-item-img {
  transform: scale(1.1);
}

.gallery-item-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.gallery-item-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #E2E8F0;
}

/* ==========================================================================
   News & Events Cards
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.news-date-badge {
  background-color: var(--accent-red);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: inline-block;
}

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

.news-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0.5rem 0;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* ==========================================================================
   Modal Dialog Inquiry Form
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.9);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-header {
  background-color: var(--primary-navy);
  color: var(--text-white);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent-red);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.75rem;
  max-height: 80vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background-color: var(--bg-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-navy);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(15, 41, 66, 0.15);
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form-checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-red);
}

/* ==========================================================================
   Footer (US School Standard)
   ========================================================================== */
.site-footer {
  background-color: var(--primary-navy-dark);
  color: #94A3B8;
  padding-top: 4rem;
  border-top: 5px solid var(--accent-red);
}

.footer-top {
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  border-radius: 4px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 0.4rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #CBD5E1;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item i {
  color: var(--gold-accent);
  margin-top: 0.2rem;
}

.footer-bottom {
  padding: 1.75rem 0;
  font-size: 0.825rem;
  color: #64748B;
}

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

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a:hover {
  color: #CBD5E1;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.75rem; }
  .welcome-grid { grid-template-columns: 1fr; }
  .cadet-feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2rem 1.75rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    overflow-y: auto;
    margin: 0;
  }
  
  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-toggle { display: block; z-index: 10001; }
}

@media (max-width: 640px) {
  .top-utility-bar { display: none; }
  .hero-title { font-size: 2.15rem; }
  .section-title { font-size: 1.85rem; }
  .quick-action-section { margin-top: -2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cadet-pillars-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* ==========================================================================
   Hero 2-Column Desktop Grid & Principal Card
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

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

.hero-principal-card {
  background: linear-gradient(145deg, rgba(15, 41, 66, 0.95), rgba(9, 25, 42, 0.96));
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), var(--shadow-gold);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.hero-principal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 25px rgba(212, 175, 55, 0.4);
}

.principal-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.principal-img-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid var(--gold-accent);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.principal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principal-card-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.principal-card-info p {
  font-size: 0.825rem;
  color: var(--gold-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.principal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--gold-accent);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.3rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.principal-message-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #E2E8F0;
  font-style: italic;
  position: relative;
}

.principal-message-text::before {
  content: '"';
  font-family: serif;
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.3);
  position: absolute;
  top: -1.2rem;
  left: -0.8rem;
  line-height: 1;
}

/* ==========================================================================
   5 Information-Only Cards Below Hero
   ========================================================================== */
.quick-info-section {
  position: relative;
  z-index: 10;
  margin-top: -3rem;
  padding-bottom: 2rem;
}

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

@media (max-width: 1200px) {
  .info-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .info-cards-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-navy);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.info-card.card-hostel { border-top-color: var(--accent-red); }
.info-card.card-cadet { border-top-color: var(--cadet-green); }
.info-card.card-school { border-top-color: var(--primary-navy); }
.info-card.card-security { border-top-color: var(--gold-accent); }
.info-card.card-mess { border-top-color: #0284C7; }

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

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background-color: var(--bg-alt);
}

.card-hostel .info-card-icon { color: var(--accent-red); background-color: rgba(169, 29, 34, 0.08); }
.card-cadet .info-card-icon { color: var(--cadet-green); background-color: rgba(30, 86, 49, 0.08); }
.card-school .info-card-icon { color: var(--primary-navy); background-color: rgba(15, 41, 66, 0.08); }
.card-security .info-card-icon { color: #B58A15; background-color: rgba(212, 175, 55, 0.12); }
.card-mess .info-card-icon { color: #0284C7; background-color: rgba(2, 132, 199, 0.08); }

.info-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.info-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Admission Overlay Popup Modal Flyer
   ========================================================================== */
.admission-overlay-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.admission-flyer-card {
  background: var(--primary-navy-dark);
  max-width: 520px;
  width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-normal);
  border: 3px solid var(--gold-accent);
  display: flex;
  flex-direction: column;
}

.admission-overlay-modal.active .admission-flyer-card {
  transform: scale(1);
}

.flyer-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  background-color: rgb(248, 249, 249);
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  border-radius: 2px;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.flyer-close-btn:hover {
  background-color: var(--accent-red);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.flyer-image-container {
  width: 100%;
  overflow-y: auto;
  max-height: calc(90vh - 65px);
  position: relative;
  background-color: #09192A;
  display: block;
}

.flyer-image-full {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.flyer-action-footer {
  padding: 0.75rem 1.25rem;
  background-color: var(--primary-navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Interactive Admission Form Components
   ========================================================================== */
.interactive-form-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
  padding: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .interactive-form-container { padding: 1.25rem; }
}

.form-header-banner {
  text-align: center;
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px dashed var(--border-strong);
  position: relative;
}

.form-title-main {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.instruction-box {
  background-color: rgba(169, 29, 34, 0.06);
  border-left: 4px solid var(--accent-red);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.form-section-block {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.section-head-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent-red);
}

.section-step-num {
  background-color: var(--accent-red);
  color: var(--text-white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.photo-upload-box {
  width: 140px;
  height: 160px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  padding: 0.5rem;
}

.photo-upload-box:hover {
  border-color: var(--accent-red);
  background-color: rgba(169, 29, 34, 0.02);
}

.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.sibling-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.sibling-table th, .sibling-table td {
  border: 1px solid var(--border-strong);
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  text-align: left;
}

.sibling-table th {
  background-color: var(--primary-navy);
  color: var(--text-white);
  font-weight: 700;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background-color: var(--bg-card);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.undertaking-text-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Fee Structure Tables & Card Grid
   ========================================================================== */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.fee-table th, .fee-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.925rem;
  border-bottom: 1px solid var(--border-color);
}

.fee-table th {
  background-color: var(--primary-navy);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
}

.fee-table tr:nth-child(even) {
  background-color: var(--bg-alt);
}

.fee-table tr:hover {
  background-color: rgba(15, 41, 66, 0.03);
}

.badge-scholar {
  background-color: rgba(30, 86, 49, 0.1);
  color: var(--cadet-green);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

.badge-boarding {
  background-color: rgba(169, 29, 34, 0.1);
  color: var(--accent-red);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ==========================================================================
   Google Form Embed Wrapper
   ========================================================================== */
.google-form-embed-wrapper {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.google-form-iframe {
  width: 100%;
  min-height: 650px;
  border: none;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Floating WhatsApp Button Widget
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition-normal);
  text-decoration: none;
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

