﻿/* Impact Page Specific Styles */
/* Impact Hero Section - Updated to match index page style */
.impact-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 200px;
    max-height: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.impact-hero-title {
    font-family: 'Geometris Round', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced responsive adjustments */
@media (max-width: 768px) {
    .impact-hero {
        height: 70vh;
        min-height: 500px;
    }

    .impact-hero-title {
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .impact-hero {
        height: 60vh;
        min-height: 400px;
    }

    .impact-hero-title {
        line-height: 1.2;
    }
}

/* Ensure content stays visible on very small screens */
@media (max-width: 320px) {
    .impact-hero {
        min-height: 350px;
    }
}

.impact-section {
    padding: 5rem 0;
}

.impact-gray {
    background-color: var(--light-gray);
    color: var(--primary-dark);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.impact-dark {
    background-color: var(--primary-dark);
    color: var(--light-bg);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.impact-subtitle {
    font-family: 'Geometris Round', sans-serif;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.impact-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.impact-quote {
    font-family: 'Geometris Round', sans-serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent-green);
    border-left: 4px solid var(--accent-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Gallery Styles */
.gallery-row {
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 300px;    
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 56, 76, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    color: var(--light-bg);
    font-family: 'Geometris Round', sans-serif;
    font-size: 1rem;
    text-align: center;
    line-height: 1.6;
}

/* Impact Page Specific Styles */
.impact-header-section {
    background-color: var(--accent-green);
    padding: 8rem 0 5rem;
    border-radius: 0 0 0px 0px;
    margin-top: 70px;
}

.impact-header-title {
    font-family: 'Geometris Round', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.impact-section {
    padding: 5rem 0;
}

.impact-gray {
    background-color: var(--light-gray);
    color: var(--primary-dark);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.impact-dark {
    background-color: var(--primary-dark);
    color: var(--light-bg);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}


.impact-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.impact-quote {
    font-family: 'Geometris Round', sans-serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent-green);
    border-left: 4px solid var(--accent-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Gallery Styles */
.gallery-row {
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 300px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 56, 76, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    color: var(--light-bg);
    font-family: 'Geometris Round', sans-serif;
    font-size: 1rem;
    text-align: center;
    line-height: 1.6;
}

/* Impact Counter Styles */
.counter-section {
    background-color: var(--primary-dark);
    color: var(--light-bg);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.impact-counter-card {
    padding: 2rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(152, 198, 1, 0.1);
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

    .impact-counter-card:hover {
        transform: translateY(-5px);
        border-color: rgba(152, 198, 1, 0.3);
    }

.counter-value-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.impact-counter-value {
    font-family: 'Geometris Round', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    display: inline-block;
}

.impact-counter-symbol {
    font-family: 'Geometris Round', sans-serif;
    font-size: 3rem;
    color: var(--accent-green);
    margin-left: 0.3rem;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.impact-counter-label {
    font-family: 'Geometris Round', sans-serif;
    color: var(--light-bg);
    font-size: 1rem;
    line-height: 1.5;
}

/* ODS Section Styles */
.ods-item {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

    .ods-item:hover {
        transform: translateY(-5px);
    }

.ods-image {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}

.ods-caption {
    font-family: 'Geometris Round', sans-serif;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Stats Section Styles */
.stats-section {
    background-color: var(--primary-dark);
    position: relative;
    padding: 5rem 0;
}

.image-curtain-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats-image {
    width: 100%;
    display: block;
    border-radius: 0px;
}

.curtain-overlay {
    position: absolute;
    top: 0;
    right: 0; /* Start from the right side */
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    transform-origin: right; /* Transform from the right side */
    transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 0px;
}

    /* When curtain is revealed */
    .curtain-overlay.revealed {
        transform: scaleX(0);
    }

.image-source {
    font-family: 'Geometris Round', sans-serif;
}

    .image-source a {
        color: var(--accent-green);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .image-source a:hover {
            color: var(--light-bg);
            text-decoration: underline;
        }

/* Text styling for dark background */


.stats-section .impact-text {
    color: var(--light-bg) !important;
}

.stats-section .text-muted {
    color: #adb5bd !important; /* Lighter color for better contrast on dark background */
}

.stats-context {
    padding: 1.5rem;
    background-color: rgba(152, 198, 1, 0.1);
    border-left: 4px solid var(--accent-green);
    border-radius: 4px;
}

/* Responsive adjustments for ODS section */
@media (max-width: 768px) {
    .ods-image {
        max-height: 140px;
    }

    .ods-caption {
        font-size: 0.9rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .impact-header-title {
        font-size: 2rem;
    }

    .impact-header-section {
        padding: 6rem 0 4rem;
    }

    .impact-subtitle {
        font-size: 1.5rem;
    }

    .impact-text {
        font-size: 1.1rem;
    }

    .impact-quote {
        font-size: 1.2rem;
    }

    .gallery-item {
        height: 250px;
    }

    .impact-counter-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .counter-value-wrapper {
        min-height: 50px;
    }

    .impact-counter-value {
        font-size: 3.5rem;
    }

    .impact-counter-symbol {
        font-size: 2.5rem;
        margin-top: 0.4rem;
    }

    .impact-counter-label {
        font-size: 0.9rem;
    }
}


/* Innovation Section Styles */
.innovation-section {
    background-color: var(--light-gray);
    color: var(--primary-dark);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.innovation-image {
    width: 100%;
    display: block;
    border-radius: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .innovation-section {
        padding: 3rem 0;
    }
}