/* Khối Đánh Giá & Nhận Xét Học Viên - Phần 1: Mobile-First */
.course-reviews-section {
    margin-top: 25px;
    margin-bottom: 25px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 16px 14px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.reviews-section-header {
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.reviews-main-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 800;
    color: #8B1E1E;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}
.reviews-header-star {
    color: #F59E0B;
    flex-shrink: 0;
}
.reviews-sub-title {
    margin: 0;
    font-size: 13px;
    color: #64748B;
    line-height: 1.45;
}
.reviews-overview-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #FFFDF8;
    border: 1.5px solid #FDE68A;
    border-radius: 12px;
    padding: 16px 14px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.overview-score-box {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}
.score-number-large {
    font-size: 40px;
    font-weight: 900;
    color: #8B1E1E;
    line-height: 1.1;
    font-family: 'Cinzel', serif;
}
.score-number-large span {
    font-size: 20px;
    color: #94A3B8;
    font-weight: 600;
}
.score-stars-row {
    color: #F59E0B;
    font-size: 17px;
    margin: 5px 0;
    display: flex;
    justify-content: center;
    gap: 3px;
}
.score-count-label {
    font-size: 12.5px;
    color: #64748B;
    margin-bottom: 7px;
}
.score-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ECFDF5;
    color: #059669;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #A7F3D0;
    max-width: 100%;
    box-sizing: border-box;
}
.overview-bars-box {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}
.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    width: 100%;
    box-sizing: border-box;
}
.bar-star-num {
    width: 30px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.bar-star-num i {
    color: #F59E0B;
    font-size: 10.5px;
}
.bar-track {
    flex: 1;
    min-width: 50px;
    height: 8px;
    background: #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
    border-radius: 6px;
}
.bar-percent {
    width: 34px;
    text-align: right;
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
    flex-shrink: 0;
}
.overview-cta-box {
    border-top: 1px dashed #FDE68A;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}
.cta-box-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 5px;
    line-height: 1.35;
}
.cta-box-desc {
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.45;
    margin: 0 0 10px 0;
    word-break: break-word;
}
.btn-open-review-modal {
    background: linear-gradient(135deg, #8B1E1E 0%, #6B1212 100%);
    color: #FFFFFF;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    min-height: 44px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(139, 30, 30, 0.25);
}
.btn-open-review-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 30, 30, 0.35);
}
.reviews-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #CBD5E1;
    width: 100%;
    box-sizing: border-box;
}
.filter-bar-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}
.filter-chips-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}
.filter-chip {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #334155;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.filter-chip:hover {
    border-color: #8B1E1E;
    color: #8B1E1E;
}
.filter-chip.active {
    background: #8B1E1E;
    border-color: #8B1E1E;
    color: #FFFFFF;
}

@media (min-width: 640px) {
    .course-reviews-section {
        padding: 22px;
    }
    .reviews-main-title {
        font-size: 19px;
    }
    .filter-bar-label {
        width: auto;
    }
    .filter-chips-list {
        width: auto;
    }
}

@media (min-width: 860px) {
    .reviews-overview-card {
        display: grid;
        grid-template-columns: minmax(180px, 210px) minmax(170px, 1fr) minmax(200px, 240px);
        gap: 18px;
        align-items: center;
        padding: 20px;
    }
    .overview-score-box {
        border-right: 1px solid #F1F5F9;
        padding-right: 16px;
    }
    .overview-cta-box {
        border-top: none;
        border-left: 1px solid #F1F5F9;
        padding-top: 0;
        padding-left: 16px;
    }
}
