.featured-logos {
    position: relative;
}

.featured-logos__wrap {
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    padding: 35px 20px 25px;
    margin-top: -115px;
    position: relative;
    z-index: 5;
}

.logo-carousal .slick-slide {
    margin: 0 12px;
}

.featured-logos__heading {
    text-align: center;
    padding-bottom: 22px;
    margin-bottom: 30px;
    position: relative;
}

.featured-logos__heading::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    display: block;
    width: 100%;
    height: 8px;
    background-image: radial-gradient(#4c6b47 5px, transparent 3px);
    background-size: 14.4px 7px;
    background-repeat: repeat-x;
    transition: all ease-in-out 0.3s;

}

.featured-logos__heading h2 {
    display: inline-block;
    padding-left: 50px;
    position: relative;
}

.featured-logos__heading h2:before {
    content: '\e90e';
    font-family: 'environment-icons';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%) rotate(-65deg);
    font-weight: normal;
    font-size: 35px;
    color: var(--soft-green);
}

@media (min-width: 768px) {
    .featured-logos__wrap {
        padding: 35px 45px 25px;
        margin-top: -126px;
    }

    .logo-carousal .slick-slide {
        margin: 0 20px;
    }

    .featured-logos__heading {
        padding-bottom: 5px;
    }

    .featured-logos__heading::before {
        left: 50%;
        transform: translate(-50%, 0);
        width: 287px;
    }
}

@media (min-width: 1200px) {
    .featured-logos__wrap {
        padding: 40px 95px 40px;
        width: calc(100% + 100px);
        margin-top: -91px;
        margin-left: -50px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo-carousal .slick-slide {
        margin: 0 26px;
    }

    .featured-logos__heading {
        text-align: left;
        padding: 28px 0;
        margin-bottom: 0;
        width: 350px;
    }

    .featured-logos__heading h2 {
        margin-bottom: 0;
    }

    .featured-logos__heading::before {
        content: "";
        position: absolute;
        left: auto;
        right: 0;
        bottom: 0px;
        width: 8px;
        height: 98%;
        background-image: radial-gradient(#6a8c2e 3px, transparent 0px);
        background-size: 11px 15px;
        background-repeat: repeat-y;
        background-position: center;

    }

    .logo-carousal {
        width: calc(100% - 350px);
        padding-left: 40px;
    }

    .featured-logos__heading h2::before {
        padding-left: 5px;
    }
}

@media (min-width: 1600px) {
    .featured-logos__wrap {
        padding: 40px 95px 40px;
        width: calc(100% + 288px);
        margin-left: -144px;
    }
}


/* Static layout: 4 or fewer logos - no Slick, plain flex grid */

.logo-carousal__static {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 30px;
}

.logo-carousal__static .logo-carousal-item {
    flex: 0 0 calc(50% - 15px);
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .logo-carousal__static {
        flex-wrap: nowrap;
        gap: 0 40px;
    }

    .logo-carousal__static .logo-carousal-item {
        flex: 1 1 0;
    }
}

/* Shared logo image sizing */

.logo-carousal__logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.logo-carousal__logo a {
    display: block;
    transition: opacity 0.2s ease;
}

.logo-carousal__logo a:hover,
.logo-carousal__logo a:focus {
    opacity: 0.75;
    outline-offset: 4px;
}