/* --- THE MAIN CONTAINERS --- */
    .c-series .img_default_wrapper {
        height: 100%;
    }
    #c-series-content-wrapper {
        position: relative;
        width: 100vw;
        min-height: 100%;
        height: 100%;
        overflow: hidden;
        background-color: #f0f0f0;
    }

    #content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2; 
        
        /* Flexbox keeps text distributed to top and bottom */
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
        align-items: center;
        
        padding: 20px 0px; 
        text-align: center;
        /* font-family: 'Helvetica Neue', Arial, sans-serif; */
    }

    /* --- THE IMAGE (NOW NESTED) --- */
    /* Force the wrapper to take up 100% of the parent #content box, ignoring bootstrap padding */
    .img_default_wrapper {
        /* position: absolute; */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1; /* Pushes the image structure BEHIND the text inside #content */
    }
    .hero-top, .hero-bottom {
        position: absolute;
    }
    .hero-bottom {
        bottom: 0;
    }

    #img_wrapper {
        width: 100%;
        height: 100%;
        position: relative;
    }

    #content .variation_bg_img {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        /* height: 100%; */
        height: auto;
        
        /* The magic scaling & vertical centering tools */
        object-fit: fill;
        object-position: center;
        
        /* --fluid-scale: calc(1.4 + (1.0 - 1.4) * ((100vw - 300px) / (6000px - 300px))); */

        /* Clamp limits updated: 1.0 min, 1.4 max */
        transform: translate(-50%, -50%);
        /* scale(clamp(1.0, var(--fluid-scale), 1.4)); */
        
    }
    #content .variation_bg_img.mobile {
        display: none;
    }

    /* --- THE TEXT LAYERS (Unchanged, staying perfectly in place) --- */
    .hero-top {
        margin-top: 20px;
        /* position: relative; */
        /* Ensures z-index layer safety */
    }

    .hero-top .accent-caption {
        display: block;
        /* font-size: 1.8rem; */
        font-size: 1.7rem;
        letter-spacing: 2px;
        font-weight: bold;
        color: #666;
        margin-bottom: 8px;
    }

    .hero-top h1 {
        font-size: 5rem;
        /* font-weight: 600; */
        letter-spacing: 3px;
        color: #111;
        margin: 0;
    }

    .hero-bottom {
        margin-bottom: 8px;
        max-width: 700px;
        /* position: relative; */
        /* Ensures z-index layer safety */
    }

    .hero-bottom .subhead {
        font-size: 2rem;
        color: #444;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    /* --- BUTTONS (Unchanged) --- */
    .cta-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .btn {
        display: inline-block;
        /* padding: 12px 30px; */
        padding: 8px 30px;
        font-size: 1.5rem;
        /* font-weight: bold; */
        letter-spacing: 1px;
        text-decoration: none;
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .btn-teal {
        background-color: #007A78; 
        color: #fff;
        border: 2px solid #007A78;
    }

    .btn-outline {
        background-color: transparent;
        color: #111;
        border: 2px solid #006766;
    }

    #content .variation_bg_img.desktop {
        display: block;
    }
    #content .variation_bg_img.toggle {
        display: none;
    }

    @media (min-aspect-ratio: 16/10) {
        #content {
            padding: 0px 0px 0px;
        }
        #content .variation_bg_img.desktop {
            display: none;
        }
        #content .variation_bg_img.toggle {
            display: block;
        }
    }

    @media (max-width: 1180px) {
        /* #c-series-content-wrapper {
            overflow: hidden;
        } */
        #content {
            padding: 15px 0px 5px;
        }
        #content .variation_bg_img {
            height: auto;
        }
        .hero-top {
            margin-top: 12px;
        }
        .hero-top .accent-caption {
            font-size: 1.5rem;
        }
        .hero-top h1 {
            font-size: 4.5rem;
        }
        .hero-bottom .subhead {
            font-size: 1.75rem;
            color: #444;
            line-height: 1.3;
            margin-bottom: 15px;
        }
        .btn {
            display: inline-block;
            padding: 8px 30px;
            font-size: 1.5rem;
            letter-spacing: 1px;
            text-decoration: none;
            border-radius: 20px;
            transition: all 0.3s ease;
        }
    }

    /* hello */
    @media (max-width: 1033px) and (orientation: portrait) {
        #content {
            padding: 40px 0px 40px;
        }
        #content .variation_bg_img {
            height: auto;
            transform: translate(-50%, -50%) scale(1.25);
        }
        .hero-top {
            margin-top: 20px;
        }
        .hero-top .accent-caption {
            font-size: 2.5rem;
            margin-bottom: 8px;
        }
        .hero-top h1 {
            font-size: 5.5rem;
        }
        .hero-bottom {
            margin-bottom: 20px;
        }
        .hero-bottom .subhead {
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

        .btn {
            padding: 16px 30px;
            font-size: 1.8rem;
        }

    }
    
    /* --- MOBILE MEDIA QUERY (Matches your mockup architecture) --- */
    @media (max-width: 767px) {
        #c-series-content-wrapper {
            /* min-height: 650px; */
            max-height: 200px;
            /* min-height: 76.3vh; */
            min-height: 90vh;
        }
        #content { 
            padding: 40px 0px;
        }
        .hero-top .accent-caption {
            font-size: 1.6rem;
            letter-spacing: 1px;
        }
        .hero-top h1 { 
            font-size: 4rem; 
            line-height: 1.1;
            margin-top: 5px;
        }
        .hero-bottom .subhead { 
            font-size: 1.85rem; 
            line-height: 1.4;
            br { display: none; } /* Removes desktop line break on tiny layouts */
        }
        .cta-buttons { 
            flex-direction: column; 
            gap: 12px; 
            width: 100%;
            max-width: 320px;
            margin: 0 auto;
        }
        .btn {
            width: 100%;
            text-align: center;
            padding: 14px 20px;
            font-size: 1.2rem;
        }
        .center-section {
            bottom: inherit;
            top: inherit;
            position: relative;
            z-index: 9;
        }
        .c-series .img_default_wrapper {
            height: 85%;
        }
        #content .variation_bg_img {
            height: auto;
        }
        #content .variation_bg_img.desktop {
            display: none;
        }
        #content .variation_bg_img.mobile {
            display: block;
        }
    }

    @media (max-heigh: 720px) and (hover: none) and (pointer: coarse) {
        /* Styles */
        #c-series-content-wrapper {
            max-height: 200px;
            min-height: 100vh;
        }
    }
    @media (max-height: 720px) {
        .hero-bottom .subhead {
            font-size: 1.8rem;
            color: #444;
            line-height: 1.2;
            margin-bottom: 5px;
        }
        .btn {
            padding: 12px 30px;
            font-size: 1.35rem;
        }

    }
    @media (max-height: 650px) {
        /* #content .variation_bg_img {
            top: 47.5%;
            height: 84vh;
        } */
        #content .variation_bg_img {
            top: 47%;
            height: 83vh;
        }
        .hero-top {
            margin-top: 5px;
        }
        .hero-top .accent-caption {
            font-size: 1.3rem;
            letter-spacing: 2px;
            margin-bottom: 0px;
        }
        .hero-top h1 {
            font-size: 2.85rem;
        }
        .hero-bottom {
            margin-bottom: 5px;
        }
        .hero-bottom .subhead {
            margin-bottom: 5px;
            font-size: 1.5rem;
        }
        .btn {
            padding: 10px 18px;
            font-size: 1.25rem;
            letter-spacing: 1px;
            border-radius: 20px;
        }
    }
    @media (max-height: 620px) {
        body.c-series .img_default_wrapper {
            min-height: auto !important;
            padding-top: 10px !important;
            padding-bottom: 10px !important;
            height: 100%;
        }
        #content {
            padding: 5px 0px 0px;
        }
        #content .variation_bg_img {
            top: 47.5%;
            height: 83vh;
        }
        .hero-top {
            margin-top: 5px;
        }
        .hero-top .accent-caption {
            font-size: 1.1rem;
        }
        .hero-top h1 {
            font-size: 2.2rem;
        }
        .hero-bottom {
            margin-bottom: 5px;
        }
        .hero-bottom .subhead {
            font-size: 1.4rem;
            margin-bottom: 4px;
            text-shadow: 0 0 black;
        }
        .btn {
            padding: 5px 22px;
            font-size: 1.2rem;
        }
    }
@media (max-height: 501px) {
    #content .variation_bg_img {
        top: 43%;
    }
    body.c-series .img_default_wrapper {
        padding-bottom: 20px !important;
    }
    #content-wrapper {
        height: 440px;
    }
    #c-series-content-wrapper {
        min-height: 100vh;
        min-height: 100%;
    }
    #img_wrapper {
        height: 90vh;
    }
}