/* Partners Section Styles */

/* Logo scroller container */
.logo-scroller-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: transparent;
    padding: 20px 0;
}

/* Logo scroller animation */
.logo-scroller {
    display: flex;
    align-items: center;
    animation: scroll-logos 40s linear infinite;
    width: calc(200% + 40px); /* Accommodate duplicated content */
    gap: 20px;
}

/* Individual logo items */
.logo-item {
    flex: 0 0 auto;
    width: 300px !important;
    height: 300px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(196, 24, 44, 0.1);
    overflow: hidden;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Logo images */
.logo-item img {
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: all 0.3s ease;
    filter: grayscale(20%) brightness(0.95);
    border-radius: 12px;
}

.logo-item:hover img {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.05);
}

/* Logo links */
.logo-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Scrolling animation */
@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */






/* Animation pause on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .logo-scroller {
        animation: none;
    }
    
    .logo-scroller-container {
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .logo-scroller {
        width: auto;
        justify-content: flex-start;
        padding-right: 20px;
    }
}



/* Focus styles for accessibility */
.logo-item a:focus,
.logo-item:focus-within {
    outline: 3px solid #C4182C;
    outline-offset: 2px;
    border-radius: 12px;
}

/* Loading state */
.logo-item img[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Print styles */
@media print {
    .logo-scroller-container {
        overflow: visible;
    }
    
    .logo-scroller {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .logo-item {
        break-inside: avoid;
        margin-bottom: 10px;
    }
}
