/* Trusted Brands Section Styles */
.trusted-brands-section {
    background-color: white; /* Changed to white background */
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

/* Carousel Container */
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Carousel Animation */
.carousel {
    display: inline-block;
    animation: scroll 25s linear infinite;
    width: max-content;
}

/* Individual Brand Image Container */
.carousel-img {
    display: inline-block;
    margin: 0 20px;
    height: 70px; /* Set to 70px as requested */
    width: auto; /* Auto width based on aspect ratio */
    flex-shrink: 0;
}

/* Brand Image Styling */
.carousel-img img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    filter: none; /* Show original colors by default */
    transition: all 0.3s ease;
}

/* Hover Effect - Increase size only */
.carousel-img:hover img {
    transform: scale(1.2);
}

/* Scrolling Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .trusted-brands-section {
        padding: 3rem 0;
    }

    .carousel-img {
        margin: 0 15px;
        height: 60px; /* Tablet size */
        width: auto; /* Auto width based on aspect ratio */
    }

    .carousel {
        animation: scroll 20s linear infinite;
    }
}

@media (max-width: 480px) {
    .trusted-brands-section {
        padding: 2rem 0;
    }

    .carousel-img {
        margin: 0 10px;
        height: 50px; /* Mobile size */
        width: auto; /* Auto width based on aspect ratio */
    }

    .carousel {
        animation: scroll 18s linear infinite;
    }
}

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

/* Smooth fade edges for better visual effect */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Ensure proper positioning */
.carousel-container {
    position: relative;
}
