@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600&family=Libre+Franklin:wght@400;500;600&display=swap');

:root {
  --primary-red: #8B0000;
  /* Deep Maroon */
  --primary-red-hover: #b71c1c;
  --secondary-gradient: linear-gradient(to right, #6a0000, #8B0000);
  /* Maroon Gradient */
  --accent-gold: #D4AF37;
  --text-dark: #333333;
  --text-light: #555555;
  --text-white: #ffffff;
  --bg-white: #ffffff;
  --bg-light: #f9f9f9;
  --bg-utility: #f4f4f4;
  /* Off-white for utility bar */
  --footer-bg: #111111;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-nav: 'Poppins', sans-serif;
  /* For Navigation */

  --container-width: 1200px;
  --radius-nav: 8px;
  /* Rounded corners for nav */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  width: 100%;
}

body {
  overflow-x: clip;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.text-uppercase {
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-red-hover);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--text-white);
  color: var(--text-white);
}

.btn-outline:hover {
  background-color: var(--text-white);
  color: var(--text-dark);
}

.btn-outline-dark {
  border: 1px solid var(--primary-red);
  color: var(--primary-red);
  background: transparent;
}

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

.section-label {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}



/* Admission Procedure Widget (Premium Glassmorphism) */
.admission-glass-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #fceeff 0%, #f7f9fc 100%);
  position: relative;
  overflow: hidden;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  border-radius: 20px;
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.glass-header h2 {
  font-size: 2.2rem;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.glass-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Journey Path */
.journey-path-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
  padding: 0 2rem;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: default;
}

.step-circle {
  width: 45px;
  height: 45px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.journey-step.active .step-circle {
  border-color: var(--primary-red);
  background: var(--primary-red);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s;
}

.journey-step.active .step-label {
  color: var(--primary-red);
  font-weight: 700;
}

.journey-line {
  flex-grow: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 10px;
  position: relative;
  top: -15px;
}

.glass-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 0 auto 3rem;
  width: 80%;
}

/* Class Selection Tabs using CSS Grid for better responsiveness */
.class-group {
  margin-bottom: 2rem;
}

.class-group h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  opacity: 0.8;
}

.class-tabs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.class-tab {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.class-tab:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.class-tab.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

/* Action Area */
.action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-premium-action {
  padding: 16px 40px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(139, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  justify-content: center;
}

.btn-premium-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(139, 0, 0, 0.35);
  background: var(--primary-red-hover);
}

.btn-premium-action:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.selection-hint {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  opacity: 0.8;
}

/* Responsive Premium Adjustments */
@media (max-width: 768px) {
  .glass-card {
    padding: 2rem 1rem;
    border-radius: 12px;
  }

  .journey-path-container {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
    margin-bottom: 2rem;
    gap: 0;
  }

  .journey-step {
    flex-direction: row;
    margin-bottom: 1.5rem;
    gap: 15px;
  }

  .step-circle {
    margin-bottom: 0;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .journey-line {
    position: absolute;
    left: 40px;
    /* Align with circle center */
    top: 20px;
    width: 2px;
    height: 100%;
    margin: 0;
    background: #e0e0e0;
    z-index: 1;
  }

  /* Last line handling would require JS or specific CSS logic, simplified here */
  .journey-path-container::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 20px;
    bottom: 40px;
    width: 2px;
    background: #e0e0e0;
    z-index: 1;
  }

  .journey-line {
    display: none;
  }

  /* Use container pseudo instead */

  .class-tabs-container {
    gap: 10px;
  }

  .class-tab {
    width: 100%;
    border-radius: 8px;
    padding: 10px;
  }

  .btn-premium-action {
    width: 100%;
  }
}


/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

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

/* Header & Navigation Redesign */
header {
  position: relative;
  z-index: 1000;
  background-color: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* Soft shadow */
  font-family: var(--font-sans);
}

/* 1. Top Utility Bar */
.top-utility-bar {
  background-color: var(--bg-utility);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  color: var(--text-light);
}

.utility-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  /* Align to right */
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  /* Allow wrapping for long content */
}

@media (max-width: 1100px) {
  .utility-container {
    justify-content: center;
    gap: 0.5rem 1rem;
  }
}

.utility-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.utility-item i {
  color: var(--primary-red);
  font-size: 0.9rem;
}

/* 2. Main Header Bar (Logo + CTA) */
.main-header-bar {
  background-color: white;
  padding: 0;
}

.main-header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  /* Center the branding */
  align-items: center;
  position: relative;
  /* For absolute positioning of CTA/Hamburger */
}

.branding-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-school {
  height: 95px;
  /* Slightly larger logo */
  width: auto;
}

.branding-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  height: 95px;
  justify-content: center;
  padding: 0 1rem;
  box-sizing: border-box;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: -5px;
  /* Pull text closer to subtitle */
}

.brand-subtitle {
  font-family: var(--font-nav);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-red);
  text-transform: uppercase;
  line-height: 1.2;
}

.header-cta {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.header-cta .btn-apply {
  background-color: var(--primary-red);
  color: white;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(139, 0, 0, 0.2);
}

.header-cta .btn-apply:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px rgba(139, 0, 0, 0.25);
}

/* 3. Primary Navigation Bar */
.primary-navbar-wrapper {
  background: var(--secondary-gradient);
  /* Moved here for full width */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  /* Moved here */
  padding-bottom: 0px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.primary-navbar {
  max-width: var(--container-width);
  margin: 0 auto;
  /* Background and shadow moved to wrapper */
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  /* Space for items */
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  width: 100%;
  justify-content: space-between;
  /* Distribute items */
  padding: 0;
  margin: 0;
}

.nav-menu li {
  position: relative;
  flex-grow: 1;
  text-align: center;
  border: none;
  /* Reset previous border */
}

/* Soft Separators */
.nav-menu li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  /* Subtle smooth line */
}

.nav-menu a {
  display: block;
  padding: 16px 12px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-nav);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  text-transform: capitalize;
  /* Cleaner look than uppercase */
}

/* Hover Effect - Gold Line Animation */
.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: white;
  background-color: rgba(0, 0, 0, 0.1);
  /* Slight darken */
}

.nav-menu a:hover::before {
  width: 80%;
  /* Expand line */
}

/* Active State */
.nav-menu a.active {
  color: white;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.15);
}

.nav-menu a.active::before {
  width: 80%;
}


/* Hamburger Styles (Mobile) */
.hamburger {
  display: none;
  color: var(--text-dark);
  /* Dark in main header */
  font-size: 1.5rem;
  cursor: pointer;
}


