/* =========================================
   CSS Variables & Global Settings
========================================= */
:root {
  --primary-green: #1d7c4d;
  --dark-green: #115a37;
  --light-green: #e6f5ec;
  --brand-light: #3bb273;
  --cream-white: #f7faf8;
  --accent-gold: #e4b83a;
  --text-dark: #333333;
  --text-light: #ffffff;
  --transition: all 0.3s ease-in-out;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--cream-white);
}

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

.section-padding {
  padding: 80px 0;
}

.bg-cream {
  background-color: var(--cream-white);
}
.bg-light-green {
  background-color: var(--light-green);
}
.text-primary-green {
  color: var(--primary-green) !important;
}
.text-gold {
  color: var(--accent-gold) !important;
}
.bg-gold {
  background-color: var(--accent-gold) !important;
}

/* =========================================
   Preloader
========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-green);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.loader {
  text-align: center;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* =========================================
   Buttons
========================================= */
.btn-primary-custom {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--brand-light) 100%
  );
  color: white;
  border: none;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(29, 124, 77, 0.3);
}
.btn-primary-custom:hover {
  background: linear-gradient(
    135deg,
    var(--dark-green) 0%,
    var(--primary-green) 100%
  );
  color: white;
  transform: translateY(-2px);
}
.btn-gold {
  background-color: var(--accent-gold);
  color: var(--dark-green);
  border: none;
}
.btn-gold:hover {
  background-color: #d1a631;
  color: var(--dark-green);
  transform: translateY(-2px);
}

/* =========================================
   Navbar (Sticky & Glassmorphism)
========================================= */
.navbar {
  transition: var(--transition);
  padding: 15px 0;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}
.navbar-brand .school-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
  color: var(--text-dark) !important;
}
.navbar-brand {
  color: white !important;
  font-weight: 500;
}
.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--accent-gold) !important;
}

.navbar:not(.scrolled) .navbar-items-wrapper {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

/* Responsive Nav Toggle */
/* .navbar-toggler { border: none; background: white; padding: 5px; } */

/* =========================================
   Custom Animated Navbar Toggler
========================================= */
.custom-toggler {
  border: none;
  background: transparent;
  padding: 5px;
  outline: none;
  box-shadow: none !important; /* Removes Bootstrap's default focus ring */
}

.animated-hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.animated-hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Icon color when at the top of the page (transparent navbar) */
.navbar:not(.scrolled) .animated-hamburger span {
  background-color: var(--text-light);
}

/* Icon color when scrolling (white navbar background) */
.navbar.scrolled .animated-hamburger span {
  background-color: var(--primary-green);
}

/* Animation when menu is open 
   Bootstrap automatically toggles aria-expanded="true" on click
*/
.navbar-toggler[aria-expanded="true"] .animated-hamburger span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .animated-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scale(0.5);
}

.navbar-toggler[aria-expanded="true"] .animated-hamburger span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* =========================================
   Hero Section
========================================= */
.hero-section {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-slide .slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}
.swiper-slide-active .slide-bg {
  transform: scale(1.1);
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(17, 90, 55, 0.9),
    rgba(29, 124, 77, 0.6)
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}
.max-w-700 {
  max-width: 700px;
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 10px;
  transform: translateX(50%);
  z-index: 10;
  animation: bounce 2s infinite;
}
.scroll-down a {
  color: white;
  font-size: 24px;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

/* =========================================
   About Section
========================================= */
.about-img-wrap {
  position: relative;
}
.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.feature-list li {
  margin-bottom: 15px;
  font-weight: 500;
}
.feature-list i {
  font-size: 1.2rem;
  margin-right: 10px;
}

/* =========================================
   Why Choose Us
========================================= */
.feature-card {
  background: white;
  border-radius: 15px;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid var(--primary-green);
}
.icon-box {
  width: 70px;
  height: 70px;
  background: var(--light-green);
  color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: var(--transition);
}
.feature-card:hover .icon-box {
  background: var(--primary-green);
  color: white;
}

/* =========================================
   Mission & Vision
========================================= */
.glass-dark {
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
}
.glass-light {
  background: linear-gradient(135deg, #ffffff, var(--light-green));
  border: 1px solid rgba(29, 124, 77, 0.2);
}
.mv-card {
  transition: var(--transition);
}
.mv-card:hover {
  transform: scale(1.02);
}
.icon-bg {
  z-index: 0;
  right: 10px;
  bottom: -10px;
}
.opacity-10 {
  opacity: 0.1;
}

/* =========================================
   Approach
========================================= */
.approach-item {
  padding: 20px;
}
.approach-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent-gold);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.approach-item:hover .approach-icon {
  background: var(--primary-green);
  color: white;
  transform: rotateY(180deg);
}

/* =========================================
   Stats Section
========================================= */
.counter-section {
  background:
    linear-gradient(rgba(17, 90, 55, 0.9), rgba(29, 124, 77, 0.9)),
    url("1000815837.jpg") center/cover fixed;
}

/* =========================================
   Gallery
========================================= */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 124, 77, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
  font-size: 30px;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* =========================================
   CTA & Contact
========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary-green), var(--brand-light));
}
.contact-form .form-control {
  background: var(--light-green);
  border: none;
  padding: 15px;
  border-radius: 8px;
}
.contact-form .form-control:focus {
  box-shadow: none;
  border: 1px solid var(--primary-green);
}

.contact-icon {
  height: 56px;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   Footer & Back to Top
========================================= */
.footer-area {
  background: var(--dark-green);
  color: white;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: white;
  margin-right: 10px;
}
.social-links a:hover {
  background: var(--accent-gold);
  color: var(--dark-green);
}
.text-light-50 {
  color: rgba(255, 255, 255, 0.5);
}
.dev-credit a {
  transition: var(--transition);
}
.dev-credit a:hover {
  letter-spacing: 1px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--accent-gold);
  color: var(--dark-green);
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem;
  }
  .hero-content {
    padding-top: 60px;
  }
  .section-padding {
    padding: 50px 0;
  }
  .experience-badge {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: -20px;
    z-index: 10;
  }
}
