/* ==========================================================================
   CHI TIẾT RIKKEI EXAM (TỔNG QUAN, TÍNH NĂNG, ĐỐI TƯỢNG, GIẢI PHÁP, DEMO)
   ========================================================================== */

.exam-detail-section {
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
    background: #ffffff;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

.exam-detail-section *,
.exam-detail-section *::before,
.exam-detail-section *::after {
    box-sizing: border-box;
}

/* Khung chính chuẩn Max-width 1480px */
.exam-detail-container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

/* ================= TIÊU ĐỀ SECTION VỚI TAM GIÁC ĐỎ ================= */
.exam-sec-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.exam-red-triangle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exam-sec-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

/* Khối cách nhau giữa các mục */
.exam-sec-block {
    margin-top: 36px;
}

/* ================= 1. HÀNG 1: TỔNG QUAN + VÒNG TRÒN TÍNH NĂNG ================= */
.exam-row-top {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: start;
}

.exam-overview-col {
    display: flex;
    flex-direction: column;
}

.exam-overview-desc {
    font-size: 16px;
    font-weight: 400;
    color: #374151;
    line-height: 1.75;
    margin: 0;
    text-align: justify;
}

/* Cột chứa vòng tròn bánh xe */
.exam-wheel-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Vòng tròn tính năng co giãn tự do theo tỉ lệ 1:1 */
.exam-wheel-fluid {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

/* Vòng quỹ đạo đứt đoạn */
.wheel-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68%;
    height: 68%;
    border-radius: 50%;
    border: 1.5px dashed rgba(37, 99, 235, 0.28);
    pointer-events: none;
    z-index: 1;
}

/* Tâm tròn: TÍNH NĂNG NỔI BẬT */
.wheel-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29%;
    height: 29%;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.hub-label-sub {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.hub-label-main {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

/* 6 Bong bóng tính năng */
.feature-bubble {
    position: absolute;
    width: 26.5%;
    height: 26.5%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #183e7e 0%, #0c2452 70%, #07193b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    color: #ffffff;
    z-index: 2;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(7, 25, 59, 0.25);
    border: 1.5px solid rgba(96, 165, 250, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-bubble:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: radial-gradient(circle at 35% 35%, #2251a3 0%, #10306c 70%, #0a214d 100%);
    box-shadow: 0 10px 24px rgba(12, 36, 82, 0.35);
    border-color: #60a5fa;
}

.bubble-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: 0.1px;
}

/* Tọa độ tính theo % bán kính (R ~ 33%) */
.bubble-pos-1 {
    top: calc(50% - 28.5%);
    left: calc(50% - 16.5%);
    transform: translate(-50%, -50%);
}

.bubble-pos-2 {
    top: calc(50% - 28.5%);
    left: calc(50% + 16.5%);
    transform: translate(-50%, -50%);
}

.bubble-pos-3 {
    top: 50%;
    left: calc(50% + 33%);
    transform: translate(-50%, -50%);
}

.bubble-pos-4 {
    top: calc(50% + 28.5%);
    left: calc(50% + 16.5%);
    transform: translate(-50%, -50%);
}

.bubble-pos-5 {
    top: calc(50% + 28.5%);
    left: calc(50% - 16.5%);
    transform: translate(-50%, -50%);
}

.bubble-pos-6 {
    top: 50%;
    left: calc(50% - 33%);
    transform: translate(-50%, -50%);
}

/* ================= 2. DÀNH CHO AI (4 THẺ CARD) ================= */
.exam-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.audience-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.audience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.audience-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.audience-desc {
    font-size: 13.5px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}

/* ================= 3. VẤN ĐỀ CẦN GIẢI QUYẾT (BẢNG ĐỐI CHIẾU) ================= */
.exam-problem-table {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.table-header-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
    padding: 14px 24px;
}

.col-head {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.table-data-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    align-items: start;
    transition: background-color 0.2s ease;
}

.table-data-row:last-child {
    border-bottom: none;
}

.table-data-row:hover {
    background-color: #f8fafc;
}

.cell-problem {
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    line-height: 1.55;
    padding-right: 24px;
}

.cell-solution {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.55;
}

/* ================= 4. HÌNH ẢNH DEMO (TIÊU ĐỀ) ================= */
.exam-demo-heading-block {
    margin-top: 48px;
    margin-bottom: 24px;
}

/* ================= RESPONSIVE ================= */

/* Màn hình dưới 1100px: Hàng 1 xếp chồng */
@media (max-width: 1100px) {
    .exam-row-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .exam-overview-desc {
        text-align: left;
    }

    .exam-wheel-fluid {
        max-width: 380px;
    }
}

/* Màn hình Tablet (Dưới 900px): Dành cho ai chia 2x2 */
@media (max-width: 900px) {
    .exam-audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-header-row,
    .table-data-row {
        grid-template-columns: 1fr 1fr;
        padding: 14px 16px;
    }
}

/* Màn hình Mobile (Dưới 640px) */
@media (max-width: 640px) {
    .exam-detail-section {
        padding: 30px 14px;
    }

    .exam-sec-title {
        font-size: 20px;
    }

    .exam-audience-grid {
        grid-template-columns: 1fr;
    }

    .table-header-row {
        display: none; /* Ẩn header trên mobile để chuyển dạng card */
    }

    .table-data-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
    }

    .cell-problem {
        padding-right: 0;
        font-size: 13.5px;
    }

    .cell-solution {
        font-size: 13.5px;
        padding-top: 4px;
        border-top: 1px dashed #e2e8f0;
    }

    .mockup-stat-row {
        grid-template-columns: 1fr;
    }
}
