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

html {
    scroll-behavior: smooth;
}

/* Scoped Variables */
.carbon_content-wrapper {
    --carbon-primary: #1a1a1a;
    --carbon-blue: #0F52BA;
    --carbon-dark: #1a1a1a;
    --carbon-light: #f4f4f4;
    --carbon-font-body: 'Morion', serif;
    --carbon-font-header: 'Morion', sans-serif;
    
    /* Reset basic styles only inside the wrapper */
    font-family: var(--carbon-font-body);
    font-size: 1.1875rem;
    color: var(--carbon-dark);
    line-height: 1.8rem;
    background-color: #fff;
    width: 100%;
    overflow-x: hidden;
}

.carbon_content-wrapper * {
    box-sizing: border-box;
}

/* === HERO SECTION WITH VIDEO === */
.carbon_content-wrapper .carbon_hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Video Background Logic */
.carbon_content-wrapper .carbon_video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
}

.carbon_content-wrapper .carbon_bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.carbon_content-wrapper .carbon_video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Content on top of video */
.carbon_content-wrapper .carbon_hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.carbon_content-wrapper .carbon_hero-content h1 {
    font-family: var(--carbon-font-header);
    font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
    line-height: 3rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carbon_content-wrapper .carbon_subtitle {
    font-size: 1.75rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.carbon_content-wrapper .carbon_author {
    font-style: italic;
    font-size: 1.125rem;
    opacity: 0.8;
}

.carbon_content-wrapper .carbon_scroll-indicator {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: carbon_bounce 2s infinite;
    z-index: 2;
}

@keyframes carbon_bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* === PARALLAX SECTIONS (IMAGES) === */
.carbon_content-wrapper .carbon_parallax-section {
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.carbon_content-wrapper .carbon_map-bg {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
                      url('https://interactive.nation.africa/2025/dev/ukraine_pow/images/map.png'); 
}

.carbon_content-wrapper .carbon_kitchen-bg {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                      url('https://interactive.nation.africa/2025/dev/ukraine_pow/images/meal-time.png');
}

.carbon_content-wrapper .carbon_prison-bay-bg {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5)),
                      url('https://interactive.nation.africa/2025/dev/ukraine_pow/images/prison-bay.jpg');
}

.carbon_content-wrapper .carbon_contradiction-bg {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5)),
                      url('https://interactive.nation.africa/2025/dev/ukraine_pow/images/interview.png');
}

.carbon_content-wrapper .carbon_personal-bg {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5)),
                      url('https://interactive.nation.africa/2025/dev/ukraine_pow/images/thoughts.png');
}

/* === CONTENT BOXES === */
.carbon_content-wrapper .carbon_content-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    max-width: 500px;
    margin: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 8px;
    /* border-left: 5px solid var(--carbon-primary); */
}

.carbon_content-wrapper .carbon_left-align { margin-right: auto; margin-left: 10%; }
.carbon_content-wrapper .carbon_right-align { margin-left: auto; margin-right: 10%; }
.carbon_content-wrapper .carbon_center-align { margin: auto; text-align: center; border-left: none; border-top: 5px solid var(--carbon-blue); }

.carbon_content-wrapper .carbon_content-box h2 {
    font-family: var(--carbon-font-header);
    font-weight: 500;
    font-size: 1.5625rem;
    letter-spacing: -.005rem;
    line-height: 1.875rem;
    margin-bottom: 1rem;
    color: var(--carbon-primary);
}

.carbon_content-wrapper .carbon_container p {
    margin: 0 0 20px;
}

/* === TEXT SECTIONS === */
.carbon_content-wrapper .carbon_text-section {
    padding: 4rem 1.5rem;
    background: #fff;
}

.carbon_content-wrapper .carbon_bg-light {
    background: #f9f9f9;
    font-size: 1rem;
}

.carbon_content-wrapper .carbon_container {
    max-width: 38rem;
    margin: 0 auto;
}

.carbon_content-wrapper .carbon_container h2 {
    font-family: var(--carbon-font-header);
    font-weight: 500;
    font-size: 1.5625rem;
    letter-spacing: -.005rem;
    line-height: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: .9375rem;
    color: var(--carbon-dark);
}

.carbon_content-wrapper .carbon_quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--carbon-primary);
    border-left: 4px solid var(--carbon-primary);
    padding-left: 20px;
    padding-right: 20px;
    margin: 3rem 0;
    background-color: #f9f9f9;
}

/* === IMAGE GRID === */
.carbon_content-wrapper .carbon_image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 3rem 0;
}

.carbon_content-wrapper .carbon_grid-img {
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--carbon-font-header);
    font-size: 1.2rem;
    background-size: cover;
    background-position: center;
}

.carbon_content-wrapper .carbon_img-1 { background-image: url('../images/kibet-selfie.jpeg'); }
.carbon_content-wrapper .carbon_img-2 { background-image: url('https://images.unsplash.com/photo-1615655114865-4cc1bda5901e?q=80&w=600'); }

/* === NEW: IMAGE PLACEMENTS & FIGURES === */

/* Common Figure Styles */
.carbon_content-wrapper figure {
    margin: 0;
    padding: 0;
}

/* Common Caption Styles */
.carbon_content-wrapper figcaption {
    font-family: 'Roboto',Arial,sans-serif;
    font-size: .875rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.125rem;
    color: rgba(0,0,0,.55);
    margin-top: 0.75rem;
    text-align: left; 
}


/* TYPE 1: Standard Content Column Images
*/
.carbon_content-wrapper .carbon_inline-figure {
    margin: 3rem 0;
    width: 100%;
}

.carbon_content-wrapper .carbon_inline-figure img {
    width: 100%; 
    height: auto;  
    display: block;
}


/* TYPE 2: Wide Bleed Images
*/
.carbon_content-wrapper .carbon_wide-figure {
    width: 100%;
    max-width: 1400px; 
    margin: 5rem auto; 
}

.carbon_content-wrapper .carbon_wide-figure img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Adjust caption for wide images to align with the text column beneath it */
.carbon_content-wrapper .carbon_wide-figure figcaption {
    max-width: 800px;
    margin: 0.75rem auto 0 auto; 
}


/* === NEW: SECTION VIDEO BACKGROUNDS === */

/* Helper class to remove the static image background when video is present */
.carbon_content-wrapper .carbon_has-video {
    background-image: none !important;
    background-color: #000; 
    position: relative; 
    overflow: hidden;   
}

/* Container for the video to ensure it fills the section */
.carbon_content-wrapper .carbon_section-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
}

/* The actual video element */
.carbon_content-wrapper .carbon_section-video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Dark overlay to ensure text readability over the video */
.carbon_content-wrapper .carbon_section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1; 
}

/* Ensure the content box sits ABOVE the video and overlay */
.carbon_content-wrapper .carbon_content-box {
    position: relative;
    z-index: 2; 
}

/* === ANIMATIONS === */
.carbon_content-wrapper .carbon_fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: carbon_fadeInUp 1s forwards;
}

.carbon_content-wrapper .carbon_delay-1 { animation-delay: 0.5s; }
.carbon_content-wrapper .carbon_delay-2 { animation-delay: 1s; }

@keyframes carbon_fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.carbon_content-wrapper .carbon_reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.carbon_content-wrapper .carbon_reveal.carbon_active {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .carbon_content-wrapper .carbon_content-box { margin: 1rem; width: auto; }
    .carbon_content-wrapper .carbon_image-grid { grid-template-columns: 1fr; }
}