/* Leader Image Variations */
.leader-image-top {
  object-fit: cover;
  object-position: top center;
  width: 100%;
  height: 250px;
  border-radius: 12px;
}
.leader-image-mid {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 250px;
  border-radius: 12px;
}
.leader-image-bot {
  object-fit: cover;
  object-position: bottom center;
  width: 100%;
  height: 250px;
  border-radius: 12px;
}
/* Secondary Button for Light Backgrounds */
/* Refined secondary button for light backgrounds (matches screenshot 2) */
.btn-secondary-light {
  background: #e6f4ea;
  color: #217a3a;
  font-weight: 700;
  border: 2.5px solid #217a3a;
  box-shadow: 0 2px 6px rgba(33, 122, 58, 0.07), 0 1px 0 #b6e2c7;
  letter-spacing: 0.01em;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s, border 0.12s, transform 0.12s;
  outline: none;
  position: relative;
  z-index: 1;
}

.btn-secondary-light:hover {
  background: #d3eadb;
  color: #145022;
  border-color: #145022;
  box-shadow: 0 4px 10px rgba(33, 122, 58, 0.10), 0 1px 0 #b6e2c7;
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
/* Variables CSS */
:root {
  --primary-color: #295ba7;
  --secondary-color: #f9c851;
  --accent-color: #e0ece4;
  --text-color: #2f2f2f;
  --text-light: #6b7280;
  --background-color: #ffffff;
  --light-gray: #f8fafc;
  --border-color: #e5e7eb;
  --header-height: 80px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(3px);
  transition: all 0.15s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
}

.petal {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50% 0;
  transform-origin: bottom right;
}

.petal-1 {
  background: #ff6b6b;
  top: 0;
  left: 14px;
  transform: rotate(-90deg);
}
.petal-2 {
  background: #4ecdc4;
  top: 4px;
  right: 0;
  transform: rotate(-30deg);
}
.petal-3 {
  background: #45b7d1;
  bottom: 4px;
  right: 0;
  transform: rotate(30deg);
}
.petal-4 {
  background: #96ceb4;
  bottom: 0;
  left: 14px;
  transform: rotate(90deg);
}
.petal-5 {
  background: #feca57;
  bottom: 4px;
  left: 0;
  transform: rotate(150deg);
}
.petal-6 {
  background: #ff9ff3;
  top: 4px;
  left: 0;
  transform: rotate(210deg);
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: #2f2f2f;
  line-height: 1.2;
}

.logo-text span {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #FFD400;
  text-shadow: 0 1px 8px rgba(255, 212, 0, 0.10);
}

.nav-menu a:hover{
  color : #FFD400;
  text-shadow: 0 1px 8px rgba(255, 212, 0, 0.10);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.dropdown-toggle.active {
  color: #FFD400;
  text-shadow: 0 1px 8px rgba(255, 212, 0, 0.10);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  z-index: 1001;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
  border: 1px solid #e5e7eb;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.15s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: #fffbe6;
  color: #FFD400;
  text-shadow: 0 1px 8px rgba(255, 212, 0, 0.10);
}

.dropdown-menu a:hover{
  background: #fffbe6;
  color: #FFD400;
  text-shadow: 0 1px 8px rgba(255, 212, 0, 0.10);
}
/* Scroll to Top Button (Yellow Aesthetic) */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFD400;
  color: #222;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 212, 0, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.12s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  background: #ffe066;
  color: #000;
  box-shadow: 0 4px 12px rgba(255, 212, 0, 0.14);
  transform: translateY(-1px) scale(1.04);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: #374151;
  transition: all 0.3s ease;
}

.mobile-menu a.active-link {
  color: var(--secondary-color);
}

.mobile-menu {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 8px 0;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}

.mobile-menu a:hover {
  color: #2563eb;
}

.mobile-menu .mobile-submenu {
  padding-left: 1rem;
  margin-top: 8px;
}

.mobile-menu .mobile-submenu a {
  font-size: 14px;
  color: #6b7280;
}

/* Main Content */
main {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    height: 60vh !important;
    min-height: 250px !important;
  } 
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-image.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2), transparent);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 0 2rem;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
 margin-bottom: 1rem;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 16px;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #2563eb;
  color: white;
}
.btn-primary-2 {
  background: #FFD400;
  color: rgb(0, 0, 0);
}