/* Responsive adjustments */
@media (max-width: 900px) {
  .utility-container {
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
  }

  .main-header-container {
    padding: 1rem;
  }

  .brand-title {
    font-size: 1.4rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .logo-school {
    height: 60px;
  }

  .header-cta {
    display: none;
    /* Hide CTA on small mobile header, maybe move to menu */
  }

  /* Mobile Navigation */
  .primary-navbar {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  .hamburger {
    display: block;
    position: absolute;
    /* Fix absolute position for centered header */
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Slide out */
    width: 80%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
    /* Slide in */
  }

  .nav-menu li {
    text-align: left;
    width: 100%;
  }

  .nav-menu li::after {
    display: none;
    /* No separators on mobile */
  }

  .nav-menu a {
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    /* Larger tap targets */
  }

  .nav-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
  }

  .nav-menu a::before {
    display: none;
    /* No hover line on mobile */
  }
}

.nav-links li:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  padding: 14px 20px;
  transition: background 0.3s;
  text-decoration: none;
}

.nav-links a::after {
  display: none;
  /* Remove previous underline effect */
}

.nav-links a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  /* Slight darken on hover */
}

.hamburger {
  display: none;
  /* Manage hamburger later for mobile */
  color: var(--text-dark);
  /* Or white if in nav bar */
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-branding {
    padding: 1rem;
    justify-content: space-between;
  }

  .header-nav {
    display: none;
    /* Hide standard nav on mobile, use toggle */
  }

  .hamburger {
    display: block;
    top: 50px;
    /* Adjust based on branding height */
  }

  /* Mobile Menu Styling (Needs update for new structure) */
  .nav-active {
    display: flex !important;
    top: 100%;
    /* Dropdown from header */
    background: white;
    /* ... existing mobile styles ... */
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  /* Updated Background Image and Gradient as requested */
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../assets/images/Home/Aston front image.avif');
  background-size: cover;
  background-position: top center;
  /* Adjusted to show building better if needed, or stick to center */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 2rem;
}

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

.hero-student-life {
  height: 80vh !important;
  background-position: top center;
}

/* Feature Cards */
.feature-cards {
  position: relative;
  margin-top: 4rem;
  /* Shift down further */
  z-index: 10;
  margin-bottom: -40px;
}

/* ... */

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

.card {
  background: white;
  padding: 1.5rem;
  /* Reduced padding to reduce size */
  border-radius: 4px;
  /* Slight rounded corners ? Screenshot looks mostly sharp, maybe 4px */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  color: var(--primary-red);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.card:hover .card-link {
  gap: 0.8rem;
}

/* Mission and Vision Section */
.mission-vision {
  padding: 4rem 0;
  background-color: white;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mission-card,
.vision-card {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary-red);
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.mission-card h3,
.vision-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.mission-card p,
.vision-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* Aston Way Section */
.aston-way {
  padding: 4rem 0 6rem;
  background-color: var(--bg-light);
  /* Or maybe slightly pinkish? Screenshot looks plain/white/light */
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.image-wrapper {
  position: relative;
  box-shadow: -20px 20px 0 rgba(230, 0, 0, 0.05);
  /* Decorative shadow/bg element */
  border-radius: 8px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  display: block;
}

.content-wrapper {
  padding-right: 2rem;
}

.content-wrapper h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.btn-text-arrow {
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
}

/* Highlights */
.highlights {
  padding: 6rem 0;
  background-color: white;
}

.highlights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

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

.highlight-card {
  border: 1px solid #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #eee;
}

.highlight-card img {
  border-radius: 8px;
  margin-bottom: 1.5rem;
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.highlight-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  padding: 0 0 4rem;
  /* Reduced top padding (originally 4rem 0) */
  margin-top: -2rem;
  /* Pull it up further if needed */
  position: relative;
  z-index: 5;
}

.cta-box {
  background-color: #f9f9f9;
  color: var(--text-dark);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-box h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.cta-box p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-white {
  background: var(--primary-red);
  color: white;
  border: 2px solid var(--primary-red);
}

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

.btn-virtual-tour {
  border: 2px solid white;
  /* White border requested */
}

/* Hover effects for hero buttons */
.hero-buttons-centered .btn {
  transition: all 0.3s ease;
}

.hero-buttons-centered .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Group Photo Banner */
.group-photo-banner {
  position: relative;
  background-image: url('../assets/images/Home/Students and teachers group.png');
  background-size: cover;
  background-position: top center;
  padding: 8rem 0;
  text-align: center;
  color: white;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

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

.banner-content h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-outline-white {
  background: transparent;
  border: 1px solid white;
  color: white;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: #ccc;
  padding: 5rem 0 2rem;
  font-size: 0.85rem;
}

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

.footer-brand h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col h5 {
  color: white;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: white;
}

.newsletter-form input {
  background: #222;
  border: 1px solid #333;
  padding: 10px;
  color: white;
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
}

/* Admissions Page Styles (Kept) */
.hero-admissions {
  height: 80vh;
  background-position: top center;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding: 1rem 0 4rem;
}

.page-title-section {
  text-align: center;
  padding: 4rem 0 2rem;
}

.page-title-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  /* Center with icon (30px width) */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #eee;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-icon {
  position: absolute;
  left: -3rem;
  width: 32px;
  height: 32px;
  background: white;
  border: 2px solid var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  z-index: 2;
  font-size: 0.9rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #666;
}

/* Horizontal Timeline Styles */
.timeline-horizontal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4rem;
  position: relative;
  padding: 2rem 0;
}

.timeline-item-horizontal {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.timeline-icon-horizontal {
  width: 50px;
  height: 50px;
  background: white;
  border: 3px solid var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  z-index: 2;
  position: relative;
}

.timeline-content-horizontal {
  padding: 0 0.5rem;
}

.timeline-content-horizontal h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-family: var(--font-serif);
}

.timeline-content-horizontal p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}


.timeline-connector-horizontal {
  flex: 0 0 auto;
  width: 60px;
  height: 3px;
  background-color: var(--primary-red);
  /* Changed to red */
  align-self: flex-start;
  margin-top: 25px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Arrow removed as per request */

/* Responsive adjustments for horizontal timeline */
@media (max-width: 900px) {
  .timeline-horizontal {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-item-horizontal {
    margin-bottom: 2rem;
  }

  .timeline-connector-horizontal {
    display: none;
  }
}


.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  border: 1px solid #eee;
}

.fee-table th,
.fee-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.fee-table th {
  background-color: #f9f9f9;
  font-weight: 700;
  font-family: var(--font-sans);
}

.fee-caption {
  font-size: 0.8rem;
  font-style: italic;
  color: #888;
  margin-top: 0.5rem;
  margin-bottom: 0;
  display: block;
}



.scholarship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Revert to Row */
  gap: 2rem;
  margin-bottom: 4rem;
}

.scholarship-card {
  padding: 2rem;
  border-radius: 8px;
}

.scholarship-card.dark {
  background-color: #111;
  color: white;
}

.scholarship-card.light {
  background-color: #f0f4f8;
  /* Very light cool gray/white */
  color: var(--text-dark);
}

.scholarship-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.scholarship-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: inherit;
  opacity: 0.8;
}

.scholarship-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: inherit;
}

.scholarship-card.dark .scholarship-link {
  color: #bdbdbd;
}

.scholarship-card.light .scholarship-link {
  color: var(--primary-red);
}

.sidebar-widget {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem 2rem 1rem;
  margin-bottom: 2rem;
}

.sidebar-widget>*:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
}

