/* --- CSS RESET & BASIC SETUP --- */
:root {
    --color-primary: #E87A33;
    --color-text: #333333;
    --color-text-light: #555555;
    --color-background: #FFFFFF;
    --color-background-dots: #F1F1F1;
    --color-border: #E0E0E0;
    --font-family-main: 'Poppins', sans-serif; /* Kept Poppins as it was in the original design */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    font-family: var(--font-family-main);
    color: var(--color-text);
    background-color: var(--color-background);
    background-image: radial-gradient(var(--color-background-dots) 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.6;
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5em;
    color: var(--color-text-light);
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 3rem 0;
}

.btn {
    display: inline-block;
    padding: 0.6em 1.5em;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #d16c2a;
    transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
.header { /* Renamed from .main-header to match HTML */
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo__icon {
    height: 40px;
    width: auto;
    object-fit: contain;
}



.logo .logo-text {
    display: none; /* Hidden on mobile per instructions */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Navigation (Checkbox Hack) */
.nav-toggle-checkbox {
    display: none; /* Hide the actual checkbox */
}

.nav-toggle-label {
    display: flex; /* Show hamburger on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
}

.nav-menu-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-background);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 5rem;
    z-index: 1001;
}

/* When the checkbox is checked, slide the nav in */
#nav-toggle:checked ~ .nav-menu-mobile {
    transform: translateX(0);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

#nav-toggle:checked ~ .nav-overlay {
    visibility: visible;
    opacity: 1;
}

.nav-list-mobile a {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nav-list-mobile a:hover,
.nav-list-mobile a.active {
    background-color: #f8f8f8;
    color: var(--color-primary);
}

.nav-menu-desktop {
    display: none; /* Hidden on mobile */
}

/* --- MAIN CONTENT SECTIONS --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/4.png');
    background-size: cover;
    background-position: center;

}

.hero h1 {
    color: var(--color-background);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.mission p, .impact-story p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.grid-3-col {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #f9f9f9; /* or use a neutral color */
}



.card h3 {
    padding: 1rem 1.5rem 0;
}

.card p {
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 0;
}

.stat-card {
    background-color: #f8f8f8;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.stat-card p {
    margin-bottom: 0.5em;
    font-size: 1rem;
}

.stat-card span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
}

/* --- FOOTER STYLING --- */

.site-footer {
    background-color: #FFFFFF; /* White background */
    /* Removed: border-top */
    padding-top: clamp(2.5rem, 6vw, 4rem); /* Responsive top padding */
    padding-bottom: clamp(1.5rem, 4vw, 2rem); /* Responsive bottom padding */
    font-family: var(--font-family-main); /* Consistent font */
    color: var(--color-text-light); /* Default text color for the footer */
    text-align: center; /* Ensures content is centered by default */
}

.footer-wrapper {
    max-width: 1400px; /* Max width for the entire footer content */
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem); /* Responsive horizontal padding for the wrapper */
}

.footer-content {
    display: flex;
    flex-direction: column; /* Stack vertically on small screens */
    align-items: center; /* Center items horizontally */
    gap: clamp(1.5rem, 4vw, 2.5rem); /* Space between link groups and social icons */
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem); /* Space above the copyright bar */
}

/* Footer Navigation Links */
.footer-nav-links {
    display: flex;
    flex-wrap: wrap; /* Allow links to wrap to the next line */
    justify-content: center; /* Center links when they wrap */
    gap: 0.75rem clamp(1rem, 2vw, 1.5rem); /* Vertical and horizontal spacing between links */
    /* On very small screens, ensure links don't get too squished */
    padding: 0 0.5rem;
}

.footer-nav-links a {
    color: var(--color-text); /* Darker text for links on white background */
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem); /* Responsive font size */
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 0.2rem 0.5rem; /* Add some padding to increase touch/click area */
    border-radius: 4px; /* Slightly rounded corners for padding */
}

