/**************************
DYNAMIC PRODUCT TICKER CSS
**************************/

/* Container for the ticker section */
.partner-section-container {
    padding-top: 2rem;
    position: relative;
    background-color: #F4F0EA;
    z-index: 4;
}

/* Outer ticker wrapper */
.ticker-container .ticker-tape {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    height: 100px;
    margin: 0 auto;
}

/* Gradient overlays at edges */
.ticker-container .ticker-tape:before,
.ticker-container .ticker-tape:after {
    content: "";
    position: absolute;
    top: 0;
    height: 100px;
    width: 250px;
    z-index: 2;
    pointer-events: none;
}

/*all logos */
.slide-track {
    display: flex;
    gap: 60px;
    animation: ticker 180s linear infinite;
}

/*slide/logo */
.slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 160px;
}

/*logos inside slides */
.partner-logo {
    max-width: 225px;
    max-height: 60px;
    object-fit: contain;
    height: auto;
}


/*animation*/
@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-160px * 28)); /* 28 logos */
    }
}

@media (max-width: 768px) {
    .slide {
        width: 120px;
    }
    .partner-logo {
        max-width: 150px;
        max-height: 50px;
    }
}
