/**
 * Testimonials Slider Styles
 * 
 * @package AIBus
 */

/* Swiper Container */
.testimonials-grid.swiper {
    position: relative;
    margin: 40px 0;
}

/* Swiper Wrapper */
.swiper-wrapper {
    align-items: stretch;
}

/* Individual Slide */
.testimonial-card.swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active Slide */
.testimonial-card.swiper-slide-active {
    transform: scale(1.02);
    opacity: 1;
}

/* Inactive Slides */
.testimonial-card.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Navigation Arrows - Hidden */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

/* Pagination Dots - Hidden */
.swiper-pagination {
    display: none !important;
}

.swiper-pagination-bullet {
    display: none !important;
}

.swiper-pagination-bullet-active {
    display: none !important;
}

.swiper-pagination-bullet:hover {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-grid.swiper {
        padding: 0 15px;
        margin: 30px 0;
    }
    
    /* Navigation arrows hidden on tablet */
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    /* Pagination hidden on tablet */
    .swiper-pagination {
        display: none !important;
    }
    
    .swiper-pagination-bullet {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .testimonials-grid.swiper {
        padding: 0 10px;
        margin: 20px 0;
    }
    
    /* Navigation arrows hidden on mobile */
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    /* Pagination hidden on mobile */
    .swiper-pagination {
        display: none !important;
    }
    
    .swiper-pagination-bullet {
        display: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Navigation arrows hidden on touch devices */
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        display: none !important;
    }
    
    .swiper-pagination-bullet:hover {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    .swiper-pagination-bullet {
        display: none !important;
    }
    
    .swiper-pagination-bullet-active {
        display: none !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card.swiper-slide,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination-bullet {
        display: none !important;
    }
    
    .testimonial-card.swiper-slide-active {
        transform: none;
    }
}
