/* Import Epilogue font variables */
:root {
    --epilogue-font: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary-color: #041E42;
    --secondary-color: #2c5aa0;
    --accent-color: #4a90e2;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base page wrapper */
.page-wrapper {
    display: block;
    width: 100%;
    overflow-y: auto;
    font-family: var(--epilogue-font);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Banner video container */
.banner-video-container {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slider {
    position: relative;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.02);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.dots-container {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 15px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.0);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}


/* About container */
.about-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 40px 20px 20px 20px;
    display: block;
    margin-bottom: 40px;
}

/* About sections - Completely uniform design */
.about-section {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
    position: relative;
    margin-bottom: 40px;
    padding: 0;
}

.about-section:last-child {
    margin-bottom: 20px;
}

.about-section:hover {
    transform: none;
    box-shadow: none;
}

.about-section::before {
    display: none;
}

.section-content {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: none;
}

/* Typography */
.section-title {
    font-family: var(--epilogue-font);
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 30px 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    position: relative;
    text-align: left;
    width: 100%;
}

.section-title::after {
    display: none;
}

.section-description {
    font-family: var(--epilogue-font);
    font-size: clamp(16px, 1.6vw, 18px);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0 0 30px 0;
    text-align: justify;
    text-justify: inter-word;
}

.section-description:last-child {
    margin-bottom: 0;
}

/* All sections are now uniform - no special styling */

/* Empowering section side-by-side layout */
.empowering-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.empowering-text {
    flex: 1;
}

.mosaic-container {
    flex: 0 0 45%;
    min-width: 300px;
    text-align: center;
}

.mosaic-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.mosaic-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}

/* Responsive design for empowering layout */
@media (max-width: 768px) {
    .empowering-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .mosaic-container {
        flex: none;
        min-width: auto;
    }
}

/* Partners section - uniform styling */
.partners-section {
    margin-bottom: 40px;
    padding-top: 0;
    border-top: none;
}

.partners-title {
    font-family: var(--epilogue-font);
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    text-align: center;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 0 auto;
    max-width: 100%;
    padding: 20px 0;
}

.partner-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(100px, 20vw, 180px);
    height: clamp(100px, 20vh, 140px);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 10px;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    box-sizing: border-box;
}

.partner-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.partner-link img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: var(--transition);
    display: block;
}

.partner-link:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Impact section */
.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.impact-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.impact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mosaic-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.mosaic-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}

/* Video section - uniform styling */
.video-section {
    background: transparent;
    color: var(--text-color);
    margin-bottom: 0 !important;
}

.video-section .section-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.video-section .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 20px auto 0;
    border-radius: 2px;
}


.video-description {
    font-family: var(--epilogue-font);
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0 0 40px 0;
    font-style: italic;
}

.video-embed {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--accent-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.video-embed iframe {
    width: 100%;
    height: auto;
    border: none;
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .about-container {
        max-width: 95%;
        padding: 35px 20px;
    }
    
    .section-content {
        padding: 0;
        width: 100%;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .partner-link {
        height: 120px;
    }
}

@media screen and (max-width: 768px) {
    .banner-video-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .about-container {
        max-width: 95%;
        padding: 30px 20px;
    }
    
    .section-content {
        padding: 0;
        width: 100%;
    }

    .section-title {
        font-family: var(--epilogue-font);
        font-size: clamp(24px, 2.5vw, 36px);
        font-weight: 600;
        color: var(--primary-color);
        margin: 0 0 30px 0;
        line-height: 1.4;
        letter-spacing: -0.01em;
        position: relative;
        text-align: center;
        width: 100%;
    }

    .logo-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .partner-link {
        flex: 0 1 45%; /* roughly two per row */
        width: clamp(100px, 20vw, 160px);
        height: clamp(100px, 20vh, 120px);
        padding: 5px;
        box-sizing: border-box;
    }
    
    .video-embed iframe {
        height: auto;
    }
    
    .dots-container {
        bottom: 15px;
        padding: 3px 6px;
        gap: 4px;
        background: rgba(0, 0, 0, 0.03);
    }
    
    .dot {
        width: 4px;
        height: 4px;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

@media screen and (max-width: 480px) {
    .banner-video-container {
        height: 40vh;
        min-height: 250px;
    }
    
    .about-container {
        max-width: 95%;
        padding: 25px 15px;
    }
    
    .section-content {
        padding: 0;
        width: 100%;
    }    

    .logo-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .partner-link {
        flex: 0 1 45%; /* roughly two per row */
        width: clamp(100px, 20vw, 160px);
        height: clamp(100px, 20vh, 120px);
        padding: 5px;
        box-sizing: border-box;
    }
    
    .video-embed iframe {
        height: auto;
    }
    
    .impact-grid {
        gap: 30px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section {
    animation: fadeInUp 0.6s ease-out;
}

.about-section:nth-child(1) { animation-delay: 0.1s; }
.about-section:nth-child(2) { animation-delay: 0.2s; }
.about-section:nth-child(3) { animation-delay: 0.3s; }
.about-section:nth-child(4) { animation-delay: 0.4s; }

/* Focus states for accessibility */
.partner-link:focus,
.dot:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .banner-video-container,
    .video-embed {
        display: none;
    }
    
    .about-container {
        padding: 20px;
        gap: 30px;
    }
    
    .about-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}