/* Client Horizontal Scroll Layout Styling */

.brand {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    overflow: hidden;
}

.brand::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.brand::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Make subtitle more visible */
.section__title .sub-title {
    display: inline-block;
    color: #ffeb3b;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section__title .title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.section__title .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

/* Client slider with navigation and auto-scroll */
.clients-scroll-outer {
    position: relative;
    padding: 0 50px;
    margin: 20px 0;
}

/* Horizontal scrolling container */
.clients-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.clients-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.clients-scroll-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.clients-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 10px 5px;
    min-width: min-content;
}

/* Auto-scrolling animation */
.auto-scroll {
    animation: scrollLeft 30s linear infinite;
}

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

/* Pause auto-scroll on hover */
.clients-scroll-container:hover .auto-scroll {
    animation-play-state: paused;
}

.client-item {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.client-item img {
    max-width: 100%;
    max-height: 80px;
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-item:hover img {
    transform: scale(1.05);
}

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

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

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.clients-nav-btn i {
    color: #4361ee;
    font-size: 14px;
}

/* Add a gradient fade effect at edges */
.clients-scroll-container::before,
.clients-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.clients-scroll-container::before {
    left: 50px;
    background: linear-gradient(to right, rgba(67, 97, 238, 0.9), rgba(67, 97, 238, 0));
}

.clients-scroll-container::after {
    right: 50px;
    background: linear-gradient(to left, rgba(67, 97, 238, 0.9), rgba(67, 97, 238, 0));
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .client-item {
        width: 180px;
        height: 100px;
        padding: 15px;
    }
    
    .client-item img {
        max-height: 70px;
    }
    
    .section__title .title {
        font-size: 28px;
    }
    
    .clients-nav-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 575px) {
    .client-item {
        width: 160px;
        height: 90px;
        padding: 10px;
    }
    
    .client-item img {
        max-height: 60px;
    }
    
    .section__title .title {
        font-size: 24px;
    }
    
    .section__title .sub-title {
        font-size: 14px;
        padding: 5px 15px;
    }
    
    .clients-scroll-outer {
        padding: 0 40px;
    }
    
    .clients-nav-btn {
        width: 30px;
        height: 30px;
    }
}
