﻿.client-logos {
    padding: 4rem 0; /* Increased padding for more breathing room */
    background-color: #f8f9fa; /* Light background to make logos stand out */
    overflow: hidden; /* Prevents overflow issues */
}

.logo-carousel-container {
    position: relative;
    padding: 0 40px; /* Added side padding */
    margin-top: 3rem; /* Extra margin from the section header */
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0; /* Added vertical padding */
}

.logo-track {
    display: flex;
    transition: transform 1s ease; /* Smooth sliding transition */
    gap: 2rem; /* Space between logos */
}

.logo-item {
    flex: 0 0 160px; /* Fixed width for consistent layout */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    background: white;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    transition: transform 0.3s ease;
    margin: 0 10px;
}

    .logo-item:hover {
        transform: translateY(-5px); /* Lift effect on hover */
    }

    .logo-item img {
        max-width: 100%;
        height: auto;
        filter: grayscale(100%); /* Black and white by default */
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .logo-item:hover img {
        filter: grayscale(0%); /* Color on hover */
        opacity: 1;
    }

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9); /* Translucent white */
    border: 1px solid #e5e7eb;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
}

    .carousel-button:hover {
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        color: #2d3748;
        border-color: #d1d5db;
    }

    .carousel-button:active {
        transform: translateY(-50%) scale(0.98); /* Slight press effect */
    }

    .carousel-button:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15); /* Focus indication */
    }

    .carousel-button.prev {
        left: -10px;
    }

    .carousel-button.next {
        right: -10px;
    }

    .carousel-button svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
    }

@media (max-width: 768px) {
    .logo-item {
        flex: 0 0 150px; /* Slightly smaller on mobile */
    }
}