/* Ensure adequate contrast for secondary buttons on light backgrounds */
.btn-secondary-light {
  background: #e6f4ea;
  color: #145022;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px) scale(1.05);
}
.btn-primary-2:hover {
  background: #ffee00;
  transform: translateY(-2px) scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #374151;
  transform: translateY(-2px) scale(1.05);
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hero-dot.active {
  background: white;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-gray {
  background: #f8fafc;
}
.section-greyer {
  background: #f8fafc;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #1f2937;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Force cards to maintain specific layouts */
.grid-3:has(.card),
.grid-3:has(.stat-card),
.grid-3:has(.curriculum-item) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Ensure stats are 4 columns on desktop */
.grid-4:has(.stat-card) {
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 928px) {
  .grid-3:has(.card),
  .grid-3:has(.stat-card),
  .grid-4:has(.stat-card),
  .grid-4:has(.card) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

@media screen and (max-width: 768px) {
  .grid-3:has(.card),
  .grid-3:has(.stat-card) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  /* On mobile, make curriculum/program grids single column */
  .grid-3:has(.curriculum-item),
  .grid-3:has(.program-card),
  .cards-1-col-mobile {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Utility: force single column on small screens regardless of content */
@media screen and (max-width: 928px) {
  .cards-1-col-mobile {
    grid-template-columns: 1fr !important;
  }
}


.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards with Enhanced Hover Animation */
.card,
.curriculum-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform: scale(1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.card-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Action Cards */
.action-card {
  background: white;
  padding: .1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transform: scale(1);
}

.action-card:hover {
  transform: scale(1.1) translateY(-10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.10);
}

.action-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.action-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

/* Stats Cards */
.stat-card {
  background: #e6f4ea; /* light green */
  color: #217a3a; /* dark green */
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform: scale(1);
  padding: 10%;
}

@media (max-width: 768px) {
  .stat-card {
    padding: 0.75rem;
    margin-bottom: 0;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
  }
}

 .stat-card .stat-icon,
 .stat-card .stat-number,
 .stat-card .stat-label {
   color: #217a3a;
 }

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #374151;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stat-icon {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .grid-3:has(.card),
  .grid-3:has(.stat-card) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Program Cards */
.program-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  transform: scale(1);
}

.program-card:hover {
  transform: scale(1.08) translateY(-15px);
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.12);
}

.program-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.program-card:hover .program-card-image img {
  transform: scale(1.1);
}

.program-card-padded {
  padding: 0;
}
.program-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(22, 163, 74, 0));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  color: white;
}

.program-card-overlay.blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8));
}

.program-card-overlay.purple {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.8), rgba(126, 34, 206, 0.8));
}

.program-card-icon {
  font-size: 3rem;
}

.program-card-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.program-card-info p {
  opacity: 0.9;
  font-size: 0.9rem;
  
}

.program-card-body {
  padding: 1.5rem;
}

.program-card-body p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.program-card-link {
  color: #000000;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.program-card-link:hover {
  color: #1d4ed8;
}

/* Gallery Items */
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.gallery-item-wrapper {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.25s ease;
  border-radius: 12px;
}

.gallery-item {
  cursor: pointer;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* On gallery thumbnail hover show a soft shadow on the card (no zoom) */
.gallery-item:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(-6px);
  overflow: visible; /* allow shadow to be visible outside rounded corner */
  z-index: 3;
}

/* removed hover zoom to keep images normal on hover */

@media (max-width: 1024px) {
  .masonry-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .masonry-gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* News Cards */
.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform: scale(1);
}

.news-card:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.10);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-content {
  padding: 1.5rem;
}

.news-date {
  color: #217A3A; 
  font-size: 0.875rem;
  font-weight: 500;
}
 
.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0.5rem 0;
}

.news-description {
  color: #6b7280;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  padding: 4rem 0;
  text-align: center;
}

/* Slim variant for headers that use a short background image (e.g., breadcrumb) */
.page-header--slim {
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .page-header--slim {
    padding: 1.25rem 0;
  }
}

