/* BizProMedia — Testimonials */

/* ------------------------------------------------------------------
 * Wrappers
 * ------------------------------------------------------------------ */

.bpm-testimonials {
    margin: 0;
    padding: 0;
}

.bpm-testimonials--list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bpm-testimonials--grid {
    display: grid;
    grid-template-columns: repeat(var(--bpm-cols, 3), 1fr);
    gap: 1.5rem;
}

.bpm-testimonials--single .bpm-testimonial {
    max-width: 640px;
}

@media (max-width: 767px) {
    .bpm-testimonials--grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .bpm-testimonials--grid[style*="--bpm-cols:3"],
    .bpm-testimonials--grid[style*="--bpm-cols:4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------------------------------------------------------------------
 * Card
 * ------------------------------------------------------------------ */

.bpm-testimonial {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ------------------------------------------------------------------
 * Image layout
 * ------------------------------------------------------------------ */

.bpm-testimonial--has-image {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
}

.bpm-testimonial__image {
    flex-shrink: 0;
    width: 80px;
}

.bpm-testimonial__image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.bpm-testimonial__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 480px) {
    .bpm-testimonial--has-image {
        flex-direction: column;
    }
}

/* ------------------------------------------------------------------
 * Content
 * ------------------------------------------------------------------ */

.bpm-testimonial__content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.65;
}

.bpm-testimonial__content p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------
 * Footer (author block)
 * ------------------------------------------------------------------ */

.bpm-testimonial__footer {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.9rem;
}

.bpm-testimonial__name {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.bpm-testimonial__meta {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
}

/* ------------------------------------------------------------------
 * Star rating
 * ------------------------------------------------------------------ */

.bpm-testimonial__rating {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 0.08em;
    display: block;
    margin-top: 0.1rem;
}
