:root {
    --app-surface: #ffffff;
    --app-surface-soft: #f1f5f9;
    --app-text: #1f2937;
    --app-muted: #6b7280;
    --app-border: #dbe3ef;
    --app-link: #0d6efd;
    --app-navbar-bg: #ffffff;
    --app-navbar-text: #1f2937;
    --app-footer-bg: #ffffff;
    --app-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.08);
}

html[data-theme='dark'] {
    --app-bg: #0f172a;
    --app-surface: #111827;
    --app-surface-soft: #1f2937;
    --app-text: #e5e7eb;
    --app-muted: #9ca3af;
    --app-border: #374151;
    --app-link: #93c5fd;
    --app-navbar-bg: #111827;
    --app-navbar-text: #f9fafb;
    --app-footer-bg: #111827;
    --app-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
}

html {
    font-size: 16px;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 32%), radial-gradient(circle at top right, rgba(255, 193, 7, 0.12), transparent 24%), linear-gradient(180deg, #ffffff 0%, #f8fbff 38%, #ffffff 100%);
    color: var(--app-text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

html[data-theme='dark'] body {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), transparent 32%), radial-gradient(circle at top right, rgba(234, 179, 8, 0.15), transparent 24%), linear-gradient(180deg, #0f172a 0%, #1a2847 38%, #0f172a 100%);
}

.app-main-content {
    flex: 1 0 auto;
}

.app-footer {
    flex-shrink: 0;
    background-color: var(--app-footer-bg);
}

.app-footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--app-text);
}

.app-footer-text {
    color: var(--app-muted);
    line-height: 1.65;
}

.app-footer-meta {
    color: var(--app-muted);
    font-size: 0.95rem;
}

.app-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0;
}

.app-footer-links a {
    color: var(--app-muted);
    text-decoration: none;
}

.app-footer-links a:hover {
    color: var(--app-link);
}

.app-footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--app-text);
    border: 1px solid var(--app-border);
}

.app-footer-social a:hover {
    color: var(--app-link);
    border-color: var(--app-link);
}

.app-footer-social-text {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

.app-footer-copy {
    color: var(--app-muted);
    text-align: center;
    font-size: 0.92rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.65), 0 0 0 0.25rem rgba(37, 140, 251, 0.35);
}

.navbar,
.card,
.dropdown-menu,
.form-control,
.form-select,
textarea,
footer {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.learnhub-shell-navbar {
    background-color: var(--app-navbar-bg) !important;
    box-shadow: var(--app-shadow);
}

.learnhub-shell-container {
    max-width: 1200px;
    margin: 0 auto;
}

.learnhub-shell-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: var(--app-navbar-text) !important;
    text-decoration: none;
}

.learnhub-shell-brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
    flex: 0 0 30px;
}

.learnhub-shell-nav-link,
.learnhub-auth-link,
.navbar .dropdown-item {
    color: var(--app-navbar-text) !important;
}

    .learnhub-shell-nav-link:hover,
    .learnhub-auth-link:hover,
    .navbar .dropdown-item:hover {
        color: var(--app-link) !important;
    }

.learnhub-auth-nav {
    align-items: center;
    gap: 0.25rem;
}

