/* --- Add this to the very top of your style.css file --- */
.hero {
    /* Use one of your generated hero images here */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-community-planting-pakistan.webp') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
}

/* --- Add these new styles for the mobile menu --- */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* --- Update the Responsive Design section at the bottom --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        /* Shown on mobile */
    }

    .nav-links {
        position: absolute;
        right: -100%;
        /* Start off-screen */
        top: 70px;
        /* Adjust based on header height */
        flex-direction: column;
        background-color: var(--light-text);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
        /* Slide in when active */
    }

    .nav-links li {
        margin: 15px 0;
    }

    .contact-info {
        display: none;
        /* Hide on mobile for simplicity */
    }

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

    .counters {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Add this new style for the featured team on the homepage --- */
.featured-team {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.featured-team img {
    max-width: 300px;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.featured-team-info {
    text-align: left;
}

@media (max-width: 768px) {
    .featured-team {
        flex-direction: column;
        text-align: center;
    }

    .featured-team-info {
        text-align: center;
    }
}

/* --- Make sure all the previous CSS is still below this --- */
/* --- Global Styles & Variables --- */
:root {
    --primary-color: #2c8e3e;
    /* A nice green */
    --secondary-color: #1e5f2e;
    /* Darker green */
    --accent-color: #f4a261;
    /* A warm orange for buttons */
    --light-bg: #f4f4f4;
    --dark-text: #333;
    --light-text: #fff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

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

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

section {
    padding: 60px 0;
}

/* --- Buttons --- */
.btn,
.btn-nav {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

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

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--light-text);
}

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

/* --- Header & Navigation --- */
header {
    background: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    height: 50px;
    /* Adjust height as needed */
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-info a {
    color: var(--dark-text);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.counters {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* --- General Page Content --- */
.page-content {
    background: var(--light-text);
}

.page-content .container {
    max-width: 800px;
    /* Make text pages narrower for readability */
}

/* --- Mission Snippet & CTA Sections --- */
.mission-snippet,
.cta {
    text-align: center;
}

.cta {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.cta h2 {
    color: var(--light-text);
}

/* --- Teams & Projects Grid --- */
.team-grid,
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card,
.project-card {
    background: var(--light-text);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.team-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.team-card h3,
.project-card h3 {
    margin: 15px 0 10px;
    color: var(--secondary-color);
}

/* --- Join Us Section --- */
.join-us-section {
    background: var(--light-bg);
}

.join-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.join-card {
    background: var(--light-text);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.join-card h2 {
    color: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 40px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9em;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 15px;
    }

    .contact-info {
        margin-top: 10px;
    }

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

    .counters {
        flex-direction: column;
        gap: 20px;
    }
}