.resource-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f9f9f9;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.resource-link:hover {
  background: #f0f0f0;
}

.date-widget,
.red-widget {
  background-color: var(--primary-red) !important;
  color: white !important;
  border: none !important;
}

.date-widget .widget-title,
.red-widget .widget-title {
  color: white !important;
}

.red-widget .widget-title i {
  color: white !important;
}

.red-widget .resource-link {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.red-widget .resource-link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.red-widget .fee-table,
.red-widget .fee-table th,
.red-widget .fee-table td {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.red-widget .fee-table th {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.red-widget .fee-table td {
  color: white !important;
}

.red-widget .fee-caption {
  color: rgba(255, 255, 255, 0.8) !important;
}

.date-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.date-box {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  min-width: 50px;
}

.date-box span {
  display: block;
}

.date-box .month {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.date-box .day {
  font-size: 1.2rem;
  font-weight: 700;
}

.date-info h5 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.date-info p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.view-all-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--primary-red);
  font-weight: 600;
  margin-top: 1.5rem;
}

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

  .scholarship-grid {
    grid-template-columns: 1fr;
  }
}

/* Academics Page - Hero */
.hero-academics {
  height: 80vh;
  background-position: top center;
}

/* Introduction */
.page-intro {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
}

.page-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-red);
}

/* Curriculum Cards */
.curriculum-section {
  padding-bottom: 5rem;
}

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

.curriculum-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.curriculum-card:hover {
  transform: translateY(-5px);
}

.curriculum-image {
  height: 200px;
  overflow: hidden;
}

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

.curriculum-content {
  padding: 2rem;
}

.curriculum-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Prep Section (NEET/JEE) */
.prep-section {
  background-color: #2c2c2c;
  /* Dark Grey instead of Blue for theme consistency */
  color: white;
  padding: 5rem 0;
  margin: 5rem 0;
}

