/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Lato:wght@400;700;900&display=swap');

:root {
    --primary-color: #2c3e50;
    /* Dark blue-grey */
    --accent-color: #f1c40f;
    /* Yellow */
    --text-color: #555;
    --heading-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --link-color: #2980b9;
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: #1a4a9c;
}

.logo-text-nav {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.logo-text-nav .accent-dot {
    color: var(--accent-color);
}

/* Logo Image Style */
.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.nav-cta {
    background: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 10px 24px;
    border-radius: 50px;
}

.nav-cta:hover {
    background: #d4ac0d;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--heading-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1617953141905-b27fb1f17d88?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Readable overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.eyebrow {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero .highlight {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button.primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background: #e1b700;
    transform: translateY(-3px);
}

.cta-button.secondary {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.cta-button.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Featured Grants Slider */
.featured-grants-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.slider-container-main {
    position: relative;
    height: 100%;
    width: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    /* Flex to center content */
    align-items: center;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.slide-content-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 90px;
}

.slide-text-block {
    max-width: 600px;
    color: #fff;
    /* padding: 0 20px; Removed, container has padding */
}

.slide-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

.slide-text-block h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-text-block p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.btn-yellow {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.btn-yellow:hover {
    background: #fff;
    color: #000;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.slider-nav:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}


/* Past Winners Section */
.past-winners {
    padding: 100px 0;
    background: #eef5f9;
    /* Light blueish tint for visual break */
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.winner-card {
    background: transparent;
    text-align: left;
}

.winner-image {
    width: 100%;
    height: 350px;
    /* Square/Portrait aspect */
    overflow: hidden;
    margin-bottom: 25px;
    /* No border radius in screenshot */
}

.winner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.winner-card:hover .winner-image img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.winner-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 15px;
}

.winner-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}


/* Benefit Programs */
.benefit-programs {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a4a9c;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.title-bar {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

.section-desc {
    max-width: 700px;
    margin: -40px auto 60px;
    color: #666;
    font-size: 1.1rem;
}

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

.program-item {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.program-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(44, 62, 80, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.program-info h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.program-info p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
}

.text-link {
    color: #1a4a9c;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* About / Split Layout */
.partnership-program,
.helping-hands {
    padding: 100px 0;
    background: var(--white);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow-dark {
    color: #1a4a9c;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.text-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.image-wrapper-style img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: var(--shadow-hover);
}

.experience-badge-inline {
    margin: 30px 0;
}

.badge-content {
    background: var(--primary-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 8px;
    gap: 15px;
}

.badge-content .years {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-color);
}

.badge-content .text {
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-underline {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 5px;
}

/* Stats */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Helping Hands List */
.check-list {
    margin-top: 30px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.check-list i {
    color: var(--accent-color);
}

/* Grants for All (CTA) */
.grants-for-all {
    position: relative;
    background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed;
    padding: 120px 0;
    color: var(--white);
}

.grants-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.grants-title h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.grants-text p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.btn-group-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

/* Map */
.map-section {
    height: 450px;
    width: 100%;
    margin-bottom: -6px;
}

.map-section iframe {
    filter: grayscale(0.2);
}

/* Footer */
footer {
    background: #111;
    color: #888;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .featured-grants-slider {
        height: 550px;
    }

    .slide-text-block h2 {
        font-size: 2.8rem;
    }

    .winners-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .winner-image {
        height: 300px;
        /* Keep consistent on tablet */
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .grants-content {
        padding: 40px;
    }


    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Prevent horizontal scroll issues */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 0 20px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

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

    .hero {
        height: auto;
        min-height: 500px;
        padding: 80px 0;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    /* Slider Mobile */
    .featured-grants-slider {
        height: 600px;
    }

    .slide-content-container {
        padding: 0 20px;
        justify-content: center;
    }

    .slide-text-block {
        padding: 0;
        text-align: center;
        /* Center text on mobile */
    }

    .slide-overlay {
        background: rgba(0, 0, 0, 0.6);
        /* Solid overlay */
    }

    .slide-text-block h2 {
        font-size: 2.5rem;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    /* Grids to Single Column */
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .grants-title h2 {
        font-size: 2.5rem;
    }

    .btn-group-row {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .split-layout.reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Program Modal Styles */
.program-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--white);
    margin: 50px auto;
    padding: 50px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScale {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

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

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.modal-header-info i {
    font-size: 3rem;
    color: var(--accent-color);
}

.modal-header-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.modal-body-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

.modal-body-text h4 {
    margin: 25px 0 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.modal-body-text ul {
    margin-bottom: 25px;
}

.modal-body-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.modal-body-text li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.modal-footer {
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 30px 20px;
    }
}