* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2E8B57;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2E8B57;
}

section {
    padding: 4rem 2rem;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    color: #333;
}

.slider-container {
    width: 100%; 
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    width: 500%;
    height: 100%;
    animation: slide 20s infinite;
}

.slide {
    width: 20%;
    padding: 1rem;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@keyframes slide {
    0% { margin-left: 0; }
    15% { margin-left: 0; }
    20% { margin-left: -100%; }
    35% { margin-left: -100%; }
    40% { margin-left: -200%; }
    55% { margin-left: -200%; }
    60% { margin-left: -300%; }
    75% { margin-left: -300%; }
    80% { margin-left: -400%; }
    95% { margin-left: -400%; }
    100% { margin-left: 0; }
}

.about-section {
    background-color: #fff;
}
.about-section p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #2E8B57;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #256d44;
}

.impact-section {
    background-color: #2E8B57;
    color: #fff;
}
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.impact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
}
.impact-number, .impact-number-slow {
    font-size: 3.5rem;
    font-weight: bold;
}
.impact-card p {
    margin-top: 0.5rem;
    font-size: 1rem;
}
.impact-section h2{
    color: white;
    font-size: 4rem;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}
.programme-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.programme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.programme-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.programme-card h3, .programme-card p {
    padding: 0 1.5rem;
}
.programme-card h3 {
    margin-top: 1.5rem;
}
.programme-card p {
    padding-bottom: 1.5rem;
    line-height: 1.5;
}

.reviews-section {
    background-color: #fff;
}
.video-slider-container {
    width: 90%;
    margin: auto;
    overflow: hidden;
}
.video-slider {
    display: flex;
    gap: 1.5rem;
    animation: scroll 30s linear infinite;
}
.video-slide {
    flex: 0 0 45%;
}
.video-slide video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.donation-section {
    background-color: #e8f5e9;
}

footer {
    background-color: #222;
    color: #fff;
    padding: 3rem 2rem 1rem 2rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}
.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2E8B57;
}
.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: #2E8B57;
}
.social-links a {
    margin-right: 1rem;
}
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #444;
}

.page-content {
    padding: 4rem 0;
    background-color: #fff;
}
.page-content .container {
    text-align: left;
}
.page-content section {
    text-align: left;
    padding: 2rem 0;
}
.page-content h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
}
.page-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: #555;
}

.project-entry {
    margin-bottom: 4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}
.project-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.project-content .project-image,
.project-content p {
    width: 50%;
}
.project-image {
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}
.project-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.donation-options-page {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.donation-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 2rem;
    flex: 1;
    min-width: 300px;
    text-align: center;
}

/* --- START: Improved Contact Us Section --- */

/* Main grid container for the contact section */
.contact-grid {
    display: grid;
    /* On desktops, keep the 2fr 1fr layout but with a larger gap */
    grid-template-columns: 2fr 1fr; 
    gap: 4rem; /* Increased gap for better separation */
    text-align: left;
    margin-bottom: 4rem;
    align-items: start; /* Align items to the top of the grid row */
}

/* Container for the contact details (address, email, phone) */
.contact-details {
    /* Adding some padding and a subtle border for a card-like effect */
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-details h2 {
    margin-top: 0; /* Remove default top margin from h2 */
    color: #2E8B57; /* Use your brand's primary green color */
    padding-bottom: 1rem;
    border-bottom: 2px solid #e8f5e9; /* Add a subtle underline */
}

.contact-details p {
    line-height: 1.8;
    margin-bottom: 1.5rem; /* Add more space between paragraphs */
    font-size: 1.1rem; /* Slightly larger font for readability */
}

.contact-details a {
    word-break: break-all; /* Prevents long email addresses from overflowing */
}

/* Container for the map */
.map-container {
    margin-top: 0; /* Removed top margin as the grid gap handles spacing */
}

.map-container h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: #333;
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Add a subtle shadow to the map */
}


/* --- Mobile Responsive Adjustments --- */
@media(max-width: 768px) {
    .contact-grid {
        /* On mobile, stack the columns and reduce the gap */
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-details {
        /* Reduce padding slightly for smaller screens */
        padding: 2rem;
    }
    
    .map-container h2 {
        text-align: center; /* Center the "Find Us Here" heading on mobile */
    }
}

/* --- END: Improved Contact Us Section --- */

.trust{
    font-weight: bold;
}

.hamburger {
    display: none; 
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #333;
}

@media(max-width: 768px) {
    .project-content {
        flex-direction: column;
    }
    .project-content .project-image,
    .project-content p {
        width: 100%;
    }
    .video-slide {
        flex: 0 0 85%;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        text-align: center;
    }
    .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-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 16px 0;
    }
}


/* photos section css */

/*  Photo Gallery Section (Card Style)  */
.gallery-section {
    background-color: #f9f9f9;
}

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

.gallery-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}



/* ===== Responsive Google Map ===== */
.map-container iframe {
    /* Ensures the iframe is never wider than its container */
    max-width: 100%; 
}

@media (max-width: 768px) {
    .map-container iframe {
        /* Reduces the map's height on smaller screens */
        height: 300px;
    }
}
.contact-form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2E8B57;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 5px;
  background-color: #2E8B57;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #256d44;
}

@media (max-width: 768px) {
  .contact-form-container {
    padding: 1.5rem;
    margin: 1rem;
  }
}