/* Logo Carousel Styles */
.logo-carousel-section {
    padding: 40px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
	border-radius:15px;
}

.logo-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.carousel-title2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.logo-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 50px;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
    fill: #666;
    transition: fill 0.3s ease;
}

.carousel-nav:hover svg {
    fill: #333;
}

/* Logo Track */
.logo-track {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
}

/* Animation continues on hover - no pause */

/* Logo Items */
.logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 80px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.logo-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-item img {
    max-width: 100%;
    max-height: auto;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

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

/* Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-210px * 16)); /* (logo width + gap) * number of original logos */
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .logo-item {
        width: 150px;
        height: 70px;
        padding: 12px 20px;
    }

    .logo-item img {
        max-height: 40px;
    }

    .logo-track {
        gap: 25px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-175px * 16));
        }
    }
}

@media (max-width: 768px) {
    .logo-carousel-section {
        padding: 30px 0;
    }

    .logo-carousel-wrapper {
        padding: 15px 40px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }

    .logo-item {
        width: 130px;
        height: 60px;
        padding: 10px 15px;
    }

    .logo-item img {
        max-height: 35px;
    }

    .logo-track {
        gap: 20px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 16));
        }
    }
}

@media (max-width: 480px) {
    .logo-carousel-wrapper {
        padding: 10px 35px;
    }

    .carousel-nav {
        width: 30px;
        height: 30px;
    }

    .carousel-nav svg {
        width: 14px;
        height: 14px;
    }

    .logo-item {
        width: 110px;
        height: 50px;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .logo-item img {
        max-height: 30px;
    }

    .logo-track {
        gap: 15px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-125px * 16));
        }
    }
}
