/* ========================================
   styles.css - All website styles
   ======================================== */

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: 'Poppins', sans-serif; 
}

body { 
  background: #FFFFFF; 
  color: #222222; 
  transition: background .3s, color .3s; 
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.dark { 
  background: #133B2F; 
  color: #E7F8F8; 
}

/* ========== NAVBAR STYLES ========== */
html {
  scroll-behavior: smooth;
}
.navbar {
  width: 100%; 
  position: fixed; 
  top: 0; 
  left: 0; 
  padding: 18px 60px;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  z-index: 1000; 
  background: transparent; 
  transition: .3s;
  border-bottom: 1px solid rgba(255,255,255,0.15); 
  backdrop-filter: blur(8px);
}

.navbar.scrolled { 
  background: rgba(0,0,0,0.7); 
  padding: 15px 60px; 
  border: none; 
}

.logo { 
  font-size: 26px; 
  font-weight: 700; 
  color: white; 
  letter-spacing: 1.5px; 
  z-index: 1001;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

.nav-container { 
  display: flex; 
  align-items: center; 
  gap: 40px; 
}

.nav-links { 
  list-style: none; 
  display: flex; 
  gap: 28px; 
  align-items: center; 
}

.nav-links li a {
  text-decoration: none; 
  color: white; 
  font-size: 14px; 
  font-weight: 400;
  position: relative; 
  padding-bottom: 3px; 
  transition: .3s;
}

.nav-links li a::after {
  content: ""; 
  width: 0%; 
  height: 2px; 
  background: #F57C00;
  position: absolute; 
  left: 0; 
  bottom: 0; 
  transition: .3s;
}

.nav-links li a:hover::after { 
  width: 100%; 
}

.nav-links li a.active { 
  font-weight: 600; 
  color: #F57C00 !important;
}

.nav-links li a.active::after {
  width: 100%;
  background: #F57C00;
}

/* Hide mobile donate button by default */
.mobile-only {
  display: none;
}

/* Desktop donate button */
.desktop-donate {
  display: inline-block;
}

.icons { 
  display: flex; 
  gap: 18px; 
}

.icons a { 
  color: white; 
  font-size: 18px; 
  transition: .3s; 
}

.icons a:hover { 
  transform: translateY(-2px); 
}

.icons a .fa-facebook:hover { color: #1877f2; }
.icons a .fa-linkedin:hover { color: #0077b5; }
.icons a .fa-instagram:hover { color: #e1306c; }
.icons a .fa-envelope:hover { color: #fbbc04; }

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* hidden by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(145deg, #0B3025, #0C7C7B);
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid #ffe0c2;
  z-index: 999;
}

/* show on hover (desktop) */
@media (min-width: 1001px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  text-decoration: none;
  transition: .2s;
}

.dropdown-menu a:hover {
  background: #fff3e641;
  color: #F57C00;
}

/* ========== HERO SECTION ========== */
.hero {
  height: 100vh; 
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  align-items: center; 
  text-align: center;
  background: linear-gradient(0deg, rgba(0,40,30,0.6), rgba(0,20,10,0.5)),
              url('https://plus.unsplash.com/premium_photo-1682092585257-58d1c813d9b4?q=80&w=870&auto=format&fit=crop') center/cover no-repeat;
  background-attachment: fixed; 
  color: white; 
  padding: 0 20px;
}

.hero h1 { 
  font-size: 54px; 
  max-width: 850px; 
  line-height: 1.2; 
  font-weight: 700; 
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3); 
}

.hero p { 
  margin-top: 20px; 
  font-size: 22px; 
  opacity: 0.95; 
  letter-spacing: 1px; 
}

/* ========== FOUNDATION SECTION ========== */
.foundation-section { 
  padding: 80px 6%; 
  background: #FFFFFF; 
}

.foundation-container { 
  display: flex; 
  align-items: center; 
  gap: 70px; 
  max-width: 1400px; 
  margin: 0 auto; 
}

.foundation-img-box img { 
  width: 100%; 
  max-width: 480px; 
  border-radius: 24px; 
  box-shadow: 0 20px 30px -10px rgba(0,60,40,0.3);
  background: #ccc; 
  min-height: 300px; 
  object-fit: cover; 
}

.foundation-content { 
  flex: 1; 
}

.foundation-title { 
  font-size: 44px; 
  font-weight: 700; 
  color: #133B2F; 
  margin-bottom: 20px; 
}

.foundation-description { 
  font-size: 17px; 
  line-height: 1.7; 
  color: #222; 
  margin-bottom: 30px; 
  max-width: 620px; 
}

.vision-mission-row { 
  display: flex; 
  gap: 50px; 
  margin-bottom: 40px; 
}

.vm-box { 
  width: 50%; 
}

.vm-box h2 {
  color: #133B2F; 
  font-size: 24px; 
  margin-bottom: 12px; 
  position: relative;
  padding-left: 18px; 
  font-weight: 600;
}

.vm-box h2::before {
  content: ""; 
  position: absolute; 
  left: 0; 
  top: 5px; 
  width: 5px; 
  height: 30px; 
  background: #F57C00;
}

.vm-box p { 
  font-size: 16px; 
  color: #333; 
  line-height: 1.5; 
}

.read-more-btn { 
  padding: 14px 36px; 
  background: #0FA4A6; 
  color: white; 
  font-size: 16px; 
  font-weight: 500; 
  border: none; 
  border-radius: 40px; 
  cursor: pointer; 
  transition: 0.3s; 
  box-shadow: 0 8px 14px -6px #0FA4A6; 
}

.read-more-btn:hover { 
  background: #0C8E8F; 
  transform: scale(1.02); 
}

/* ========== DONATION CAROUSEL ========== */
.donation-section { 
  width: 100%; 
  padding: 70px 0; 
  background: #E7F8F8; 
  text-align: center; 
}

.donation-section h2 { 
  font-size: 40px; 
  margin-bottom: 40px; 
  color: #133B2F; 
}

.carousel-container { 
  position: relative; 
  width: 90%; 
  max-width: 1300px; 
  margin: auto; 
  overflow: hidden; 
  padding: 10px 0; 
}

.carousel-track { 
  display: flex; 
  gap: 25px; 
  transition: transform 0.4s ease; 
}

.card {
  min-width: calc(33.333% - 16.67px); 
  background: white; 
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0,40,30,0.1); 
  padding: 22px; 
  flex: 0 0 auto;
}

.img-box { 
  width: 100%; 
  height: 220px; 
  border-radius: 18px; 
  overflow: hidden; 
  margin-bottom: 18px; 
}

.img-box img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: 0.4s; 
}

.card:hover img { 
  transform: scale(1.05); 
}

.card h3 { 
  font-size: 22px; 
  color: #133B2F; 
  margin-bottom: 6px; 
}

.card p { 
  color: #555; 
  margin-bottom: 15px; 
  font-size: 15px; 
}

.amount-row { 
  display: flex; 
  justify-content: space-between; 
  font-weight: 500; 
}

.progress { 
  height: 10px; 
  background: #d3d3d3; 
  border-radius: 50px; 
  margin: 15px 0; 
  overflow: hidden; 
}

.progress div { 
  height: 100%; 
  background: #0FA4A6; 
  width: 0%; 
  border-radius: 50px; 
  transition: width 1.2s cubic-bezier(0.2, 0.9, 0.3, 1); 
}

.donate-btn { 
  width: 100%; 
  padding: 12px; 
  background: #133B2F; 
  color: white; 
  border: none; 
  border-radius: 40px; 
  cursor: pointer; 
  font-weight: 600; 
  transition: 0.3s; 
}

.donate-btn:hover { 
  background: #1e5a48; 
}

.nav-btn {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8); 
  backdrop-filter: blur(4px); 
  border: none;
  padding: 14px 18px; 
  border-radius: 60%; 
  cursor: pointer; 
  font-size: 22px;
  color: #133B2F; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
  z-index: 10;
}

.prev { left: 0; } 
.next { right: 0; }

.dots { 
  margin-top: 30px; 
  display: flex; 
  justify-content: center; 
  gap: 10px; 
}

.dots span { 
  width: 10px; 
  height: 10px; 
  background: #A0C0B8; 
  border-radius: 50%; 
  cursor: pointer; 
  transition: 0.2s; 
}

.dots span.active { 
  background: #0FA4A6; 
  transform: scale(1.4); 
}

/* ========== PARTNERS GRID ========== */
.partners-section {
  padding: 50px 20px; 
  text-align: center; 
  background: #FFFFFF;
}

.partners-section h2 {
  font-size: 38px; 
  color: #133B2F; 
  margin-bottom: 10px;
}

.partners-subtitle {
  max-width: 600px; 
  margin: 0 auto 40px; 
  color: #444; 
  font-size: 17px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 30px;
  max-width: 900px;
  margin: 10px auto;
  align-items: center;
  justify-items: center;
}

.partners-grid img {
  height: 170px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
  border-radius: 12px;
  background: #f8f8f81a;
  padding: 10px;
  margin-bottom: 20px;
}

.partner-btn {
  margin-top: 80px;
  background: transparent;
  border: 2px solid #0FA4A6;
  color: #0FA4A6;
  padding: 12px 36px;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.partner-btn:hover {
  background: #0FA4A6;
  color: white;
}

/* ========== ACHIEVEMENTS ========== */
.achievements-section {
  background: linear-gradient(rgba(0,40,30,0.8), rgba(0,60,45,0.8)), url('https://images.unsplash.com/photo-1522661067900-ab829854a57f?q=80&w=870&auto=format&fit=crop') center/cover fixed;
  padding: 90px 20px; 
  position: relative; 
  color: #fff;
}

.achievements-container { 
  display: flex; 
  justify-content: center; 
  gap: 80px; 
  flex-wrap: wrap; 
  max-width: 1200px; 
  margin: 0 auto; 
}

.achievement-box { 
  text-align: center; 
  min-width: 180px; 
}

.achievement-box .count { 
  font-size: 58px; 
  font-weight: 700; 
  display: block; 
  color: #FFD966; 
  margin-bottom: 5px; 
  line-height: 1; 
}

.achievement-box p { 
  font-size: 20px; 
  opacity: 0.95; 
}

/* ========== LIGHTBOX ========== */
#lightbox {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.9); 
  display: none; 
  justify-content: center;
  align-items: center; 
  z-index: 10000;
}

#lightbox img { 
  max-width: 90%; 
  max-height: 90%; 
  border-radius: 16px; 
  box-shadow: 0 0 30px black; 
}

#closeBtn { 
  position: absolute; 
  top: 20px; 
  right: 40px; 
  font-size: 60px; 
  color: white; 
  cursor: pointer; 
  font-weight: 300; 
  transition: 0.2s; 
}

