/* Client Testimonials Section - Split Design */

.testimonials {
    padding: var(--spacing-2xl) 0;
    background: #F0F9FF;
    position: relative;
    overflow: hidden;
}

/* SVG pattern container for slanted lines - will be created by JS */
.pattern-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.45;
}

.pattern-lines svg {
    width: 100%;
    height: 100%;
}

/* Floating animated shapes */
.testimonials::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: rgba(46, 178, 227, 0.05);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: rgba(255, 179, 52, 0.05);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.testimonials-header .section-title {
    color: var(--color-navy-blue);
    text-align: center;
}

.testimonials-header .section-title .gradient-text {
    background: linear-gradient(135deg, #2EB2E3, #95E1FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 0 2px;
}

.testimonials-header .section-subtitle {
    color: var(--color-accent-blue-1);
    text-align: center;
}

/* Split Layout Container */
.testimonials-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    position: relative;
}

/* Vertical Divider */
.testimonials-split::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, #2EB2E3, transparent);
    transform: translateX(-50%);
    z-index: 2;
}

/* Left Side - Client Testimonials */
.clients-section {
    position: relative;
}

.testimonial-section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #1A4C8B;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(46, 178, 227, 0.2);
    box-shadow: 0 10px 30px rgba(26, 76, 139, 0.3);
}

.clients-section .testimonial-section-header {
    background: #1A4C8B;
    border-color: #2EB2E3;
}

.testimonial-section-header h3 {
    font-size: var(--fs-h2);
    color: #FFFFFF;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-header);
}

.testimonial-section-header p {
    font-size: var(--fs-body);
    color: #95E1FF;
    margin: 0;
    text-align: center;
}

/* Right Side - Doctor Testimonials */
.doctors-section {
    position: relative;
}

.doctors-section .testimonial-section-header {
    background: #1A4C8B;
    border-color: #FFB334;
}

/* Carousel Containers */
.testimonials-carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    padding: var(--spacing-sm) 0;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Testimonial Cards */
.testimonial-card {
    background: #1A375B;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    box-shadow: 0 6px 20px rgba(26, 55, 91, 0.25);
    position: relative;
    border: 1.5px solid rgba(205, 241, 255, 0.15);
    overflow: hidden;
    transition: var(--transition-normal);
    flex-shrink: 0;
    margin-bottom: var(--spacing-md);
}

/* Client Cards - Light Blue Accent */
.clients-section .testimonial-card {
    border-color: rgba(46, 178, 227, 0.3);
}

.clients-section .testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(46, 178, 227, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.clients-section .testimonial-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 40px rgba(46, 178, 227, 0.4);
    border-color: #2EB2E3;
    background: #1F4166;
}

/* Doctor Cards - Orange Accent */
.doctors-section .testimonial-card {
    border-color: rgba(255, 179, 52, 0.3);
}

.doctors-section .testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 179, 52, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.doctors-section .testimonial-card:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 40px rgba(255, 179, 52, 0.4);
    border-color: #FFB334;
    background: #1F4166;
}

.quote-icon {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    opacity: 0.08;
    fill: #CDF1FF;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-family: var(--font-header);
    color: var(--color-white);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(46, 178, 227, 0.25);
}

/* Client Avatar - Light Blue */
.clients-section .testimonial-avatar {
    background: linear-gradient(135deg, #2EB2E3, #95E1FF);
}

/* Doctor Avatar - Orange */
.doctors-section .testimonial-avatar {
    background: linear-gradient(135deg, #FFB334, #FF8C42);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-info h4 {
    font-size: var(--fs-body);
    color: #FFFFFF;
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 12px;
    color: #CDF1FF;
    font-style: italic;
    margin-bottom: 4px;
}

.testimonial-rating {
    display: flex;
    gap: 3px;
}

.star {
    width: 14px;
    height: 14px;
    fill: var(--color-orange);
}

.testimonial-text {
    font-size: 13px;
    color: #CDF1FF;
    line-height: 1.5;
    font-style: italic;
    position: relative;
    z-index: 1;
    text-align: justify;
}

/* Tablet */
@media (max-width: 1199px) {
    .testimonials-split {
        gap: var(--spacing-lg);
    }

    .testimonials-carousel {
        height: 380px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .testimonials {
        padding: var(--spacing-2xl-mobile) 0;
    }

    .testimonials-header {
        margin-bottom: var(--spacing-xl-mobile);
    }

    .testimonials-split {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md-mobile);
    }

    .testimonials-split::before {
        display: block;
        width: 2px;
    }

    .testimonials-carousel {
        height: 280px;
    }

    .testimonial-section-header {
        padding: var(--spacing-sm-mobile);
        margin-bottom: var(--spacing-md-mobile);
        min-height: 95px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .testimonial-section-header h3 {
        font-size: var(--fs-h3-mobile);
        margin-bottom: 2px;
    }

    .testimonial-section-header p {
        font-size: var(--fs-small-mobile);
    }

    .testimonial-card {
        padding: var(--spacing-md-mobile);
        min-height: 180px;
        display: flex;
        flex-direction: column;
    }

    .testimonial-text {
        flex: 1;
    }

    /* Disable hover effects on mobile */
    .clients-section .testimonial-card:hover,
    .doctors-section .testimonial-card:hover {
        transform: none;
        box-shadow: 0 6px 20px rgba(26, 55, 91, 0.25);
    }

    .testimonial-header {
        gap: var(--spacing-sm-mobile);
        margin-bottom: var(--spacing-sm-mobile);
    }

    .testimonial-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .testimonial-info h4 {
        font-size: var(--fs-body-mobile);
    }

    .testimonial-role {
        font-size: 11px;
    }

    .star {
        width: 12px;
        height: 12px;
    }

    .testimonial-text {
        font-size: var(--fs-small-mobile);
        line-height: 1.4;
    }

    .quote-icon {
        width: 24px;
        height: 24px;
    }
}

/* Small Mobile - Extra fixes for very small screens */
@media (max-width: 479px) {
    .testimonials-split {
        gap: var(--spacing-sm-mobile);
    }

    .testimonials-split::before {
        width: 1px;
    }

    .testimonials-carousel {
        height: 260px;
    }

    .testimonial-section-header {
        padding: var(--spacing-xs-mobile) var(--spacing-sm-mobile);
        min-height: 85px;
    }

    .testimonial-section-header h3 {
        font-size: 14px;
        line-height: 1.2;
    }

    .testimonial-section-header p {
        font-size: 10px;
        line-height: 1.3;
    }

    .testimonial-card {
        padding: var(--spacing-sm-mobile);
        min-height: 165px;
    }

    .testimonial-header {
        gap: 8px;
        margin-bottom: 8px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .testimonial-info h4 {
        font-size: 12px;
        line-height: 1.2;
    }

    .testimonial-role {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .star {
        width: 11px;
        height: 11px;
    }

    .testimonial-text {
        font-size: 11px;
        line-height: 1.35;
    }

    .quote-icon {
        width: 20px;
        height: 20px;
        top: var(--spacing-sm-mobile);
        right: var(--spacing-sm-mobile);
    }
}