/*
 * RI Testimonials — fade-transition slideshow. CSS-only positioning; slide
 * rotation is driven by testimonials.js (toggling .is-active on a timer).
 */

.ri-testimonials {
    position: relative;
    max-width: 100%;
    margin: 24px auto;
    padding: 0 48px;
}

.ri-testimonials-track {
    position: relative;
    min-height: 240px;
}

.ri-testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms ease;
    padding: 24px 28px 28px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ri-testimonial-slide.is-active {
    opacity: 1;
    visibility: visible;
    /* lets the track size to the active slide */
    position: relative;
}

/* ---- quoted passage (post_title + post_content flowing as one) ---- */

.ri-testimonial-quote {
    position: relative;
    margin: 0;
    padding-left: 56px;
    color: #2a2a2a;
    font-size: 15px;
    line-height: 1.6;
    border: 0;
    quotes: none;
}

.ri-testimonial-quote::before {
    content: "\201C"; /* left double quotation mark */
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 64px;
    line-height: 1;
    color: #b8b8b8;
    font-family: Georgia, "Times New Roman", serif;
}

.ri-testimonial-quote p {
    margin: 0 0 10px;
}
.ri-testimonial-quote p:last-child {
    margin-bottom: 0;
}

/* The lead paragraph (post_title) — bolder and slightly larger to give the
   opening line emphasis. Tight margin to the next paragraph so the title
   + content read as one continuous quote, not two separate blocks. */
.ri-testimonial-lead {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0 0 6px;
    font-family: "Asap Condensed", "Asap", Arial, sans-serif;
}

/* ---- author meta line ---- */

.ri-testimonial-meta {
    margin-top: 14px;
    font-size: 14px;
    color: #555;
    text-align: right;
}

.testimonial-name {
    font-weight: 700;
    color: #0a0a0a;
}

.testimonial-company {
    margin-left: 4px;
}

a.testimonial-company {
    color: #0090bc;
}

.ri-testimonials-more {
    display: inline-block;
    margin-top: 8px;
    color: #0090bc;
    text-decoration: underline;
}

/* ---- prev / next controls — subtle, never inherit theme button styling ---- */

.ri-testimonials-nav,
.ri-testimonials-nav:hover,
.ri-testimonials-nav:focus,
.ri-testimonials-nav:focus-visible,
.ri-testimonials-nav:active {
    background: transparent;
    border: 0;
    outline: none;
    box-shadow: none;
    color: #999;
    text-decoration: none;
}

.ri-testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 200ms ease;
    z-index: 2;
}

.ri-testimonials-nav:hover { color: #444; }

.ri-testimonials-prev { left: 0; }
.ri-testimonials-next { right: 0; }

@media (max-width: 600px) {
    .ri-testimonials { padding: 0 32px; }
    .ri-testimonial-quote {
        padding-left: 44px;
    }
    .ri-testimonial-quote::before {
        font-size: 52px;
    }
    .ri-testimonials-nav { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .ri-testimonial-slide { transition: none; }
}