#closeBtn:hover { 
  transform: scale(1.2); 
  color: #F57C00; 
}

/* ========== TESTIMONIALS ========== */
.testimonials-section { 
  padding: 80px 5%; 
  text-align: center; 
  background: #f4fbfb; 
}

.testimonials-section small { 
  color: #F57C00; 
  letter-spacing: 2px; 
  text-transform: uppercase; 
  display: block; 
  margin-bottom: 10px; 
}

.testimonials-section h2 { 
  font-size: 40px; 
  margin: 0 0 50px; 
  color: #133B2F; 
}

.slider { 
  max-width: 1200px; 
  margin: auto; 
  overflow: hidden; 
}

.slides { 
  display: flex; 
  transition: 0.5s ease; 
}

.testimonial-card { 
  min-width: 33.333%; 
  padding: 0 15px; 
  box-sizing: border-box; 
}

.card-inner { 
  background: white; 
  border-radius: 28px; 
  padding: 35px 25px; 
  height: 100%; 
  box-shadow: 0 20px 30px -10px #b3d9d0; 
}

.card-inner h3 { 
  color: #133B2F; 
  font-size: 22px; 
  margin-bottom: 4px; 
}

.card-inner span { 
  font-size: 15px; 
  color: #666; 
  display: block; 
  margin-bottom: 18px; 
}

