/* casestudies-hero.css */

.cs-hero {
    padding-top: 120px; /* Space for the floating nav bar */
    padding-bottom: 40px;
    background-color: #070707;
}

/* 1. TOP HEADER */
.cs-hero-header {
    display: flex;
    flex-direction: column; /* Forces items to stack vertically */
    align-items: flex-start; /* Keeps everything aligned to the left */
    width: 100%;
    margin-bottom: 40px;
}

.cs-title {
    font-family: 'Albert Sans', sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 72px; /* As per your specific requirement */
    color: #FFFFFF;
    margin-bottom: 32px;
    display: block; /* CRITICAL: Allows max-width to actually work */
    max-width: 1100px; /* Reduced from 900px to force the break earlier */
}

.cs-description {
    font-family: 'Albert Sans', sans-serif; 
    font-size: 20px; /* Multiple of 4 */
    font-weight: 300;
    line-height: 32px;
    color: #FFFFFF;
    margin-bottom: 40px;
}


/* 2. DIVIDERS */
.cs-divider-h {
    border: none;
    height: 1px;
    background-color: #242424;
    margin-bottom: 40px;
}

.cs-divider-v {
    width: 1px;
    height: 48px; /* 8-unit multiple */
    background-color: #242424;
}

/* 3. METADATA ROW */
.cs-metadata {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-family: 'Albert Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: capitalize;
}

.meta-value {
    font-family: 'Albert Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #A0A0A0;
}

/* 4. SPLIT NARRATIVE SECTION */
.cs-hero-split {
    display: flex!important;
    gap: 60px; /* Large gap between text and image columns */
    align-items: flex-start;
    /*align-items: center; /* NEW: This vertically centers the text and image columns so they feel balanced even if one is shorter. */
    height: auto !important; 
    min-height: unset !important; 
    overflow: visible !important;
}

.cs-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Gap between Context and My Approach blocks */
}

.cs-section-title {
    font-family: 'Albert Sans', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 40px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cs-content-block p {
    font-family: 'Albert Sans', sans-serif;
    font-size: 18px;
    line-height: 28px; /* Balanced for 16px text */
    color: #ffffff;
    margin-bottom: 24px;
}

.cs-hero-main-image {
    /* 1. Fluid on Laptops: 65% of screen height is more conservative */
    height: 85vh; 
    
    /* 2. The Hard Ceiling: On big monitors, it STOPS growing at 720px. 
       This keeps it from becoming 'huge'. */
    max-height: 720px; 
    
    aspect-ratio: 575 / 828;
    width: auto;
    
    border-radius: 40px;
    overflow: hidden;
    background-color: #111111;
}

.cs-hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 
   STICKY IMAGE LAYOUT
   ------------------------------------------------------------------
   THE IMAGE ON THE RIGHT SHOULD STAY VISIBLE AS YOU SCROLL DOWN THE TEXT ON THE LEFT.
*/

/* 1. Ensure the parent container allows children to have different heights */
.cs-hero-split {
    /* Critical: Sticky will not work if the columns 'stretch' to the same height */
    align-items: flex-start; 
}

/* 2. Apply sticky behavior to your existing image column */
.cs-image-col {
    position: -webkit-sticky !important; 
    position: sticky !important;
    top: 60px !important;               /* Adjust this to set the gap from the top of the browser */
    height: fit-content !important;  
    align-self: flex-start !important;   /* Ensures the column is only as tall as the mockup itself */
    /* No flex: 1 here—this preserves your original layout widths */
    flex-shrink: 0;
    z-index: 10; /* Ensures the image stays above other content as you scroll */
}

/* 3. Ensure the mockup container stays clean */
.cs-hero-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* casestudies-hero.css - FINAL OVERRIDE */
html, body {
    overflow-x: clip !important; /* [CHANGE] 'clip' preserves sticky, 'hidden' kills it */
}

/* --- STEN APP LISTING IN HERO.CSS --- */

.approach-list {
    list-style: none; /* Removes default browser bullets */
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Balanced vertical spacing */
}

.approach-list li {
    font-family: 'Albert Sans', sans-serif; /* Your Master's degree font [cite: 37] */
    font-size: 18px;
    line-height: 1.6;
    color: #FFFFFF;
    position: relative;
    padding-left: 24px; /* Space for the custom bullet */
}

/* The Exact WWL "High-Precision" Bullet */
.approach-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px; /* Aligns bullet with the first line of text */
    width: 8px;
    height: 8px;
    background-color: #00FF88; /* The WWL Brand Green */
    border-radius: 2px; /* The specific WWL square-radius */
}

.approach-list strong {
    font-weight: 600;
    color: #FFFFFF;
}


/* --- For text animation on scroll --- */
.line-mask {
    overflow: hidden;
    display: block;
}


/* --- 5. MOBILE RESPONSIVENESS (Below 768px) --- */
/* --- 5. UPDATED MOBILE RESPONSIVENESS (Below 768px) --- */
@media (max-width: 768px) {

    /* 1. THE MAIN SPLIT: Stack vertically and put the image FIRST */
    .cs-hero-split {
        display: flex !important;
        flex-direction: column-reverse !important; /* Image on top, Text below */
        gap: 32px !important;
        width: 100% !important;
        align-items: center !important; /* Centers the image mockup */
    }

    /* 2. THE IMAGE COLUMN: Disable sticky and fix scaling */
    .cs-image-col {
        position: static !important; /* Disables sticky behavior for mobile flow */
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        order: 1 !important; /* Explicitly forces image to top */
    }

    .cs-hero-main-image {
        width: 100% !important;
        max-width: 340px !important; /* Keeps the phone mockup sized correctly */
        height: auto !important; 
        max-height: 480px !important;
        border-radius: 24px !important;
        margin-bottom: 20px !important;
    }

    /* 3. THE TEXT COLUMN: Focus on Context and My Approach width */
    .cs-text-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important; /* Removes the desktop 'flex: 1' restriction */
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        order: 2 !important; /* Puts text below the image */
    }

    /* Widen paragraphs and lists under Context/Approach */
    .cs-content-block,
    .cs-content-block p,
    .approach-list {
        width: 100% !important;
        max-width: 100% !important; /* Forces text to expand to screen edges */
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .cs-content-block p, 
    .approach-list li {
        font-size: 17px !important; /* Slightly smaller for mobile readability */
        line-height: 26px !important;
    }
}