/**
 * row-reviews.css – ThemeSanBong
 * Style cho ACF Flexible layout `layout_reviews` (Đánh giá khách hàng).
 * Tách khỏi inline <style> trong template-part để cache + tránh duplicate.
 */

/* ── Reviews Section ─────────────────────────────────────────── */
.rv-section {
    padding: 4rem 0;
    background: #F1F5F9;
}
.rv-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Heading */
.rv-heading-wrap {
    text-align: center;
    margin-bottom: 3rem;
}
.rv-heading {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .75rem;
}
.rv-heading-bar {
    display: inline-block;
    width: 4px;
    height: 1.2rem;
    background: #2a930d;
    border-radius: 2px;
    flex-shrink: 0;
}
.rv-subhead {
    color: #6b7280;
    font-size: .95rem;
    margin: 0;
}

/* Slider wrapper */
.rv-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Nav buttons */
.rv-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s, color .2s, box-shadow .2s;
    z-index: 2;
}
.rv-nav:hover {
    border-color: #2a930d;
    color: #2a930d;
    box-shadow: 0 2px 8px rgba(42,147,13,.15);
}
.rv-nav:disabled {
    opacity: .35;
    cursor: default;
}

/* Track */
.rv-track {
    flex: 1;
    overflow: hidden;
}
.rv-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    transition: none;
}

/* Card */
.rv-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.rv-card:hover {
    box-shadow: 0 6px 24px rgba(42,147,13,.12);
    transform: translateY(-3px);
}

/* Card top row */
.rv-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Quote mark */
.rv-quote {
    font-size: 3rem;
    line-height: 1;
    color: #2a930d;
    font-family: Georgia, serif;
    font-weight: 700;
    margin-top: -.25rem;
}

/* Stars */
.rv-stars-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.rv-stars {
    display: flex;
    gap: 2px;
}
.rv-star {
    color: #e5e7eb;
}
.rv-star-fill {
    color: #f59e0b;
}
.rv-score {
    font-size: .8rem;
    font-weight: 700;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 999px;
    padding: 2px 9px;
}

/* Review text */
.rv-text {
    flex: 1;
    font-size: .9rem;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

/* Author */
.rv-author {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    border-top: 1px solid #f3f4f6;
    padding-top: .85rem;
}
.rv-name {
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
}
.rv-role {
    font-size: .82rem;
    color: #2a930d;
    font-weight: 500;
}

/* Dots */
.rv-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.75rem;
}
.rv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: background .2s, width .2s;
    padding: 0;
}
.rv-dot-active {
    background: #2a930d;
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .rv-cards { grid-template-columns: 1fr; }
    .rv-nav { display: none; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .rv-cards { grid-template-columns: repeat(2, 1fr); }
}
