/* ---=== Global Reset & Variables ===--- */
:root {
    --primary-color: #FFFFFF;
    --secondary-color: #1B5E20; /* Deep Green */
    --accent-color: #111111;    /* Black */
    --text-color: #333333;
    --light-gray: #f4f7f6;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.7;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-speed);
}

a:hover {
    color: #2e8b57; /* Lighter green for hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--light-gray); }
.section-padding { padding: 80px 0; }
.light-text { color: var(--primary-color); }
.max-width-lg { max-width: 800px; margin-left: auto; margin-right: auto; }

/* ---=== Header & Navigation ===--- */
.main-header {
    background-color: var(--accent-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--primary-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-speed);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

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

/* ---=== Buttons ===--- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border: 2px solid transparent;
    transition: var(--transition-speed);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #2e8b57;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: #333;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ---=== Hero Section ===--- */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--primary-color);
    background-image: url('../images/hero-bg.jpg'); 

}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(27, 94, 32, 0.6), rgba(17, 17, 17, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.hero-cta .btn {
    margin: 0 10px;
}

/* ---=== General Sections ===--- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.1rem;
    color: #555;
    max-width: 750px;
    margin: 0 auto;
}

.page-header {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: var(--primary-color);
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
}

/* ---=== Project Cards ===--- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    display: block;
    height: 400px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(27, 94, 32, 0.2);
}

.project-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-bg {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--primary-color);
}

.project-card-overlay h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-card-overlay p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* ---=== CTA Section ===--- */
.cta-section {
    background-color: var(--secondary-color);
}

.cta-section .section-title {
    color: var(--primary-color);
}
.cta-section .section-intro {
    color: rgba(255, 255, 255, 0.9); /* A slightly transparent white looks elegant */
}
.cta-buttons {
    margin-top: 2rem;
}
.cta-buttons .btn {
    margin: 10px;
}

/* ---=== About Page: Two Column & Team ===--- */
.two-column-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.two-column-layout .column {
    flex: 1;
    min-width: 300px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}
.team-member-card {
    text-align: center;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
}
.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.team-member-card h3 { font-size: 1.25rem; }
.team-member-card p { font-size: 0.9rem; color: #666; margin: 0; }

/* ---=== Footer ===--- */
.main-footer {
    background-color: var(--accent-color);
    color: #aab2b8;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer-column.about p { line-height: 1.6; }
.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column ul a, .footer-column.contact p {
    color: #aab2b8;
}
.footer-column ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-column .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #333;
    color: var(--primary-color);
    margin-right: 10px;
}
.footer-column .social-icons a:hover {
    background-color: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* ---=== Animations ===--- */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ---=== Responsive Design ===--- */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px; /* Header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--accent-color);
        transition: left 0.3s ease;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
    }
    .main-nav.active {
        left: 0;
    }
    .main-nav .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .main-nav a { font-size: 1.2rem; }
    .hamburger { display: block; }
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: 0.3s;
    }
    .main-header .btn-primary { display: none; } /* Hide donate on mobile header */

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 2rem; }
}
/* In style.css, add styles for the detailed project page */
.project-details-grid {
    display: grid;
    gap: 40px;
}
.project-detail-card {
    display: flex;
    gap: 30px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-speed);
}
.project-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.project-detail-card:nth-child(even) {
    flex-direction: row-reverse;
}
.project-detail-card img {
    width: 40%;
    object-fit: cover;
}
.project-detail-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project-detail-content h3 { font-size: 1.75rem; margin-bottom: 1rem; }

@media (max-width: 768px) {
    .project-detail-card, .project-detail-card:nth-child(even) {
        flex-direction: column;
    }
    .project-detail-card img {
        width: 100%;
        height: 250px;
    }
}
/* In style.css, add styles for the news page */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.news-card {
    display: block;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: var(--transition-speed);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.news-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.news-card-content {
    padding: 25px;
}
.news-card-date {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.news-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}
.news-card-content p {
    font-size: 0.95rem;
    color: #555;
}
.read-more {
    font-weight: 600;
    color: var(--secondary-color);
}
/* In style.css, add styles for the documents page */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.document-card {
    background-color: var(--light-gray);
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-speed);
}
.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
}
.document-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.document-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.document-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
}
/* In style.css, add styles for the donation page */
.donation-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.bank-details {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
    margin-top: 1.5rem;
}
.bank-details p { margin-bottom: 0.5rem; }
.bank-details strong { color: var(--secondary-color); }
.donation-impact img {
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    height: 250px;
    width: 100%;
    object-fit: cover;
}
.donation-impact h4 { font-size: 1.5rem; margin-bottom: 1rem; }
.donation-impact ul { list-style: none; }
.donation-impact ul li { margin-bottom: 1rem; display: flex; align-items: center; }
.donation-impact ul i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

@media (max-width: 992px) {
    .donation-layout {
        grid-template-columns: 1fr;
    }
}
/* In style.css, add styles for the contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(27, 94, 32, 0.2);
}
.contact-details-list {
    list-style: none;
    margin-bottom: 2rem;
}
.contact-details-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-details-list i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}
.contact-details-list h4 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.contact-details-list p { margin: 0; color: #555; }
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}
/* ---=== Modal Lightbox Gallery ===--- */
.btn-view-gallery {
    margin-top: 1rem;
    align-self: flex-start; /* Aligns button to the left */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.9); /* Dark overlay */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

#modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole image is visible */
    border-radius: 8px;
}

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

.modal-close:hover {
    color: #bbb;
}

.modal-prev,
.modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: background-color 0.3s ease;
    user-select: none; /* Prevents text selection */
}

.modal-prev {
    left: 15px;
    border-radius: 3px 0 0 3px;
}

.modal-next {
    right: 15px;
    border-radius: 0 3px 3px 0;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
/* ---=== Project Detail Page ===--- */
.project-detail-body .project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 3rem;
    text-align: center;
}

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

.project-gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.project-cta h2 {
    font-size: 2rem;
}
.project-cta p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}