.learnhub-user-menu {
    border: 1px solid var(--app-border);
    background-color: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.learnhub-auth-form {
    margin: 0;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

html[data-theme='dark'] .theme-toggle.btn-outline-secondary {
    color: var(--app-text);
    border-color: var(--app-border);
}

html[data-theme='dark'] .navbar,
html[data-theme='dark'] .card,
html[data-theme='dark'] .dropdown-menu,
html[data-theme='dark'] .form-control,
html[data-theme='dark'] .form-select,
html[data-theme='dark'] textarea,
html[data-theme='dark'] footer,
html[data-theme='dark'] .border,
html[data-theme='dark'] .border-top,
html[data-theme='dark'] .border-bottom {
    background-color: var(--app-surface);
    color: var(--app-text);
    border-color: var(--app-border) !important;
}

html[data-theme='dark'] a {
    color: var(--app-link);
}

/* Bảng trong nội dung CKEditor: đồng bộ light/dark và ghi đè nền trắng inline */
.ck-content table,
.tip-content table,
.news-content table,
.maintenance-content table {
    background-color: var(--app-surface, #ffffff) !important;
    color: var(--app-text, #1f2937) !important;
}

.ck-content table td,
.ck-content table th,
.tip-content table td,
.tip-content table th,
.news-content table td,
.news-content table th,
.maintenance-content table td,
.maintenance-content table th {
    background-color: var(--app-surface, #ffffff) !important;
    color: var(--app-text, #1f2937) !important;
    border-color: var(--app-border, #dbe3ef) !important;
}

.ck-content table thead th,
.tip-content table thead th,
.news-content table thead th,
.maintenance-content table thead th {
    background-color: var(--app-surface-soft, #f1f5f9) !important;
}

/* Breadcrumb: áp dụng đồng bộ toàn site trong dark mode */
html[data-theme='dark'] .breadcrumb {
    background: transparent;
}

html[data-theme='dark'] .breadcrumb .breadcrumb-item,
html[data-theme='dark'] .breadcrumb .breadcrumb-item.active {
    color: #cbd5e1;
}

html[data-theme='dark'] .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

html[data-theme='dark'] .breadcrumb .breadcrumb-item a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

html[data-theme='dark'] .text-dark,
html[data-theme='dark'] .text-muted {
    color: var(--app-muted) !important;
}

html[data-theme='dark'] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.question-explanation-box {
    padding: 1rem 1.125rem;
    border: 1px solid #f3dda1;
    border-radius: 0.75rem;
    background: #fff8db;
    color: #5f4b14;
}

.question-explanation-title {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #7a5b00;
}

.question-explanation-content {
    white-space: pre-line;
    line-height: 1.6;
}

html[data-theme='dark'] .question-explanation-box {
    background: #4a3b0f;
    border-color: #a37b00;
    color: #fef3c7;
}

html[data-theme='dark'] .question-explanation-title {
    color: #fde68a;
}

.home-page-shell .learnhub-shell-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(14px);
}

.home-page-shell .learnhub-shell-navbar {
    margin: 1rem auto 0;
    width: min(1280px, calc(100% - 1.5rem));
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.learnhub-homepage {
    background: radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 32%), radial-gradient(circle at top right, rgba(255, 193, 7, 0.12), transparent 24%), linear-gradient(180deg, #ffffff 0%, #f8fbff 38%, #ffffff 100%);
    color: #0f172a;
}

    .learnhub-homepage .container {
        position: relative;
        z-index: 1;
    }

.learnhub-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.learnhub-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.7;
}

.learnhub-circle-one {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -80px;
    background: rgba(13, 110, 253, 0.12);
}

.learnhub-circle-two {
    width: 220px;
    height: 220px;
    top: 10%;
    right: -70px;
    background: rgba(255, 193, 7, 0.14);
}

.learnhub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    font-weight: 600;
}

.learnhub-title {
    max-width: 12ch;
    line-height: 1.15;
}

.learnhub-subtitle,
.learnhub-section-text {
    color: #64748b;
    max-width: 62ch;
}

.learnhub-stats {
    margin-top: 2rem;
}

.learnhub-stat-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    height: 100%;
    border-radius: 1.25rem;
    padding: 1.25rem;
}

.learnhub-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
}

.learnhub-stat-label {
    color: #64748b;
    font-size: 0.95rem;
}

.learnhub-hero-media {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.learnhub-hero-placeholder {
    min-height: 420px;
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    color: #ffffff;
    padding: 2rem;
}

.learnhub-hero-slide-image,
.learnhub-hero-slide-frame {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 1.25rem;
    overflow: hidden;
    background-color: #0b1220;
}

.learnhub-hero-slide-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#homeHeroMediaCarousel .carousel-indicators {
    margin-bottom: 0.75rem;
}

#homeHeroMediaCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .learnhub-hero-placeholder .hero-icon {
        font-size: 4rem;
    }

.learnhub-banner-carousel .carousel-indicators {
    margin-bottom: 1.25rem;
}

    .learnhub-banner-carousel .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.75);
    }

.learnhub-banner-slide {
    position: relative;
    height: clamp(260px, 36vw, 420px);
    border-radius: 2rem;
    overflow: hidden;
}

.learnhub-banner-bg-1 {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.learnhub-banner-bg-2 {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.learnhub-banner-bg-3 {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.learnhub-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.58) 100%);
}

.learnhub-banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    color: #ffffff;
}

    .learnhub-banner-content h3 {
        font-size: clamp(1.6rem, 3.2vw, 2.6rem);
        font-weight: 800;
        line-height: 1.2;
        margin: 0;
        color: #ffffff;
    }