.prep-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.prep-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item h3 {
  font-size: 3rem;
  color: white;
  /* Or primary red accent? White looks cleaner on dark */
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #ccc;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prep-highlights {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-list li {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

.highlight-list i {
  color: var(--primary-red);
  /* Red accent icon */
  margin-top: 5px;
}

.highlight-list strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.highlight-list span {
  font-size: 0.9rem;
  color: #ddd;
}

/* NEP Section */
.nep-section {
  padding: 4rem 0 6rem;
  text-align: center;
}

.nep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.nep-item {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 8px;
}

.nep-number {
  font-size: 3rem;
  font-weight: 700;
  color: #e0e0e0;
  /* Subtle number background */
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.nep-item h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Faculty Section */
.faculty-section {
  padding: 4rem 0 6rem;
  background-color: var(--bg-light);
}

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

.faculty-member {
  text-align: center;
}

.faculty-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.faculty-member h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.faculty-member p {
  font-size: 0.8rem;
  color: var(--primary-red);
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 900px) {

  .curriculum-grid,
  .nep-grid,
  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .prep-grid {
    grid-template-columns: 1fr;
  }
}

/* News Page Styles */
.news-hero {
  background: white;
  padding: 4rem 0 2rem;
}

.news-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

.lead-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lead-content .lead-label {
  color: var(--primary-red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.lead-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--text-dark);
}

.lead-content p {
  font-size: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 2rem;
  color: #555;
}

/* News Filters */
.news-filters {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
  margin-bottom: 4rem;
}

.filter-list {
  display: flex;
  gap: 2rem;
}

.filter-list a {
  font-weight: 600;
  font-size: 0.9rem;
  color: #888;
  position: relative;
}

.filter-list a:hover,
.filter-list a.active {
  color: var(--text-dark);
}

.filter-list a.active::after {
  content: '';
  position: absolute;
  bottom: -26px;
  /* Align with border-bottom */
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-red);
}

/* News & Sidebar Layout */
.news-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.section-headeer-row {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-headeer-row h3 {
  font-size: 1.5rem;
  white-space: nowrap;
}

.header-line {
  height: 2px;
  background-color: var(--primary-red);
  width: 30px;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.news-card {
  margin-bottom: 2rem;
}

.news-thumb {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
  height: 200px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.news-meta {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
}

.news-meta .category {
  color: var(--primary-red);
  margin-right: 0.5rem;
}

.news-meta .date {
  color: #999;
  font-weight: 500;
}

.news-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.news-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

.load-more-btn {
  width: 100%;
  padding: 1rem;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: var(--primary-red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  background: white;
  transition: all 0.2s;
  cursor: pointer;
  margin-top: 2rem;
}

.load-more-btn:hover {
  border-color: var(--primary-red);
  background: #fff5f5;
}

/* Event List */
.event-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.event-date-badge {
  background-color: var(--primary-red);
  color: white;
  text-align: center;
  padding: 0.5rem;
  border-radius: 4px;
  min-width: 60px;
}

.event-month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

.event-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-details h4 {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  font-family: var(--font-serif);
}

.event-time {
  font-size: 0.75rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.view-calendar-link {
  color: var(--primary-red);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Subscribe Widget */
.subscribe-widget {
  background-color: #f9f5f5;
  /* Light pinkish/grey */
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
}

.subscribe-widget h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.subscribe-widget p {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.subscribe-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.subscribe-form button {
  width: 100%;
}

@media (max-width: 900px) {

  .news-hero-grid,
  .news-layout,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Co-Curricular Page Styles
   ========================================= */
.hero-co-curricular {
  height: 80vh;
  background-position: top center;
}

.page-intro-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0 2rem;
}

.page-intro-center .section-label {
  justify-content: center;
  display: flex;
}

.page-intro-center h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-intro-center p {
  font-size: 1rem;
  color: #666;
}

/* Elite Programs */
.elite-programs-section {
  padding-bottom: 6rem;
}

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

.elite-card {
  position: relative;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.elite-card:hover {
  transform: translateY(-5px);
}

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

.elite-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 1.5rem 1.5rem;
  color: white;
}

.elite-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Facilities */
.facilities-section {
  padding: 4rem 0 6rem;
  background-color: var(--bg-light);
}

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

.facility-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.facility-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Clubs */
.clubs-section {
  padding: 4rem 0 6rem;
}

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

.club-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s;
}

.club-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-5px);
}

.club-icon {
  width: 60px;
  height: 60px;
  background-color: #f0f4f8;
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.club-card h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.club-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* Journey CTA */
.journey-cta {
  background-color: #1e88e5;
  padding: 5rem 0;
  text-align: center;
  color: white;
  margin: 2rem 1.5rem;
  border-radius: 12px;
  background-image: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
}

.journey-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.journey-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.journey-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-white-blue {
  background: white;
  color: #1565c0;
  font-weight: 700;
}

.btn-outline-white-blue {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-weight: 700;
}

.btn-outline-white-blue:hover {
  background: white;
  color: #1565c0;
}

@media (max-width: 900px) {

  .elite-grid,
  .clubs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  .elite-grid,
  .clubs-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   Student Life (Boarding) Page Styles
   ========================================= */
.hero-student-life {
  height: 80vh;
  background-position: top center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
}

.facilities-cards-row {
  margin-top: -80px;
  /* Stronger overlap */
  position: relative;
  z-index: 10;
  margin-bottom: 5rem;
}

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

/* REFINED Boarding Card Style */
.boarding-card {
  background: white;
  padding: 0;
  border-radius: 16px;
  /* Soft corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  /* Soft shadow */
  text-align: left;
  border: 1px solid #f5f5f5;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 400px;
  /* Fixed height for image display */
  overflow: hidden;
}



.boarding-icon-box {
  width: 56px;
  height: 56px;
  background-color: #ffebee;
  /* Light Red Tint */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
}

.boarding-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.boarding-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* Schedule Table */
.schedule-section {
  padding: 4rem 0 6rem;
  background-color: var(--bg-light);
}

.schedule-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table thead {
  background-color: var(--primary-red);
  color: white;
}

.schedule-table th,
.schedule-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.schedule-table th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

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

.time-slot {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.9rem;
}

.activity-name {
  font-weight: 600;
  color: var(--text-dark);
}

.focus-area {
  color: #666;
  font-size: 0.9rem;
}

/* Health & Safety */
.health-safety-section {
  padding: 6rem 0;
}

.health-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

/* REFINED Health Card Style */
.health-card-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  /* Soft corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-top: 1.5rem;
  /* Tighter spacing */
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid #f5f5f5;
  transition: transform 0.3s;
}

.health-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.health-icon {
  width: 56px;
  height: 56px;
  background-color: #ffebee;
  /* Light Red Tint */
  color: var(--primary-red);
  border-radius: 12px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.health-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.health-content p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.5;
}

.health-image img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* Ready CTA */
.ready-cta {
  background-color: #111;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.ready-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.ready-cta p {
  color: #999;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .boarding-facilities-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 2rem;
  }

  .facilities-cards-row {
    margin-top: 2rem;
  }

  .health-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .boarding-facilities-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table {
    display: block;
    overflow-x: auto;
  }
}

/* =========================================
   Gallery Page Styles
   ========================================= */

/* Gallery Header */
.gallery-header {
  text-align: center;
  padding: 4rem 0 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-header h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.gallery-header h1 span {
  color: #1e88e5;
  /* Blue to match screenshot */
  display: block;
}

.gallery-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.gallery-filter-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
  cursor: pointer;
  padding-bottom: 12px;
  position: relative;
  letter-spacing: 1px;
}

.gallery-filter-btn.active {
  color: var(--text-dark);
}

.gallery-filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1e88e5;
  /* Blue */
  border-radius: 3px 3px 0 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 5rem;
}

.gallery-item {
  border-radius: 20px;
  /* Rounded corners */
  overflow: hidden;
  position: relative;
  height: 340px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  background-color: #f8f9fa;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* Load More Button Styles */
.gallery-load-more {
  text-align: center;
  margin-bottom: 8rem;
}

.btn-pill-outline {
  background: white;
  border: 1px solid #1e88e5;
  /* Blue */
  border-radius: 50px;
  padding: 0.8rem 2.5rem;
  color: #1e88e5;
  /* Blue */
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pill-outline:hover {
  background: #f0f7ff;
}

/* Virtual Tour Section */
.virtual-tour-section {
  margin-bottom: 8rem;
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.tour-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.tour-header p {
  color: #666;
  max-width: 500px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tour-link {
  color: #1e88e5;
  /* Blue */
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.video-card {
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
  color: #1e88e5;
  /* Blue */
  font-size: 2.5rem;
  margin-left: 6px;
}

.video-overlay-text {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  color: white;
  z-index: 2;
}

.video-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8));
}

.tag-badge {
  background: #1e88e5;
  /* Blue */
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .tour-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .video-card {
    height: 300px;
  }
}

/* =========================================
   About Us Page Styles
   ========================================= */

/* About Hero */
.about-hero {
  height: 80vh;
  position: relative;
  background-size: cover;
  background-position: top center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.about-hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.about-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-hero-content p {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.about-hero-btn {
  background: white;
  color: var(--primary-red);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
  transition: all 0.2s;
}

.about-hero-btn:hover {
  background: #f9f9f9;
  transform: translateY(-2px);
}

/* Page Layout (Sidebar + Content) */
.page-layout {
  display: block;
  padding: 1rem 0 4rem;
}

/* Sticky Sidebar Removed */

/* Heritage Timeline */
#history h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

#history>p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 4rem;
  max-width: 800px;
  border-bottom: 1px solid #ffebee;
  padding-bottom: 2rem;
}

.heritage-timeline {
  border-left: 2px solid #f8bbd0;
  /* Stronger pink line */
  padding-left: 3rem;
  margin: 3rem 0;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-bottom: 4rem;
}

.timeline-badge {
  position: absolute;
  left: -4.1rem;
  /* Aligned center with line */
  top: 0;
  width: 32px;
  height: 32px;
  background-color: #d32f2f;
  /* Solid primary red */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 0 8px white;
  /* Cleaner spacing from line */
  z-index: 2;
}

.timeline-content h4 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-weight: 800;
}

.timeline-content span.year {
  color: #d32f2f;
  font-weight: 800;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1rem;
}

.timeline-content p {
  font-size: 1rem;
  color: #777;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Leadership Section */
.leadership-section {
  margin-top: 1rem;
}

.leader-card-featured {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 3rem;
}

.leader-img-circle {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.leader-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  font-family: var(--font-serif);
}

.leader-role {
  color: var(--primary-red);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: block;
}

.leader-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-bio-link {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

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

.board-card {
  background: white;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 8px;
}

.board-card h5 {
  color: var(--primary-red);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.board-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.board-card p {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0;
}

/* DEI Section */
.dei-section {
  margin-top: 6rem;
  background-color: #fce4ec;
  /* Light Pink background */
  padding: 4rem;
  border-radius: 12px;
}

.dei-section h2 {
  font-size: 2.2rem;
  color: var(--primary-red);
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.dei-highlight {
  font-weight: 700;
}

.dei-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.dei-item {
  display: flex;
  gap: 1rem;
}

.dei-icon {
  font-size: 2rem;
  color: var(--primary-red);
  flex-shrink: 0;
}

.dei-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.dei-item p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .page-sidebar {
    display: none;
  }

  .leader-card-featured {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .dei-grid {
    grid-template-columns: 1fr;
  }
}

/* Enrichment Slider */
.enrichment-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.enrichment-card {
  min-width: 100%;
  position: relative;
}

.enrichment-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.enrichment-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  color: white;
  backdrop-filter: blur(5px);
}

.enrichment-card-content h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
}

.enrichment-card-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .enrichment-layout {
    grid-template-columns: 1fr !important;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr !important;
    /* 2x2 on mobile */
  }
}

/* Sidebar Active State */
.page-sidebar ul li a.active {
  background-color: #fce4ec;
  color: var(--primary-red);
  font-weight: 700;
  border-left: 3px solid var(--primary-red);
  padding-left: 0.8rem;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(9, 300px);
  /* Supports 21 cards in 3 cycles */
  gap: 5px;
  margin-bottom: 4rem;
  margin-top: 12rem;
}

.gallery-card {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}

/* Grid Assignments */
.card-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  /* Spans 2 rows */
}

.card-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.card-3 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.card-4 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.card-5 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.card-6 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.card-7 {
  grid-column: 2 / 4;
  /* Spans 2 cols */
  grid-row: 3 / 4;
}

/* Set 2 (Cards 8-14) - Rows 4-6 */
.card-8 {
  grid-column: 1 / 2;
  grid-row: 4 / 6;
}

.card-9 {
  grid-column: 2 / 3;
  grid-row: 4 / 5;
}

.card-10 {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}

.card-11 {
  grid-column: 2 / 3;
  grid-row: 5 / 6;
}

.card-12 {
  grid-column: 3 / 4;
  grid-row: 5 / 6;
}

.card-13 {
  grid-column: 1 / 2;
  grid-row: 6 / 7;
}

.card-14 {
  grid-column: 2 / 4;
  grid-row: 6 / 7;
}

/* Set 3 (Cards 15-21) - Rows 7-9 */
.card-15 {
  grid-column: 1 / 2;
  grid-row: 7 / 9;
}

.card-16 {
  grid-column: 2 / 3;
  grid-row: 7 / 8;
}

.card-17 {
  grid-column: 3 / 4;
  grid-row: 7 / 8;
}

.card-18 {
  grid-column: 2 / 3;
  grid-row: 8 / 9;
}

/* Video Showcase Section */
.video-showcase {
  padding: 6rem 0;
  background-color: #fff;
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  margin-top: 3rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.card-19 {
  grid-column: 3 / 4;
  grid-row: 8 / 9;
}

.card-20 {
  grid-column: 1 / 2;
  grid-row: 9 / 10;
}

.card-21 {
  grid-column: 2 / 4;
  grid-row: 9 / 10;
}

/* Overlay & Hover Effects */
/* Overlay & Hover Effects */
.gallery-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
  /* Slight delay */
}

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

.gallery-card:hover h3 {
  transform: translateY(0);
}

.gallery-card:hover p {
  transform: translateY(0);
  opacity: 1;
}


/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-card {
    height: 300px;
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* =========================================
   Facilities Page Styles
   ========================================= */

.hero-facilities {
  position: relative;
  height: 80vh;
  background-size: cover;
  background-position: top center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-buttons-centered {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

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

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  height: 100%;
}

.split-layout.reverse-layout .image-wrapper {
  order: 1;
}

.split-layout.reverse-layout .content-wrapper {
  order: 2;
}

.image-wrapper {
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-label {
  display: inline-block;
  background: #eee;
  color: #555;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.facility-features {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.facility-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #444;
}

/* Elite Facilities Dark Theme */
.elite-facilities {
  background-color: #111;
  color: white;
}

.elite-card {
  transition: transform 0.3s ease;
}

.elite-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Responsive Facilities */
@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-layout.reverse-layout .image-wrapper {
    order: 0;
    /* Image on top on mobile usually better, or keep order? */
  }

  .split-layout.reverse-layout .content-wrapper {
    order: 1;
  }

  .grid-2-col {
    grid-template-columns: 1fr !important;
  }

  .elite-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================
   Facilities Marquee Styles
   ========================================= */

.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
  /* Adjusted speed for more items */
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-card {
  width: 50vw;
  /* 2 cards per viewport width */
  flex-shrink: 0;
  padding: 1rem;
  box-sizing: border-box;
}

/* On larger screens, maybe restrict card width if container is constrained?
   User said "2 cards in one frame". Often means 50% of screen.
   If I want it inside existing container, I should make card 50% of container.
   But marquee often breaks out of container.
   I'll stick to 50vw as requested for "frame".
   If user meant "2 cards visible within the page container", then 50% is better.
   Given the context of "endless loop", usually full width.
   I'll use 50vw.
*/

.marquee-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.marquee-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.marquee-content p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-800vw);
  }

  /* 16 items * 50vw */
}

/* Mobile Adjustment */
@media (max-width: 768px) {
  .marquee-card {
    width: 90vw;
    /* Show 1 card fully approx, or still 2? 2 is too small on mobile. */
    /* User request was specific: "2 cards should only be shown in one frame".
       I'll keep 50vw but maybe increase for mobile if unreadable.
       Actually, 50vw on mobile is 180px, feasible.
    */
  }

  @keyframes marquee-scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-1440vw);
    }
  }
}

/* FAQ Section 3-Column Layout */
.faq-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.faq-column {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.faq-column h3 {
  font-size: 1.5rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  padding: 0.8rem 0;
  line-height: 1.4;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--primary-red);
}

.faq-toggle {
  color: #666;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  color: var(--primary-red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  /* Large enough to cover content */
  padding-bottom: 1rem;
  transition: max-height 0.5s ease-in;
}

@media (max-width: 992px) {
  .faq-section-grid {
    grid-template-columns: 1fr;
  }
}


/* FAQ Scroll Container */
.faq-scroll-container {
  height: 350px;
  /* Adjusted to show roughly 3-4 items depending on content */
  overflow-y: auto;
  padding-right: 5px;
  /* Space for scrollbar */
}

/* Custom Scrollbar for FAQ */
.faq-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.faq-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.faq-scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}



.mouse-card {
  min-width: 280px;
  /* Reduced width if needed, or keep standard */
  width: 280px;
  height: 250px;
  /* Fixed reduced height */
  padding: 1.5rem;
  /* Reduced padding */
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically if height is fixed */
}

.mouse-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-red);
}

