/* Testimonials: base styles and responsive layouts. */

.testimonials-section {
    position: relative;
    width: 100%;
    background-color: var(--white);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9.22px 20px;
    background: var(--color-badge);
    border-radius: 138.29px;
    margin-bottom: 20px;
}

.testimonials-badge span {
    font-family: var(--font-family-inter);
    font-weight: var(--font-weight-600);
    font-size: var(--text-sm);
    line-height: var(--leading-42);
    color: var(--text-primary);
}

.testimonials-title {
    font-family: var(--font-family-inter);
    font-weight: var(--font-weight-600);
    font-size: var(--text-3xl);
    line-height: var(--leading-8);
    text-align: center;
    color: var(--text-primary);
    margin: 0;
    max-width: 524px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-radius: 5.996px;
    padding: 30px 25px 25px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 335.77px;
    height: 332.77px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    display: none;
}

.testimonial-quote {
    font-family: var(--font-family-inter);
    font-weight: var(--font-weight-600);
    font-size: var(--text-5xl);
    line-height: 116px;
    color: #1B5A9B;
    margin: -10px 0 -20px 0;
    text-align: left;
    opacity: 1;
}

.testimonial-content {
    font-family: var(--font-family-inter);
    font-weight: var(--font-weight-500);
    font-size: var(--text-sm);
    line-height: var(--leading-41);
    color: var(--color-content);
    margin: 0 0 20px 0;
    font-style: normal;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-divider {
    width: 100%;
    height: 1px;
    background: var(--color-divider);
    margin: 0 0 15px 0;
    border-radius: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author-image {
    width: 43.88px;
    height: 43.88px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-accent);
    border: none;
    flex-shrink: 0;
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-author-name {
    font-family: var(--font-family-inter);
    font-weight: var(--font-weight-600);
    font-size: var(--text-sm);
    line-height: var(--leading-5);
    color: var(--text-primary);
    margin: 0 0 2px 0;
    text-align: left;
}

.testimonial-author-role {
    font-family:  var(--font-family-inter);
    font-weight: var(--font-weight-400);
    font-size: var(--text-xs);
    line-height: var(--leading-4);
    color: var(--text-primary);
    margin: 0;
    text-align: left;
}

.testimonials-slider {
    min-width: 0;
    padding-bottom: 40px;
}

.testimonials-slider .splide__slide {
    display: flex;
    padding-block: 8px;
}

.testimonials-slider .testimonial-card {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

.testimonials-slider .splide__pagination__page.is-active {
    background: var(--text-primary);
}

@media (max-width: 1024px) {
    .testimonial-card {
        padding: 25px;
        height: auto;
        min-height: 300px;
    }

    .testimonial-quote {
        font-size: 60px;
        line-height: 80px;
        margin: -5px 0 -15px 0;
    }

    .testimonial-content {
        font-size: 14px;
        line-height: 17px;
        margin-bottom: 15px;
    }

    .testimonials-title {
        font-size: 28px;
        line-height: 36px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        height: auto;
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 20px;
        height: auto;
        min-height: 260px;
    }

    .testimonial-quote {
        font-size: 50px;
        line-height: 60px;
        margin: -5px 0 -10px 0;
    }

    .testimonial-content {
        font-size: 13px;
        line-height: 16px;
        margin-bottom: 15px;
    }

    .testimonials-title {
        font-size: 24px;
        line-height: 32px;
        padding: 0 15px;
    }

    .testimonial-author-name {
        font-size: 15px;
        line-height: 18px;
    }

    .testimonial-author-role {
        font-size: 8px;
        line-height: 10px;
    }
}