/* Image-backed header variant */
.page-header--with-image {
  background: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.page-header-media {
  position: relative;
  width: 100%;
  height: 400px;
}

.page-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.page-header.primaire {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.page-header.college {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.page-header.lycee {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Level Hero Content */
.level-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.level-hero-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.level-hero-icon {
  font-size: 4rem;
}

.level-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.level-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
}

.level-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.level-icons > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.level-icons span {
  font-size: 2rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  margin-bottom: 0.5rem;
}

.level-hero-image {
  text-align: center;
}

.level-hero-image img {
  width: 100%;
  max-width: 500px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.content-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 2rem 0 1rem 0;
}

.content-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1.5rem;
}

.objectives-list {
  list-style: none;
  padding: 0;
}

.objectives-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #374151;
}

.content-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Curriculum Grid */
/* Removed old curriculum-grid styles as we're using grid-3 now */

.curriculum-item {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: .5px solid #eee;

}

.curriculum-item:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.10);
}

.curriculum-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.curriculum-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.curriculum-item p {
  color: #6b7280;
  line-height: 1.6;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.value-item:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.10);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.value-item p {
  color: #6b7280;
  line-height: 1.6;
}

/* Contact Cards Grid */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.contact-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.10);
}

.contact-card-icon {
  font-size: 2rem;
  color: #FFD400;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.contact-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Leadership Grid */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.leader-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.leader-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.10);
}

.leader-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
}

.leader-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.leader-position {
  color: #217a3a;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.leader-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  width: calc(50% - 60px);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.10);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #6b7280;
  line-height: 1.6;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  margin-bottom: 2rem;
}

.contact-info h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.contact-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #6b7280;
  line-height: 1.6;
}

.visit-info {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.visit-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.visit-info p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 2px 2px 2px 4px rgba(0.07, 0.07, 0.07, 0.07);
}

.contact-form-container h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
}

/* Contact Details Grid */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  margin-top: 2rem;
}

