/* ==========================================================================
   CLUMA TESTIMONIALS — Grid & Slider
   ========================================================================== */

/* ── Shared card ──────────────────────────────────────────────────────────── */

.cluma-testimonial-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cluma-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06),
                0 16px 48px rgba(0, 0, 0, 0.06);
}

/* Quote icon */
.cluma-testimonial-card__quote {
    display: flex;
    color: #de4300;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Testimonial text */
.cluma-testimonial-card__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #333333;
    flex: 1;
}

/* Star rating */
.cluma-testimonial-card__rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.cluma-testimonial-card__rating svg {
    flex-shrink: 0;
}

/* Divider */
.cluma-testimonial-card__divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0;
    border: none;
}

/* Footer: author + source */
.cluma-testimonial-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cluma-testimonial-card__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cluma-testimonial-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cluma-testimonial-card__company {
    font-size: 13px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Source badge (Google, Facebook, …) */
.cluma-testimonial-card__source {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 3px 10px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

/* ── Grid ─────────────────────────────────────────────────────────────────── */

.cluma-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .cluma-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .cluma-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ── Slider ───────────────────────────────────────────────────────────────── */

.cluma-testimonials-slider-wrapper {
    position: relative;
}

.cluma-testimonials-slider__swiper {
    overflow: hidden;
}

/* Ensure cards inside swiper fill the slide height */
.cluma-testimonials-slider__swiper .swiper-slide {
    height: auto;
}

.cluma-testimonials-slider__swiper .swiper-slide .cluma-testimonial-card {
    height: 100%;
    box-sizing: border-box;
}

/* Navigation buttons */
.cluma-testimonials-slider__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.cluma-testimonials-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cluma-testimonials-slider__btn:hover {
    border-color: #de4300;
    color: #de4300;
    background: #fff5f0;
}

.cluma-testimonials-slider__btn:focus-visible {
    outline: 2px solid #de4300;
    outline-offset: 2px;
}

.cluma-testimonials-slider__btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}
