#page .oc-section.section-card-container {
    position: relative;
    overflow: visible;
    padding: 3rem 1.5rem;
    max-width: none;

    .inner {
        margin: 0 auto;
        max-width: 1200px;
        position: relative;
        z-index: 1;
        @media screen and (min-width: 1296px) {
            padding: 0;
        }
    }

    .text-image-headline {
        font-size: clamp(2.25rem, 3vw, 3rem);
        line-height: 1.2;
        margin: 0 0 0.75rem;
        text-align: left;
        text-wrap: balance;
    }

    .copy-wrap {
        margin: 0 auto 2.5rem;
        max-width: 760px;
        text-align: center;
        p {
            font-size: clamp(1rem, 2vw, 1.25rem);
            line-height: 1.25;
            margin: 0;
            font-weight: normal;
            color: var(--teal-dark);
        }
    }

    .card-image img {
        display: block;
        height: auto;
        width: 100%;
    }

    .card-wrap .card-headline {
        font-size: clamp(1.15rem, 2.25vw, 1.5rem);
        margin: 1rem 0 0.5rem;
    }

    .slides-wrap {
        position: relative;
        .slick-slide {
            margin: 0 0.75rem;
            @media screen and (min-width: 768px) {
                margin: 0 1.5rem 0 0;
            }
        }
        /* Buttons */
        .slick-arrow {
            background: url('button-slick-slider.png') center center no-repeat transparent;
            bottom: calc(calc(1.25rem + 42px) * -1);
            color: transparent;
            left: calc(50% - 18px);
            position: absolute;
            width: 2.25rem;
            height: 2.25rem;
            z-index: 10;
            &.slick-prev {
                transform: rotate(180deg) translateX(1.75rem);
            }
            &.slick-next {
                transform: translateX(1.75rem);
            }
        }
    }

    /* ------------------------------------------------------------------ */
    /* Teal: stacked full-width cards, no slider at any breakpoint.       */
    /* Gradient background + bottom accent color are fixed by position.  */
    /* ------------------------------------------------------------------ */
    &.section-card-container-teal {
        background-color: var(--dark-teal-alt);
        padding-top: 2.5rem;
        @media screen and (min-width: 1200px) {
            background: url('background-decoration-cards-teal.png') center center repeat-x var(--dark-teal-alt);
            background-size: 123px 862px;
        }

        .curve-transition path {
            fill: var(--dark-teal-alt);
        }  


        .text-image-headline,
        .copy-wrap p {
            color: var(--neutral-light);
            font-size: clamp(1.25rem, 2vw, 2rem);
            
        }

        .cards-wrap {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            align-items: center;
            margin-top: 2rem;
        }

        .card-wrap {
            align-items: center;
            background-color: var(--neutral-light);
            border-radius: 16px;
            border-bottom: 6px solid;
            color: var(--dark-teal-alt);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            max-width: 450px;
            padding: 2rem 2rem 2rem 2.5rem;
            text-align: center;
            @media screen and (min-width: 768px) {
                display: block;
                min-width: 678px;
                text-align: left;
            }
            @media screen and (min-width: 1200px) {
                padding: 3rem 4.75rem;
                min-width: 1000px;
                max-width: 1000px;
            }
            
            &.card-wrap--1 { 
                background: linear-gradient(180deg, #FFFFF5 3.25%, #F0F7DC 100%);
                border-bottom: 5px solid var(--green-light);
            }     
            &.card-wrap--2 { 
                background: var(--Background-to-light-blue, linear-gradient(0deg, #D1F6F2 0%, #FFFFF5 60.58%), #FFFFF5);
                border-bottom-color: #9BE6DB; 
            }
            &.card-wrap--3 { 
                background: var(--Pink-linear, linear-gradient(180deg, #FFFFF5 32.69%, rgba(255, 201, 189, 0.74) 100%), #FFFEEB);
                border-bottom-color: #FC452B; 
            }
            @media screen and (min-width: 768px) {
                &.card-wrap--1 { 
                    background: linear-gradient(90deg, #FFFFF5 3.25%, #F0F7DC 100%);
                    border-bottom: 5px solid var(--green-light);
                }     
                &.card-wrap--2 { 
                    background: var(--Background-to-light-blue, linear-gradient(270deg, #D1F6F2 0%, #FFFFF5 60.58%), #FFFFF5);
                    border-bottom-color: #9BE6DB; 
                }
                &.card-wrap--3 { 
                    background: var(--Pink-linear, linear-gradient(90deg, #FFFFF5 32.69%, rgba(255, 201, 189, 0.74) 100%), #FFFEEB);
                    border-bottom-color: #FC452B; 
                }   
            }             
        }

        .card-image {
            flex: 0 0 auto;
            margin: 0;
            width: 100%;
            max-width: calc(236px + 1.5rem);
            order: 3;
            @media screen and (min-width: 768px) {
                float: right; 
                max-width: calc(236px + 3rem);
                padding-left: 3rem;
            }
            @media screen and (min-width: 1200px) {
                max-width: calc(329px + 4rem);
                padding-left: 4rem;
            }
            img {
                aspect-ratio: 1 / 1;
                border-radius: 50%;
                object-fit: cover;
            }
        }

        .card-headline {
            color: var(--teal-dark);
            font-size: clamp(2.25rem, 4vw, 4rem);
            font-weight: bold;
            line-height: 1.125;
            margin: 0 0 1.5rem;
            @media screen and (min-width: 768px) {
                margin: 1rem 0 1rem;;
            }
            @media screen and (min-width: 1200px) {
                line-height: 1.25;
            }
        }

        .card-content {
            order: 1;
            .copy-wrap {
                margin: 0;
                @media screen and (min-width: 768px) {
                    margin-bottom: 1.5rem;
                    text-align: left;                
                }
            }
            p {
                color: var(--teal-dark);
                font-size: 1rem;
                @media screen and (min-width: 1200px) {
                    font-size: 1.25rem;
                    max-width: 85%;
                }
            }
        }
        a.btn.btn-secondary {
            margin: 0;
            order: 2;
        }
    }

    /* ------------------------------------------------------------------ */
    /* Resources: slider on mobile/tablet, static 3-up row from 1024px.  */
    /* Wave-texture desktop background, no curved top texture below it.  */
    /* ------------------------------------------------------------------ */
    &.section-card-container-resources {
        background-color: var(--gradient-light);
        background: var(--gradient-light);
        color: var(--teal-dark);
        padding-top: 2.5rem;
        position: relative;
        > * {
            text-decoration: none;
            border: 0;
        }
        h2 {
            color: var(--teal-dark);
        }
        @media screen and (min-width: 1200px) {
            background: url('background-decoration-cards-resources.png') center top 52.5% repeat-x var(--gradient-light);
            background-size: 123px 325px;
        }
        
        h3 {
            font-size: 1.25rem;
            @media screen and (min-width: 1024px) {
                font-size: 1.5rem !important;
            }
        }
        .inner {
            @media screen and (min-width: 1024px) {
                padding-bottom: 3rem !important;
                padding-top: 3.75rem !important;
            }
        }
        .slides-wrap {
            .slick-slide {
                height: 464px;
            }
        }
        .copy-wrap {
            margin-left: 0;
            margin-right: 0;
        }
        .btn.btn-quaternary {
            bottom: 1.5rem;
            left: 1.5rem;
            position: absolute;
            transition: left 0.125s linear;
        }

        .cards-wrap {
            gap: 1rem;
            margin-top: 2rem;
        }

        .card-wrap {
            &::before {
                position: absolute;
                content: '';
                width: 100%;
                height: 500px;
                background: var(--color-mustard);
                z-index: 0;
                left: 0;
                right: 0;
                bottom: 0;
                top: 0;
                opacity: 1;
                transition: opacity 0.125s linear;
            }
            background: linear-gradient(180deg, #FFFFF5 3.25%, #F0F7DC 100%) left top repeat var(--color-mustard);
            border-radius: 12px;
            border-bottom: 5px solid var(--green-light);
            overflow: hidden;
            padding: 1.25rem;
            position: relative;
            text-align: left;
            width: 100%;
            > * {
                position: relative;
                z-index: 1;
            }
            &:hover {
                &::before {
                    opacity: 0;
                }
                .btn.btn-quaternary, a.btn.btn-quaternary {
                    left: 2rem;
                }                
            }
        }

        .card-eyebrow {
            color: var(--dark-teal-alt);
            font-size: 1.25rem;
            font-weight: 700;
            margin: 0 0 1rem;
            text-transform: uppercase;
            text-decoration: none !important;
        }

        .card-image {
            margin: 0 0 1.25rem;
            max-height: 190px;
            overflow: hidden;
            img {
                aspect-ratio: 16 / 10;
                object-fit: cover;
            }
        }

        .card-headline {
            color: var(--teal-dark);
            font-size: clamp(1.25rem, 2vw, 1.5rem);
            font-weight: bold;
            margin: 0;
            text-align: left;
            text-wrap: pretty;
            line-height: 1.125;
        }
        .copy-wrap {
            margin: 0;
            max-width: none;
            text-align: left;
        }

        .card-container-view-all {
            display: block;
            margin: calc(2.5rem + 36px + 1.25rem) auto 0;
            width: fit-content;
        }

        /* Desktop: slider becomes a static 3-up row, arrows hidden */
        @media screen and (min-width: 1024px) {
            padding-top: 7rem;
        }
    }

    /* ------------------------------------------------------------------ */
    /* Green: slider on mobile/tablet (2-up at tablet); a flex-based      */
    /* static row (flex: 0 0 50% per card) takes over once the theme's    */
    /* Slick init unslicks above its configured breakpoint. Background    */
    /* color only — texture is managed outside this stylesheet.          */
    /* ------------------------------------------------------------------ */
    &.section-card-container-green {
        background: linear-gradient(180deg, #00A87B 0%, #008F67 74.52%, #008760 100%);
        text-align: center;
        padding-bottom: calc(5rem + 36px) !important;
        position: relative;
        padding-top: 0 !important;
        @media screen and (min-width: 768px) {
            padding-top: 2.5rem !important;
        }
        @media screen and (min-width: 1024px) {
            background-image: url('background-decoration-cards-green.png'), linear-gradient(180deg, #00A87B 0%, #008F67 74.52%, #008760 100%);
            background-repeat: repeat-x, no-repeat;
            background-position: bottom left, center center;
        }
        .curve-transition {
            position: absolute;
            top: -59px;
            width: 100%;
            left: 50%;
            transform: translatex(-50%);
            z-index: 1;
            svg {
                max-width: 100%;
            }
        }
        .inner {
            @media screen and (min-width: 1024px) {
                padding-left: 0;
                padding-right: 0;
            }
        }

        .text-image-headline {
            margin-bottom: 2rem;
        }
        .text-image-headline,
        .text-image-headline + .copy-wrap p {
            color: var(--color-mustard-light);
            text-align: center;
        }


        .slides-wrap .slick-arrow {
            background-image: url('btn-slick-slider-white.png');
            bottom: calc(-2.5rem - 36px);
        }
        .cards-wrap {
            gap: 1.5rem;
            @media screen and(max-width: 768px) {
                margin-top: 2rem;
            }
        }

        .card-wrap {
            background-color: var(--color-mustard-light);
            border-radius: 16px;
            padding: 1.5rem;
            text-align: left;
            border-bottom: 5px solid var(--gradient-light);
            
            .card-image {
                border-radius: 8px;
                margin: 0 0 1rem;
                overflow: hidden;
                img {
                    aspect-ratio: 16 / 10;
                    object-fit: cover;
                }
            }
            
            .card-headline {
                color: var(--teal-dark);
                font-size: 2rem;
                line-height: 1;
                margin-bottom: 1.5rem !important;
                text-align: left;
                font-weight: bold;
                @media screen and (min-width: 1024px) {
                    font-size: 2.5rem;
                }
            }
            
            .copy-wrap {
                margin: 0 0 1rem;
                max-width: none;
                text-align: left;
                p {
                    color: var(--teal-dark);
                    font-size: 1rem;
                    line-height: 1.33;
                    @media screen and (min-width: 768px) {
                        font-size: 1.25rem;
                    }
                }
            }
            a.btn.btn-secondary {
                margin-top: 1rem;
            }
        }

        /* Static fallback layout once Slick is unslicked at whatever
           breakpoint the theme's init script chooses. Per instruction:
           each card takes flex: 0 0 50% (accounting for the row gap)
           from 768px up, rather than a fixed grid. */
        @media screen and (min-width: 1024px) {
            .cards-wrap {
                justify-content: center;
                display: flex;
                flex-wrap: wrap;
                row-gap: 1.5rem;
                column-gap: 1.5rem;
            }
            .card-wrap {
                flex: 0 0 calc(50% - 3rem);
            }
        }
    }
}