/* ==========================================================================
   CHI TIẾT RIKKEI LMS CONNECT (TỔNG QUAN, SƠ ĐỒ QUY TRÌNH, DÀNH CHO AI, THÀNH PHẦN)
   ========================================================================== */

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

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

/* Khung chuẩn Max-width 1480px đồng bộ */
.connect-detail-container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

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

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

.connect-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 */
.connect-sec-block {
    margin-top: 48px;
}

/* ================= 1. HÀNG 1: TỔNG QUAN + HÌNH ẢNH SƠ ĐỒ ================= */
.connect-row-top {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 10px;
}

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

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

/* Cột phải: Khung ảnh sơ đồ quy trình */
.connect-diagram-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.connect-img-card {
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.connect-img-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.connect-diagram-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ================= 2. DÀNH CHO AI (4 THẺ CARD) ================= */
.connect-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. THÀNH PHẦN (BẢNG DANH SÁCH) ================= */
.connect-components-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);
}

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

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

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

.comp-col-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    padding-right: 20px;
}

.comp-col-desc {
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    line-height: 1.55;
}

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

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

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

    .connect-img-card {
        max-width: 580px;
    }
}

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

    .comp-table-row {
        grid-template-columns: 190px 1fr;
        padding: 16px 20px;
    }
}

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

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

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

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

    .comp-col-name {
        padding-right: 0;
        font-size: 14.5px;
    }

    .comp-col-desc {
        font-size: 13.5px;
    }
}