.card-inner p { 
  font-size: 16px; 
  line-height: 1.6; 
  color: #2c4a3c; 
}

.testimonial-dots { 
  margin-top: 20px; 
}

.testimonial-dot { 
  height: 12px; 
  width: 12px; 
  background: #C0DDD8; 
  border-radius: 50%; 
  display: inline-block; 
  margin: 0 6px; 
  cursor: pointer; 
  transition: 0.2s; 
}

.testimonial-dot.active { 
  background: #0FA4A6; 
  transform: scale(1.3); 
}

/* ========== FOOTER STYLES ========== */
.footer {
  background: linear-gradient(145deg, #0B3025, #0C7C7B);
  padding: 70px 6% 20px; 
  color: white;
}

.footer-container { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); 
  gap: 40px; 
  max-width: 1400px; 
  margin: 0 auto 40px; 
}

.footer-section h3 { 
  font-size: 18px; 
  margin-bottom: 25px; 
  font-weight: 600; 
  position: relative; 
}

.footer-section h3::after { 
  content: ""; 
  position: absolute; 
  bottom: -8px; 
  left: 0; 
  width: 40px; 
  height: 3px; 
  background: #F57C00; 
}

.footer-section ul { 
  list-style: none; 
}

.footer-section ul li { 
  margin: 14px 0; 
}

