/* General Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
}

h1, h2, h3 {
  font-weight: 700;
  color: #2c5530;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2c5530;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f0c808;
}

/* Hero */
.hero {
  height: 90vh;
  background: url('topper.jpeg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 1rem;
}

.hero h1 {
  color: #f0c808;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.hero p {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.btn {
  background: #f0c808;
  color: #2c5530;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #e5b507;
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.about, .programs {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c5530;
}

/* Gallery */
.gallery {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}
.gallery-grid figure {
  margin: 0;
  text-align: center;
}

.gallery-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c5530;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact form {
  display: grid;
  gap: 1rem;
}

.contact-info i {
  margin-right: 0.5rem;
  color: #2c5530;
}

.contact input, 
.contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

.contact button {
  background: #2c5530;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background: #244422;
}

/* Map container */
.map-container {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background: #2c5530;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

footer a {
  color: #f0c808;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  font-size: 2rem;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1000;
}

.whatsapp-btn:hover {
  background: #20b954;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

#caption {
  margin: 15px auto;
  text-align: center;
  color: #f0c808;
  font-size: 1rem;
  font-weight: bold;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .close:hover {
  color: #f0c808;
}
/* Navigation buttons */
.lightbox .prev,
.lightbox .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    padding: 10px;
    margin-top: -20px;
    transition: 0.3s;
    user-select: none;
}

.lightbox .prev {
    left: 15px;
}

.lightbox .next {
    right: 15px;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    color: #f0c808;
}
/* Donation Box inside Membership */
.donate {
    margin-top: 2rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.donate h3 {
    color: #2c5530;
}

.donate-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.mpesa-box {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
}

.mpesa-box h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}
/* PayPal Donate Button */
.donate-btn {
    background: #0070ba;
    /* PayPal blue */
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.donate-btn:hover {
    background: #005c99;
    transform: scale(1.05);
}

/* Local donation box */
.local-donate {
    margin-top: 2rem;
    padding: 1rem;
    border-left: 4px solid #2c5530;
    background: #f9f9f9;
    border-radius: 6px;
}

.local-donate h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.local-donate p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}
/* Thematic Areas */
.programs {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.programs h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c5530;
    font-size: 2rem;
}

.thematic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.thematic-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thematic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.thematic-card>i {
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.thematic-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #244422;
}

.thematic-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thematic-card li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.thematic-card li i {
    background: #2c5530;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.form-response {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: none;
}

.form-response.success {
    color: green;
    display: block;
}

.form-response.error {
    color: red;
    display: block;
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/* Donation Section */
.donate {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: auto;
}

.donate-box {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.donate-box h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.donate-btn {
    background: #0070ba;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 1.5rem;
}

.donate-btn:hover {
    background: #005a94;
}

.local-donations {
    text-align: left;
    margin-top: 1rem;
}

.local-donations h3 {
    margin-bottom: 0.5rem;
    color: #2c5530;
}

/* Highlight M-Pesa in green */
.local-donations p.mpesa i {
    color: #25d366;
    /* Green */
    margin-right: 0.5rem;
}

/* Highlight Bank in blue */
.local-donations p.bank i {
    color: #0070ba;
    /* Blue */
    margin-right: 0.5rem;
}
/* Highlight Donate Link in Navbar */
.nav-links a i {
    margin-right: 5px;
}

.nav-links a[href="#donate"] {
    color: #f94144;
    /* Bright red for attention */
    font-weight: 700;
}

.nav-links a[href="#donate"]:hover {
    color: #d62828;
    /* Darker red on hover */
}