/* Responsive Sliders Styles */
/* Only applies when sliders are active (mobile view) */

/* Base Swiper Styles Override */
.swiper {
    width: 100%;
    height: auto;
    overflow: visible;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Pagination Styles */
.swiper-pagination {
    position: relative !important;
    margin-top: 30px;
    bottom: auto !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #00D4FF;
    transform: scale(1.2);
}

/* Dynamic bullets for better mobile experience */
.swiper-pagination-bullet-active-main {
    background: #50ba84;
}

.swiper-pagination-bullet-active-prev,
.swiper-pagination-bullet-active-next {
    background: rgb(0 255 149 / 60%);
    transform: scale(0.8);
}

.swiper-pagination-bullet-active-prev-prev,
.swiper-pagination-bullet-active-next-next {
    background: rgba(0, 255, 153, 0.3);
    transform: scale(0.6);
}

/* Features Slider Specific Styles */
@media (max-width: 767px) {
    .features-swiper .swiper-slide {
        padding: 0 10px;
    }
    
    .features-swiper .feature-card {
        width: 100%;
        margin: 0;
    }
}

/* Infrastructure Slider Specific Styles */
@media (max-width: 767px) {
    .infrastructure-swiper {
        padding-bottom: 50px;
    }
    
    .infrastructure-swiper .swiper-slide {
        padding: 0 10px;
    }
    
    .infrastructure-swiper .infra-card {
        width: 100%;
        margin: 0;
    }
    
    
}

/* Academy Slider Specific Styles */
@media (max-width: 767px) {
    .academy-swiper {
        padding-bottom: 50px;
    }
    
    .academy-swiper .swiper-slide {
        padding: 0 10px;
    }
    
    .academy-swiper .academy-card {
        width: 100%;
        margin: 0;
        padding: 10px 15px 25px;
    }
}

/* Blog Slider Specific Styles */
@media (max-width: 767px) {
    .blog-swiper {
        padding-bottom: 50px;
    }
    
    .blog-swiper .swiper-slide {
        padding: 0 10px;
    }
    
    .blog-swiper .blog-card-item {
        width: 100%;
        margin: 0;
    }
}

/* Smooth transitions for slider initialization */
.swiper-container-initialized {
    transition: all 0.3s ease;
}

/* Touch feedback */
.swiper-slide {
    cursor: grab;
}

.swiper-slide:active {
    cursor: grabbing;
}

/* Ensure cards maintain their styling within sliders */
.swiper-slide .feature-card,
.swiper-slide .infra-card,
.swiper-slide .academy-card,
.swiper-slide .blog-card-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 480px) {
    .swiper-pagination {
        margin-top: 20px;
    }
    
    .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
}

@media (min-width: 480px) and (max-width: 640px) {
    .swiper-slide {
        padding: 0 8px;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .swiper-slide {
        padding: 0 6px;
    }
}

/* Ensure proper spacing when sliders are not active */
@media (min-width: 768px) {
    .swiper-pagination {
        display: none !important;
    }
}

/* Loading state */
.swiper-container-loading {
    opacity: 0.7;
}

/* Accessibility improvements */
.swiper-pagination-bullet:focus {
    outline: 2px solid #00D4FF;
    outline-offset: 2px;
}

/* Prevent text selection during swipe */
.swiper-slide {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Re-enable text selection for card content */
.swiper-slide .feature-card *,
.swiper-slide .infra-card *,
.swiper-slide .academy-card *,
.swiper-slide .blog-card-item * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}