/* Supportby Section*/
.m-supportedby-section{
    height: 300px;
}

.m-slider {
    height: 150px;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.m-slider::before,
.m-slider::after {
    position: absolute;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    content: '';
    height: 100%;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}

.m-slider::before {
    left: 0;
    top: 0;
}

.m-slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.m-slide-track {
    /* 14 original slides + 14 duplicate slides = 28 total slides */
    /* Each slide is 180px wide + 65px gap = 245px per slide */
    width: calc(245px * 28);
    display: flex;
    gap: 65px;
    animation: scroll 40s linear infinite;
}

.m-slide {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.m-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* filter: grayscale(100%); */
    transition: filter 0.3s ease;
}

.m-slide:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by exactly half the width (14 slides) to create seamless loop */
        transform: translateX(calc(-245px * 14));
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .m-supportedby-section {
        height: 300px;
    }
    
    .m-slider {
        height: 300px;
    }
    
    .m-slide-track {
        /* Mobile: each slide is 100px wide + 35px gap = 135px per slide */
        width: calc(135px * 28);
        gap: 35px;
        animation: scroll-mobile 35s linear infinite;
    }

    .m-slide {
        width: 100px;
        height: 80px;
    }

    @keyframes scroll-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-135px * 14));
        }
    }
}