/**
 * Testimonial Slider
 * Flexible content testimonial carousel with centered desktop/tablet peeks and a stacked mobile card.
 */

.testimonial-slider {
    overflow: hidden;
}

.testimonial-slider__intro {
    margin-bottom: 22px;
    text-align: center;
}

.testimonial-slider__intro h2 {
    font-size: var(--font-size-h2);
    line-height: 1.2;
    margin-bottom: 0;
}

.testimonial-slider__runway {
    padding-left: 22px;
    padding-right: 22px;
}

.testimonial-slider__slider .slick-list {
    overflow: hidden;
}

.testimonial-slider__slider .slick-track {
    display: flex;
}

.testimonial-slider__slider .slick-slide {
    float: none;
    height: auto;
}

.testimonial-slider__slider .slick-slide > div {
    height: 100%;
}

.testimonial-slider__slide {
    height: 100%;
    width: 331px;
}

.testimonial-slider__card {
    background-color: var(--color-surface-cream);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
    min-height: 473px;
    overflow: hidden;
    padding-bottom: 16px;
    width: 100%;
}

.testimonial-slider__media {
    border-radius: 30px;
    height: 259px;
    overflow: hidden;
}

.testimonial-slider__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.testimonial-slider__image--jeffrey {
    object-position: center 24%;
}

.testimonial-slider__image--ryan {
    object-position: 34% 11%;
}

.testimonial-slider__image--brian {
    object-position: center 45%;
}

.testimonial-slider__image--adrian {
    object-position: 35% 20%;
}

.testimonial-slider__image--matthew {
    object-position: 20% 17%;
}

.testimonial-slider__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0 20px;
}

