/* ═══════════════════════════════════════════════════════════════
   testimonials-slider.css — Smooth Infinite Slider Animation
   ═══════════════════════════════════════════════════════════════ */

/* Wrapper for the slider - hides overflow horizontally only */
.testimonials-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
    margin: -20px 0;
    /* Ensure smooth rendering */
    contain: layout;
}

/* Container that holds all cards and moves */
.testimonials-slider-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    padding: 10px 0;
    /* Enable hardware acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    /* Smooth transitions */
    transition: none;
}

/* Smooth transition when navigating via dots */
.testimonials-slider-track.transitioning {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual testimonial card - responsive widths */
.testimonials-slider-track .testimonial-card {
    flex-shrink: 0;
    flex-grow: 0;
    /* Desktop: 3 cards - more accurate calculation accounting for section padding */
    width: calc((100vw - 24rem - 48px) / 3); /* 24rem = 12rem padding each side, 48px = gaps */
    max-width: 600px;
    min-width: 380px;
    transition: transform 0.3s ease;
    /* Ensure cards are always visible during transitions */
    will-change: transform;
    backface-visibility: hidden;
}

/* Optional: Add subtle scale effect on hover */
.testimonials-slider-track .testimonial-card:hover {
    transform: translateY(-4px);
}

/* Pagination/Counter indicator */
.testimonials-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 0 16px;
}

.testimonials-pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 10px;
    background-color: #E8E8E8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonials-pagination-dot:hover {
    background-color: #D0D0D0;
    transform: scale(1.1);
}

.testimonials-pagination-dot.active {
    width: 40px;
    background-color: #151515;
}

/* View More Button Styling */
.testimonials-slider-track .view-more-btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #0083CF;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    margin-top: 8px;
}

.testimonials-slider-track .view-more-btn:hover {
    color: #005a8f;
    text-decoration: underline;
}

.testimonials-slider-track .view-more-btn.hidden {
    display: none;
}

/* Ensure text container handles expansion properly */
.testimonials-slider-track .testimonial-text {
    transition: all 0.3s ease;
}


/* Responsive card widths */
@media (max-width: 1200px) {
    .testimonials-slider-track .testimonial-card {
        /* Slightly smaller for medium-large screens */
        width: calc((100vw - 20rem - 48px) / 3);
        max-width: 550px;
        min-width: 360px;
    }
}

@media (max-width: 1024px) {
    .testimonials-slider-track .testimonial-card {
        /* 2 cards on medium screens, accounting for md padding */
        width: calc((100vw - 16rem - 24px) / 2);
        max-width: 600px;
        min-width: 360px;
    }
}

@media (max-width: 768px) {
    .testimonials-slider-track .testimonial-card {
        /* 1 card on tablets, accounting for sm padding */
        width: calc(100vw - 8rem);
        max-width: 600px;
        min-width: 300px;
    }
    
    .testimonials-pagination {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .testimonials-slider-track .testimonial-card {
        /* 1 card on mobile */
        width: calc(100vw - 4rem);
        max-width: 500px;
        min-width: 280px;
    }
    
    .testimonials-slider-track {
        gap: 16px;
    }
    
    .testimonials-pagination {
        margin-top: 20px;
        gap: 6px;
    }
    
    .testimonials-pagination-dot {
        width: 10px;
        height: 10px;
    }
    
    .testimonials-pagination-dot.active {
        width: 32px;
    }
}
