.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}


/* Header
-------------------------------------------------------------- */

.testimonial-slider__header {
    max-width: 860px;
    margin: 0 auto 15px;
    text-align: center;
    text-align: left;
    width: 95%;
}

.testimonial-slider__title {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    color: var(--ib-primary);
}

.testimonial-slider__title h1,
.testimonial-slider__title h2,
.testimonial-slider__title h3,
.testimonial-slider__title h4,
.testimonial-slider__title h5,
.testimonial-slider__title h6 {
    margin: 0;
    color: inherit;
}

.testimonial-slider__description {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.testimonial-slider__description p:last-child {
    margin-bottom: 0;
}


/* Slider
-------------------------------------------------------------- */

.testimonial-slider__slider {
    position: relative;
    max-width: 900px;
    min-height: 320px;
    margin: 0 auto;
}


/* Testimonial
-------------------------------------------------------------- */

.testimonial-slider__item {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 48px 0;

    text-align: center;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        visibility 0.6s ease;

    pointer-events: none;

    opacity: 0;
    width: 95%;
    max-width: 860px;
    margin: 0 auto;
}

.testimonial-slider__item.is-active {
    position: relative;

    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    pointer-events: auto;
}


/* Quote
-------------------------------------------------------------- */

.testimonial-slider__quote {
    position: relative;

    max-width: 860px;
    margin: 0 auto;

    font-size: 22px;
    line-height: 1.4;
    font-style: italic;
    text-align: left;
}

.testimonial-slider__quote::before {
    content: "“";

    display: block;

    margin-bottom: 0;

    font-size: 72px;
    line-height: 0;

    opacity: 0.2;
}


/* Author
-------------------------------------------------------------- */

.testimonial-slider__author {
    margin-top: 32px;
    max-width: 860px;
    width: 100%;
    margin: 32px auto 0;
}

.testimonial-slider__name {
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    
}

.testimonial-slider__role {
    margin-top: 4px;

    font-size: 14px;

    opacity: 0.65;
    text-align: left;
}


/* Progress Navigation
-------------------------------------------------------------- */

.testimonial-slider__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    margin-top: 36px;
}

.testimonial-slider__dot {
    position: relative;
    display: block;
    overflow: hidden;

    width: 48px;
    min-width: 48px;
    height: 10px;
    min-height: 5px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 20px;

    background-color: rgba(0, 0, 0, 0.15);

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.testimonial-slider__dot:hover,
.testimonial-slider__dot:focus-visible {
    background-color: rgba(0, 0, 0, 0.25);
}

.testimonial-slider__dot.is-active {
    transform: scaleY(1.2);
}

.testimonial-slider__dot-progress {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    border-radius: inherit;

    background-color: var(--ib-primary, #000);

    transform: scaleX(0);
    transform-origin: left center;

    pointer-events: none;

    will-change: transform;
}



/* pause */
.testimonial-slider__pause {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    margin: 0 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(0, 0, 0, 1);
    cursor: pointer;
    margin: 0 auto;
}

.testimonial-slider__pause:hover,
.testimonial-slider__pause:focus-visible {
    background-color: rgba(0, 0, 0, 0.08);
}

.testimonial-slider__pause-icon {
    display: block;
    font-size: 26px;
    line-height: 1;
}


/* Mobile
-------------------------------------------------------------- */

@media (max-width: 767px) {

    .testimonial-slider {
        padding: 64px 0;
    }

    .testimonial-slider__header {
        margin-bottom: 36px;
    }

    .testimonial-slider__description {
        font-size: 16px;
    }

    .testimonial-slider__slider {
        min-height: 360px;
    }

    .testimonial-slider__item {
        padding: 32px 0px;
    }

    .testimonial-slider__quote {
        font-size: 23px;
    }

    .testimonial-slider__quote::before {
        font-size: 56px;
    }

    .testimonial-slider__dot {
        width: 36px;
        min-width: 36px;
    }
}


/* Reduced Motion
-------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .testimonial-slider__item {
        transition: none;
    }

}