/* ==========================================================================
   CAREER OUTCOMES BLOCK (blocks/block-career-outcomes.php)
   Figma 2026-11: content sits in a WHITE box with green heading + dark list.
   Desktop: box floats over the photo, right of centre.
   Mobile/tablet: photo on top, white content box underneath.
   ========================================================================== */
.career-outcomes-container .inner {
    display: grid;
}

.career-outcomes-container .content-box {
    background-color: var(--bg-color-white, #fff);
}

.career-outcomes-container .content-box > h2 {
    color: var(--primary-color);
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 20px;
    white-space: normal;
}

.career-outcomes-container .content-box > p,
.career-outcomes-container .content-box > ul,
.career-outcomes-container .content-box li {
    color: var(--text-color, #1a1a1a);
}

.career-outcomes-container .content-box ul {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 16px;
    padding-left: 0;
}

.career-outcomes-container .content-box ul li {
    margin-bottom: 10px;
}

.career-outcomes-container .content-box ul li:last-child {
    margin-bottom: 0;
}

/* ---------- Mobile / tablet: image on top, white box below ---------- */
@media only screen and (max-width: 999px) {
    .career-outcomes-container {
        background: var(--bg-color-white, #fff) none !important;
    }

    /* Stack: image first, content second — regardless of "inverted". */
    .career-outcomes-container .inner {
        grid-template-columns: 1fr;
    }

    .career-outcomes-container .col-one {
        order: 1 !important;
        height: auto;
    }

    .career-outcomes-container .col-two {
        order: 2 !important;
    }

    /* 5:3 photo like the mobile Figma; object-fit crops instead of stretching. */
    .career-outcomes-container .career-outcomes-mobile-img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 5 / 3;
        object-fit: cover;
        object-position: center;
        margin: 0;
    }

    .career-outcomes-container .content-box {
        padding: 30px 20px 40px;
    }

    /* Figma mobile: heading Lato Bold ~36px, green #10763A, 2 lines */
    .career-outcomes-container .content-box > h2 {
        font-family: var(--primary-font);
        font-size: clamp(30px, 9vw, 36px) !important;
        font-weight: 700 !important;
        line-height: 1.25;
        letter-spacing: 0;
        color: #10763A !important;
        text-transform: none;
        white-space: normal;
        margin: 0 0 24px;
    }

    .career-outcomes-container .content-box ul {
        margin-left: 28px;
        list-style: disc;
    }

    /* Figma mobile (Inspect): Lato Regular 400, 18px / 24px, letter-spacing 0 */
    .career-outcomes-container .content-box li,
    .career-outcomes-container .content-box p {
        font-family: 'Lato', var(--secondary-font, var(--primary-font)), sans-serif;
        font-style: normal;
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 24px !important;
        letter-spacing: 0;
        vertical-align: middle;
        color: #1A1A1A !important;
    }

    .career-outcomes-container .content-box li::marker {
        color: #1A1A1A;
        font-size: 14px;
    }

    .career-outcomes-container .content-box ul li {
        margin-bottom: 14px;
    }
}

/* ---------- Desktop: white box over the photo, right of centre ---------- */
@media only screen and (min-width: 1000px) {
    .career-outcomes-container {
        display: flex;
        place-items: center;
        padding: 30px 0;
        min-height: 520px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .career-outcomes-container .inner {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .career-outcomes-container .content-box {
        max-width: 440px;
        margin-left: 30px;
        padding: 32px 36px;
    }

    .career-outcomes-container .content-box li {
        font-size: 15px;
        line-height: 1.4;
    }

    .career-outcomes-container .col-one.inverted {
        order: 2;
    }

    /* Desktop uses the background image; hide the mobile <img>. */
    .career-outcomes-container .career-outcomes-mobile-img {
        display: none;
    }
}
