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

:root {
  --primary: hsl(184, 60%, 36%);
  --primary-dark: hsl(184, 65%, 24%);
  --primary-hover: hsl(184, 65%, 28%);
  --primary-light: hsl(184, 60%, 94%);
  --secondary: hsl(14, 85%, 60%);
  --secondary-hover: hsl(14, 85%, 52%);
  --secondary-light: hsl(14, 85%, 94%);
  --accent: hsl(135, 30%, 38%);
  --accent-light: hsl(135, 30%, 94%);
  --bg-warm: hsl(36, 40%, 97%);
  --bg-white: #ffffff;
  --text-main: hsl(210, 30%, 15%);
  --text-muted: hsl(210, 15%, 40%);
  --border: hsl(184, 20%, 90%);
  --shadow-sm: 0 2px 4px rgba(35, 133, 148, 0.05);
  --shadow-md: 0 8px 16px rgba(35, 133, 148, 0.08);
  --shadow-lg: 0 16px 32px rgba(35, 133, 148, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-bg-white {
  background-color: var(--bg-white);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
  margin: 0.75rem auto 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1200; /* Above branch borders to blur them on scroll */
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo-image {
  height: 82px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(35, 133, 148, 0.15));
  transition: var(--transition);
}

.logo:hover .logo-image {
  transform: scale(1.05) rotate(-3deg);
}

.logo-text h1 {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.1;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

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

.nav-btn {
  text-decoration: none;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(35, 133, 148, 0.15);
}

.nav-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(35, 133, 148, 0.2);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.8rem;
}

/* Full Bleed Hero Section */
.hero {
  position: relative;
  background: url('assets/carved_img_55.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 56, 64, 0.85) 0%, rgba(20, 30, 48, 0.8) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content h2 {
  font-size: 3.8rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content h2 span {
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 6px 15px rgba(35, 133, 148, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(35, 133, 148, 0.35);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 6px 15px rgba(242, 108, 79, 0.25);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 108, 79, 0.35);
}

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

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: max-content;
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* About Us Layout with Image */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  display: block;
}

.about-image-wrapper::before {
  display: none !important;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

/* Activity Showcase Modern Card Styles */
.activity-showcase-row {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(35, 133, 148, 0.15);
}

.activity-showcase-text {
  flex: 1.2;
}

.activity-showcase-text h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.activity-showcase-text p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.activity-showcase-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 520px;
  width: 100%;
}

.activity-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(35, 133, 148, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(35, 133, 148, 0.18);
}

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

.activity-card-caption {
  padding: 0.75rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  line-height: 1.35;
  background: #fbfdfd;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.highlight-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
}

.highlight-box p {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Gallery Grid Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35, 133, 148, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
  padding: 1rem;
  text-align: center;
}

.gallery-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay span {
  font-weight: 600;
  font-size: 1rem;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

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

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 3px solid white;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 2.25rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--secondary);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: var(--transition);
}

.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--secondary);
}

/* EYFS Cards Grid */
.eyfs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.eyfs-card-outer {
  perspective: 1000px;
  height: 320px;
}

.eyfs-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.eyfs-card-outer:hover .eyfs-card, 
.eyfs-card.flipped {
  transform: rotateY(180deg);
}

.eyfs-front, .eyfs-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.eyfs-front {
  background-color: var(--bg-white);
}

.eyfs-back {
  background-color: var(--primary);
  color: white;
  transform: rotateY(180deg);
  border-color: var(--primary);
}

.eyfs-back h3, .eyfs-back p {
  color: white;
}

.eyfs-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.prime-card .eyfs-icon-circle {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.specific-card .eyfs-icon-circle {
  background-color: var(--accent-light);
  color: var(--accent);
}

.eyfs-front h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.eyfs-back p {
  font-size: 0.95rem;
}

.flip-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* Full-bleed Outdoor Banner Section */
.outdoor-banner {
  background: url('assets/carved_img_59.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  position: relative;
  color: white;
  padding: 8rem 0;
  z-index: 1;
}

.outdoor-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16, 56, 64, 0.75);
  z-index: -1;
}

.outdoor-banner h2 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.outdoor-banner p {
  color: rgba(255,255,255,0.9);
  max-width: 800px;
  font-size: 1.2rem;
}

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