.learnhub-banner-description-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.22);
    border: 1px solid rgba(253, 224, 71, 0.4);
    color: #fef3c7;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: min(100%, 640px);
}

.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12) !important;
    }

.learnhub-product-link {
    display: block;
}

.learnhub-product-card {
    overflow: hidden;
}

.learnhub-product-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.learnhub-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid rgba(13, 110, 253, 0.16);
    color: #0d6efd;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.learnhub-product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.learnhub-product-description {
    color: #64748b;
    font-size: 0.95rem;
}

.learnhub-price {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
}

.learnhub-enroll-link {
    color: #0d6efd;
    font-weight: 600;
}

.learnhub-secondary-btn {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #0f172a;
}

    .learnhub-secondary-btn:hover {
        background: #0f172a;
        color: #ffffff;
        border-color: #0f172a;
    }

.learnhub-section-label {
    display: inline-block;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

html[data-theme='dark'] .home-page-shell .learnhub-shell-navbar {
    background: rgba(17, 24, 39, 0.88) !important;
}

html[data-theme='dark'] .learnhub-homepage {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 28%), radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 20%), linear-gradient(180deg, #020617 0%, #0f172a 38%, #020617 100%);
    color: #e2e8f0;
}

html[data-theme='dark'] .learnhub-homepage .container {
    background-color: transparent !important;
}

html[data-theme='dark'] .learnhub-homepage .learnhub-badge,
html[data-theme='dark'] .learnhub-homepage .learnhub-stat-card,
html[data-theme='dark'] .learnhub-homepage .learnhub-hero-media,
html[data-theme='dark'] .learnhub-homepage .learnhub-product-card {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

html[data-theme='dark'] .learnhub-homepage h1,
html[data-theme='dark'] .learnhub-homepage h2,
html[data-theme='dark'] .learnhub-homepage h3,
html[data-theme='dark'] .learnhub-stat-number,
html[data-theme='dark'] .learnhub-product-title,
html[data-theme='dark'] .learnhub-price {
    color: #f8fafc;
}

html[data-theme='dark'] .learnhub-subtitle,
html[data-theme='dark'] .learnhub-stat-label,
html[data-theme='dark'] .learnhub-product-description {
    color: #cbd5e1;
}

@media (max-width: 767.98px) {
    .learnhub-title {
        max-width: none;
    }

    .learnhub-hero-placeholder,
    .learnhub-hero-slide-image,
    .learnhub-hero-slide-frame {
        min-height: 280px;
    }

    .learnhub-banner-content {
        width: 100%;
        max-width: none;
        padding: 1.25rem;
        gap: 0.75rem;
        justify-content: center;
    }

        .learnhub-banner-content h3 {
            font-size: clamp(1.25rem, 5.4vw, 1.8rem);
        }

    .learnhub-banner-description-badge {
        padding: 0.6rem 0.95rem;
        font-size: 0.85rem;
        max-width: 92%;
    }
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Màu đáp án luyện tập */
.answer-correct,
.answer-correct label,
.answer-correct .form-check-label {
    background-color: #198754 !important;
    color: #ffffff !important;
    border-radius: 0.375rem;
    opacity: 1 !important;
    padding: 0.18rem 0.42rem;
}

.answer-wrong,
.answer-wrong label,
.answer-wrong .form-check-label {
    background-color: #842029 !important;
    color: #ffffff !important;
    border-radius: 0.375rem;
    opacity: 1 !important;
    padding: 0.18rem 0.42rem;
}

/* Nút câu hỏi đang được chọn trong ma trận */
.question-btn.active-question {
    outline: 2px solid #0d6efd;
    outline-offset: 1px;
    font-weight: 700;
}

/* Trang thi thử: đảm bảo số thứ tự câu và số thứ tự đáp án đủ tương phản ở dark mode */
.question-list-item .q-no,
.question-list-item .opt-checks label {
    color: #1f2937;
}

html[data-theme='dark'] .question-list-item {
    border-color: #4b5563;
    background-color: #e4b4b4;
}

html[data-theme='dark'] .question-list-item.answered,
html[data-theme='dark'] .question-list-item.active {
    background-color: #92c59d;
}

html[data-theme='dark'] .question-list-item .q-no,
html[data-theme='dark'] .question-list-item .opt-checks label,
html[data-theme='dark'] .question-list-item .opt-checks input[type='checkbox'] {
    color: #0f172a !important;
}

/* Dialog "Bạn đang làm bài thi" ở dark mode phải rõ chữ */
html[data-theme='dark'] #leaveExamModal .modal-content {
    background-color: #111827;
    color: #f9fafb;
    border: 1px solid #374151;
}

html[data-theme='dark'] #leaveExamModal .modal-header,
html[data-theme='dark'] #leaveExamModal .modal-footer {
    border-color: #374151;
}

