/* DOCUMENTARY SPECIFIC STYLES */
.doc-body {
    background-color: #0a0f1d;
    color: #e2e8f0;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1500;
    transition: all 0.4s ease; /* This makes the JS color change smooth */
}

.nav-logo {
    height: 40px;   
    width: auto;     
    display: block;
    margin: 5px 0;  
}
html {
    scroll-behavior: smooth;
}

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

/* Video Background Magic */
.video-hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 165, 0, 0.3);
}


.support-mission {
    padding: 100px 10%;
    background: #0f172a;
    text-align: center;
}

.pre-title {
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.support-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.share-links a {
    color: #cbd5e1;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-links a:hover {
    color: #ffa500; /* Turns Turkana Gold on hover */
    transform: translateY(-3px);
}

.fa-whatsapp:hover {
    color: #25D366 !important; /* Authentic WhatsApp Green on hover */
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.support-card {
    background: #1e293b;
    padding: 40px 30px;
    border-radius: 20px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.support-card.highlighted {
    border: 2px solid #ffa500;
    transform: scale(1.05);
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.support-card i {
    font-size: 3rem;
    color: #ffa500;
    margin-bottom: 20px;
}

.support-card h3 {
    margin-bottom: 15px;
    color: #fff;
}

.support-card p {
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.8;
}

.share-links a {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 10px;
    transition: 0.3s;
}

.share-links a:hover {
    color: #ffa500;
}

.btn.secondary-outline {
    border: 1px solid #ffa500;
    color: #ffa500;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}



.hero-overlay h1 {
    font-size: 4rem;
    color: #ffa500;
    margin-bottom: 1rem;
}

/* Impact Grid */
.impact-mission { padding: 80px 10%; background: #0f172a; }
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.impact-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border-bottom: 4px solid #ffa500;
    transition: 0.3s;
}

.impact-card:hover { transform: translateY(-10px); }
.impact-card i { font-size: 2.5rem; color: #ffa500; margin-bottom: 1rem; }

/* Chapter Layouts */
.chapter { padding: 60px 10%; }
.chapter-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}


/* Progress Bar Style */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: #ffa500; /* Your Turkana Gold */
    z-index: 9999;
    width: 0%;
}

/* JS-Triggered Navbar Change */
.navbar.nav-scrolled {
    background: rgba(10, 15, 29, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 10px 10%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* JS-Triggered Image Animation */
.chapter-img img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
    transform: scale(0.95);
    opacity: 0.6;
}

.img-focused {
    transform: scale(1) !important;
    opacity: 1 !important;
}


.reverse .chapter-content { flex-direction: row-reverse; }

.chapter-img { flex: 1; }
.chapter-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.chapter-text { flex: 1; }
.chapter-text h3 { font-size: 2rem; color: #ffa500; margin-bottom: 1rem; }
.chapter-text p { line-height: 1.8; opacity: 0.9; }

.main-footer {
    background: #0a0f1d;
    padding: 60px 10% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0.9);
}

.footer-nav h4, .footer-social h4 {
    color: #ffa500;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a { 
    color: #cbd5e1; 
    text-decoration: none; 
    transition: 0.3s;
}

.footer-nav ul li a:hover { color: #ffa500; }

.footer-social .social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: 0.3s;
}

.footer-social .social-icons a:hover { color: #ffa500; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #64748b;
}

/* FOOTER NAVIGATION STYLING */
.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: #cbd5e1; /* Soft slate gray */
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

/* The "Senior" Underline Animation */
.footer-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #ffa500; /* Turkana Gold */
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav ul li a:hover {
    color: #ffa500;
}

.footer-nav ul li a:hover::after {
    width: 100%;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .footer-nav {
        margin-top: 20px;
        text-align: center;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-social .social-icons { justify-content: center; display: flex; }
}

/* RESPONSIVE FIX FOR MOBILE */
@media (max-width: 768px) {
    .chapter-content {
        flex-direction: column !important; /* Stacks image on top of text */
        text-align: center;
        padding: 20px;
    }

    .chapter-img {
        width: 100% !important; /* Makes image full width */
        margin-bottom: 30px;
    }

    .chapter-img img {
        width: 100%;
        height: auto;
        border-radius: 15px; /* Adds a nice rounded look for mobile */
    }

    .chapter-text {
        width: 100% !important;
        padding: 0;
    }

    .chapter-text h3 {
        font-size: 1.8rem; /* Makes the title fit better on small screens */
    }

    /* Fix for the "Reverse" chapters so they also stack correctly */
    .chapter.reverse .chapter-content {
        flex-direction: column !important;
    }
}
