.clients-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0px;
    margin-bottom: 50px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.clients-carousel-heading {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.clients-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-carousel-slide-track {
    display: flex;
    gap: 30px;
    width: fit-content;
    justify-content: flex-start;
    margin-bottom: 20px;
    margin-top: 20px;
}

.clients-carousel.animate .clients-carousel-slide-track {
    animation: scroll 40s linear infinite;
}

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

.clients-carousel-slide {
    height: 180px;
    width: 220px;
    padding: 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.clients-carousel-slide:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.clients-carousel-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.clients-carousel-slide:hover img {
    transform: scale(1.1);
}

.clients-carousel-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1),
        rgba(0, 0, 0, 0.1)
    );
    opacity: 0.7;
    z-index: 1;
}

.clients-carousel-slide a {
    text-decoration: none;
    color: inherit;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .clients-carousel {
        height: 220px;
    }

    .clients-carousel-slide {
        height: 140px;
        width: 160px;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50%));
    }
}
