/* Image Rotator Styles */
.logo-scroll {
    overflow: hidden;
    padding: 40px 0;
    background: white;
    position: relative;
    width: 100%;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.logo-scroll::before,
.logo-scroll::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 200px;
    z-index: 2;
    top: 0;
}

.logo-scroll::before {
    left: 0;
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-scroll::after {
    right: 0;
    background: linear-gradient(to left, white 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-track {
    display: flex;
    width: calc(250px * 20);
    /* Adjust based on number of items */
    animation: scroll 40s linear infinite;
}

.logo-item {
    width: 250px;
    height: 140px;
    /* Increased height to accommodate name below image */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}

.logo-item img {
    max-height: 70px;
    /* Slightly larger */
    max-width: 180px;
    transition: all 0.3s ease;
    object-fit: contain;
    margin-bottom: 8px;
    /* Space for the name */
}

.logo-item img:hover {
    transform: scale(1.1);
}

.logo-item .logo-name-below {
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.logo-item .logo-name-only {
    font-weight: 700;
    color: #cbd5e0;
    font-size: 1.5rem;
    text-transform: uppercase;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 10));
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-item {
        width: 150px;
        height: 100px;
    }

    .logo-item img {
        max-height: 50px;
        margin-bottom: 5px;
    }

    .logo-item .logo-name-below {
        font-size: 9px;
    }

    .logo-item .logo-name-only {
        font-size: 1.1rem;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-150px * 10));
        }
    }

    .logo-scroll::before,
    .logo-scroll::after {
        width: 50px;
    }
}