body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #222;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.footer {
  background: #1D2F6F;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}
/* ==============================
   HERO SECTION ENHANCEMENT
   ============================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 47, 111, 0.6); /* deep blue overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
}

.hero-content h1 span {
  color: #F7A531;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 20px auto;
  max-width: 600px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #F7A531;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1D2F6F;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: #1D2F6F;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
}

.btn-primary {
  background-color: #1D2F6F;
  color: white;
}

.btn-secondary {
  background-color: #F7A531;
  color: white;
}

/* About Section */
/* ==============================
   ABOUT SECTION STYLING
   ============================== */
.about-section {
  padding: 80px 0;
  background-color: #f9f9ff;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 320px;
}

.about-text h2 {
  color: #1D2F6F;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 15px;
}

.about-image {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-text {
    margin-top: 20px;
  }
}


/* Impact Section */
.impact {
  background-color: #1D2F6F;
  color: white;
  text-align: center;
  padding: 60px 0;
}

.impact-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

.stat h3 {
  font-size: 2.5rem;
  color: #F7A531;
}

/* Call To Action */
.cta {
  padding: 60px 0;
  text-align: center;
  background-color: #f8f8f8;
}

.cta h2 {
  color: #1D2F6F;
}
/* Page Hero */
.page-hero {
  background: linear-gradient(rgba(29,47,111,0.8), rgba(29,47,111,0.8)), url('../images/children-bg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 0;
}

/* Overview */
.about-overview {
  padding: 60px 0;
  text-align: center;
}

.about-overview h2 {
  color: #1D2F6F;
}

/* Vision & Mission */
.vision-mission {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.vm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.vm-item {
  flex: 1;
  min-width: 280px;
  background: #F7A531;
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

/* Core Values */
.core-values {
  padding: 60px 0;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.value {
  background-color: #1D2F6F;
  color: white;
  padding: 20px;
  border-radius: 10px;
}

/* Founder */
.founder {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.founder-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.founder-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
}

.founder-text {
  flex: 1;
}

.founder-text h2 {
  color: #1D2F6F;
}

.founder-name {
  margin-top: 10px;
  font-weight: bold;
  color: #F7A531;
}

/* Why Partner */
.why-partner {
  text-align: center;
  padding: 60px 0;
}

.why-partner h2 {
  color: #1D2F6F;
}
/* Program Intro */
.program-intro {
  padding: 40px 0;
  text-align: center;
}

.program-intro p {
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  line-height: 1.7;
}

/* Program List */
.program-list {
  padding: 60px 0;
}

.program-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.program-item.reverse {
  flex-direction: row-reverse;
}

.program-img {
  width: 45%;
  border-radius: 10px;
  object-fit: cover;
  max-width: 500px;
  height: auto;
}

.program-content {
  flex: 1;
}

.program-content h2 {
  color: #1D2F6F;
  margin-bottom: 10px;
}

.program-content p {
  line-height: 1.8;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .program-item {
    flex-direction: column;
  }

  .program-img {
    width: 100%;
  }
}
/* Get Involved */
.involve-intro {
  padding: 50px 0;
  text-align: center;
}

.involve-intro p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  color: #333;
}

.involve-options {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.involve-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.involve-card:hover {
  transform: translateY(-5px);
}

.involve-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.involve-card h2 {
  color: #1D2F6F;
  margin-top: 15px;
}

.involve-card p {
  padding: 0 15px;
  color: #444;
  line-height: 1.6;
}

.why-involve {
  padding: 60px 0;
  text-align: center;
}

.why-involve h2 {
  color: #1D2F6F;
}

.why-involve p {
  max-width: 750px;
  margin: 20px auto;
  color: #333;
  line-height: 1.7;
}
/* Contact Intro */
.contact-intro {
  text-align: center;
  padding: 40px 0;
}

.contact-intro p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  color: #333;
}

/* Contact Section */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.contact-form h2,
.contact-info h2 {
  color: #1D2F6F;
  margin-bottom: 15px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: inherit;
  margin-top: 5px;
}

.contact-form button {
  margin-top: 15px;
  cursor: pointer;
}

/* Contact Info */
.contact-info p {
  line-height: 1.6;
  color: #444;
}

.contact-info a {
  color: #F7A531;
  text-decoration: none;
}

.social-links a {
  display: inline-block;
  margin-top: 10px;
  background-color: #1D2F6F;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: #F7A531;
}

/* Map */
.map-section {
  padding: 60px 0;
  text-align: center;
}

.map-section h2 {
  color: #1D2F6F;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* Impact Overview */
.impact-overview {
  padding: 60px 0;
  text-align: center;
}

.impact-overview p {
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.7;
  color: #333;
}

/* Stats Section */
.impact-stats {
  background-color: #1D2F6F;
  color: white;
  text-align: center;
  padding: 60px 0;
}

.impact-stats h2 {
  color: #F7A531;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.stat-box {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
}

.stat-box h3 {
  font-size: 2.5rem;
  color: #F7A531;
  margin-bottom: 10px;
}

/* Stories Section */
.stories {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.stories h2 {
  text-align: center;
  color: #1D2F6F;
  margin-bottom: 40px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.story-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
}

.story-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-text {
  padding: 15px 20px;
  color: #333;
  font-style: italic;
}

.story-author {
  margin-top: 10px;
  font-weight: bold;
  color: #1D2F6F;
}

/* Photo Gallery */
.photo-gallery {
  padding: 60px 0;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 180px;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}
/* Footer */
.footer {
  background-color: #1D2F6F;
  color: white;
  padding: 60px 0 20px;
  margin-top: 40px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 15px;
}

.footer-about p {
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #F7A531;
}

.footer-contact a {
  color: #F7A531;
  text-decoration: none;
}

.footer-social a {
  display: inline-block;
  margin-top: 10px;
  background-color: #F7A531;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.footer-social a:hover {
  background-color: #fff;
  color: #1D2F6F;
}

/* Newsletter */
.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.footer-newsletter input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: none;
}

.footer-newsletter button {
  background-color: #F7A531;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.footer-newsletter button:hover {
  background-color: #fff;
  color: #1D2F6F;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding-top: 15px;
  margin-top: 40px;
}

.footer-bottom p {
  margin: 5px 0;
}

.footer-bottom .tagline {
  color: #F7A531;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-newsletter form {
    align-items: center;
  }

  .footer-newsletter input {
    width: 80%;
  }
}
/* Navbar */
.navbar {
  background-color: #1D2F6F;
  color: white;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo img {
  height: 40px;
  margin-right: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* Link hover underline animation */
.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #F7A531;
  left: 0;
  bottom: -3px;
  transition: 0.3s;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Active Menu */
.menu-toggle.is-active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background-color: #1D2F6F;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
  }

  .nav-links.active {
    max-height: 400px;
    padding: 15px 0;
  }

  .nav-links li {
    margin: 10px 0;
  }
}
/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #1D2F6F;
  color: #fff;
}

.btn-primary:hover {
  background-color: #F7A531;
  color: #1D2F6F;
}

.btn-secondary {
  background-color: #F7A531;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #1D2F6F;
  color: #fff;
}

/* Links (General Site Links) */
a {
  transition: color 0.3s ease;
}

a:hover {
  color: #F7A531;
}
/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #F7A531;
  color: white;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

#backToTop:hover {
  background-color: #1D2F6F;
  color: #fff;
  transform: translateY(-3px);
}
/* ==============================
   PRELOADER STYLES (Fixed)
   ============================== */
#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #fff;
  top: 0;
  left: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-content {
  text-align: center;
}

.preloader-content img {
  height: 80px;
  margin-bottom: 15px;
  animation: pulse 1.5s infinite;
}

.preloader-content h2 {
  color: #1D2F6F;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* Loader Spinner */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #F7A531;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Fade-Out Class */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Fully Remove From Layout After Transition */
#preloader.hidden {
  display: none;
}
/* ==============================
   SCROLL ANIMATIONS
   ============================== */

/* Base hidden state (before animation triggers) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Visible state (when in viewport) */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional variations for different directions */
.fade-in {
  transform: none;
}

.slide-left {
  transform: translateX(-40px);
}

.slide-right {
  transform: translateX(40px);
}

.zoom-in {
  transform: scale(0.95);
}

/* When they become visible */
.visible.fade-in,
.visible.slide-left,
.visible.slide-right,
.visible.zoom-in {
  transform: none;
  opacity: 1;
}
/* ==============================
   PARALLAX BACKGROUND EFFECT
   ============================== */

.parallax {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.parallax h1, 
.parallax h2, 
.parallax p {
  position: relative;
  z-index: 2;
}

.parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* Overlay for text readability */
  z-index: 1;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll; /* Disable fixed scroll on mobile for performance */
  }
}
/* ==============================
   PROGRAMS SECTION STYLING
   ============================== */
.programs-section {
  padding: 90px 0;
  background-color: #fff;
  text-align: center;
}

.programs-section h2 {
  color: #1D2F6F;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.programs-section .section-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.7;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.program-card {
  background: #f9f9ff;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
}

.program-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.program-card h3 {
  color: #1D2F6F;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.program-card p {
  color: #555;
  line-height: 1.6;
  font-size: 0.98rem;
}

.program-card:hover {
  background-color: #F7A531;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.program-card:hover h3,
.program-card:hover p {
  color: #fff;
}

.program-cta {
  margin-top: 50px;
}
/* === FIX: Hero text hidden behind header or overlay === */
.navbar {
  position: relative;
  z-index: 100;
}

.hero {
  position: relative;
  z-index: 1;
}

.hero .overlay,
.parallax::before {
  z-index: 0 !important; /* keep overlay behind text */
}

.hero-content {
  position: relative;
  z-index: 2; /* make sure hero text sits above everything */
}
