/* Global Variables & Reset */
:root {
    --primary-blue: #1B4E78;
    --secondary-green: #4CAF50;
    --dark-navy: #0A2A43;
    --bg-white: #FFFFFF;
    --section-grey: #F2F2F2;
    --text-color: #333333;
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--text-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

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

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
    margin-right: 10px;
}

.logo span {
    color: var(--secondary-green);
    margin-left: 5px;
}

.logo img {
    height: 90px;
    width: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--secondary-green);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark-navy);
    font-weight: 600;
    font-size: 1.2rem;
}

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

.cta-buttons-mobile {
    display: none;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.btn-green {
    background-color: var(--secondary-green);
    color: white;
}

.btn-green:hover {
    background-color: #43A047;
}

.btn-blue {
    background-color: var(--primary-blue);
    color: white;
}

.btn-blue:hover {
    background-color: #163E5F;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero_banner.png') center/cover no-repeat;
    opacity: 0.2;
    /* Reduced opacity to see text better */
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: #f1f1f1;
    margin-bottom: 2rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-img img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision */
.mission-vision {
    background-color: var(--section-grey);
    padding: 4rem 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Programs Overview */
.programs-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark-navy);
}

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

.program-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.program-img {
    height: 200px;
    background-color: #ddd;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.program-info p {
    flex-grow: 1;
}

.read-more {
    color: var(--secondary-green);
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* Footer */
footer {
    background-color: var(--dark-navy);
    color: white;
    padding: 4rem 0 1rem;
}

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

footer h3 {
    color: var(--secondary-green);
    margin-bottom: 1.5rem;
}

footer p,
footer li a {
    color: #ddd;
}

footer li {
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem;
    }

    .hamburger {
        display: block;
        color: var(--dark-navy);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        display: none;
    }

    .cta-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .cta-buttons-mobile .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-grid,
    .mv-grid {
        grid-template-columns: 1fr;
    }

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

/* Impact Carousel */
.impact-carousel {
    --card-width: 600px;
    /* Reduced width */
    overflow: hidden;
    padding: 2rem 0;
    /* Added padding to frame the carousel */
    background-color: var(--dark-navy);
    /* Dark background for contrast */
    position: relative;
    height: 70vh;
    /* Reduced height */
    display: flex;
    align-items: center;
}

@media (max-width: 900px) {
    .impact-carousel {
        --card-width: 85vw;
        /* Slightly smaller than full width */
        height: 50vh;
    }
}

.carousel-track {
    display: flex;
    width: calc((var(--card-width) + 30px) * 20);
    /* Width + Gap * 20 Items */
    height: 90%;
    animation: scroll 60s linear infinite;
    /* Slower animation for more items */
}

.carousel-card {
    width: var(--card-width);
    margin: 0 15px;
    /* Gap between images */
    position: relative;
    border-radius: 15px;
    /* Rounded corners */
    overflow: hidden;
    flex-shrink: 0;
    border: 8px solid white;
    /* Perfect white border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: brightness(0.8);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.carousel-card:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc((var(--card-width) + 30px) * -10));
        /* Scroll by half (10 items) */
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    /* Use flex to center */
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 5px solid white;
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--secondary-green);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}