/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* ===== Navbar ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.2rem; /* reduced from 1.6rem */
  font-weight: 700;
  color: #0077cc;
}
.logo img {
  height: 30px; /* adjust to desired size */
  width: auto;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0077cc;
}

.donate-btn {
  background: #0077cc;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.donate-btn:hover {
  background: #005fa3;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Hero content on left */
.hero-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}


/* Hero Learn More Button */
.hero-content .learn-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #00b4db, #0077cc);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hero-content .learn-btn:hover {
  background: linear-gradient(135deg, #0077cc, #00b4db);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* Donate button fixed */
.hero-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.hero-buttons .donate-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #5f6fffff, #acbcf0ff);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hero-buttons .donate-btn:hover {
  background: linear-gradient(135deg, #5f14daff, #958af3ff);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Info Section ===== */
.info {
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-text {
  flex: 1;
}

.info-text h2 {
  color: #0077cc;
  margin-bottom: 0.5rem;
}

.info-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== Programs Section ===== */
.programs {
  padding: 4rem 2rem;
  text-align: center;
}

.programs h2 {
  color: #0077cc;
  margin-bottom: 2rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.program-card {
  background: #eeefff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== About Section ===== */
.about {
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 450px; /* same approximate size as Info section image */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== Contact Section ===== */
.contact {
  padding: 4rem 2rem;
}

.contact-container {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch; /* Ensures both columns stretch equally */
}

.contact-form-container {
  flex: 1;
}

.contact-form-container h2 {
  margin-bottom: 1.5rem;
  color: #0077cc;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  margin-bottom: 1.2rem;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0077cc;
}

.map-container {
  flex: 1;
  display: flex;
}

.map-container iframe {
  width: 100%;
  height: 100%; /* Fill the parent container height */
  border-radius: 10px;
}

/* ===== CTA Section ===== */
.cta {
  text-align: center;
  padding: 4rem 2rem;
  background: #d5ddf7ff;
  color: #000000ff;
}

.cta h2 {
  margin-bottom: 1rem;
}
.cta a {
  text-decoration: none;
  border: 1px solid;
  border-radius: 2px;
  padding: 5px 2px;
}

/* ===== Footer ===== */
/* ===== Footer ===== */
.footer {
  background: #111;
  color: #eee;
  padding: 2rem 2rem; /* reduced top/bottom padding from 3rem to 2rem */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem; /* reduced gap between columns from 2rem to 1rem */
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h3 {
  margin-bottom: 0.8rem; /* slightly reduced from 1rem */
  color: #fff;
  border-left: 4px solid #0077cc;
  padding-left: 0.5rem;
}

.footer-column p,
.footer-column a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: #0077cc;
  transform: translateX(5px);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.4rem; /* reduced spacing from 0.5rem */
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem; /* reduced from 2rem */
  border-top: 1px solid #333;
  padding-top: 0.8rem; /* reduced from 1rem */
  font-size: 0.9rem;
  color: #bbb;
}
/* Footer Social Media Icons */
.social-media {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: #0077cc;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-media a:hover {
  background: #005fa3;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Gallery Rows */
.gallery-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.gallery-row.reverse {
  flex-direction: row-reverse;
  gap: 1rem;
}
.gallery-row.reverse .gallery-text {
  text-align: right; /* align text to the right */
}

.gallery-image img {
  width: 300px;      /* fixed width */
  height: 200px;     /* fixed height */
  object-fit: cover; /* ensures no distortion */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-text {
  flex: 1;
}

.gallery-text h2 {
  color: #0077cc;
  margin-bottom: 1rem;
}

/* ===== Row 4: Fixed 4-image gallery with buttons ===== */
.horizontal-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.horizontal-gallery img {
  width: 250px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* Navigation Buttons */
.horizontal-gallery .scroll-left,
.horizontal-gallery .scroll-right {
  background: #0077cc;
  color: #fff;
  border: none;
  padding: 0.5rem 0.7rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.horizontal-gallery .scroll-left:hover,
.horizontal-gallery .scroll-right:hover {
  background: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


/* ===== Hover Animations ===== */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== Scroll-to-Top Button ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  background: #0077cc;
  color: #fff;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background: #005fa3;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .info-container,
  .about-container,
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
  }

  .hero-buttons {
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
  }

  .contact-container {
    flex-direction: column;
  }

  .map-container iframe {
    height: 300px;
  }
  .social-media {
    justify-content: center;
    flex-wrap: wrap;
  }
     /*  gallery */

     .gallery-row,
  .gallery-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .gallery-row.reverse .gallery-text {
    order: 2;
  }

  .gallery-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .horizontal-gallery {
    flex-direction: column;
    gap: 1rem;
  }

  .horizontal-gallery img {
    width: 90%;
    height: auto;
  }
}
