/* Logo Carousel Styles */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .logo-carousel-track {
        animation: none;
    }
}

.logo-carousel-wrapper {
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.logo-carousel-wrapper:before,
.logo-carousel-wrapper:after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.logo-carousel-wrapper:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.logo-carousel-wrapper:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.logo-carousel {
    width: 100%;
    overflow: hidden;
}

.logo-carousel-track {
    display: flex;
    /* Adjust the animation duration based on the number of logos */
    animation: scroll 40s linear infinite;
    width: fit-content;
}

.logo-carousel .slide {
    height: 150px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 100px;
    margin: 0 20px;
}

.logo-carousel .slide img {
    max-width: 150px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    opacity: 0.7;
    border-radius: 4px;
}

.logo-carousel .slide img:hover,
.logo-carousel .slide img:focus {
    transform: translateZ(20px);
    opacity: 1;
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Focus visible for keyboard navigation */
.logo-carousel .slide img:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .logo-carousel .slide img {
        opacity: 1;
        border: 1px solid #000;
    }
}

/* Flexslider overrides */
.logo-carousel .flex-direction-nav {
    display: none; /* Hide navigation arrows */
}

.logo-carousel .flex-control-paging {
    display: none; /* Hide pagination dots */
} 