.testimonials {
    position: relative;
    padding: var(--spacing-20) 0;
}

.testimonials__container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--spacing-8);
    text-align: center;
}

.testimonials__title {
    font-family: var(--font-primary);
    font-size: 52px;
    line-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 48px;
}

.testimonials__title--bold {
    font-weight: 700;
    font-style: normal;
}

.testimonials__title--italic {
    font-weight: 300;
    font-style: italic;
}

/* Card wrapper with decorative borders */
.testimonials__card {
    position: relative;
    width: 649px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Inner frame - 618px × 374px, solid border, fades left */
.testimonials__card::before {
    content: '';
    position: absolute;
    box-sizing: border-box;
    width: 618px;
    height: 374px;
    left: calc(50% - 618px/2 - 26px);
    top: 0;
    border: 1.5px solid rgba(155, 159, 142, 0.2);
    border-radius: 40px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 25%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to right, transparent 25%, rgba(0,0,0,1) 100%);
}

/* Outer frame - 649px × 374px, dotted border, fades left, 0.2 opacity */
.testimonials__card::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
    width: 649px;
    height: 374px;
    left: calc(50% - 649px/2 - 10.5px);
    top: 22px;
    border: 1px dashed rgba(155, 159, 142, 1);
    border-radius: 40px;
    opacity: 0.2;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 10%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to right, transparent 10%, rgba(0,0,0,1) 100%);
}

.testimonials__slider {
    position: relative;
    min-height: 314px;
    width: 566px;
    margin: 0 auto;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.testimonial--active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Author section */
.testimonial__author {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 0;
}

.testimonial__avatar {
    height: 92px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.testimonial__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.testimonial__name {
    font-family: var(--font-primary);
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    color: #FFFFFF;
}

.testimonial__role {
    font-family: var(--font-secondary);
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 0.03em;
    color: #9B9F8E;
}

.testimonial__role-highlight {
    color: #CAFF33;
}

/* Content section with quote marks */
.testimonial__content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 4px;
    width: 568px;
    min-height: 180px;
}

.testimonial__text {
    position: relative;
    font-family: var(--font-primary);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    text-align: left;
    padding-right: 24px;
}

/* Quote marks */
.testimonial__quote {
    width: 12px;
    height: auto;
    object-fit: contain;
}

.testimonial__quote--open {
    position: absolute;
    left: -18px;
    top: 0;
}

.testimonial__quote--close {
    position: absolute;
    right: 23px;
    bottom: -3px;
}

/* Dots navigation - centered horizontally, positioned above inner frame bottom */
.testimonials__dots {
    position: absolute;
    bottom: 41px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.testimonials__dot {
    position: relative;
    width: 40px;
    height: 4px;
    border: 1px solid #9B9F8E;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.testimonials__dot::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -8px;
    right: -8px;
    bottom: -12px;
}

.testimonials__dot:hover {
    background: rgba(155, 159, 142, 0.3);
}

.testimonials__dot--active {
    background: #9B9F8E;
    border-color: #9B9F8E;
}

/* ==========================================================================
   Mobile Testimonials Styles
   Base: 375px | Breakpoint: 640px
   ========================================================================== */

@media (max-width: 640px) {
    .testimonials {
        padding: 30px 0;
    }

    .testimonials__container {
        max-width: 375px;
        padding: 0 20px;
    }

    .testimonials__title {
        font-size: 26px;
        line-height: 32px;
        margin-bottom: 24px;
    }

    /* Card wrapper - 335px × 397px */
    .testimonials__card {
        width: 335px;
        padding: 0px 0 35px 0;
    }

    /* Inner frame - mobile size, keep gradient fade like desktop */
    .testimonials__card::before {
        width: 335px;
        height: 397px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 40px;
    }

    /* Hide outer dashed frame on mobile */
    .testimonials__card::after {
        display: none;
    }

    .testimonials__slider {
        width: 298px;
        min-height: 314px;
        margin: 0 auto;
    }

    .testimonial {
        gap: 20px;
    }

    /* Author section - align avatar bottom with name bottom */
    .testimonial__author {
        gap: 13px;
        align-items: flex-end;
        margin-top: -7px;
    }

    .testimonial__avatar {
        height: 85px;
        border-radius: 4px;
    }

    .testimonial__name {
        font-size: 18px;
        line-height: 28px;
    }

    .testimonial__role {
        font-size: 12px;
        line-height: 12px;
    }

    /* Content section */
    .testimonial__content {
        width: 289px;
        min-height: 260px;
    }

    .testimonial__text {
        font-size: 12px;
        line-height: 20px;
        padding-right: 0;
    }

    /* Quote marks - show on mobile, adjust positioning */
    .testimonial__quote {
        width: 10px;
    }

    .testimonial__quote--open {
        left: -14px;
        top: 0;
    }

    .testimonial__quote--close {
        right: 0;
        bottom: -3px;
    }

    /* Dots navigation */
    .testimonials__dots {
        bottom: 14px;
        gap: 12px;
    }

    .testimonials__dot {
        width: 40px;
        height: 4px;
    }
}