.mouse-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #333;
}

.mouse-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
  margin-bottom: 0;
}

.prep-section {
  background-color: #f9f9f9;
  padding: 5rem 0;
}

.prep-content,
.prep-highlights {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: #333;
}

.highlight-list li i {
  color: var(--primary-red);
}

.highlight-list li span {
  color: #666;
  display: block;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}


/* Application Modal */
.app-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 2rem 0;
}

.app-modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease-out;
  margin: auto;
  /* Centering in scroll */
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--primary-red);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.8rem;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: #666;
  font-size: 0.9rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea,
.dob-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-red);
}

.dob-group {
  display: flex;
  gap: 10px;
}

.dob-group input {
  text-align: center;
}

.gender-group {
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal !important;
  cursor: pointer;
}

.radio-label input {
  accent-color: var(--primary-red);
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
  padding: 12px;
  font-size: 1rem;
}

/* Global Footer Dark Theme */
footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 4rem 0;
}

/* Contact Info Visibility Toggle */
.mobile-contact-info {
  display: none;
}

.desktop-contact-info {
  display: block;
}

.footer-brand h3 {
  color: white !important;
}

.footer-brand p {
  color: #bbb !important;
}

/* Global Footer Dark Theme */
footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 4rem 0;
}

.footer-brand h3 {
  color: white !important;
}

