/* Client Logo Carousel Styles */
.client-logo-carousel-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* Carousel Track */
.carousel-track {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track-inner {
    display: flex;
    height: 100%;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

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

.client-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

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

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

.carousel-nav-btn:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .client-logo-item {
        padding: 10px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .carousel-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .client-logo-item {
        padding: 8px;
        height: 60px;
    }
}

/* Loading Animation */
.client-logo-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Autoplay Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo-carousel-container[data-autoplay="true"] .carousel-track-inner {
    animation: scroll var(--scroll-speed) linear infinite;
}

/* Pause on hover */
.client-logo-carousel-container[data-autoplay="true"][data-pause-on-hover="true"]:hover .carousel-track-inner {
    animation-play-state: paused;
}
