/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  color: #1e1e1e;
  background-color: #ffffff;
  line-height: 1.6;
}

/* BUTTONS */
.btn {
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}

.btn.primary {
  background-color: #f36c21;
  color: #fff;
}

.btn.secondary {
  border: 2px solid #f36c21;
  color: #f36c21;
}

/* HERO */
.hero {
  background: linear-gradient(
      rgba(0,0,0,0.5),
      rgba(0,0,0,0.5)
    ),
    url("images/hero.png") center/cover no-repeat;
  color: white;
  padding: 250px 30px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ABOUT */
.about-short {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.about-short h2 {
  color: #2e7d32;
  margin-bottom: 15px;
}

/* --- NEW: WHERE WE WORK (INTERACTIVE CARDS) --- */
.work-preview {
  background-color: #ffffff;
  padding: 100px 20px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(6, 95, 70, 0.15); /* Green shadow */
  border-color: #34d399;
}

.project-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-box img {
  transform: scale(1.1);
}

/* Floating Icon */
.project-icon {
  position: absolute;
  bottom: -25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #ea580c; /* Orange */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(234, 88, 12, 0.4);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.project-card:hover .project-icon {
  transform: scale(1.2) rotate(10deg);
  background: #065f46; /* Changes to Green on hover */
}

/* Status Badge */
.project-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.project-content {
  padding: 35px 25px 25px; /* Extra top padding for icon */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.4rem;
  color: #1f2937;
  margin-bottom: 10px;
  font-weight: 700;
  transition: color 0.3s;
}

.project-card:hover h3 {
  color: #ea580c;
}

.project-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Learn More Link */
.project-link {
  margin-top: auto;
  font-weight: 700;
  color: #065f46;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.project-link:hover {
  gap: 15px;
  color: #ea580c;
}/* Styling for Focus Area Images */
.work-card img {
  width: 100%;
  height: 180px; /* Keeps all images the same height */
  object-fit: cover; /* Prevents the image from looking stretched/squished */
  border-radius: 8px; /* Slightly rounded corners */
  margin-bottom: 15px; /* Adds space between image and text */
}
/* IMPACT */
.impact {
  background-color: #2e7d32;
  color: white;
  display: flex;
  justify-content: space-around;
  padding: 50px 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.impact-box {
  text-align: center;
}

/* CTA */
.cta {
  padding: 70px 20px;
  text-align: center;
  background-color: #f36c21;
  color: white;
}

.cta h2 {
  margin-bottom: 15px;
}

/* RESPONSIVE HERO TEXT */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #1e1e1e;
  font-weight: 500;
}

.nav-links a:hover {
  color: #2e7d32;
}

.nav-donate {
  padding: 8px 18px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #1e1e1e;
  margin: 4px 0;
}

/* FOOTER */
.footer {
  background: #1e1e1e;
  color: #ffffff;
  padding: 50px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer h3, .footer h4 {
  margin-bottom: 12px;
}

.footer a {
  color: #cccccc;
  text-decoration: none;
}

.footer a:hover {
  color: #f36c21;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #bbbbbb;
}

/* =========================================
   MOBILE NAV (CORRECTED & FIXED)
   ========================================= */
@media (max-width: 768px) {
  /* 1. Show the Hamburger Icon */
  .hamburger {
    display: flex;
    z-index: 1001; /* Keeps hamburger above the menu */
  }

  /* 2. Hide the Menu by default */
  #nav-menu {
    position: absolute;
    top: 70px; /* Pushes menu down below the header */
    left: 0;
    width: 100%;
    background: white;
    
    /* Start hidden */
    display: none; 
    
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 1000; /* Sits on top of Hero Image */
  }

  /* 3. SHOW the menu when Active (Added by JS) */
  #nav-menu.active {
    display: flex !important; 
  }

  /* 4. Style the links */
  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 20px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
}

/* PAGE HEADER */
.page-header {
  background: #f9f9f9;
  padding: 70px 20px;
  text-align: center;
}

.page-header h1 {
  color: #2e7d32;
  margin-bottom: 10px;
}

/* WORK SECTION */
.work-section {
  padding: 60px 20px;
}

.work-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.work-item.reverse {
  flex-direction: row-reverse;
}

.work-text {
  flex: 1;
}

.work-text h2 {
  color: #2e7d32;
  margin-bottom: 15px;
}

.work-image {
  flex: 1;
}

.work-image img {
  width: 100%;
  border-radius: 12px;
}

/* IMPACT STRIP */
.impact-strip {
  background: #2e7d32;
  color: white;
  display: flex;
  justify-content: space-around;
  padding: 50px 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.impact-strip div {
  text-align: center;
}

/* RESPONSIVE WORK ITEMS */
@media (max-width: 768px) {
  .work-item,
  .work-item.reverse {
    flex-direction: column;
  }
}

/* DONATE PAGE */
.donate-why,
.donation-options,
.payment-details,
.transparency {
  padding: 60px 20px;
  text-align: center;
}

.donate-why h2,
.donation-options h2,
.payment-details h2,
.transparency h2 {
  color: #2e7d32;
  margin-bottom: 15px;
}

/* DONATION OPTIONS */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 600px;
  margin: 30px auto;
}

.donation-card {
  border: 2px solid #f36c21;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

.donation-card:hover {
  background: #f36c21;
  color: white;
}

/* PAYMENT BOX */
.payment-box {
  background: #f9f9f9;
  max-width: 600px;
  margin: 20px auto;
  padding: 25px;
  border-radius: 10px;
  text-align: left;
}

.note {
  margin-top: 15px;
  font-size: 0.9rem;
}

/* TRANSPARENCY */
.transparency ul {
  list-style: none;
  max-width: 500px;
  margin: auto;
}

.transparency li {
  margin-bottom: 10px;
  font-weight: 500;
}

/* MOBILE PAYMENT BOX */
@media (max-width: 768px) {
  .payment-box {
    text-align: center;
  }
}

/* ABOUT PAGE */
.about-page {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

/* MEDIA PAGE */
.media-gallery {
  padding: 60px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: #f9f9f9;
  padding: 40px;
  text-align: center;
  border-radius: 10px;
}

/* CONTACT PAGE */
.contact-container {
  display: flex;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.contact-info {
  flex: 1;
}

/* GET INVOLVED PAGE */
.involve-section {
  padding: 60px 20px;
}

.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.involve-card {
  background: #ffffff;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* GLOBAL MOBILE IMPROVEMENTS */
@media (max-width: 768px) {

  section {
    padding: 40px 15px !important;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* HERO */
  .hero {
    padding: 80px 15px;
  }

  /* NAV DONATE BUTTON */
  .nav-donate {
    width: auto;
  }

  /* IMPACT */
  .impact,
  .impact-strip {
    flex-direction: column;
    text-align: center;
  }

  /* FOOTER */
  .footer-container {
    text-align: center;
  }
}

html {
  scroll-behavior: smooth;
}

/* FLOATING DONATE BUTTON */
.floating-donate-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #f36c21; /* Your primary orange color */
  color: white;
  padding: 15px 30px;
  border-radius: 50px; /* Makes it pill-shaped */
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Adds a shadow */
  z-index: 9999; /* Ensures it stays on top of everything else */
  transition: all 0.3s ease;
}

.floating-donate-btn:hover {
  background-color: #d85c18; /* Slightly darker orange on hover */
  transform: translateY(-5px); /* Moves up slightly when hovered */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile Adjustments for Floating Button */
@media (max-width: 768px) {
  .floating-donate-btn {
    padding: 12px 24px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
}