/* Khối Đánh Giá & Nhận Xét Học Viên - Phần 2: Thẻ Đánh Giá Chi Tiết */
.reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}
.review-item-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.review-item-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}
.review-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}
.review-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B1E1E 0%, #B91C1C 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(139, 30, 30, 0.2);
}
.review-author-meta {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}
.author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
    width: 100%;
}
.author-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.3;
}
.review-sample-label {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    background: #F8FAFC;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
}
.author-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #ECFDF5;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    border: 1px solid #A7F3D0;
    white-space: nowrap;
}
.author-sub-info {
    font-size: 11.5px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1.4;
}
.test-session-info {
    color: #8B1E1E;
    font-weight: 600;
}
.review-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.review-stars {
    color: #F59E0B;
    font-size: 13.5px;
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}
.review-title-highlight {
    font-size: 13.5px;
    color: #DC2626;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}
.review-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F1F5F9;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}
.review-body-text p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
    word-break: break-word;
}
.review-photos-grid {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}
.review-photo-thumb-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #CBD5E1;
    flex-shrink: 0;
}
.review-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.review-photo-thumb-wrap:hover .review-photo-thumb {
    transform: scale(1.08);
}
.photo-zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.review-photo-thumb-wrap:hover .photo-zoom-hint {
    opacity: 1;
}
.review-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
    font-size: 12px;
}
.btn-helpful-toggle {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    transition: all 0.2s ease;
}
.btn-helpful-toggle:hover,
.btn-helpful-toggle.active {
    background: #EFF6FF;
    border-color: #3B82F6;
    color: #2563EB;
}
.review-sgtvt-verified {
    color: #059669;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    line-height: 1.3;
}
.instructor-reply-box {
    margin-top: 12px;
    background: #FDFBF7;
    border-left: 3px solid #8B1E1E;
    border-radius: 0 8px 8px 0;
    padding: 10px 12px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
.instructor-reply-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}
.instructor-reply-badge {
    color: #8B1E1E;
    font-weight: 800;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.reply-time {
    font-size: 11.5px;
    color: #94A3B8;
}
.instructor-reply-content {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #475569;
    word-break: break-word;
}

@media (min-width: 640px) {
    .review-item-card {
        padding: 18px;
    }
    .review-author-avatar {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .author-name {
        font-size: 15px;
    }
    .review-photo-thumb-wrap {
        width: 88px;
        height: 88px;
    }
    .instructor-reply-box {
        padding: 12px 16px;
    }
}
