/**
 * Testimonials Carousel - Flex Part Styles
 */

.testimonials-carousel {
    padding: 20px 0 60px;
}

/* Header - Title and Link in same row */
.testimonials-carousel__header {
    margin-bottom: 26px;
}

.testimonials-carousel__header .row {
    align-items: flex-end;
}

/* Title - H2 style */
.testimonials-carousel__title {
    font: var(--font-h2);
    letter-spacing: var(--font-h2-spacing);
    color: var(--color-purple-dark, #1D004B);
    margin: 0;
}

/* Link uses btn-text class from style.css */
.testimonials-carousel__header .btn-text {
    white-space: nowrap;
}

/* Slider wrapper with arrows */
.testimonials-carousel__slider {
    position: relative;
}

.testimonials-carousel__wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Track container — clips to one slide */
.testimonials-carousel__track {
    width: 100%;
    overflow: hidden;
    padding: 25px 0;
    margin: -25px 0;
}

/* Inner flex row — slides sit side by side, JS shifts via translateX */
.testimonials-carousel__track-inner {
    display: flex;
    transform: translateX(0);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each slide = 100% of track width */
.testimonials-carousel__slide {
    width: 100%;
    flex-shrink: 0;
}

/* Testimonial Card — image + content side by side */
.testimonial-card {
    display: flex;
    width: 100%;
    padding: 24px 40px 24px 24px;
    align-items: stretch;
    gap: 60px;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 4px 15px 3px rgba(39, 43, 43, 0.08);
}

/* Image Column — 50% width */
.testimonial-card__image {
    width: 50%;
    min-height: 420px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--brand-03424-a, #03424A);
    overflow: hidden;
}

.testimonial-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Column */
.testimonial-card__content {
    display: flex;
    padding: 32px 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 36px;
    flex: 1 0 0;
}

/* Logo */
.testimonial-card__logo {
    margin-bottom: 32px;
}

.testimonial-card__logo img {
    max-height: 60px;
    width: auto;
}

/* Quote - Body XLarge */
.testimonial-card__quote {
    font: var(--font-body-xl);
    color: var(--color-text);
    margin-bottom: auto;
}

.testimonial-card__quote p {
    margin: 0;
}

.testimonial-card__quote p + p {
    margin-top: 16px;
}

/* Author Container */
.testimonial-card__author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 24px;
}

/* Author Name - Poppins 18px, 600 weight */
.testimonial-card__name {
    color: var(--color-black, #000);
    font-family: var(--font-display-poppins, "Poppins", sans-serif);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
}

/* Author Title - Body Regular */
.testimonial-card__position {
    font: var(--font-body);
    color: var(--color-text);
}

/* Navigation Arrows - Positioned on card edges */
.testimonials-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    width: 44px;
    height: 46px;
    padding: 10px 5px;
    justify-content: center;
    align-items: center;
    background: rgba(115, 54, 227, 0.80);
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.testimonials-carousel__arrow:hover {
    background: rgba(115, 54, 227, 1);
}

.testimonials-carousel__arrow--prev {
    left: -14px;
}

.testimonials-carousel__arrow--next {
    right: -14px;
}

.testimonials-carousel__arrow svg {
    width: 10px;
    height: 16px;
}

/* Mobile arrows row — hidden on desktop */
.testimonials-carousel__arrows-row {
    display: none;
}

/* Dots Navigation */
.testimonials-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 26px;
}

.testimonials-carousel__dot {
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials-carousel__dot svg {
    width: 16px;
    height: 16px;
}

.testimonials-carousel__dot svg circle {
    fill: #AAA5BA;
    transition: fill 0.2s ease;
}

.testimonials-carousel__dot.is-active svg circle {
    fill: #7336E3;
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonial-card {
        flex-direction: column;
        padding: 24px;
        gap: 32px;
    }

    .testimonial-card__image {
        width: 100%;
        height: 300px;
        min-height: auto;
    }

    .testimonial-card__content {
        padding: 0;
    }

    .testimonials-carousel__arrow--desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .testimonials-carousel {
        padding: 0;
    }

    .testimonials-carousel .container {
        padding: 0 16px;
    }

    /* Title - Mobile/H2 */
    .testimonials-carousel__title {
        color: var(--color-purple-dark, #1D004B);
        font-family: "Funnel Sans", sans-serif;
        font-size: 32px;
        font-weight: 700;
        line-height: 120%;
        letter-spacing: 0.16px;
    }

    .testimonials-carousel__header .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .testimonials-carousel__header .col-auto {
        width: 100%;
    }

    /* Wrapper — stacks: cards → dots → arrows (per Figma) */
    .testimonials-carousel__wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        position: relative;
    }

    /* Track - horizontal scroll, centered */
    .testimonials-carousel__track {
        display: flex;
        flex-direction: row;
        gap: 26px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        width: 100%;
        padding: 25px 0;
        margin: -25px 0;
    }

    .testimonials-carousel__track::-webkit-scrollbar {
        display: none;
    }

    /* Flatten track-inner for native scroll */
    .testimonials-carousel__track-inner {
        display: contents;
    }

    /* Show ALL slides on mobile (horizontal scroll) */
    .testimonials-carousel__slide {
        flex-shrink: 0;
        scroll-snap-align: center;
        display: flex;
        justify-content: center;
    }

    /* Card */
    .testimonial-card {
        width: calc(100vw - 64px);
        min-width: 0;
        max-width: 386px;
        flex-direction: column;
        padding: 24px 24px 32px 24px;
        gap: 24px;
        align-items: stretch;
        border: 1px solid #F5F5F6;
        box-shadow: 0 4px 15px 3px rgba(39, 43, 43, 0.08);
    }

    .testimonial-card__image {
        width: 100%;
        height: auto;
        min-height: auto;
        aspect-ratio: 344 / 194;
    }

    .testimonial-card__content {
        padding: 0;
        gap: 48px;
        justify-content: space-between;
    }

    .testimonial-card__logo {
        margin-bottom: 0;
    }

    .testimonial-card__logo img {
        max-height: 40px;
    }

    .testimonial-card__quote {
        color: var(--color-text, #000);
        font-family: "Funnel Sans", sans-serif;
        font-size: 22px;
        font-weight: 400;
        line-height: 150%;
    }

    .testimonial-card__author {
        align-items: center;
        text-align: center;
    }

    .testimonial-card__name {
        color: #000;
        font-family: "Poppins", sans-serif;
        font-size: 18px;
        font-weight: 600;
        line-height: 130%;
    }

    .testimonial-card__position {
        font-family: "Funnel Sans", sans-serif;
        font-size: 18px;
        text-wrap: balance;
    }

    /* Mobile arrows — on card border, lower third */
    .testimonials-carousel__arrow--mobile {
        display: flex;
        position: static;
        transform: none;
        pointer-events: auto;
    }

    .testimonials-carousel__arrows-row {
        display: flex;
        position: absolute;
        bottom: 20%;
        left: -6px;
        right: -6px;
        justify-content: space-between;
        padding: 0;
        z-index: 10;
        pointer-events: none;
    }

    /* Dots */
    .testimonials-carousel__dots {
        margin-top: 0;
    }
}

