/* ============================================================
   Testimonials — grid + carousel (shortcode rendered)
   ============================================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .testimonials-grid--cols-2,
    .testimonials-grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid--cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   Testimonial card
   ============================================================ */

.testimonial-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card__quote-mark {
    position: absolute;
    top: 18px;
    right: 22px;
    opacity: 0.18;
    line-height: 0;
}

.testimonial-card__rating {
    margin: 0 0 12px;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1;
}

.testimonial-card__star {
    color: #D1D5DB;
}

.testimonial-card__star--on {
    color: #F59E0B;
}

.testimonial-card__quote {
    margin: 0 0 20px;
    padding: 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
    border: none;
    background: transparent;
    font-style: normal;
}

.testimonial-card__quote p {
    margin: 0 0 12px;
}

.testimonial-card__quote p:last-child {
    margin-bottom: 0;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.testimonial-card__avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #F3F4F6;
}

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

.testimonial-card__person {
    min-width: 0;
}

.testimonial-card__name {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
}

.testimonial-card__meta {
    margin: 0;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.3;
}

/* ============================================================
   Carousel overrides — Splide brand theming
   ============================================================ */

.testimonials-carousel {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 56px;
    position: relative;
}

@media (max-width: 767px) {
    .testimonials-carousel {
        padding: 0 24px;
    }
}

.testimonials-carousel .splide__slide {
    height: auto;
    display: flex;
}

.testimonials-carousel .splide__slide > .testimonial-card {
    width: 100%;
}

.testimonials-carousel .splide__arrow {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    width: 40px;
    height: 40px;
    opacity: 1;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.testimonials-carousel .splide__arrow:hover:not(:disabled) {
    background: #C4853A;
    border-color: #C4853A;
}

.testimonials-carousel .splide__arrow:hover:not(:disabled) svg {
    fill: #FFFFFF;
}

.testimonials-carousel .splide__arrow svg {
    fill: #4B5563;
    transition: fill 150ms ease;
}

.testimonials-carousel .splide__pagination {
    bottom: -36px;
}

.testimonials-carousel .splide__pagination__page {
    background: #D1D5DB;
    opacity: 1;
    transition: background-color 150ms ease, transform 150ms ease;
}

.testimonials-carousel .splide__pagination__page.is-active {
    background: #C4853A;
    transform: scale(1.3);
}

/* ============================================================
   Reduced motion — disable autoplay-style transitions on hover
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .testimonials-carousel .splide__pagination__page {
        transition: none;
    }
}
