/* carousel.css — Sprint-style infinite logo marquee */

.logo-carousel {
    width: 100%;
    background: #f9fafb;
    /* Light gray like mtandao sections */
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.logo-carousel h2 {
    color: rgb(237, 36, 78);
    font-weight: bold;
    text-align: center;
    
}
.logo-carousel p {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.carousel-track {
    display: flex;
    width: calc(250px * 12);
    /* Adjust if you add more logos */
    animation: scroll-left 25s linear infinite;
}

.logo-item {
    flex: 0 0 auto;
    width: 250px;
    /* Each logo container */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-item img {
    max-width: 160px;
    max-height: 60px;
    object-fit: contain;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.logo-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Keyframes for continuous right-to-left scroll */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-item {
        width: 180px;
        padding: 10px;
    }

    .logo-item img {
        max-width: 120px;
    }
}