html[data-theme='dark'] #leaveExamModal .modal-title,
html[data-theme='dark'] #leaveExamModal .modal-body {
    color: #f9fafb;
}

/* Trang biển báo */
.sign-type-title {
    background-color: #FFB300;
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    /*border: 1px solid #0a58ca;*/
}

html[data-theme='dark'] .sign-type-title {
    background-color: #FFB300;
    color: #ffffff;
    /*border-color: #0a58ca;*/
}

/* Ở dark mode, footer SignCard giữ màu như light mode để dễ đọc */
    html[data-theme='dark'] .sign-card .card-footer {
        background-color: #f8f9fa;
        color: #6c757d;
        border-top-color: #dee2e6 !important;
    }

        html[data-theme='dark'] .sign-card .card-footer,
        html[data-theme='dark'] .sign-card .card-footer small,
        html[data-theme='dark'] .sign-card .card-footer .text-muted {
            color: #6c757d !important;
        }

        /* Trang mẹo thi: sidebar dark mode rõ như mục loại cẩm nang */
        .tips-breadcrumb-wrap {
            margin-bottom: 1rem;
        }

        .tips-breadcrumb {
            margin-bottom: 0;
        }

        html[data-theme='dark'] .tips-related-card,
        html[data-theme='dark'] .tips-related-header,
        html[data-theme='dark'] .tips-related-item {
            background: transparent;
            border-color: rgba(148, 163, 184, 0.18) !important;
            color: #e2e8f0;
        }

        html[data-theme='dark'] .tips-related-header strong {
            color: #e2e8f0;
        }

        html[data-theme='dark'] .tips-related-link {
            color: #e2e8f0 !important;
        }

        html[data-theme='dark'] .tips-related-link:hover {
            color: #93c5fd !important;
        }

        /* Trang kết quả thi: theo yêu cầu giữ chữ Tổng số câu màu đen ở dark mode */
        html[data-theme='dark'] .exam-total-questions-text {
            color: #000000 !important;
        }

        /* Chi tiết biển báo: giữ bo góc ảnh/card nhất quán giữa light và dark */
        .sign-detail-image-card {
            border-radius: 0.75rem;
            overflow: hidden;
        }

        .sign-detail-image-wrap {
            border-radius: 0.75rem;
        }

        .sign-detail-image {
            border-radius: 0.75rem;
        }

        html[data-theme='dark'] .sign-detail-image-card,
        html[data-theme='dark'] .sign-detail-image-wrap,
        html[data-theme='dark'] .sign-detail-image {
            border-radius: 0.75rem;
        }

        /* /quan-tri/hien-thi: mô tả phải đủ tương phản trong dark mode */
        html[data-theme='dark'] .admin-display-description {
            color: #dbe7ff !important;
        }
    /* ===== Trang chủ: các section bổ sung ===== */
    .learnhub-viewall-link {
        color: #0d6efd;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

        .learnhub-viewall-link:hover {
            text-decoration: underline;
        }
    /* 3 dạng thi */
    .learnhub-examtype-link {
        display: block;
    }

    .learnhub-examtype-card {
        background: var(--app-surface);
        border: 1px solid var(--app-border);
        border-radius: 1.25rem;
        padding: 1.75rem;
        box-shadow: var(--app-shadow);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        color: var(--app-text);
    }

    .learnhub-examtype-link:hover .learnhub-examtype-card {
        transform: translateY(-4px);
        box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.12);
    }

    .learnhub-examtype-icon {
        width: 56px;
        height: 56px;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .learnhub-examtype-card h4 {
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .learnhub-examtype-card p {
        color: var(--app-muted);
        margin-bottom: 1rem;
    }

    .learnhub-examtype-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #0d6efd;
    }
    /* Ngân hàng đề thi */
    .learnhub-license-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        text-decoration: none;
        background: var(--app-surface);
        border: 1px solid var(--app-border);
        border-radius: 1rem;
        padding: 1.25rem 0.75rem;
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .learnhub-license-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--app-shadow);
        }

    .learnhub-license-badge {
        font-size: 1.4rem;
        font-weight: 800;
        color: #0d6efd;
    }

    .learnhub-license-meta {
        font-size: 0.78rem;
        color: var(--app-muted);
    }
    /* Video */
    .learnhub-video-card {
        background: var(--app-surface);
        border: 1px solid var(--app-border);
        border-radius: 1.25rem;
        overflow: hidden;
        box-shadow: var(--app-shadow);
        transition: transform 0.2s ease;
        height: 100%;
    }

        .learnhub-video-card:hover {
            transform: translateY(-4px);
        }

    .learnhub-video-thumb {
        position: relative;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
    }

        .learnhub-video-thumb i {
            font-size: 2.75rem;
            opacity: 0.9;
        }

    .learnhub-video-duration {
        position: absolute;
        right: 0.6rem;
        bottom: 0.6rem;
        background: rgba(0, 0, 0, 0.6);
        color: #ffffff;
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
        border-radius: 0.4rem;
    }

    .learnhub-video-body {
        padding: 1rem 1.1rem 1.25rem;
    }

        .learnhub-video-body h6 {
            color: var(--app-text);
            font-weight: 700;
        }
    /* Tin tức ô tô & giao thông */
    .learnhub-news-tag {
        display: inline-block;
        padding: 0.4rem 0.9rem;
        border-radius: 2rem;
        background: var(--app-surface-soft);
        color: var(--app-text);
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        border: 1px solid var(--app-border);
    }

        .learnhub-news-tag.active,
        .learnhub-news-tag:hover {
            background: #0d6efd;
            color: #ffffff;
            border-color: #0d6efd;
        }

    .learnhub-news-card,
    .learnhub-news-card-compact {
        background: var(--app-surface);
        border: 1px solid var(--app-border);
        border-radius: 1.25rem;
        overflow: hidden;
        box-shadow: var(--app-shadow);
        height: 100%;
    }

    .learnhub-news-card-featured .learnhub-news-image {
        height: 220px;
        display: flex;
        align-items: flex-end;
        padding: 1rem;
    }

    .learnhub-news-body {
        padding: 1.25rem 1.35rem 1.5rem;
    }

        .learnhub-news-body h5 {
            font-weight: 700;
            color: var(--app-text);
        }

        .learnhub-news-body p {
            color: var(--app-muted);
        }

    .learnhub-news-meta {
        font-size: 0.8rem;
        color: var(--app-muted);
    }

    .learnhub-news-card-compact {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    .learnhub-news-image-sm {
        width: 88px;
        height: 72px;
        flex-shrink: 0;
        border-radius: 0.75rem;
    }

    .learnhub-news-card-compact h6 {
        color: var(--app-text);
        font-weight: 700;
    }
    /* Mẹo bảo dưỡng xe */
    .learnhub-tip-card {
        background: var(--app-surface);
        border: 1px solid var(--app-border);
        border-radius: 1.1rem;
        padding: 1.5rem;
        height: 100%;
    }

        .learnhub-tip-card i {
            font-size: 1.75rem;
            color: #0d6efd;
            margin-bottom: 0.75rem;
            display: inline-block;
        }

        .learnhub-tip-card h6 {
            font-weight: 700;
            color: var(--app-text);
        }

        .learnhub-tip-card p {
            color: var(--app-muted);
            margin-bottom: 0;
            font-size: 0.9rem;
        }
    /* Vì sao chọn chúng tôi */
    .learnhub-why-section {
        background: var(--app-surface-soft);
    }

    .learnhub-why-stat {
        background: var(--app-surface);
        border: 1px solid var(--app-border);
        border-radius: 1rem;
        padding: 1.25rem 0.75rem;
        text-align: center;
    }

    .learnhub-why-number {
        font-size: 1.75rem;
        font-weight: 800;
        color: #0d6efd;
    }

    .learnhub-why-label {
        font-size: 0.82rem;
        color: var(--app-muted);
    }
    /* Tính năng sắp ra mắt */
    .learnhub-feature-card {
        background: var(--app-surface);
        border: 1px dashed var(--app-border);
        border-radius: 1.1rem;
        padding: 1.5rem;
        height: 100%;
        text-align: center;
    }

        .learnhub-feature-card i {
            font-size: 2rem;
            color: #0d6efd;
            margin-bottom: 0.75rem;
            display: inline-block;
        }

        .learnhub-feature-card h6 {
            font-weight: 700;
            color: var(--app-text);
        }

        .learnhub-feature-card p {
            color: var(--app-muted);
            font-size: 0.88rem;
            margin-bottom: 0;
        }
    /* CTA cuối trang */
    .learnhub-cta-banner {
        background: linear-gradient(135deg, #0d6efd, #0043c3);
        border-radius: 1.5rem;
        padding: 2.5rem;
        color: #ffffff;
    }

    .learnhub-cta-btn {
        background: #ffffff;
        color: #0d6efd;
        font-weight: 700;
        white-space: nowrap;
    }

        .learnhub-cta-btn:hover {
            background: #0f172a;
            color: #ffffff;
        }

    html[data-theme='dark'] .learnhub-examtype-card,
    html[data-theme='dark'] .learnhub-license-card,
    html[data-theme='dark'] .learnhub-video-card,
    html[data-theme='dark'] .learnhub-news-card,
    html[data-theme='dark'] .learnhub-news-card-compact,
    html[data-theme='dark'] .learnhub-tip-card,
    html[data-theme='dark'] .learnhub-why-stat,
    html[data-theme='dark'] .learnhub-feature-card,
    html[data-theme='dark'] .learnhub-news-tag {
        background: transparent;
        border-color: rgba(148, 163, 184, 0.18);
        color: #e2e8f0;
    }

    html[data-theme='dark'] .learnhub-category-pill {
        background: rgba(59, 130, 246, 0.18);
        border-color: rgba(96, 165, 250, 0.3);
        color: #93c5fd;
    }

    html[data-theme='dark'] .learnhub-why-section {
        background: rgba(15, 23, 42, 0.4);
    }

    html[data-theme='dark'] .learnhub-examtype-card p,
    html[data-theme='dark'] .learnhub-video-body h6,
    html[data-theme='dark'] .learnhub-news-body h5,
    html[data-theme='dark'] .learnhub-news-body p,
    html[data-theme='dark'] .learnhub-news-card-compact h6,
    html[data-theme='dark'] .learnhub-tip-card h6,
    html[data-theme='dark'] .learnhub-tip-card p,
    html[data-theme='dark'] .learnhub-feature-card h6,
    html[data-theme='dark'] .learnhub-feature-card p,
    html[data-theme='dark'] .learnhub-why-number,
    html[data-theme='dark'] .learnhub-why-label {
        color: #e2e8f0;
    }