.contact-detail-item {
  text-align: center;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.contact-detail-item i {
  color: #FFD400;
  margin-bottom: 1rem;
}

.contact-detail-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.contact-detail-item p {
  color: #6b7280;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s ease;
}

.accordion-header i:first-child {
  margin-right: 1rem;
  color: #FFD400;
}

.accordion-header i:last-child {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.accordion-header:hover {
  background: #f8fafc;
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.accordion-content p {
  padding: 1.25rem;
  margin: 0;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}

.accordion-item.active .accordion-header i:last-child {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.12s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background: #2563eb;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-submit:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  background: #10b981 !important;
}

/* Small Contact Form */
.small-contact-section {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  padding: 3rem 0;
}

.small-contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.small-contact-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.small-contact-container p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.small-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.small-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.small-contact-form input,
.small-contact-form textarea {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: #374151;
}

.small-contact-form input:focus,
.small-contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.small-contact-form textarea {
  resize: vertical;
  min-height: 100px;
  grid-column: 1 / -1;
}

.small-contact-form button {
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.small-contact-form button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.small-contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive adjustments for small contact form */
@media (max-width: 768px) {
  .small-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
}

.footer h4 {
  color: #f9c851;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer p {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #f9c851;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out both;
}

.fade-in-up {
  animation: fadeInUp 0.3s ease-out both;
}

.slide-in-left {
  animation: slideInLeft 0.3s ease-out both;
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out both;
}

.slide-in-up {
  animation: slideInUp 0.3s ease-out both;
}

.scale-in {
  animation: scaleIn 0.3s ease-out both;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .level-hero-content,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 70px;
  }

  .timeline-marker {
    left: 30px;
    transform: translateX(-50%);
  }

  .timeline-content {
    width: 100%;
    margin: 0 !important;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
.hero-content .container .fade-in{
  padding-top: 100px;
}
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
  .section-title-2 {
    font-size: 1.2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .level-hero-text h1 {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .small-contact-form {
    flex-direction: column;
  }

  .values-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .content-text {
    padding: 0 1rem;
  }

  .content-image img {
    height: 300px;
  }

  .level-icons {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .curriculum-item {
    padding: 1.25rem;
  }

  .section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .level-icons {
    justify-content: center;
  }
  
  /* Grid adjustments for very small screens */
  .grid-3:has(.stat-card) {
    gap: 0.75rem !important;
  }
  .grid-4:has(.stat-card) {
    gap: 0.75rem !important;
  }

  .level-icons span {
    font-size: 1.5rem;
  }
}

/* Map Section */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.12s ease;
  width: 100%;
  height: 450px;
  position: relative;
}

.map-container:hover {
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.10);
}

.map-iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.map-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Form Loading Animation */
.form-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced Form Styling */
.form-group input:invalid {
  border-color: #ef4444;
}

.form-group input:valid {
  border-color: #10b981;
}

.form-group select:focus {
  border-color: #bdbdbd !important;
  box-shadow: 0 0 0 2px #ededed;
  outline: none;
}

/* Checkbox Styling */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

/* Contact Item Hover Effect */
.contact-item {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 1rem;
  margin: -1rem;
}

.contact-item:hover {
  background: #f8fafc;
  transform: translateX(5px);
}

/* FAQ Cards Enhancement */
.card:hover .card-title {
  color: #2563eb;
}

/* duplicate .logo removed */

.logo-icon {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* About Page Specific Enhancements */

/* Enhanced Page Header with Story */
.about-header {
  background: linear-gradient(135deg, #e6f4ea 0%, #d3eadb 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.about-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.15) 0%, transparent 70%);
  transform: rotate(15deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: rotate(15deg) translateY(0px);
  }
  50% {
    transform: rotate(15deg) translateY(-20px);
  }
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-header-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1b4332;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

.page-header-content > p {
  font-size: 1.5rem;
  color: #2d5016;
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0.9;
}

.story-intro {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  border-left: 5px solid #ffd400;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.story-intro p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #374151;
  margin: 0;
  font-style: italic;
}

.page-header-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-header-icons span {
  font-size: 2.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(3px);
  border: 2px solid rgba(255, 212, 0, 0.2);
}

.page-header-icons span:hover {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  background: rgba(255, 212, 0, 0.95);
  border-color: rgba(255, 212, 0, 0.5);
}

/* Story Sections */
.mission-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 6rem 0;
  position: relative;
}

.vision-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e6f4ea 100%);
  padding: 6rem 0;
  position: relative;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.story-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.1);
}

.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd400 0%, #217a3a 100%);
}

.story-number {
  position: absolute;
  top: -15px;
  right: 2rem;
  background: linear-gradient(135deg, #ffd400 0%, #ffe066 100%);
  color: #1b4332;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(255, 212, 0, 0.15);
}

.story-title {
  font-size: 2.5rem;
  color: #1b4332;
  margin-bottom: 2rem;
  position: relative;
  font-weight: 700;
}

.title-underline {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  border-radius: 2px;
}

.title-underline.yellow {
  background: #ffd400;
}
.title-underline.green {
  background: #217a3a;
}

.story-content {
  color: #374151;
}

.story-lead {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1b4332;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid #ffd400;
}

.story-text {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.story-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 212, 0, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
  border: 1px solid rgba(255, 212, 0, 0.2);
}

.highlight-icon {
  font-size: 1.5rem;
}

.story-image-container {
  position: relative;
  height: 600px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.story-image-container:hover .story-image {
  transform: scale(1.02);
}

.story-image-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.mission-overlay {
  background: linear-gradient(45deg, rgba(255, 212, 0, 0.12), rgba(33, 122, 58, 0.07));
}

.vision-overlay {
  background: linear-gradient(45deg, rgba(33, 122, 58, 0.12), rgba(255, 212, 0, 0.07));
}

.story-image-container:hover .story-image-overlay {
  opacity: 1;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  font-weight: 500;
  font-size: 1.1rem;
}

/* Custom About Stats Section */
.about-stats-section {
  background: linear-gradient(135deg, #1b4332 0%, #2d5016 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.about-stats-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.1) 0%, transparent 70%);
  transform: rotate(-15deg);
  animation: float-reverse 8s ease-in-out infinite;
}

@keyframes float-reverse {
  0%,
  100% {
    transform: rotate(-15deg) translateY(0px);
  }
  50% {
    transform: rotate(-15deg) translateY(20px);
  }
}

.stats-intro {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.about-stats-section .section-title {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-stats-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.about-stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
  border: 2px solid rgba(255, 212, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd400 0%, #217a3a 100%);
}

.about-stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.stat-icon-container {
  margin-bottom: 1.5rem;
}

.about-stat-card .stat-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #ffd400 0%, #ffe066 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.stat-content {
  position: relative;
}

.about-stat-card .stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1b4332;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: #217a3a;
  display: inline-block;
}

.about-stat-card .stat-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1b4332;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Enhanced Values Section */
.values-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e6f4ea 100%);
  position: relative;
  padding: 6rem 0;
}

.values-section .section-title {
  color: #1b4332;
  position: relative;
  margin-bottom: 1rem;
}

.values-section .section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ffd400 0%, #217a3a 100%);
  border-radius: 2px;
}

.enhanced-value-card {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-value-card.yellow-accent {
  background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
  border-left: 6px solid #ffd400;
}

.enhanced-value-card.green-accent {
  background: linear-gradient(135deg, #fff 0%, #f0fff4 100%);
  border-left: 6px solid #217a3a;
}

.enhanced-value-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.1), rgba(33, 122, 58, 0.1));
  transition: width 0.4s ease;
}

.enhanced-value-card:hover::before {
  width: 100%;
}

.enhanced-value-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
}

.enhanced-value-card .value-icon {
  position: relative;
  z-index: 2;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.12s ease;
}

.enhanced-value-card:hover .value-icon {
  transform: scale(1.04) rotate(2deg);
}

.enhanced-value-card h3 {
  position: relative;
  z-index: 2;
  color: #1b4332;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.enhanced-value-card p {
  position: relative;
  z-index: 2;
  color: #374151;
  line-height: 1.6;
}

/* Enhanced Leadership Section */
.leadership-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 6rem 0;
  position: relative;
}

