/* Testimonials section block (Figma: Tupper Manor - Testimonials 6:80 + 8:199) */
.tm-carousel {
    --tm-navy: #00325d;
    --tm-overlay: rgba(129, 187, 255, 0.85);
    --tm-dot: #b8b8b8;

    position: relative;
    padding: 41px 24px 102px;
    background-color: #81bbff;
    background-image: linear-gradient(var(--tm-overlay), var(--tm-overlay)), var(--tm-bg);
    background-size: cover;
    background-position: center;
    text-align: center;
}

.tm-carousel__inner {
    max-width: 1057px;
    margin: 0 auto;
}

.tm-carousel .tm-carousel__title {
    margin: 0;
    font-family: 'Playfair Display', serif !important;
    font-size: 30px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--tm-navy);
}

.tm-carousel .tm-carousel__rule {
    display: block;
    width: 84.5px;
    height: 2px;
    margin: 13px auto 39px;
}

/* stage = card row with the arrows sitting on its outer edges */
.tm-carousel__stage {
    position: relative;
}

.tm-carousel__slider {
    margin: 0 4.16%;
}

/* hide the extra slides until slick has initialised (no layout jump) */
.tm-carousel:not(.is-ready) .tm-slide:nth-child(n + 2) {
    display: none;
}

.tm-carousel .tm-slide__card {
    padding: 30px 33px 29px;
    background: var(--tm-navy);
    color: #fff;
}

.tm-carousel .tm-slide__headline {
    margin: 0 0 20px;
    font-family: 'Playfair Display', serif !important;
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.22px;
    text-transform: uppercase;
    color: #fff;
}

.tm-carousel .tm-slide__review,
.tm-carousel .tm-slide__review p {
    font-family: 'proxima-nova', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0;
    color: #fff;
}

.tm-carousel .tm-slide__review p {
    margin: 0 0 14px;
}

.tm-carousel .tm-slide__review p:last-child {
    margin-bottom: 0;
}

.tm-carousel .tm-slide__review {
    margin: 0 0 20px;
}

.tm-carousel .tm-slide__divider {
    display: block;
    width: 242px;
    max-width: 100%;
    height: 1px;
    margin: 0 auto 15px;
}

.tm-carousel .tm-slide__name {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #fff;
}

.tm-carousel .tm-slide__source {
    margin: 2px 0 0;
    font-family: 'proxima-nova', sans-serif;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.16px;
    color: #fff;
}

/* arrows */
.tm-carousel .tm-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 44px;
    height: 88px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.tm-carousel .tm-carousel__arrow-icon {
    display: block;
    width: 24.18px;
    height: 44.12px;
    max-width: none;
}

.tm-carousel .tm-carousel__arrow--prev {
    left: -2px;
    justify-content: flex-start;
}

/* one chevron asset, mirrored for "previous" (same as the Figma flip) */
.tm-carousel .tm-carousel__arrow--prev .tm-carousel__arrow-icon {
    transform: scaleX(-1);
}

.tm-carousel .tm-carousel__arrow--next {
    right: -2px;
    justify-content: flex-end;
}

.tm-carousel .tm-carousel__arrow:focus-visible,
.tm-carousel .tm-carousel__dots button:focus-visible {
    outline: 2px solid var(--tm-navy);
    outline-offset: 2px;
}

.tm-carousel.is-single .tm-carousel__arrow,
.tm-carousel.is-single .tm-carousel__dots {
    display: none;
}

/* dots */
.tm-carousel .tm-carousel__dots {
    margin-top: 40px;
}

.tm-carousel .tm-carousel__dots .slick-dots {
    position: static;
    display: flex;
    justify-content: center;
    gap: 24px;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-carousel .tm-carousel__dots .slick-dots li {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

.tm-carousel .tm-carousel__dots .slick-dots li button {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tm-dot);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

/* larger tap target than the 16px circle */
.tm-carousel .tm-carousel__dots .slick-dots li button::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
    width: auto;
    height: auto;
    background: none;
    opacity: 1;
}

.tm-carousel .tm-carousel__dots .slick-dots li.slick-active button {
    background: #fff;
}

@media (max-width: 767px) {
    .tm-carousel {
        padding: 32px 16px 56px;
    }

    .tm-carousel .tm-carousel__title {
        font-size: 24px;
        line-height: 32px;
    }

    .tm-carousel .tm-carousel__rule {
        margin: 10px auto 28px;
    }

    .tm-carousel__slider {
        margin: 0 24px;
    }

    .tm-carousel .tm-slide__card {
        padding: 24px 20px;
    }

    .tm-carousel .tm-slide__headline {
        margin-bottom: 16px;
        font-size: 18px;
    }

    .tm-carousel .tm-slide__review,
    .tm-carousel .tm-slide__review p {
        font-size: 16px;
        line-height: 26px;
    }

    .tm-carousel .tm-slide__name {
        font-size: 18px;
    }

    .tm-carousel .tm-carousel__arrow {
        width: 24px;
    }

    .tm-carousel .tm-carousel__arrow-icon {
        width: 14px;
        height: auto;
    }

    .tm-carousel .tm-carousel__dots {
        margin-top: 28px;
    }
}
