/*
 * Logo Slider Widget Styles
 * Adapted from original HTML content
 */

.logo-slider-container-wrapper {
    /* This wrapper is for the background color control */
    font-family: system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

.logo-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo-slider__swiper {
    padding: 20px 0;
    width: 100%;
    overflow: visible;
}

.swiper-wrapper {
    transition-timing-function: linear !important;
    align-items: center;
}

.swiper-slide {
    width: auto !important;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-link {
    display: block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.brand-link:hover {
    /* transform: scale(1.08); - Controlled by Elementor setting */
    z-index: 10;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    max-height: 60px;
    width: 160px;
    transition: all 0.3s ease;
    position: relative;
}

.logo-image {
    width: 100%;
    height: auto;
    /* max-height: 40px; - Controlled by Elementor setting */
    object-fit: contain;
    /* filter: grayscale(100%) brightness(0.9); - Controlled by Elementor setting and inline CSS */
    /* opacity: 0.6; - Controlled by Elementor setting */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter, opacity;
}

/* Hover effects are now mostly controlled by inline CSS from the widget's render method */
/*
.brand-link:hover .logo-image {
    filter: grayscale(0%) brightness(1.1) contrast(1.1) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.15));
    opacity: 1;
}
*/

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper-slide {
        padding: 0 16px;
    }
    
    .logo-container {
        width: 140px;
        min-height: 50px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        padding: 0 12px;
    }
    
    .logo-container {
        width: 120px;
        min-height: 40px;
        max-height: 40px;
    }
}

/* Optional: Add a gradient fade effect at the edges */
.logo-slider-container.fade-effect::before,
.logo-slider-container.fade-effect::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.logo-slider-container.fade-effect::before {
    left: 0;
    /* background: linear-gradient(to right, #111827, transparent); - Color controlled by Elementor setting */
}

.logo-slider-container.fade-effect::after {
    right: 0;
    /* background: linear-gradient(to left, #111827, transparent); - Color controlled by Elementor setting */
}