.testimonial-slider__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.testimonial-slider__years {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.testimonial-slider__name {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0 0 15px;
}

.testimonial-slider__quote {
    color: var(--color-paragraph);
    margin: 0;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    max-height: 122px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.testimonial-slider__quote p {
    color: inherit;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.testimonial-slider__quote p:first-child::before {
    content: "\201C";
}

.testimonial-slider__quote p:last-child::after {
    content: "\201D";
}

.testimonial-slider__airline {
    align-items: center;
    border-top: 1px solid var(--border-color-default);
    display: flex;
    justify-content: space-between;
    margin-left: -26px;
    margin-right: -26px;
    margin-top: 25px;
    padding-left: 26px;
    padding-right: 26px;
    padding-top: 25px;
}

.testimonial-slider__airline-label {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.testimonial-slider__airline-name {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-align: right;
}

.testimonial-slider__airline-logo {
    display: block;
    flex: 0 0 auto;
    height: 35px;
    object-fit: contain;
    object-position: right center;
    max-width: 136px;
}

.testimonial-slider__actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.testimonial-slider__nav {
    display: flex;
    gap: 15px;
}

.testimonial-slider__nav-button {
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--color-accent-tan);
    border-radius: 50%;
    color: var(--color-heading);
    display: inline-flex;
    height: 59px;
    justify-content: center;
    padding: 0;
    transition:
        background-color var(--transition-fast) var(--transition-ease),
        border-color var(--transition-fast) var(--transition-ease),
        color var(--transition-fast) var(--transition-ease);
    width: 59px;
}

.testimonial-slider__nav-button .icon-arrow {
    font-size: 19px;
}

.testimonial-slider__nav-button--prev .icon-arrow {
    transform: rotate(180deg);
}

.testimonial-slider__nav-button:hover,
.testimonial-slider__nav-button:focus-visible {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.testimonial-slider__nav-button:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
}


.testimonial-slider__intro {
    padding-right: var(--bs-gutter-x, 26px);
    padding-left: var(--bs-gutter-x, 26px);        
}

@media (min-width: 768px) {
    .testimonial-slider {
        overflow: visible;
    }

    .testimonial-slider .container {
        padding: 0;
    }

    .testimonial-slider__intro {
        padding-right: var(--bs-gutter-x, 52px);
        padding-left: var(--bs-gutter-x, 52px);        
        margin-bottom: 30px;
    }

    .testimonial-slider__quote {
        max-height: 300px;
    }

    .testimonial-slider__runway {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .testimonial-slider__slider {
        width: 100%;
    }

    .testimonial-slider__slider .slick-list {
        overflow: visible;
    }

    .testimonial-slider__slider .slick-track {
        gap: 32px;
    }

    .testimonial-slider__slider .slick-slide {
        flex: 0 0 auto;
    }

    .testimonial-slider__slide {
        width: 400px;
    }

    .testimonial-slider__card {
        min-height: 591px;
        padding-bottom: 25px;
    }

    .testimonial-slider__body {
        padding-left: 26px;
        padding-right: 26px;
    }

    .testimonial-slider__body--with-airline {
        justify-content: space-between;
    }

    .testimonial-slider__name {
        font-size: 28px;
    }

    .testimonial-slider__airline-logo--american {
        width: 207px;
    }

    .testimonial-slider__airline-logo--envoy {
        width: 136px;
    }

    .testimonial-slider__actions {
        margin-top: 30px;
    }
}

@media (min-width: 824px)  and (max-width: 1023px) {
    .testimonial-slider__slide {
        width: 250px;
    }

    .testimonial-slider__airline {
        flex-wrap: wrap;
        flex-direction: row;
    }

    .testimonial-slider__quote {
        max-height: 122px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--color-primary) transparent;
    }    
}

@media (min-width: 1200px) {
    .testimonial-slider__runway {
        overflow: visible;
    }

    .testimonial-slider__intro {
        margin-bottom: 32px;
    }

    .testimonial-slider__intro h2 {
        font-size: 45px;
    }

    .testimonial-slider__name {
        font-size: 32px;
    }

    .testimonial-slider__card {
        min-height: 611px;
    }
}

.testimonial-list__items {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.testimonial-list__item {
    background-color: var(--color-surface-cream);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.testimonial-list__media {
    height: 259px;
    overflow: hidden;
}

.testimonial-list__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.testimonial-list__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 25px;
    padding: 25px 20px 50px;
}

.testimonial-list__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.testimonial-list__meta {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.testimonial-list__name {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0 0 15px;
}

.testimonial-list__quote {
    color: var(--color-paragraph);
    margin: 0;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.testimonial-list__quote p {
    color: inherit;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.testimonial-list__quote p:first-child::before {
    content: "\201C";
}

.testimonial-list__quote p:last-child::after {
    content: "\201D";
}

.testimonial-list__airline {
    display: none;
}

@media (min-width: 768px) {
    .testimonial-list__items {
        gap: 32px;
    }

    .testimonial-list__item {
        flex-direction: row;
    }

    .testimonial-list__media {
        flex: 0 0 280px;
        height: auto;
    }

    .testimonial-list__content {
        gap: 30px;
        padding: 30px 26px;
    }

    .testimonial-list__content--with-airline {
        justify-content: space-between;
    }

    .testimonial-list__name {
        font-size: 28px;
    }

    .testimonial-list__airline {
        align-items: center;
        border-top: 1px solid var(--border-color-default);
        display: flex;
        justify-content: space-between;
        margin-top: 25px;
        padding-top: 25px;
    }

    .testimonial-list__airline-label {
        color: var(--color-heading);
        font-family: var(--font-heading);
        font-size: 16px;
        font-weight: var(--font-weight-bold);
        line-height: 1.2;
        margin: 0;
        text-transform: uppercase;
    }

    .testimonial-list__airline-logo {
        display: block;
        flex: 0 0 auto;
        height: 35px;
        max-width: 207px;
        object-fit: contain;
        object-position: right center;
    }
}

@media (min-width: 1200px) {
    .testimonial-list__media {
        flex-basis: 340px;
    }

    .testimonial-list__name {
        font-size: 32px;
    }
}