.footer-section ul li a { 
  text-decoration: none; 
  color: rgba(255,255,255,0.9); 
  transition: 0.3s; 
  font-size: 15px; 
}

.footer-section ul li a:hover { 
  color: #F57C00; 
  padding-left: 8px; 
}

.footer-logo-box { 
  text-align: left; 
}

.footer-logo { 
  width: 170px; 
  margin-bottom: 25px; 
  filter: drop-shadow(0 4px 8px #00000033); 
  background: rgba(255,255,255,0.1); 
  padding: 8px 12px; 
  border-radius: 30px; 
}

.footer-social { 
  display: flex; 
  gap: 14px; 
}

.footer-social a {
  width: 44px; 
  height: 44px; 
  background: rgba(255,255,255,0.15); 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 18px;
  color: white; 
  transition: 0.3s; 
  backdrop-filter: blur(4px);
}

.footer-social a:hover { 
  background: #F57C00; 
  transform: translateY(-5px); 
}

.footer-bottom { 
  text-align: center; 
  padding: 25px 0 0; 
  border-top: 1px solid rgba(255,255,255,0.2); 
  font-size: 14px; 
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1000px) {
  .foundation-container { 
    flex-direction: column; 
    text-align: center; 
  }
  
  .vision-mission-row { 
    flex-direction: column; 
    gap: 30px; 
  }
  
  .vm-box { 
    width: 100%; 
  }
  
  .vm-box h2::before { 
    left: 50%; 
    transform: translateX(-50%); 
    width: 50px; 
    height: 4px; 
    top: -6px; 
  }
  
  .hero h1 { 
    font-size: 42px; 
  }
  
  /* Mobile Navigation */
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-container {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background: linear-gradient(145deg, #0B3025, #0C7C7B);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    padding: 80px 20px 30px;
    gap: 30px;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .nav-container.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links li a {
    display: block;
    padding: 12px;
    font-size: 18px;
  }
  
  /* Mobile dropdown */
  .dropdown {
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu a {
    padding: 12px;
    color: white;
  }
  
  .desktop-donate {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  .donate-btn-mobile {
    background: #F57C00 !important;
    padding: 12px !important;
    border-radius: 40px;
    color: white !important;
    font-weight: 600 !important;
    margin-top: 10px;
  }
  
  .icons {
    justify-content: center;
    margin-top: 20px;
  }
  
  .navbar {
    padding: 15px 25px;
  }
  
  .navbar.scrolled {
    padding: 15px 25px;
  }
}

@media (max-width: 700px) {
  .partners-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .card { 
    min-width: calc(100% - 12.5px); 
  }
  
  .hero h1 { 
    font-size: 32px; 
  }
  
  .hero p { 
    font-size: 18px; 
  }
  
  .foundation-title { 
    font-size: 32px; 
  }
  
  .donation-section h2 { 
    font-size: 32px; 
  }
  
  .testimonials-section h2 { 
    font-size: 32px; 
  }
  
  .testimonial-card { 
    min-width: 100%; 
  }
  
  .achievements-container { 
    gap: 40px; 
  }
  
  .achievement-box .count { 
    font-size: 42px; 
  }
  
  .nav-btn {
    padding: 10px 14px;
    font-size: 18px;
  }
}

@media (max-width: 500px) {
  .partners-grid { 
    grid-template-columns: 1fr; 
  }
  
  .partners-grid img { 
    height: 140px; 
  }
  
  .footer-container { 
    grid-template-columns: 1fr; 
    text-align: center; 
  }
  
  .footer-section h3::after { 
    left: 50%; 
    transform: translateX(-50%); 
  }
  
  .footer-logo-box { 
    text-align: center; 
  }
  
  .footer-social { 
    justify-content: center; 
  }
}