/* Testimonials Carousel Styles */

.testimonials-carousel-section {
    width: 100%;
}

.testimonials-swiper-container {
    position: relative;
        height: 100dvh;
}

/* Background Swiper - Full width, behind content */
.testimonials-background-swiper .swiper-slide {
    position: relative;
}

/* Content Swiper - Centered cards, above background */
.testimonials-content-swiper {
    pointer-events: none;
}

.testimonials-content-swiper .swiper-wrapper {
    pointer-events: none;
    align-items: flex-start;
}

.testimonials-content-swiper .swiper-slide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    padding-top: 10vh;
    height: auto !important;
}

.testimonials-content-swiper .testimonial-card {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Keep card image at consistent position */
.testimonial-card > div:first-child {
    flex-shrink: 0;
}

/* Content area extends naturally */
.testimonial-card > div:last-child {
    flex: 1;
    min-height: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide exit animation - fade out only */
.testimonials-content-swiper .swiper-slide.slide-exit .testimonial-card {
    animation: slideOut 0.5s ease-out forwards;
}

@keyframes slideOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Slide enter animation - disabled, card appears at full opacity */
.testimonials-content-swiper .swiper-slide.slide-enter .testimonial-card {
    opacity: 1;
}

.testimonials-navigation {
    pointer-events: auto;
}

.testimonials-navigation button {
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.testimonials-navigation button:hover:not(.swiper-button-disabled) {
    transform: scale(1.1);
}

.testimonials-button-prev.swiper-button-disabled,
.testimonials-button-next.swiper-button-disabled {
    opacity: 0.25 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Responsive styles */
@media (max-width: 1439px) {
    .testimonials-swiper {
        height: 768px;
    }
    
    .testimonial-card {
        max-width: 360px;
    }
    
    .testimonial-card .h-96 {
        height: 20rem;
    }
}

@media (max-width: 782px) {
    .testimonials-swiper {
        height: 600px;
    }
    
    .testimonial-card {
        max-width: 320px;
    }
    
    .testimonial-card .h-96 {
        height: 16rem;
    }
    
    .testimonial-card .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .testimonials-navigation {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-swiper {
        height: 500px;
    }
    
    .testimonial-card {
        max-width: 280px;
        gap: 1rem;
    }
    
    .testimonial-card .h-96 {
        height: 12rem;
        padding: 1rem;
    }
    
    .testimonial-card .text-2xl {
        font-size: 1.125rem;
        line-height: 1.625rem;
    }
}

