.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%));
    }
}

/* =========================================
   Echo Valley - Home Slider Typography Fix
   Keep structure, improve readability
   ========================================= */

/* Desktop */
.home_slider .item .slide_caption h2 {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
}

.home_slider .item .slide_caption p.center-block {
    font-size: 20px;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 18px;
    display: block; /* ensure visible on desktop */
}

.home_slider .item .slide_caption .btn {
    font-size: 16px;
    padding: 14px 34px;
}

/* Tablet */
@media (max-width: 991px) {
    .home_slider .item .slide_caption h2 {
        font-size: 44px;
    }
    .home_slider .item .slide_caption p.center-block {
        font-size: 18px;
    }
}

/* Mobile - keep slider visible + readable */
@media (max-width: 767px) {
    .row.slider {
        display: block !important;
    } /* undo theme hiding slider */
    .home_slider .item .slide_caption {
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
    }
    .home_slider .item .slide_caption h2 {
        font-size: 32px;
    }
    .home_slider .item .slide_caption p.center-block {
        font-size: 16px;
        display: block !important; /* undo theme hiding paragraph */
    }
    .home_slider .item .slide_caption .btn + .pkg_price {
        display: inline-block !important;
    } /* undo theme hiding 2nd btn if any */
}

/* Very small mobile */
@media (max-width: 480px) {
    .row.slider {
        display: block !important;
    }
    .home_slider .item .slide_caption h2 {
        font-size: 28px !important;
    }
    .home_slider .item .slide_caption p.center-block {
        font-size: 15px !important;
        display: block !important;
    }
}
