.home-brands-wrapper {
    padding: 0;
    margin-top: 12.5rem;
    height: 15.813rem;
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow: hidden;
    direction: rtl;
    width: 100%;
    position: relative;
    margin-bottom: 10rem;
}

.home-brands-wrapper .headline {
    background: #D2E3E7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 35%;
    z-index: 2;
}

.home-brands-wrapper .headline h1 {
    font-size: 28px;
    font-weight: 200;
    margin-right: 6.25rem;
}

.home-brands-wrapper .headline h2 {
    font-size: 32px;
    font-weight: 500;
    margin-right: 6.25rem;
}

.brand-logo-slide {
    width: 4.375rem;
    height: auto;
    flex-shrink: 0;
    padding: 0 1.5rem;
}


.brand-logo-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-brands-wrapper .brands-logos-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
    flex: 1;
}

/* Solid white margins on left and right */
.home-brands-wrapper .brands-logos-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6.25rem;
    background: white;
    z-index: 1;
    pointer-events: none;
}

.home-brands-wrapper .brands-logos-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20rem;
    background: white;
    z-index: 1;
    pointer-events: none;
}

.home-brands-wrapper .brands-logos-container .upper-slider {
    display: flex;
    will-change: transform;
}

.home-brands-wrapper .brands-logos-container .lower-slider {
    display: flex;
    will-change: transform;
}


/* Mobile Styles */
@media (max-width: 768px) {
    .home-brands-wrapper {
        flex-direction: column;
        height: auto;
        align-items: center;
        gap: 3rem;
        margin-top: 0;
        margin-bottom: 6rem;
    }

    .home-brands-wrapper .headline {
        width: 100%;
        height: 17rem;
        align-items: center;
    }

    .home-brands-wrapper .headline h1 {
        font-size: 32px;
        margin-right: 0;
    }

    .home-brands-wrapper .headline h2 {
        font-size: 37px;
        margin-right: 0;
    }

    .brand-logo-slide {
        width: 13rem;
        padding: 0 1rem;
    }

    .home-brands-wrapper .brands-logos-container {
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .home-brands-wrapper .brands-logos-container::before,
    .home-brands-wrapper .brands-logos-container::after {
        display: none;
    }
}