.outdoor-list {
  list-style: none;
  margin-top: 1.5rem;
}

.outdoor-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.outdoor-list li i {
  color: var(--accent);
  margin-top: 0.25rem;
}

/* Meet the Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem;
}

.team-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
  margin: 0 auto 1.5rem auto;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover .team-photo {
  transform: scale(1.05);
  border-color: var(--secondary);
}

.team-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Team Leadership & Staff Standards */
.team-leadership-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.manager-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-light) 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.manager-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.manager-badge-icon {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #155560 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  box-shadow: 0 8px 24px rgba(35, 133, 148, 0.25);
  border: 4px solid #e1f3f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manager-card:hover .manager-badge-icon {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(35, 133, 148, 0.35);
}

.manager-details h3 {
  font-size: 1.85rem;
  color: var(--primary);
  margin-top: 0.4rem;
  margin-bottom: 0.25rem;
}

.manager-details .team-role {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.manager-details .team-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.badge-manager {
  background-color: var(--secondary-light);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
}

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

.staff-feature-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.staff-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.staff-feature-card .feature-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.staff-feature-card h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.staff-feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .manager-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

/* Admissions & Fee Calculator */
.admissions-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

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

.time-slot-card {
  background-color: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time-slot-card span:first-child {
  font-weight: 600;
  color: var(--primary);
}

.time-slot-card span:last-child {
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--bg-white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Calculator Card */
.calc-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.calc-container h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-main);
  background-color: var(--bg-warm);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
}

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

.radio-card {
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: block;
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  background-color: var(--bg-warm);
  transition: var(--transition);
}

.radio-card input:checked + .radio-label {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

.calc-result {
  margin-top: 2rem;
  background-color: var(--primary-light);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.calc-result-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.calc-result-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.calc-result-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Settling Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-white);
  border: 4px solid var(--secondary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }

.timeline-content {
  padding: 20px 30px;
  background-color: var(--bg-warm);
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Image Rendering optimization for small resolution brochure pictures */
img.about-image, .timeline-content img, .about-image-wrapper img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--border);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-light);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-form {
  background-color: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border);
}

.contact-form h3 {
  margin-bottom: 2rem;
}

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

.form-submit-btn {
  width: 100%;
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(35, 133, 148, 0.15);
}

.form-submit-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Footer Section */
footer {
  background-color: hsl(210, 30%, 12%);
  color: white;
  padding: 4rem 0 2rem 0;
  border-top: 4px solid var(--secondary);
}

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

.footer-col h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-col p {
  color: hsl(210, 15%, 75%);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: hsl(210, 15%, 75%);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: hsl(210, 15%, 60%);
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content h2 {
    font-size: 2.8rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    width: 100%;
  }
  .about-grid, .admissions-grid, .outdoor-layout, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item::after {
    left: 21px;
    right: auto;
  }
  .right { left: 0%; }
}

