/* =====================================================
   Testimonial Block
   ===================================================== */

.testimonial-block {
    padding: 80px 0;
    position: relative;
}

.testimonial-block__wrap {
    position: relative;
}

.testimonial-block .container {
    padding-left: 109px;
    padding-right: 109px;
}

/* White-border card — quote icon reuses the same quotes.png technique as .testimonials-section */
.testimonial-block__card {
    display: flex;
    gap: 64px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 48px;
    position: relative;
}

.testimonial-block__card::before {
    content: '';
    position: absolute;
    width: 94px;
    height: 80px;
    top: -37px;
    left: 71px;
    border: 17px solid var(--block-bg, #81babd);
    background: var(--block-bg, #81babd) url(../images/quotes.png) no-repeat;
    background-size: cover;
    z-index: 1;
}

.testimonial-block .testimonial-block__prev,
.testimonial-block .testimonial-block__next {
    color: #fff;
}

/* =====================================================
   Black text variant (.testimonial-block--black)
   ===================================================== */

.testimonial-block--black .testimonial-block__card {
    border-color: rgba(0, 0, 0, 0.3);
}

.testimonial-block--black .testimonial-block__text,
.testimonial-block--black .testimonial-block__label,
.testimonial-block--black .testimonial-block__quote,
.testimonial-block--black .testimonial-block__author,
.testimonial-block--black .testimonial-block__sep,
.testimonial-block--black .testimonial-block__event {
    color: #000;
}

.testimonial-block--black .testimonial-block__card::before {
    background-image: url(../images/quotes-black.png);
}

.testimonial-block--black .testimonial-block__prev,
.testimonial-block--black .testimonial-block__next {
    color: #000;
}

.testimonial-block--black .testimonial-block__dots .slick-dots li button {
    background: rgba(0, 0, 0, 0.3);
}

.testimonial-block--black
    .testimonial-block__dots
    .slick-dots
    li.slick-active
    button {
    background: #000;
}

/* Slide layout: label above body */
.testimonial-block__slide {
    display: flex !important;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    width: 100%;
}

/* Ensure text slider fills the text column width */
.testimonial-block__text .slick-testimonial {
    width: 100%;
}

/* Left: text content */
.testimonial-block__text {
    flex: 1 0 0;
    min-width: 0;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.testimonial-block__label {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.testimonial-block__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.testimonial-block__quote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-style: normal;
    font-size: 32px;
    line-height: 1.15;
    color: #fff;
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
    width: 100%;
}

.testimonial-block__quote::before {
    content: '"';
}

.testimonial-block__quote::after {
    content: '"';
}

.testimonial-block__quote p {
    margin: 0;
}

.testimonial-block__attribution {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.testimonial-block__author {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    white-space: nowrap;
    line-height: 1.25;
}

.testimonial-block__sep {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    color: #fff;
    line-height: 1.25;
}

.testimonial-block__event {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    line-height: 1.25;
}

/* Inline slide image — visible on tablet/mobile only */
.testimonial-block__slide-image {
    display: none;
}

.testimonial-block__slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right: image slider */
.slick-testimonial-images {
    width: 33.3%;
    height: 100%;
    flex-shrink: 0;
}

.slick-testimonial-images .slick-slide {
    line-height: 0;
}

.testimonial-block__image {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
}

.testimonial-block__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation: ← dots → */
.testimonial-block__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial-block__prev,
.testimonial-block__next {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    line-height: 0;
}

.testimonial-block__prev:hover,
.testimonial-block__next:hover {
    opacity: 1;
}

/* Slick dots — rendered inside .testimonial-block__dots */
.testimonial-block__dots {
    display: flex;
    align-items: center;
}

.testimonial-block__dots .slick-dots {
    position: static;
    display: flex !important;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.testimonial-block__dots .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
}

.testimonial-block__dots .slick-dots li button {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.testimonial-block__dots .slick-dots li button::before {
    display: none;
}

.testimonial-block__dots .slick-dots li.slick-active button {
    background: #fff;
}

/* =====================================================
   Responsive
   ===================================================== */

/* Tablet — matches Figma "Testimonial block - The Swan - Tablet" (< 1200px) */
@media (max-width: 1199px) {
    .testimonial-block .container {
        padding-left: 50px;
        padding-right: 50px;
    }

    .testimonial-block__card {
        padding: 32px 24px;
    }

    .testimonial-block__card::before {
        left: 71px;
        top: -36px;
        width: 94px;
        height: 78px;
    }

    .testimonial-block__card {
        flex-direction: column;
        align-items: stretch;
    }

    .slick-testimonial-images {
        display: none;
    }

    .testimonial-block__slide-image {
        display: block;
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;
    }

    .testimonial-block__quote {
        font-size: 26px;
        line-height: 31px;
    }
}

/* Mobile — matches Figma "Testimonial block - The Swan - Mobile" (< 768px) */
@media (max-width: 767px) {
    .testimonial-block .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .testimonial-block__text {
        gap: 24px;
    }

    .testimonial-block__slide-image {
        aspect-ratio: 1;
    }
}
