/**
 * Testimonials Section Styles
 * Displays testimonials in a slider with 50% visible side testimonials
 */

/* ==========================================================================
   Section Container
   ========================================================================== */

.testimonials-section {
    width: 100%;
    padding: 80px 0 0 0;
    overflow: hidden;
}

.testimonials-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ==========================================================================
   Section Header
   ========================================================================== */

.testimonials-header {
    text-align: center;
    padding: 0 20px;
}

.testimonials-subheading {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7DB4B5;
    margin: 0 0 16px 0;
}

.testimonials-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2B5F9E;
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   Testimonials Slider
   ========================================================================== */

.testimonials-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 60px 0;
}

.testimonials-slider {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   Testimonial Cards Base
   ========================================================================== */

.testimonial-card {
    position: absolute;
    top: 0;
    width: 950px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

/* Active (centered) testimonial */
.testimonial-card.active {
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    visibility: visible;
    z-index: 3;
    pointer-events: auto;
}

/* Previous testimonial (25% visible on left with 30px gap) */
.testimonial-card.prev {
    left: 0;
    transform: translateX(calc(-75% + 25px));
    opacity: 0.5;
    visibility: visible;
    z-index: 2;
    pointer-events: none;
}

/* Next testimonial (25% visible on right with 30px gap) */
.testimonial-card.next {
    right: 0;
    transform: translateX(calc(75% - 25px));
    opacity: 0.5;
    visibility: visible;
    z-index: 2;
    pointer-events: none;
}

/* ==========================================================================
   Card Inner Styling
   ========================================================================== */

.testimonial-card-inner {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 375px;
    max-height: 375px;
    position: relative;
    overflow: visible;
}

/* ==========================================================================
   Avatar Circle
   ========================================================================== */

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7DB4B5 0%, #5A9FA8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
    position: relative;
    top: -85px;
    margin-bottom: -35px;
}

.testimonial-initials {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

/* ==========================================================================
   Testimonial Content
   ========================================================================== */

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 660px;
}

.testimonial-text p {
    margin: 0;
}

.testimonial-patient-type {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   Navigation Arrows
   ========================================================================== */

.testimonial-navigation {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    z-index: 10;
}

.testimonial-nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 46px;
    height: 46px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial-nav-btn:hover {
    transform: scale(1.1);
}

.testimonial-nav-btn:active {
    transform: scale(0.95);
}

.nav-arrow-left,
.nav-arrow-right {
    width: 46px;
    height: 46px;
    display: block;
}

.nav-arrow-left {
    transform: rotate(180deg);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1400px) {
    .testimonial-card {
        width: 800px;
    }
}

@media (max-width: 1200px) {
    .testimonial-card {
        width: 700px;
    }
    
    .testimonial-card-inner {
        height: auto;
        max-height: 400px;
    }
    
    .testimonial-card.prev {
        transform: translateX(-20%) scale(0.85);
    }
    
    .testimonial-card.next {
        transform: translateX(20%) scale(0.85);
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 1.5rem;
    }
    
    .testimonials-heading {
        font-size: 2rem;
    }
    
    .testimonials-subheading {
        font-size: 0.75rem;
    }
    
    .testimonials-slider {
        min-height: 380px;
        padding: 0 20px;
    }
    
    .testimonial-card {
        width: 90%;
        max-width: 500px;
    }
    
    .testimonial-card.active {
        transform: translateX(-50%);
    }
    
    /* Reduce visibility of side testimonials on mobile */
    .testimonial-card.prev {
        transform: translateX(-30%) scale(0.75);
        opacity: 0.3;
    }
    
    .testimonial-card.next {
        transform: translateX(30%) scale(0.75);
        opacity: 0.3;
    }
    
    .testimonial-card-inner {
        padding: 2rem 1.5rem 2rem;
        height: auto;
        max-height: 400px;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
        top: -52px;
        margin-bottom: -30px;
    }
    
    .testimonial-initials {
        font-size: 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-navigation {
        margin-bottom: 20px;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 2rem 1rem;
    }
    
    .testimonials-heading {
        font-size: 1.75rem;
    }
    
    .testimonial-card {
        width: 95%;
    }
    
    .testimonial-card-inner {
        padding: 1.5rem 1rem 1.5rem;
        height: auto;
        max-height: 400px;
    }
    
    .testimonial-text {
        font-size: 0.9375rem;
    }
    
    .testimonial-navigation {
        gap: 1rem;
        margin: 30px 0 0 0;
    }
    
    .testimonial-nav-btn,
    .nav-arrow-left,
    .nav-arrow-right {
        width: 46px;
        height: 46px;
    }
}
