/* CAROUSEL OVERRIDE CSS - FIX FOR index.html */

.trusted-clients {
    padding: 80px 0;
    background-color: transparent;
}

.carousel-header {
    text-align: center;
    margin-bottom: 50px;
}

.carousel-header .section-title__title {
    font-size: 40px;
    color: #1b1525;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: #777181;
    font-weight: 400;
    line-height: 28px;
}

/* FIX: Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    overflow: hidden !important;
    padding: 30px 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
    width: 100%;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
    display: none !important;
}

/* FIX: Carousel Track - Main Animation */
.carousel-track {
    display: flex !important;
    gap: 20px;
    animation: scroll-carousel 45s linear infinite !important;
    padding: 0 20px;
    margin: 0;
    width: fit-content;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* FIX: Logo Groups */
.logo-group {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    min-width: max-content;
}

/* FIX: Client Logo Items */
.client-logo-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    min-width: 200px;
    height: 150px;
    padding: 20px;
    background-color: white;
    border: 1px solid #e9e9ee;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

.client-logo-item.logo-smaller img {
    transform: scale(0.9);
}

/* ANIMATION: Scroll */
@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* RESPONSIVE: Tablet */
@media (max-width: 768px) {
    .trusted-clients {
        padding: 60px 0;
    }
    
    .carousel-header {
        margin-bottom: 30px;
    }
    
    .carousel-header .section-title__title {
        font-size: 30px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }

    .client-logo-item {
        min-width: 170px;
        height: 120px;
        padding: 15px;
    }

    .carousel-track {
        gap: 15px;
        padding: 0 15px;
    }

    .logo-group {
        gap: 15px;
    }
}

/* TAB BUTTONS HEIGHT FIX */
.why-choose-one__tab-box .tab-buttons .tab-btn span {
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    height: auto !important;
}

/* RESPONSIVE: Mobile */
@media (max-width: 480px) {
    .trusted-clients {
        padding: 40px 0;
    }
    
    .client-logo-item {
        min-width: 130px;
        height: 100px;
        padding: 12px;
    }

    .carousel-track {
        gap: 10px;
        padding: 0 10px;
    }

    .logo-group {
        gap: 10px;
    }

    .carousel-header .section-title__title {
        font-size: 24px;
    }
}
