/* Logo Slider Styles */
.logo-slider-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.logo-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slider-button {
    background-color: #00305d;
    border: 1px solid #00305d;
    color: #fff;
    padding: 10px 20px;
    margin-right: 2rem;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo-slider-button:hover {
    background-color: #004a8d;
    border-color: #004a8d;
    color: #fff;
    text-decoration: none;
}

.logo-slider-button i {
    margin-left: 8px;
}

.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    display: flex;
    width: calc(var(--slider-width) * 2); /* Set width for both original and cloned logos */
    animation: scroll 20s linear infinite;
}

.slide {
    flex-shrink: 0;
    height: 80px; /* Set a fixed height for the container */
    width: 200px; /* Increased width for better spacing */
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    max-height: 60px; /* Control the max height of the logo itself */
    width: auto;
    height: auto;
    object-fit: contain; /* Ensures logo scales without distortion */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(var(--slider-width) * -1));
    }
}

@media (max-width: 768px) {
    .logo-slider-container {
        flex-direction: column;
    }

    .logo-slider-button {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}