.brand-module-carousel {
    align-items: stretch;
    gap: 1rem;
}

.brand-module-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    flex: 0 0 clamp(160px, 18vw, 230px);
    min-height: 118px;
    place-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(36, 31, 29, .08);
    border-radius: 16px;
    background: #ef8014;
    box-shadow: 0 10px 26px rgba(36, 31, 29, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.brand-module-card::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(227, 98, 8, .10);
    border-radius: 12px;
    pointer-events: none;
}

.brand-module-card:hover,
.brand-module-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(227, 98, 8, .22);
    box-shadow: 0 16px 34px rgba(36, 31, 29, .12);
}

.brand-module-card img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 180px;
    height: 86px;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
    filter: contrast(1.08) saturate(1.03) drop-shadow(0 7px 14px rgba(36, 31, 29, .12));
}

@media (max-width: 575.98px) {
    .brand-module-card {
        flex-basis: 150px;
        min-height: 98px;
        padding: .75rem 1rem;
    }

    .brand-module-card::after {
        inset: 7px;
    }

    .brand-module-card img {
        max-width: 130px;
        height: 68px;
    }
}