.footer-brand p {
  color: #bbb !important;
}

.footer-links a {
  color: #bbb !important;
}

.footer-links a:hover {
  color: var(--primary-red) !important;
}

/* Facility Section Spacing */
.facility-section {
  padding: 2.5rem 0;
}

/* CTA Box Styling */
.cta-box {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  /* Default overlay, image set by modifier */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 4rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 4rem auto;
  max-width: var(--container-width);
}

.cta-home {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/images/Home/Last card bg img.jpg');
}

.cta-admissions {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/Home/Students img.avif');
  background-position: top;
}

.cta-academics {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/Home/Computer lab img.avif');
}

.cta-student-life {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/Home/Activities img.avif');
}

.cta-about {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/Home/Assembly img.avif');
}

.cta-box h2,
.cta-box h3,
.cta-box p {
  color: white !important;
}

.cta-box .btn-outline-dark {
  border: 2px solid white !important;
  color: white !important;
  background: transparent !important;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-box .btn-outline-dark:hover {
  background: white !important;
  color: var(--primary-red) !important;
}

/* =========================================
   Mobile Responsiveness & Hamburger Menu
   ========================================= */

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-dark);
  position: relative;
  /* Essential for z-index */
  z-index: 2001;
  /* Above overlay */
}

/* Responsive Header Styles */
@media (max-width: 992px) {
  .main-header-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .branding-left {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .logo-school {
    height: 70px;
    width: auto;
  }

  .branding-text {
    height: auto;
    padding: 0;
    align-items: center;
  }

  .brand-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .brand-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
    line-height: 1.4;
  }

  .header-cta {
    position: static;
    transform: none;
    margin-top: 0.5rem;
  }

  /* Hamburger positioning fixes */
  .hamburger {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: block;
    z-index: 2100;
    cursor: pointer;
  }

  /* Hide Top Bar on Mobile */
  .top-utility-bar {
    display: none;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1.5rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: block;
  }

  /* Updated selector from .nav-links to .primary-navbar-wrapper */
  .primary-navbar-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--primary-red);
    /* Red Background */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4rem;
    /* Reduced spacing */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
    overflow-y: auto;
  }

  .primary-navbar-wrapper.nav-active {
    transform: translateX(0%);
  }

  /* Adjust internal list items */
  /* Adjust internal list items */
  .primary-navbar-wrapper ul li {
    margin: 1rem 0;
    /* Reduced margin */
    width: 100%;
    text-align: center;
  }

  /* Force Link Color to Black on Mobile */
  /* Force Link Color to White on Mobile */
  .primary-navbar-wrapper a {
    color: white !important;
    /* White text */
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .primary-navbar-wrapper a:hover,
  .primary-navbar-wrapper a:active,
  .primary-navbar-wrapper a:focus {
    color: var(--accent-gold) !important;
    /* Gold on interactions */
    background: transparent !important;
  }

  /* Ensure flex column for the ul */
  .primary-navbar-wrapper ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;

    /* CRITICAL FIX: Reset conflicting legacy properties */
    position: static !important;
    transform: none !important;
    background: transparent !important;
    height: auto !important;
    box-shadow: none !important;
    right: auto !important;
  }

  /* CRITICAL FIX: Override generic .nav-active that pushes menu down */
  .primary-navbar-wrapper.nav-active {
    transform: translateX(0%);
    top: 0 !important;
    display: flex !important;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    /* Below menu and hamburger, above everything else */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

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

  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Sidebar Grid Override */
  .sidebar-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Tweaks */
@media (max-width: 768px) {

  /* Global Layout */
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.8rem;
    /* Reduced for mobile */
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  /* Header Overrides handled by 992px query above */


  /* Hero */
  .hero {
    height: auto;
    min-height: 60vh;
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  /* Feature Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-cards {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  /* Mission Vision */
  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Split Layout (Aston Way) */
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-wrapper {
    padding-right: 0;
  }

  .image-wrapper {
    order: -1;
    /* Image on top */
    height: auto !important;
    min-height: auto !important;
  }

  /* Highlights */
  .highlights-grid {
    grid-template-columns: 1fr;
    /* Stack all */
  }

  .highlights-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* CTA */
  .cta-box h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Toggle Contact Info for Mobile */
  .desktop-contact-info {
    display: none;
  }

  .mobile-contact-info {
    display: block;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  /* Make the Connect/Newsletter column full width */
  .footer-col:last-child {
    grid-column: 1 / -1;
    text-align: center;
  }

  /* Ensure proper alignment for nav columns */
  .footer-col {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }

  .footer-bottom div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem !important;
  }

  /* Academics Page Specifics */
  .curriculum-grid {
    grid-template-columns: 1fr;
  }

  .academic-path-grid {
    grid-template-columns: 1fr !important;
  }

  /* Prep Section */
  .prep-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    /* 2x2 grid for stats on mobile */
  }

  /* Educational Experience Mobile Layout */
  .exp-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .exp-left {
    padding-right: 0 !important;
    margin-bottom: 2rem;
  }

  .exp-right {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid #ccc;
    /* Add top border to separate */
    padding-top: 2rem;
  }

  /* Contact Page Mobile Fixes */
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-form-card {
    padding: 2rem 1.5rem !important;
  }

  .contact-form-card form>div:first-child {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .contact-info-col {
    order: -1;
  }

  .contact-info-col>div {
    margin-bottom: 1.5rem !important;
  }

  /* Ensure form inputs are full width */
  .contact-form-card input,
  .contact-form-card select,
  .contact-form-card textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }


  .exp-stats {
    gap: 1.5rem !important;
    flex-wrap: wrap;
    /* in case they don't fit */
    justify-content: space-between;
  }

  /* Admissions Page */
  .timeline::before {
    left: 15px;
  }

  .timeline-icon {
    left: 0;
  }

  .timeline {
    padding-left: 3rem;
  }

  /* Mobile Page Headers */
  .page-header,
  .hero-academics,
  .hero-admissions,
  .hero-facilities,
  .hero-student-life,
  .hero-news,
  .hero-about {
    height: auto !important;
    min-height: 300px !important;
    background-position: center center !important;
    background-size: cover !important;
    padding: 3rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Facilities Page Mobile Spacing Fix */
  .facility-section {
    padding: 1rem 0 !important;
    /* Aggressive reduction */
  }

  .facility-section .split-layout {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
  }

  .facility-section .split-layout.reverse-layout {
    flex-direction: column;
    /* Stack normally on mobile (Image first if HTML order is Image -> Content) */
  }

  .facility-section .image-wrapper {
    margin: 0 !important;
    width: 100% !important;
    line-height: 0 !important;
  }

  .facility-section .content-wrapper {
    margin: -4rem 0 0 0 !important;
    padding: 0 1rem !important;
    /* Negative margin pulls text up */
  }

  .facility-section .image-wrapper video,
  .facility-section .image-wrapper img {
    height: auto !important;
    max-height: 300px;
    margin-bottom: 0 !important;
    display: block !important;
  }

  .facility-section .section-label {
    margin-top: 0 !important;
    display: inline-block !important;
    line-height: 1;
    margin-bottom: 0.25rem !important;
  }

  .facility-section h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Specific Fix for Admissions Banner to show full image */
  .hero-admissions {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 16/9;
    /* Maintain aspect ratio to prevent collapse */
    width: 100%;
  }

  /* Ensure Hero Content (Text) is visible */
  .hero-about {
    background-size: 100% 100% !important;
    background-position: center center !important;
    height: auto !important;
    min-height: 300px !important;
  }

  /* About Us Team Grid Mobile Fix */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .team-card {
    border-right: none !important;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
    width: 100% !important;
  }

  .team-card:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* News Headlines Mobile Fix */
  .news-grid-triple {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .news-thumb {
    height: 200px !important;
    /* Ensure good image height */
  }

  /* Ensure Hero Content (Text) is visible */
  .hero-content h1,
  .page-header h1 {
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  /* Facilities Grid (if used) */
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    /* Stack stats on very small screens */
  }
}

/* ========================================
   FULL-SCREEN MENU OVERLAY
   ======================================== */

/* Menu Overlay Base */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #1a1a3e;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}

.menu-overlay.active {
  transform: translateY(0);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Close Button */
.menu-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-close:hover {
  transform: rotate(90deg);
  color: var(--primary-red);
}

/* Menu Content Container */
.menu-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
}

/* Three Column Grid */
.menu-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  width: 100%;
}

.menu-column {
  color: white;
}

/* Left Column - Recent News */
.menu-left {
  padding-right: 2rem;
}

.menu-logo img {
  filter: brightness(0) invert(1);
}

.menu-column-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.menu-recent-list {
  list-style: none;
  padding: 0;
}

.menu-recent-list li {
  margin-bottom: 1rem;
}

.menu-recent-list a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 1.5rem;
}

.menu-recent-list a::before {
  content: '';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.menu-recent-list a:hover {
  color: white;
  padding-left: 2rem;
}

.menu-recent-list a:hover::before {
  opacity: 1;
}

/* Center Column - Contact & Image */
.menu-center {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.menu-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.menu-image img {
  width: 100%;
  height: auto;
  display: block;
}

.menu-contact-info h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.menu-contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-contact-info i {
  color: var(--primary-red);
  width: 20px;
}

/* Right Column - Main Navigation */
.menu-right {
  padding-left: 2rem;
}

.menu-main-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.menu-nav-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.menu-nav-section:last-child {
  border-bottom: none;
}

.menu-main-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: white;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.menu-main-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.menu-main-link:hover {
  color: var(--primary-red);
}

.menu-main-link:hover::after {
  width: 100%;
}

.menu-sub-links {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.menu-sub-links li {
  margin-bottom: 0.5rem;
}

.menu-sub-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  padding-left: 1rem;
  position: relative;
}

.menu-sub-links a::before {
  content: '';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-sub-links a:hover {
  color: white;
  padding-left: 1.5rem;
}

.menu-sub-links a:hover::before {
  opacity: 1;
}

/* Fix for overlapping text on mobile facilities page */
@media (max-width: 900px) {
  .facility-section h2 {
    margin-top: 3rem !important;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .menu-grid {
    gap: 3rem;
  }

  .menu-main-link {
    font-size: 1.75rem;
  }
}

/* Fix for overlapping text on mobile facilities page */
@media (max-width: 900px) {
  .facility-section h2 {
    margin-top: 3rem !important;
  }
}

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

  .menu-left {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .menu-right {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .menu-content {
    padding: 6rem 1.5rem 3rem;
  }

  .menu-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
  }

  .menu-main-link {
    font-size: 1.5rem;
  }

  .menu-center,
  .menu-right {
    padding-left: 0;
  }
}

/* Admissions Popup Modal */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.popup-content {
  background-color: white;
  padding: 1rem;
  /* Reduced padding */
  border-radius: 8px;
  /* Slightly smaller radius */
  position: relative;
  max-width: 450px;
  /* Constrain width to help height */
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 10px;
  /* Moved inside */
  right: 10px;
  /* Moved inside */
  width: 30px;
  height: 30px;
  background-color: #333;
  /* Darker for visibility against white/image */
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 2px solid white;
  z-index: 10;
}

.popup-close:hover {
  transform: rotate(90deg);
  background-color: var(--primary-red);
}

.popup-image-wrapper {
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
  /* max-height: 400px; - Removed limit, let width dictate height, but width is constrained */
}

.popup-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Separator Line */
.popup-separator {
  height: 1px;
  background-color: #eee;
  margin: 1rem 0;
  width: 100%;
}

.popup-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: white;
  /* White background */
  color: var(--primary-red);
  /* Red Text */
  border: 2px solid var(--primary-red);
  /* Red Border */
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.popup-btn:hover {
  background-color: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
}

/* Academic Highlights Marquee */
.highlights-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.highlights-marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.highlights-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Ensure cards maintain their size in marquee */
.highlights-marquee-track .highlight-card {
  flex: 0 0 280px;
  width: 280px;
}

/* Responsive adjustments for marquee */
@media (max-width: 768px) {
  .highlights-marquee-track .highlight-card {
    flex: 0 0 240px;
    width: 240px;
  }

  .highlights-marquee-track {
    animation-duration: 40s;
  }
}

/* Academic Highlights Marquee */
.highlights-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.highlights-marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.highlights-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Ensure cards maintain their size in marquee */
.highlights-marquee-track .highlight-card {
  flex: 0 0 280px;
  width: 280px;
}

/* Responsive adjustments for marquee */
@media (max-width: 768px) {
  .highlights-marquee-track .highlight-card {
    flex: 0 0 240px;
    width: 240px;
  }

  .highlights-marquee-track {
    animation-duration: 40s;
  }
}


/* The Aston Way Section */
.aston-way {
  background-color: #d9d9d9;
  padding: 4rem 0;
  /* Add some padding for better look because background color is added */
}

/* Testimonial Slider Styles */
.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  z-index: 2;
}

/* Reduced padding for curriculum cards */
.curriculum-card {
  padding-bottom: 1.5rem !important;
}

/* Admissions Fee Structure Styling */
.widget-title {
  font-weight: 800 !important;
  color: black !important;
}

.fee-table,
.fee-table th,
.fee-table td {
  font-weight: 700 !important;
  color: black !important;
}

/* =========================================
   Educational Experience Section (Redesign)
   ========================================= */
.educational-experience {
  padding: 6rem 0;
  background-color: #fcfbf9;
  /* Warm off-white */
  border-bottom: 1px solid #eaeaea;
}

.exp-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Left Column */
.exp-left {
  padding-right: 2rem;
}

.exp-title {
  font-size: 3rem;
  font-family: var(--font-serif);
  color: #2c2c2c;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.exp-desc {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 90%;
}

.exp-stats {
  display: flex;
  gap: 4rem;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 2rem;
}

.stat-item-clean {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
  font-weight: 600;
}

/* Right Column */
.exp-right {
  padding-left: 1rem;
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.highlight-item-clean {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 1.4rem;
  color: var(--primary-red);
  /* Accent color */
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.highlight-item-clean h4 {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.highlight-item-clean p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .exp-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .exp-left {
    padding-right: 0;
  }

  .exp-stats {
    gap: 2rem;
    justify-content: space-between;
  }
}

/* Animations (Simple Fade Up) */
.reveal-text,
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.facility-section {
  padding: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: translateY(-5px);
  color: white;
}


/* -----------------------------------------------------------
   Admission Form Page Styles
----------------------------------------------------------- */
.apply-page-container {
  background-color: #f5f5f5;
  padding: 4rem 0;
}

.app-form-wrapper {
  background: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.app-form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.app-form-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.app-form-subtitle {
  color: #666;
  font-size: 1.1rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background: white;
  /* Ensure consistent background */
  font-family: inherit;
  /* Inherit font from body/parent */
}

/* Specific input overrides/adjustments */
textarea.form-textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dob-group {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
}

.dob-input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  /* For select elements mainly */
  width: 100%;
  /* Ensure full width within grid cell */
  font-size: 1rem;
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.form-policy-text {
  text-align: center;
  margin-top: 1.5rem;
  color: #888;
  font-size: 0.9rem;
}

.policy-icon {
  margin-right: 0.5rem;
}


/* -----------------------------------------------------------
   Admission Form Responsive Styles
----------------------------------------------------------- */
@media (max-width: 768px) {
  .apply-page-container {
    padding: 2rem 0;
    /* Reduce vertical padding */
  }

  .app-form-wrapper {
    padding: 1.5rem;
    /* Reduce internal padding */
    margin: 0 1rem;
    /* Add side margins so it doesn't hit edges */
    width: auto;
    /* Allow auto width with margins */
  }

  .app-form-title {
    font-size: 1.8rem;
    /* Smaller title */
  }

  .form-row {
    grid-template-columns: 1fr;
    /* Stack email and phone */
    gap: 0;
    /* Remove gap between grid columns, reliance on margin-bottom of groups */
  }

  .form-row .form-group {
    margin-bottom: 1.5rem;
    /* Ensure spacing between stacked items */
  }

  .dob-group {
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem;
  }

  /* Make Year span full width or sit in the grid */
  .dob-group input[name="dob_year"] {
    grid-column: span 2;
  }
}

@media (min-width: 480px) and (max-width: 768px) {

  /* Slightly wider mobiles can keep 3 cols for DOB maybe? */
  .dob-group {
    grid-template-columns: 1fr 2fr 1fr;
    grid-column-gap: 0.5rem;
  }

  .dob-group input[name="dob_year"] {
    grid-column: auto;
  }
}

/* News Grid for Home & News Page */
.news-grid-triple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .news-grid-triple {
    grid-template-columns: 1fr;
  }
}