/* ==========================================================================
   KILLESTER PARK EDUCATE TOGETHER NATIONAL SCHOOL
   Official Master Stylesheet & Design System
   ========================================================================== */

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

:root {
  /* ==========================================================================
     KILLESTER PARK ETNS - OFFICIAL COLOR PALETTE
     Extracted directly from School Flyer ("Still Enrolling for 2026/2027")
     ========================================================================== */

  /* 1. Primary Brand Light Blue (Extracted from School Logo) */
  --primary-navy: #2591b9;
  --primary-navy-light: #3aa8d4;
  --primary-navy-dark: #166582;
  --primary-navy-surface: #eef7fb;
  --primary-blue: #2591b9;

  /* 2. Vibrant Fresh Leaf Green ("Junior Infants" & "3rd Class" Badges, Leaves) */
  --primary-green: #69af3a;
  --primary-green-dark: #54902b;
  --primary-green-light: #eef8e8;

  /* Backward-compatible alias for existing templates */
  --teal-brand: #69af3a;
  --teal-dark: #54902b;
  --teal-light: #eef8e8;

  /* 3. Electric Cerulean / Sky Blue ("for 2026/2027!", "1st Class", "6th Class", Email Icon) */
  --sky-blue: #3bb1ee;
  --sky-blue-dark: #1fa2e5;
  --sky-blue-light: #def2fc;
  --sky-blue-wave: #92dbfc;

  /* 4. Royal Violet / Purple ("Learn Grow Belong", "Senior Infants", "5th Class", Phone Icon) */
  --violet-accent: #8343a4;
  --violet-dark: #6b2f8e;
  --violet-light: #f6eef8;

  /* 5. Deep Royal Navy ("2nd Class" Badge) */
  --royal-navy: #084285;
  --royal-navy-light: #e8f0fa;

  /* 6. Spring Lime (Leaves & Bottom Wave Accent) */
  --lime-accent: #89c94e;
  --lime-dark: #74ae3d;
  --lime-light: #f4fae9;

  /* 7. Warm Sunshine Amber / Gold (Flyer Star Sparkles & Sun Rays) */
  --amber-accent: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fef9ee;

  /* 8. Poppy Coral / Warm Accent */
  --coral-accent: #e03a20;
  --coral-light: #fdedea;

  /* Crest Rose Magenta */
  --rose-accent: #db5897;
  --rose-light: #faeff5;

  /* Emerald Alias */
  --emerald-accent: #69af3a;
  --emerald-light: #eef8e8;

  /* Surfaces & Neutral Tones */
  --bg-main: #f8fafd;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Text Colors */
  --text-heading: #166582;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 5px rgba(20, 17, 95, 0.06);
  --shadow-md: 0 4px 14px rgba(20, 17, 95, 0.08), 0 2px 4px rgba(20, 17, 95, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(20, 17, 95, 0.1), 0 8px 10px -6px rgba(20, 17, 95, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(105, 175, 58, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

a {
  color: var(--teal-brand);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--teal-dark);
}

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

/* ==========================================================================
   TOP ANNOUNCEMENT & CONTACT BAR
   ========================================================================== */
.top-bar {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.top-info-item a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.top-info-item a:hover {
  color: var(--amber-accent);
}

.top-instagram-item {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  transition: var(--transition);
}

.top-instagram-item:hover {
  background: rgba(255, 255, 255, 0.22);
}

.top-instagram-item i {
  color: #f77737;
  font-size: 0.95rem;
  transition: var(--transition);
}

.top-instagram-item:hover i {
  color: #e1306c;
}

.top-instagram-item a {
  color: #ffffff;
  font-weight: 600;
}

.top-instagram-item a:hover {
  color: var(--amber-accent);
}

.top-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transition: var(--transition);
  font-size: 0.95rem;
}

.social-link:hover {
  background: var(--teal-brand);
  color: white;
  transform: translateY(-2px);
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 10px rgba(225, 48, 108, 0.35);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo img {
  width: 52px;
  height: 52px;
  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-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--teal-brand);
  background-color: var(--teal-light);
}

.nav-link.active {
  color: var(--teal-brand);
  background-color: var(--teal-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--teal-brand);
  border-radius: 2px 2px 0 0;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-item:hover, .dropdown-item.active {
  background-color: var(--teal-light);
  color: var(--teal-brand);
}

/* Mobile Drawer Submenu */
.mobile-submenu {
  list-style: none;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.mobile-submenu-link {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.mobile-submenu-link.active, .mobile-submenu-link:hover {
  color: var(--teal-brand);
  background: var(--teal-light);
}

.nav-cta {
  background-color: var(--teal-brand);
  color: white !important;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(105, 175, 58, 0.3);
}

.nav-cta:hover {
  background-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(105, 175, 58, 0.4);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & COLLAPSIBLE SUBMENUS
   ========================================================================== */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid transparent;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  background-color: var(--teal-light);
  color: var(--teal-brand);
  border-color: var(--border-subtle);
  outline: none;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.close-drawer {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.close-drawer:hover {
  color: var(--text-heading);
  background: var(--border-subtle);
}

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 2rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link,
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
  text-decoration: none;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-toggle:hover,
.mobile-nav-link.active,
.mobile-nav-toggle.active {
  color: var(--teal-brand);
  background: var(--teal-light);
}

.mobile-nav-toggle .chevron-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.mobile-nav-toggle.open .chevron-icon {
  transform: rotate(180deg);
  color: var(--teal-brand);
}

/* Collapsible Submenus (Collapsed by default) */
.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-submenu.open {
  max-height: 350px;
}

.mobile-submenu-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem 0.75rem 2.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-submenu-link:hover,
.mobile-submenu-link.active {
  color: var(--teal-brand);
  background: var(--teal-light);
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #176887 55%, var(--royal-navy) 100%);
  color: var(--text-white);
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.shape-circle-1 {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 177, 238, 0.28) 0%, rgba(59, 177, 238, 0) 70%);
}

.shape-circle-2 {
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131, 67, 164, 0.25) 0%, rgba(131, 67, 164, 0) 70%);
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sky-blue-wave);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-title span {
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
}

.hero-former-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.hero-former-badge i {
  color: var(--sky-blue-wave);
  font-size: 1rem;
}

.hero-former-badge strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
}

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

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero-image-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

/* Page Header Banner (for secondary pages) */
.page-header-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #176887 55%, var(--royal-navy) 100%);
  color: white;
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}

.page-header-container {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-header-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-green);
  color: white;
  box-shadow: 0 4px 14px rgba(105, 175, 58, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(105, 175, 58, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--teal-brand);
  border: 2px solid var(--teal-brand);
}

.btn-outline:hover {
  background-color: var(--teal-brand);
  color: white;
}

.btn-amber {
  background-color: var(--amber-accent);
  color: var(--primary-navy);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-amber:hover {
  background-color: var(--amber-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-violet, .btn-purple {
  background-color: var(--violet-accent);
  color: white;
  box-shadow: 0 4px 14px rgba(131, 67, 164, 0.35);
}

.btn-violet:hover, .btn-purple:hover {
  background-color: var(--violet-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(131, 67, 164, 0.45);
}

.btn-sky, .btn-cerulean {
  background-color: var(--sky-blue);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 177, 238, 0.35);
}

.btn-sky:hover, .btn-cerulean:hover {
  background-color: var(--sky-blue-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 177, 238, 0.45);
}

.btn-royal {
  background-color: var(--royal-navy);
  color: white;
  box-shadow: 0 4px 14px rgba(8, 66, 133, 0.35);
}

.btn-royal:hover {
  background-color: #063266;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 66, 133, 0.45);
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: -2rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--teal-brand);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   EDUCATE TOGETHER PILLARS & ETHOS
   ========================================================================== */
.section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--teal-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-surface);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-green);
  transition: var(--transition);
}

.pillar-card:nth-child(2)::before { background: var(--sky-blue); }
.pillar-card:nth-child(3)::before { background: var(--violet-accent); }
.pillar-card:nth-child(4)::before { background: var(--royal-navy); }

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.pillar-card:nth-child(1) .pillar-icon { background: var(--primary-green-light); color: var(--primary-green); }
.pillar-card:nth-child(2) .pillar-icon { background: var(--sky-blue-light); color: var(--sky-blue-dark); }
.pillar-card:nth-child(3) .pillar-icon { background: var(--violet-light); color: var(--violet-accent); }
.pillar-card:nth-child(4) .pillar-icon { background: var(--royal-navy-light); color: var(--royal-navy); }

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.pillar-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CARDS & GRID LAYOUTS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

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

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

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card-img-wrapper:hover img {
  transform: scale(1.03);
}

.img-zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.card-img-wrapper:hover .img-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-navy);
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Policy Card Download List */
.policy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.policy-card {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
}

.policy-card:hover {
  border-color: var(--teal-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.policy-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  color: var(--teal-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.policy-info {
  flex: 1;
}

.policy-name {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 1rem;
}

.policy-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CALENDAR & NEWS FILTERS
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--teal-brand);
  color: white;
  border-color: var(--teal-brand);
}

/* Interactive Calendar Component Styles */
.calendar-download-banner {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.calendar-view-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.view-pill {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.view-pill:hover {
  background: var(--teal-light);
  color: var(--teal-brand);
  border-color: var(--teal-brand);
}

.view-pill.active {
  background: var(--primary-navy);
  color: white;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Color Legend matching the PDF */
.calendar-legend-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.legend-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

.legend-color-box {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.box-closed {
  background: #ffff00;
}

.box-first-last {
  background: #9acb59;
}

.box-half-day {
  background: #7030a0;
}

.box-staff {
  background: #c45911;
}

/* Live Event Detail Banner on Click/Hover */
.calendar-event-banner {
  background: white;
  border: 1px solid var(--teal-brand);
  border-left: 5px solid var(--teal-brand);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.2s ease-in-out;
}

.event-banner-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-banner-info {
  font-size: 0.95rem;
  color: var(--text-heading);
}

/* Academic Year 11-Month Grid */
.academic-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.month-card {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.month-card:hover {
  box-shadow: var(--shadow-md);
}

.month-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--royal-navy) 100%);
  color: white;
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #e2e8f0;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-navy);
  padding: 0.4rem 0;
}

.month-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0.5rem;
  background: #f8fafc;
}

.cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  background: white;
  color: var(--text-body);
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.cal-day.cal-empty {
  background: transparent;
}

.cal-day.cal-weekend {
  background: #f1f5f9;
  color: #94a3b8;
}

/* Event Specific Colors matching PDF */
.cal-day.cal-closed {
  background: #ffff00 !important;
  color: #000000 !important;
  font-weight: 800;
  cursor: pointer;
}

.cal-day.cal-first-last {
  background: #9acb59 !important;
  color: #000000 !important;
  font-weight: 800;
  cursor: pointer;
}

.cal-day.cal-half-day {
  background: #7030a0 !important;
  color: #ffffff !important;
  font-weight: 800;
  cursor: pointer;
}

.cal-day.cal-staff {
  background: #c45911 !important;
  color: #ffffff !important;
  font-weight: 800;
  cursor: pointer;
}

.cal-day.cal-last-half {
  background: linear-gradient(135deg, #9acb59 50%, #7030a0 50%) !important;
  color: #ffffff !important;
  font-weight: 800;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.cal-day[data-event]:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cal-day.cal-selected {
  outline: 3px solid var(--primary-navy) !important;
  outline-offset: -1px;
  z-index: 12;
  box-shadow: 0 0 12px rgba(13, 33, 55, 0.4);
  transform: scale(1.12);
}

/* Calendar Event Detail Modal for Instant Feedback */
.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.calendar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.calendar-modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.calendar-modal.active .calendar-modal-content {
  transform: translateY(0) scale(1);
}

.calendar-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.calendar-modal-close:hover {
  color: var(--text-heading);
}

.calendar-modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  color: #000;
}

.calendar-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.calendar-modal-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-brand);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calendar-modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.calendar-modal-actions {
  display: flex;
  justify-content: flex-end;
}

/* Page 2 Notes & Contingency Box */
.calendar-notes-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--amber-accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.notes-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

.notes-header i {
  font-size: 1.5rem;
  color: var(--amber-accent);
}

.notes-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.notes-list {
  padding-left: 1.5rem;
  margin: 0;
  line-height: 1.8;
  color: var(--text-body);
  font-size: 0.95rem;
}

.notes-list li {
  margin-bottom: 0.5rem;
}

/* Calendar List View Agenda Cards */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.calendar-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.calendar-date {
  min-width: 75px;
  padding: 0.5rem;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--primary-navy);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
}

.date-day {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.date-month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-heading);
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal-brand);
  box-shadow: 0 0 0 4px var(--teal-light);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4.5rem 1.5rem 2rem;
  margin-top: 5rem;
  position: relative;
  border-top: 4px solid var(--sky-blue);
}

.main-footer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--violet-accent) 0%, var(--sky-blue) 33%, var(--primary-green) 66%, var(--lime-accent) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: white;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

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

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--amber-accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

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

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Mobile & Tablet Navigation Breakpoint */
@media (max-width: 992px) {
  .nav-menu {
    display: none !important;
  }
  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .top-info {
    justify-content: center;
  }
  .top-bar-container {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.65rem 1rem;
  }
  .brand-logo {
    gap: 0.65rem;
  }
  .brand-logo img {
    width: 42px;
    height: 42px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
  .mobile-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 1.35rem;
    padding: 0.35rem;
  }
}

/* ==========================================================================
   SCHOOL FLYER DESIGN SYSTEM EXTENSIONS
   Directly derived from images/School flyer.jpeg
   ========================================================================== */

/* Signature Soft Blue Highlight Container ("Come and join our...") */
.flyer-banner, .banner-soft-blue {
  background-color: var(--sky-blue-light);
  border: 1.5px solid rgba(59, 177, 238, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.flyer-banner-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.flyer-banner-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Class Pill Badges matching Flyer Badges */
.pill-badges-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(20, 17, 95, 0.12);
  transition: var(--transition);
  text-decoration: none;
}

.pill-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(20, 17, 95, 0.18);
  color: #ffffff;
}

.pill-badge.pill-green {
  background-color: var(--primary-green);
}

.pill-badge.pill-purple {
  background-color: var(--violet-accent);
}

.pill-badge.pill-sky {
  background-color: var(--sky-blue);
}

.pill-badge.pill-navy {
  background-color: var(--royal-navy);
}

.pill-badge.pill-lime {
  background-color: var(--lime-accent);
  color: var(--primary-navy);
}
