/* Testimonials Slider Styles */

/* Mobile testimonials slider container */
.testimonials-slider-container {
    display: none; /* Hidden by default, shown on mobile */
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Slider layout */
.testimonials-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 300%; /* 3 slides each 100% width */
}

.testimonial-slide {
    width: 33.333%; /* Each slide takes 1/3 of the total width */
    padding: 1px;
    box-sizing: border-box;
}

/* Ensure testimonial cards maintain their styling in the slider */
.testimonial-slide .testimonial {
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Navigation buttons - simple arrow style without circle */
.testimonials-nav-btn {
    position: absolute;
    top: 84.4%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--accent-color);
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    transition: all 0.2s ease;
}

.testimonials-prev-btn {
    left: 5px;
}

.testimonials-next-btn {
    right: 5px;
}

.testimonials-nav-btn:hover {
    color: #fff;
}

/* Indicator dots positioned at the same height as name and role, right side of the card */
.testimonials-indicators {
    position: absolute;
    right: 30px;
    bottom: 33px; /* Same height as name and role */
    display: flex;
    gap: 6px;
    align-items: center;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Media query to show slider on mobile and tablet devices */
@media screen and (max-width: 1366px) {
    .desktop-testimonials {
        display: none; /* Hide desktop grid on mobile and tablet */
    }
    
    .testimonials-slider-container {
        display: block; /* Show slider on mobile and tablet */
    }
    
    /* Adjust testimonial card styling for mobile and tablet */
    .testimonial-slide .testimonial {
        min-height: 230px;
        padding: 25px 20px;
    }

    .author {
        top : 74%
    }
    .quote {
        font-size: 16px;
    }
    p.explanation-desktop-text {
        font-size: 15px;
    }
}
