/* Partners Slider - Enhanced Styling */

.ms-partner-area {
    background: #000;
    position: relative;
    overflow: hidden;
}

.ms-partner-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(233, 30, 99, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Partner Slider Container */
.ms-partner-active {
    position: relative;
    padding: 60px 0;
}

.ms-partner-active .swiper-wrapper {
    align-items: center;
}

/* Individual Partner Slides */
.ms-partner-active .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: auto;
    min-height: 120px;
}

/* Partner Images */
.ms-partner-active .swiper-slide img {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2) opacity(0.7);
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto;
}

/* Hover Effect */
.ms-partner-active .swiper-slide:hover img,
.ms-partner-active .swiper-slide a:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: scale(1.1);
}

/* Link Styling */
.ms-partner-active .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Border Container Effect */
.ms-partner-active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 80%;
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 50px;
    pointer-events: none;
    z-index: 0;
}

.ms-partner-active .swiper-wrapper {
    position: relative;
    z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .ms-partner-active .swiper-slide img {
        max-width: 160px;
        max-height: 70px;
    }
}

@media (max-width: 992px) {
    .ms-partner-active {
        padding: 50px 0;
    }
    
    .ms-partner-active .swiper-slide img {
        max-width: 140px;
        max-height: 60px;
    }
    
    .ms-partner-active .swiper-slide {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .ms-partner-active {
        padding: 40px 0;
    }
    
    .ms-partner-active .swiper-slide img {
        max-width: 120px;
        max-height: 55px;
    }
    
    .ms-partner-active .swiper-slide {
        min-height: 90px;
        padding: 15px;
    }
    
    .ms-partner-active::after {
        width: 90%;
        height: 75%;
    }
}

@media (max-width: 576px) {
    .ms-partner-active {
        padding: 30px 0;
    }
    
    .ms-partner-active .swiper-slide img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .ms-partner-active .swiper-slide {
        min-height: 80px;
        padding: 10px;
    }
}

/* Animation for slides */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ms-partner-active .swiper-slide {
    animation: fadeInSlide 0.6s ease forwards;
}

/* Stagger animation delay for each slide */
.ms-partner-active .swiper-slide:nth-child(1) { animation-delay: 0.1s; }
.ms-partner-active .swiper-slide:nth-child(2) { animation-delay: 0.2s; }
.ms-partner-active .swiper-slide:nth-child(3) { animation-delay: 0.3s; }
.ms-partner-active .swiper-slide:nth-child(4) { animation-delay: 0.4s; }
.ms-partner-active .swiper-slide:nth-child(5) { animation-delay: 0.5s; }
.ms-partner-active .swiper-slide:nth-child(n+6) { animation-delay: 0.6s; }