@media (max-width: 768px) {
  header {
    background-color: var(--bg-white);
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
  }
  .nav-menu.active {
    left: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .calc-container {
    padding: 2rem 1.5rem;
  }
  .lightbox-prev { left: -40px; font-size: 2rem; }
  .lightbox-next { right: -40px; font-size: 2rem; }

  /* Mobile Layout Alignment & Overflow Fixes */
  .hero-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem !important;
  }
  
  .hero-stats {
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
    justify-content: center;
  }

  .about-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1.75rem !important;
    margin-bottom: 2.5rem !important;
    text-align: center;
  }

  .about-text {
    width: 100% !important;
    flex: none !important;
    max-width: 100% !important;
  }

  .about-image-wrapper {
    width: 100% !important;
    flex: none !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    position: relative;
  }

  .about-image-wrapper::before {
    display: none !important;
  }

  /* Distribute images in segment grids cleanly without stretching */
  .about-image-wrapper img {
    height: auto !important;
    max-height: 200px !important;
    object-fit: cover !important;
    aspect-ratio: 4 / 3 !important;
  }

  /* Three-image grid in Segment 4 (Risk/Challenge) on mobile */
  .about-image-wrapper[style*="grid"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  .about-image-wrapper[style*="grid"] img {
    aspect-ratio: 1 / 1 !important;
    max-height: 120px !important;
  }

  /* Activity Showcase on Mobile */
  .activity-showcase-row {
    flex-direction: column !important;
    gap: 1.75rem !important;
    margin-top: 2rem !important;
    padding-top: 1.75rem !important;
    text-align: center;
  }

  .activity-showcase-text {
    width: 100% !important;
    flex: none !important;
  }

  .activity-showcase-grid {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    flex: none !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem !important;
  }

  .activity-card-img {
    height: 150px;
  }

  .activity-card-caption {
    font-size: 0.82rem;
    padding: 0.6rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .activity-showcase-grid {
    grid-template-columns: 1fr !important;
    max-width: 320px !important;
    gap: 1.25rem !important;
  }

  .activity-card-img {
    height: 185px !important;
  }

  .activity-card-caption {
    font-size: 0.9rem !important;
    padding: 0.75rem 0.5rem !important;
  }
}

/* Branch Borders Styles */
body {
  position: relative;
}

.branch-border {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1000; /* Set below header (1200) to enable glassmorphic blur, but above backgrounds */
  mix-blend-mode: multiply; /* Blends branch image naturally with all background colors */
}

.branch-border-left {
  left: 0;
  width: 90px;
  background-image: url('assets/brochure_image300.png');
  background-repeat: repeat-y;
  background-size: 100% auto;
  opacity: 0.55; /* Slightly softer for a professional look */
  transition: opacity 0.3s;
}

.branch-border-right {
  right: 0;
  width: 110px;
  background-image: url('assets/brochure_image2991.png');
  background-repeat: repeat-y;
  background-size: 100% auto;
  opacity: 0.55; /* Slightly softer for a professional look */
  transition: opacity 0.3s;
}

@media (max-width: 1200px) {
  .branch-border-left {
    width: 60px;
    opacity: 0.4;
  }
  .branch-border-right {
    width: 70px;
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .branch-border-left, .branch-border-right {
    display: none; /* Hide side borders on mobile */
  }
}

/* Falling Leaves Animation */
.falling-leaves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1; /* Under hero text but above hero background */
}

.falling-leaves-container i {
  position: absolute;
  color: var(--accent); /* Natural forest green color from our updated palette */
  opacity: 0.28; /* Extremely soft and subtle so it doesn't distract */
  font-size: 1.2rem;
  animation: fall linear infinite;
}

/* Customized leaves positions, sizes, and delays */
.leaf-1 {
  left: 10%;
  animation-duration: 14s !important;
  animation-delay: 0s !important;
}

.leaf-2 {
  left: 35%;
  font-size: 1.6rem !important;
  animation-duration: 18s !important;
  animation-delay: 3s !important;
}

.leaf-3 {
  left: 65%;
  font-size: 1.1rem !important;
  animation-duration: 15s !important;
  animation-delay: 6s !important;
}

.leaf-4 {
  left: 85%;
  font-size: 1.4rem !important;
  animation-duration: 22s !important;
  animation-delay: 1s !important;
}

@keyframes fall {
  0% {
    top: -10%;
    transform: translateX(0) rotate(0deg);
  }
  30% {
    transform: translateX(40px) rotate(90deg) scaleX(0.8);
  }
  70% {
    transform: translateX(-40px) rotate(240deg) scaleX(1);
  }
  100% {
    top: 110%;
    transform: translateX(10px) rotate(360deg);
  }
}

/* Team Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000; /* High z-index to overlay everything, including headers and borders */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(35, 133, 148, 0.25); /* Teal overlay */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  background-color: var(--bg-white);
  width: 90%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.modal-content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.modal-image-col {
  flex: 0 0 180px;
  text-align: center;
}

.modal-team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--primary-light);
  box-shadow: var(--shadow-md);
}

.modal-info-col {
  flex: 1;
}

#modal-team-name {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.modal-team-role {
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.modal-team-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Mobile responsive modal styling */
@media (max-width: 650px) {
  .modal-content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .modal-image-col {
    flex: 0 0 auto;
  }
  
  .modal-container {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }
  
  #modal-team-name {
    font-size: 1.5rem;
  }
}