.leadership-section .section-title {
  color: #1b4332;
  position: relative;
  margin-bottom: 1rem;
}

.leadership-section .section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #217a3a 0%, #ffd400 100%);
  border-radius: 2px;
}

.enhanced-leader-card {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #ffd400, #217a3a) border-box;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.enhanced-leader-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.enhanced-leader-card:hover::before {
  left: 100%;
}

.enhanced-leader-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 20px rgba(255, 212, 0, 0.10);
  border-color: #ffd400;
}

.leader-image-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.leader-image-container .leader-image {
  transition: transform 0.12s ease;
}

.enhanced-leader-card:hover .leader-image {
  transform: scale(1.02);
}

.leader-image-overlay {
  position: absolute;
  inset: 0;
  transition: opacity 0.12s ease;
}

.enhanced-leader-card:hover .leader-image-overlay {
  opacity: 0.7;
}

.enhanced-form-container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 212, 0, 0.3);
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.enhanced-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd400 0%, #217a3a 100%);
}

.enhanced-form-container h2 {
  color: #1b4332;
  position: relative;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.enhanced-form-container h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: #ffd400;
  border-radius: 2px;
}

.enhanced-form-container .form-group input,
.enhanced-form-container .form-group textarea,
.enhanced-form-container .form-group select {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.12s ease;
  background: rgba(255, 255, 255, 0.9);
}

.enhanced-form-container .form-group input:focus,
.enhanced-form-container .form-group textarea:focus,
.enhanced-form-container .form-group select:focus {
  border-color: #ffd400;
  box-shadow: 0 0 0 2px rgba(255, 212, 0, 0.07);
  background: white;
}

.enhanced-form-container .btn-primary-2 {
  background: linear-gradient(135deg, #ffd400 0%, #ffe066 100%);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 212, 0, 0.15);
}

.enhanced-form-container .btn-primary-2:hover {
  background: linear-gradient(135deg, #ffe066 0%, #ffd400 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 212, 0, 0.20);
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .content-grid.reverse {
    direction: ltr;
  }

  .story-image-container {
    height: 400px;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .page-header-content h1 {
    font-size: 2.5rem;
  }

  .story-intro {
    padding: 1.5rem;
  }

  .story-card {
    padding: 2rem;
  }

  .story-title {
    font-size: 2rem;
  }

  .about-stats-section .section-title {
    font-size: 2.2rem;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .enhanced-form-container h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .about-header {
    padding: 4rem 0;
  }

  .page-header-content h1 {
    font-size: 2rem;
  }

  .page-header-icons span {
    font-size: 2rem;
    padding: 1rem;
  }

  .story-title {
    font-size: 1.8rem;
  }

  .story-text {
    font-size: 1rem;
  }

  .about-stat-card .stat-number {
    font-size: 2.5rem;
  }
}

.copyright_link{
  text-decoration: none;
  color: #ffc400ff;
}