.footer-nav-links a:hover,
.footer-nav-links a:focus {
    color: var(--color-primary); /* Primary color on hover/focus */
    transform: translateY(-2px); /* Slight lift effect */
    background-color: rgba(232, 122, 51, 0.05); /* Very subtle background highlight */
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link svg {
    width: 28px;
    height: 28px;
    fill: #ddd;
    transition: fill 0.3s ease;
    cursor: pointer;
}

.social-link:hover svg,
.social-link:focus svg {
    fill: #1da1f2;
    outline: none;
}

.social-link[aria-label="Facebook"]:hover svg {
    fill: #1877F2;
}

.social-link[aria-label="Instagram"]:hover svg {
    fill: #E4405F;
}

.social-link:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Footer Bottom Bar (for copyright) */
.footer-bottom-bar {
    /* Removed: border-top */
    padding-top: clamp(1rem, 2vw, 1.5rem); /* Padding above copyright text */
    margin-top: clamp(1rem, 2vw, 1.5rem); /* Ensures good spacing from content above */
}

.footer-bottom-bar .copyright {
    margin: 0; /* Remove default paragraph margin */
    font-size: clamp(0.8rem, 2vw, 0.9rem); /* Responsive font size for copyright */
    color: var(--color-text-light); /* Light text color for copyright */
    line-height: 1.5;
    letter-spacing: 0.2px;
}

/* --- Media Queries for Layout Adjustments --- */

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row; /* Layout links and social horizontally on larger screens */
        justify-content: space-between; /* Space out items */
        align-items: center; /* Vertically align items */
    }

    .footer-nav-links {
        flex-wrap: nowrap; /* Keep links on one line */
        gap: clamp(1.5rem, 2.5vw, 2.5rem); /* More horizontal space between links */
        padding: 0; /* Remove horizontal padding if needed */
    }

    .social-links {
        margin-top: 0; /* Remove top margin when layout is horizontal */
    }
}

@media (min-width: 992px) {
    /* Adjustments for even larger screens if needed, mostly handled by clamp() */
}


/* --- DESKTOP & TABLET STYLES --- */
@media (min-width: 992px) {
    .section-padding { padding: 4rem 0; }

    .nav-toggle-label {
        display: none; /* Hide hamburger on desktop */
    }

    .nav-menu-mobile, .nav-overlay {
        display: none;
    }

    .logo .logo-text {
        display: block; /* Show logo text on desktop */
    }

    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 2rem;
        align-items: center;
    }

    .nav-menu-desktop {
        display: block;
        justify-self: center; /* Center the nav links */
    }

    .nav-menu-desktop .nav-list {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }

    .nav-menu-desktop .nav-list a {
        padding: 0.25rem 0;
        position: relative;
        font-weight: 600;
    }

    .nav-menu-desktop .nav-list a:hover,
    .nav-menu-desktop .nav-list a.active {
        color: var(--color-primary);
    }

    /* Underline effect for active/hover links */
    .nav-menu-desktop .nav-list a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--color-primary);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }

    .nav-menu-desktop .nav-list a:hover::after,
    .nav-menu-desktop .nav-list a.active::after {
        transform: scaleX(1);
    }

    .grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Section Styling */
    .impact-highlights {
        background: linear-gradient(135deg, #e9f4ff, #ffffff);
        padding: 80px 20px;
        position: relative;
    }

    .impact-highlights h2 {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 60px;
        color: #1a1a1a;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    /* Grid Layout */
    .grid-3-col {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Stat Card - Glassmorphism Style */
    .stat-card {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        padding: 40px 25px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        position: relative;
    }

    .stat-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
    }

    /* Decorative Border Glow on Hover */
    .stat-card::before {
        content: "";
        position: absolute;
        top: -2px;
        right: -2px;
        bottom: -2px;
        left: -2px;
        background: linear-gradient(135deg, #6EC1E4, #9E8CFF);
        z-index: -1;
        border-radius: 22px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .stat-card:hover::before {
        opacity: 1;
    }

    /* Typography Styling */
    .stat-card p {
        font-size: 1.1rem;
        color: #333;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        font-weight: 600;
    }

    .stat-card span {
        font-size: 3rem;
        font-weight: 800;
        color: #2c3e50;
        display: block;
        line-height: 1.2;
    }


}