/**
 * Testimonials Block Component
 *
 * All color and style values driven by CSS variables
 * stamped on :root via ACF options in testimonials-block.php.
 *
 * @package Blueprint
 */

/* =============================================================================
   TESTIMONIALS START
   ============================================================================= */

/* TESTIMONIALS -- SECTION WRAPPER */

.rw-testimonials-block {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 150px 20px;
}


/* TESTIMONIALS -- INNER */

.rw-testimonials-block__inner {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
    padding: 120px 60px 60px;
    backdrop-filter: var(--rw-test-inner-backdrop, blur(15px));
    -webkit-backdrop-filter: var(--rw-test-inner-backdrop, blur(15px));
    background: var(--rw-test-inner-bg, rgba(255, 255, 255, 0.1));
    border-radius: var(--rw-test-border-radius, 17px);
}


/* TESTIMONIALS -- DATA */

.rw-testimonials-block__data {
    max-width: 800px;
    margin: auto;
}


/* TESTIMONIALS -- HEADING */

.rw-testimonials-block__heading {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.rw-testimonials-block__title {
    position: relative;
    z-index: 1;
    color: var(--rw-test-title-color, white);
}

.rw-testimonials-block__title em {
    font-style: italic;
}


/* TESTIMONIALS -- QUOTE MARK */

.rw-testimonials-block__quote-mark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: auto;
    pointer-events: none;
    z-index: 0;
}


/* TESTIMONIALS -- SLIDER CARD */

.rw-testimonials-block__slider .slick-slide {
    outline: none;
}

.rw-testimonials-block__slide {
    text-align: center;
}


/* TESTIMONIALS -- HIGHLIGHT */

.rw-testimonials-block__highlight {
    margin: 0 0 20px;
    color: var(--rw-test-highlight-color, white);
}


/* TESTIMONIALS -- FULL TESTIMONY */

.rw-testimonials-block__full {
    margin: 0 0 32px;
    color: var(--rw-test-full-color, white);
}

.rw-testimonials-block__full p {
    margin: 0;
}


/* TESTIMONIALS -- ATTRIBUTION */

.rw-testimonials-block__attribution {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Photo present — left align */
.rw-testimonials-block__attribution--has-photo {
    justify-content: center;
}

/* No photo — center */
.rw-testimonials-block__attribution--no-photo {
    justify-content: center;
}

.rw-testimonials-block__photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.rw-testimonials-block__meta {
    color: white;
}

.rw-testimonials-block__attribution--has-photo .rw-testimonials-block__meta {
    text-align: left;
}

.rw-testimonials-block__attribution--no-photo .rw-testimonials-block__meta {
    text-align: center;
}

.rw-testimonials-block__name,
.rw-testimonials-block__company {
    margin: 0;
    line-height: 1.4;
}

.rw-testimonials-block__name {
    color: var(--rw-test-name-color, white);
}

.rw-testimonials-block__company {
    font-weight: 600;
    font-size: 18px;
    color: var(--rw-test-company-color, white);
}


/* TESTIMONIALS -- SLICK DOTS */

.rw-testimonials-block__slider .slick-dots {
    position: relative;
    bottom: auto;
    margin-top: 24px;
    padding: 0;
    list-style: none;
    display: flex !important;
    justify-content: center;
    gap: 8px;
}

.rw-testimonials-block__slider .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.rw-testimonials-block__slider .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.0);
    border: 1px solid white;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rw-testimonials-block__slider .slick-dots li button::before {
    display: none;
}

.rw-testimonials-block__slider .slick-dots li.slick-active button {
    background: rgba(255, 255, 255, 0.95);
}

.rw-testimonials-block__slider .slick-track {
    display: flex;
    align-items: flex-start;
}

.rw-testimonials-block__slider .slick-slide {
    height: auto !important;
}


/* TESTIMONIALS -- RESPONSIVE */

@media ( max-width: 1200px ) {

    .rw-testimonials-block {
        padding: 80px 20px;
    }

}

@media ( max-width: 768px ) {

    .rw-testimonials-block {
        padding: 20px;
    }

    .rw-testimonials-block__inner {
        padding: 120px 20px 40px;
    }

    .rw-testimonials-block__attribution {
        flex-direction: column;
        text-align: center;
    }

    .rw-testimonials-block__attribution--has-photo .rw-testimonials-block__meta,
    .rw-testimonials-block__attribution--no-photo .rw-testimonials-block__meta {
        text-align: center;
    }

}

@media ( max-width: 480px ) {

    .rw-testimonials-block__slide {
        padding: 24px 20px;
    }

}