/*
 * MAIN STYLESHEET - LẮP ĐẶT WIFI FPT (LAPDATFPTWIFI.COM)
 * Tác giả: Nam IT Team (Hotline: 0909 907 073)
 * Phong cách & Màu sắc: Navy / Cyan / White / Slate theo chuẩn FPT Telecom
 */

:root {
    --primary: #1E40AF;
    --primary-dark: #0F172A;
    --primary-light: #EFF6FF;
    --secondary: #0284C7;
    --secondary-dark: #0369A1;
    --secondary-light: #F0F9FF;
    --royal-red: #1E40AF;
    --royal-gold: #0284C7;
    --royal-gold-bg: #EFF6FF;
    --accent: #0284C7;
    --accent-cyan: #38BDF8;
    --accent-orange: #F97316;
    --text-dark: #1F2937;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --zalo-color: #0068FF;
    --youtube-color: #FF0000;
    --tiktok-color: #111111;
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
    --shadow-lg: 0 10px 25px rgba(15,23,42,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

html {
    overflow-x: clip;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: clip;
    max-width: 100%;
    position: relative;
}

.site-wrapper {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Tương thích với WordPress Admin Bar khi đăng nhập */
.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
@media (max-width: 600px) {
    #wpadminbar {
        position: absolute;
    }
    .admin-bar .site-header {
        top: 0;
    }
}

.tdlx-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   1. HEADER & TOPBAR
   ========================================================================== */
.site-topbar {
    background: #0F172A;
    color: #E2E8F0;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #38BDF8;
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-right a {
    color: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.topbar-right a:hover {
    color: #38BDF8;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-socials a {
    font-size: 14px;
    transition: transform 0.2s;
}

.topbar-socials a:hover {
    transform: scale(1.15);
}

/* MAIN HEADER */
.site-header {
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 12px 0;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Huy hiệu Nam Việt mạ vàng */
.brand-crest-emblem {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 10px rgba(127, 29, 29, 0.25));
    flex-shrink: 0;
    display: block;
    transition: transform 0.25s ease;
}

.brand-link:hover .brand-crest-emblem {
    transform: scale(1.04);
}

/* Logo ảnh tải lên từ Admin */
.brand-custom-logo {
    max-height: 68px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    transition: transform 0.25s ease;
}

.brand-link:hover .brand-custom-logo {
    transform: scale(1.02);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.brand-prefix {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0284C7;
    margin-bottom: 2px;
    line-height: 1.2;
}

.brand-name, 
.brand-text .site-title {
    margin: 0;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1E40AF;
    line-height: 1.15;
    letter-spacing: 0.8px;
}

.brand-slogan,
.brand-text .site-tagline {
    margin: 4px 0 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hotline Badge phong cách FPT Telecom */
.header-hotline-badge,
.header-hotline-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1.5px solid #93C5FD;
    box-shadow: 0 3px 8px rgba(30, 64, 175, 0.1);
    text-decoration: none;
    transition: all 0.25s ease;
}

.header-hotline-badge:hover,
.header-hotline-box:hover {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.18);
    transform: translateY(-1px);
}

.hotline-badge-icon,
.hotline-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1E40AF 0%, #0284C7 100%);
    color: #FFFFFF;
    border: 1.5px solid #60A5FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.45); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.hotline-badge-info,
.hotline-info {
    display: flex;
    flex-direction: column;
}

.hotline-badge-label,
.hotline-info .label {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: #0369A1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.hotline-badge-number,
.hotline-info .phone-number {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #1E40AF;
    letter-spacing: 0.5px;
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1.15;
}

.btn-header-zalo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    border: 1px solid #38BDF8;
    color: #FFFFFF !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(3, 105, 161, 0.25);
    transition: transform 0.2s, background 0.2s;
}

.btn-header-zalo:hover {
    background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
    transform: translateY(-2px);
}

.btn-header-dangky {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284C7 0%, #1E40AF 100%);
    border: 1px solid #38BDF8;
    color: #FFFFFF !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-header-dangky:hover {
    background: linear-gradient(135deg, #0369A1 0%, #0F172A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: #1E40AF;
    border: 1px solid #38BDF8;
    border-radius: 6px;
    font-size: 18px;
    color: #FFFFFF;
    cursor: pointer;
    padding: 7px 10px;
}

/* THANH MENU CHÍNH - XANH NAVY CÔNG NGHỆ */
.site-nav {
    background: linear-gradient(180deg, #1E40AF 0%, #0F172A 100%);
    border-top: 2px solid #38BDF8;
    border-bottom: 2px solid #0284C7;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}

.nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    display: block;
    padding: 13px 18px;
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-left: 1px solid rgba(0,0,0,0.18);
    transition: all 0.2s;
}

.nav-menu > li:first-child > a {
    border-left: none;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background: #0F172A;
    color: #38BDF8;
    box-shadow: inset 0 -3px 0 #38BDF8;
}

/* ==========================================================================
   2. HERO SECTION (GRID 2 CỘT CHUẨN TRONGGODOITAM.NET)
   ========================================================================== */
.hero-section {
    padding: 24px 0 10px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 315px 1fr;
    gap: 24px;
}

/* SIDEBAR HẠNG BẰNG */
.hero-cat-sidebar {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: fit-content;
}

.cat-sidebar-header {
    background: var(--primary);
    color: #FFFFFF;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.cat-sidebar-list {
    margin: 0;
    padding: 4px 0;
}

.cat-sidebar-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    color: var(--text-dark);
    font-size: 13.5px;
    font-weight: 600;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.cat-sidebar-list > li:last-child > a {
    border-bottom: none;
}

/* CỐ ĐỊNH KÍCH THƯỚC KHI HOVER: KHÔNG THAY ĐỔI PADDING ĐỂ TRÁNH NHẢY BỐ CỤC */
.cat-sidebar-list > li > a:hover {
    background: #FEF2F2;
    color: var(--primary);
}

.cat-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* ĐỒNG BỘ KÍCH THƯỚC ICON CHUẨN XÁC, THẲNG HÀNG TUYỆT ĐỐI */
.cat-icon-box {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    text-align: center;
}

.cat-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* HUY HIỆU BADGE GỌN GÀNG, KHÔNG BỊ CO TRÒN MÉO HOẶC XUỐNG DÒNG */
.cat-sidebar-list .cat-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
    margin-left: 8px;
}

.cat-badge.hot {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.cat-badge.new {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.cat-badge.badge-blue {
    background: #E0F2FE;
    color: #075985;
    border: 1px solid rgba(2, 132, 199, 0.25);
}

/* HERO BANNER CHÍNH */
.hero-banner-wrap {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: var(--radius-md);
    color: #FFFFFF;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-banner-wrap::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 34, 31, 0.4) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 34, 31, 0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-title span {
    color: #FBBF24;
}

.hero-desc {
    font-size: 15px;
    color: #CBD5E1;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 680px;
}

.hero-features-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 26px;
}

.hero-features-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.hero-features-strip i {
    color: #FBBF24;
}

.hero-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-hero-primary {
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(197, 34, 31, 0.4);
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: var(--secondary);
    color: #FFFFFF !important;
    padding: 13px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-hero-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-hero-zalo {
    background: var(--zalo-color);
    color: #FFFFFF !important;
    padding: 13px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-hero-zalo:hover {
    background: #0056D2;
    transform: translateY(-2px);
}

/* ==========================================================================
   3. DẢI 4 CAM KẾT VÀNG (STYLE TRONGGODOITAM.NET)
   ========================================================================== */
.commitments-section {
    padding: 24px 0 10px;
}

.commitments-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.commit-item {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--border-color);
    transition: background 0.2s;
}

.commit-item:last-child {
    border-right: none;
}

.commit-item:hover {
    background: #FFFDF9;
}

.commit-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid rgba(201, 138, 44, 0.2);
}

.commit-text h2,
.commit-text h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.commit-text p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   4. SECTION TRADITIONAL HEADING (CORNER ORNAMENT BOX)
   ========================================================================== */
.traditional-heading-wrap {
    text-align: center;
    margin: 36px 0 24px;
    position: relative;
}

.corner-ornament-box {
    display: inline-block;
    position: relative;
    padding: 10px 36px;
    background: #FFFFFF;
    border: 2px solid var(--primary);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(197, 34, 31, 0.1);
}

.corner-ornament-box .corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--secondary);
}

.corner-ornament-box .corner.top-left { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.corner-ornament-box .corner.top-right { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.corner-ornament-box .corner.bottom-left { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.corner-ornament-box .corner.bottom-right { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.section-title-traditional {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.section-sub-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ==========================================================================
   5. FEATURED 5 CARDS GRID (SẢN PHẨM / KHÓA HỌC BÁN CHẠY NHẤT)
   ========================================================================== */
.featured-5-section {
    padding: 10px 0 30px;
}

.featured-5-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 24px;
}

/* THẺ LỚN TIÊU ĐIỂM (A1 CẤP TỐC) */
.featured-card-lead {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-lead-badge {
    position: absolute;
    top: 14px;
    left: auto;
    right: 14px;
    max-width: calc(50% - 14px);
    box-sizing: border-box;
    text-align: center;
    overflow-wrap: anywhere;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: none;
}

.card-lead-thumb {
    height: 240px;
    background: #2D3748;
    position: relative;
    overflow: hidden;
}

.card-lead-thumb a,
.card-lead-thumb .thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.card-lead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}

.featured-card-lead:hover .card-lead-thumb img,
.card-lead-thumb a:hover img {
    transform: scale(1.05);
}

.card-lead-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-lead-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--text-dark);
}

.card-lead-title a:hover {
    color: var(--primary);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.price-sale {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.price-original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.lead-highlights {
    margin: 0 0 20px;
    padding: 12px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-dark);
}

.lead-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.lead-highlights li:last-child {
    margin-bottom: 0;
}

.lead-highlights i {
    color: #10B981;
}

.card-lead-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.btn-card-register {
    flex: 1;
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-card-register:hover {
    background: var(--primary-dark);
}

.btn-card-detail {
    background: #F1F5F9;
    color: var(--text-dark) !important;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s;
}

.btn-card-detail:hover {
    background: #E2E8F0;
}

/* 4 THẺ VỆ TINH BÊN PHẢI */
.featured-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.course-card-sub {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.course-card-sub:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sub-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.card-sub-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    height: 42px;
    overflow: hidden;
}

.card-sub-title a:hover {
    color: var(--primary);
}

.sub-price-row {
    margin-bottom: 12px;
}

.sub-price-sale {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.sub-price-orig {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.sub-meta-list {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.sub-meta-list li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-meta-list i {
    color: var(--secondary);
    width: 14px;
}

.card-sub-action {
    margin-top: auto;
}

.btn-sub-order {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}

.btn-sub-order:hover {
    background: var(--primary);
    color: #FFFFFF !important;
}

/* ==========================================================================
   6. GRID KHÓA HỌC THEO HẠNG (A1, A, B, C)
   ========================================================================== */
.courses-grid-section {
    padding: 20px 0 40px;
}

.courses-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.course-item-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.course-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.item-thumb-box {
    aspect-ratio: 16 / 9;
    height: auto;
    position: relative;
    background: #334155;
    overflow: hidden;
}

.item-thumb-box a,
.item-thumb-box .thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.item-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
    display: block;
}



.item-badge-corner {
    position: absolute;
    top: 10px;
    left: auto;
    right: 10px;
    max-width: calc(50% - 10px);
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

.item-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
}

.item-title a:hover {
    color: var(--primary);
}

.item-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.item-details-list {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.item-details-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-actions-row {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-item-register {
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}

.btn-item-view {
    background: #F1F5F9;
    color: var(--text-dark) !important;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* ==========================================================================
   7. SECTION VIDEO NAM VIỆT (YOUTUBE & TIKTOK)
   ========================================================================== */
.videos-section {
    background: #FFFFFF;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.channels-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 30px;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.channel-btn:hover {
    transform: translateY(-2px);
}

.channel-btn.tiktok {
    background: #000000;
}

.channel-btn.youtube {
    background: #B91C1C;
}

.videos-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.video-embed-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000000;
}

.video-embed-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 16px;
}

.video-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.4;
}

.video-author {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   8. SECTION SÂN THI SÁT HẠCH TẠI TP.HCM
   ========================================================================== */
.locations-section {
    padding: 40px 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.location-item-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.loc-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.loc-content h3,
.loc-content h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.loc-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   9. SECTION FORM ĐĂNG KÝ TƯ VẤN NHANH (INLINE)
   ========================================================================== */
.inline-form-section {
    background: linear-gradient(135deg, var(--primary) 0%, #8B1515 100%);
    color: #FFFFFF;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.form-box-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.form-box-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.form-box-subtitle {
    font-size: 15px;
    color: #FEE2E2;
    margin: 0 0 30px;
}

.tdlx-booking-form {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
    text-align: left;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-full {
    margin-bottom: 16px;
}

.form-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-field-group input,
.form-field-group select,
.form-field-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-field-group input:focus,
.form-field-group select:focus,
.form-field-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 34, 31, 0.15);
}

.btn-form-submit {
    width: 100%;
    background: var(--primary);
    color: #FFFFFF;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.form-status-msg {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: none;
}

.form-status-msg.success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    display: block;
}

.form-status-msg.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    display: block;
}

.tdlx-hp-wrap {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

.tdlx-input-error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* ==========================================================================
   ĐIỀU HƯỚNG GỌI / ZALO NHANH DƯỚI NÚT ĐĂNG KÝ
   ========================================================================== */
.form-instant-contact-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #CBD5E1;
    text-align: center;
}

.instant-contact-label {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 10px;
    font-weight: 600;
}

.instant-contact-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.instant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    line-height: 1.3;
}

.instant-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.instant-btn:active {
    transform: scale(0.96);
}

.instant-btn.instant-call {
    background: #FEF2F2;
    color: #991B1B !important;
    border: 1.5px solid #FECACA;
}

.instant-btn.instant-call:hover {
    background: #991B1B;
    color: #FFFFFF !important;
    border-color: #991B1B;
}

.instant-btn.instant-zalo {
    background: #EFF6FF;
    color: #075985 !important;
    border: 1.5px solid #BFDBFE;
}

.instant-btn.instant-zalo:hover {
    background: #075985;
    color: #FFFFFF !important;
    border-color: #075985;
}

.instant-btn .instant-zalo-svg {
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
}

.instant-btn.instant-call i {
    font-size: 13px;
    flex-shrink: 0;
}

/* ==========================================================================
   10. SINGLE COURSE PAGE STYLES
   ========================================================================== */
.single-course-wrapper {
    padding: 30px 0 50px;
}

.tdlx-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tdlx-breadcrumb a:hover {
    color: var(--primary);
}

.single-course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 25px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.single-course-layout > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.course-content-main {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.single-course-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.35;
    margin: 0 0 16px;
    word-break: break-word;
}

.single-course-thumb {
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.single-course-thumb img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.course-entry-body {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   TỐI ƯU HÓA HÌNH ẢNH & CHỐNG TRÀN TUYỆT ĐỐI (RESPONSIVE IMAGES & WP-CAPTION)
   Khắc phục triệt để lỗi ảnh chèn trong bài viết tràn qua sidebar hoặc màn hình mobile
   ========================================================================== */

/* 1. Mọi hình ảnh trong bài viết / nội dung */
.course-entry-body img,
.entry-content img,
.single-content img,
.page-content img,
.wp-caption img,
figure.wp-caption img,
.wp-block-image img,
figure.wp-block-image img,
article img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-sm, 6px);
}

/* 2. Khung bao bọc WP Caption & Gutenberg Image Block (Loại bỏ triệt để style width cố định) */
.course-entry-body .wp-caption,
.entry-content .wp-caption,
.wp-caption,
figure.wp-caption,
.wp-block-image,
figure.wp-block-image,
.wp-block-embed,
figure.wp-block-embed {
    max-width: 100% !important;
    width: auto !important;
    box-sizing: border-box !important;
    margin: 18px auto 20px !important;
    clear: both;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: center !important;
}

.course-entry-body a:has(img),
.entry-content a:has(img),
.wp-caption a {
    display: inline-block;
    max-width: 100% !important;
}

.course-entry-body a > img,
.wp-caption a > img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* 3. Chú thích hình ảnh (Caption text) hiển thị trang nhã, không tràn chữ */
.wp-caption .wp-caption-text,
.wp-caption-text,
.wp-block-image figcaption,
figcaption {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #64748B !important;
    font-style: italic !important;
    text-align: center !important;
    padding: 8px 12px 4px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

/* 4. Các lớp căn chỉnh ảnh mặc định của WordPress (aligncenter, alignleft, alignright, alignnone) */
.aligncenter,
div.aligncenter,
.wp-caption.aligncenter,
.wp-block-image.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    clear: both;
}

.alignnone,
div.alignnone,
.wp-caption.alignnone,
.wp-block-image.alignnone {
    display: block !important;
    margin: 18px auto !important;
    max-width: 100% !important;
    clear: both;
}

.alignleft,
div.alignleft,
.wp-caption.alignleft,
.wp-block-image.alignleft {
    float: left;
    margin: 6px 24px 18px 0;
    max-width: 50% !important;
}

.alignright,
div.alignright,
.wp-caption.alignright,
.wp-block-image.alignright {
    float: right;
    margin: 6px 0 18px 24px;
    max-width: 50% !important;
}

/* 5. Tự động hóa responsive trên thiết bị di động & Tablet (Dưới 768px) */
@media (max-width: 768px) {
    .course-entry-body .wp-caption,
    .wp-caption,
    figure.wp-caption,
    .wp-block-image,
    figure.wp-block-image {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .alignleft,
    .alignright,
    div.alignleft,
    div.alignright,
    .wp-caption.alignleft,
    .wp-caption.alignright,
    .wp-block-image.alignleft,
    .wp-block-image.alignright {
        float: none !important;
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 16px auto !important;
        clear: both;
    }

    .course-entry-body img,
    .entry-content img,
    .wp-caption img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

.course-entry-body table {
    width: 100% !important;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

.course-entry-body iframe {
    max-width: 100%;
}

.course-entry-body h2, .course-entry-body h3 {
    color: var(--primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.course-entry-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.course-entry-body li {
    margin-bottom: 8px;
}

/* SIDEBAR TÓM TẮT & CHỐT ĐƠN */
.course-sidebar-box {
    position: sticky;
    top: 168px;
    min-width: 0;
    max-width: 350px;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.admin-bar .course-sidebar-box {
    top: 202px; /* Khoảng đệm rộng rãi khi đang đăng nhập thanh WP Admin Bar 32px */
}

.course-summary-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.summary-header {
    background: var(--primary);
    color: #FFFFFF;
    padding: 14px 18px;
    text-align: center;
}

.summary-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-body {
    padding: 18px;
    box-sizing: border-box;
}

.summary-price-box {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 14px;
    box-sizing: border-box;
}

.summary-sale-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    margin: 4px 0;
}

.summary-orig-price {
    font-size: 13.5px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.summary-specs-list {
    margin-bottom: 18px;
    font-size: 13px;
    box-sizing: border-box;
}

.summary-specs-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #F1F5F9;
    gap: 10px;
    box-sizing: border-box;
}

.summary-specs-list li span:first-child {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 12.5px;
    white-space: nowrap;
}

.summary-specs-list li span:last-child {
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
    font-size: 12.5px;
    word-break: break-word;
    flex: 1;
}

.summary-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-sidebar-register {
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(197, 34, 31, 0.3);
    transition: background 0.2s;
}

.btn-sidebar-register:hover {
    background: var(--primary-dark);
}

.btn-sidebar-call {
    background: #10B981;
    color: #FFFFFF !important;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-sidebar-zalo {
    background: var(--zalo-color);
    color: #FFFFFF !important;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- CRO Conversion Elements for Single Course --- */
.course-social-proof-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 14px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 18px;
    color: #92400E;
}

.proof-stars {
    color: #F59E0B;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.proof-score {
    font-weight: 800;
    color: #B45309;
    margin-left: 4px;
}

.proof-dot {
    color: #D97706;
}

.proof-students {
    color: #1E293B;
    font-weight: 600;
}

.proof-students i {
    color: #10B981;
}

.proof-status {
    color: #065F46;
    font-weight: 600;
}

.proof-status i {
    color: #10B981;
}

/* Tabs điều hướng 1 chạm */
.course-tabs-wrapper {
    position: sticky;
    top: 150px;
    z-index: 20;
    background: #FFFFFF;
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: 24px;
    padding: 4px 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.admin-bar .course-tabs-wrapper {
    top: 184px;
}

.course-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    max-width: 100%;
    box-sizing: border-box;
    padding: 2px 2px 6px;
}

.course-tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-decoration: none;
}

.tab-link:hover {
    color: var(--primary);
    background: #FEE2E2;
}

.tab-link.active {
    color: #FFFFFF;
    background: var(--primary);
}

.tab-link.tab-highlight {
    background: #FEF2F2;
    color: var(--primary);
    border: 1px solid #FECACA;
}

.tab-link.tab-highlight:hover,
.tab-link.tab-highlight.active {
    background: var(--primary);
    color: #FFFFFF;
}

/* ==========================================================================
   BẢNG LỊCH THI SÁT HẠCH CHI TIẾT TRONG THÁNG
   ========================================================================== */
.course-schedule-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1.5px solid #FDE68A;
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.08);
    padding: 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.schedule-box-header {
    margin-bottom: 18px;
}

.schedule-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border: 1px solid #FCD34D;
}

.schedule-heading {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    color: #991B1B;
    line-height: 1.35;
}

.schedule-subdesc {
    margin: 0;
    font-size: 13.5px;
    color: #64748B;
}

/* BẢNG DESKTOP */
.desktop-schedule-table-wrap {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tdlx-schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    text-align: left;
    font-size: 14px;
}

.tdlx-schedule-table thead tr {
    background: linear-gradient(135deg, #1E40AF 0%, #0F172A 100%);
    color: #FFFFFF;
}

.tdlx-schedule-table th {
    padding: 12px 14px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    color: #FFFFFF;
}

.tdlx-schedule-table tbody tr {
    border-bottom: 1px solid #F1F5F9;
    transition: background-color 0.15s ease;
}

.tdlx-schedule-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

.tdlx-schedule-table tbody tr:hover {
    background: #FFFBEB;
}

.tdlx-schedule-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

.cell-month {
    background: #FEF3C7 !important;
    text-align: center;
    border-right: 1.5px solid #FDE68A;
}

.month-box-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #92400E;
    font-weight: 800;
    font-size: 13.5px;
    padding: 10px;
}

.month-box-highlight i {
    font-size: 18px;
    color: #D97706;
}

.cell-date {
    font-size: 14px;
    color: #1E293B;
}

.cell-time {
    font-size: 13.5px;
    color: #475569;
}

.slot-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.slot-badge.badge-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.slot-badge.badge-warning {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.slot-badge.badge-urgent {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
    font-weight: 800;
}

.slot-badge.badge-past,
.slot-badge.badge-muted {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

/* Nhãn trạng thái đợt thi nhỏ bên cạnh ngày */
.session-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.session-tag.tag-passed {
    background: #E2E8F0;
    color: #475569;
    font-weight: 600;
}

.session-tag.tag-urgent {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #B91C1C;
    border: 1px solid #FCA5A5;
    font-weight: 800;
    animation: pulseBadge 2.2s infinite ease-in-out;
}

/* Dòng đã qua (Vé xem phim đã chiếu / đã chốt) */
.tdlx-sched-row.is-past-session {
    background: #F8FAFC !important;
    opacity: 0.58;
}

.tdlx-sched-row.is-past-session:hover {
    background: #F1F5F9 !important;
}

.date-text-past {
    text-decoration: line-through;
    color: #64748B;
}

.btn-slot-past {
    background: #E2E8F0;
    color: #94A3B8 !important;
    border: 1px solid #CBD5E1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* Dòng gần nhất (Suất thi kế tiếp đang mở) */
.tdlx-sched-row.is-nearest-session {
    background: #FFFBEB !important;
    box-shadow: inset 4px 0 0 #D97706;
}

.date-text-nearest {
    color: #B91C1C;
    font-size: 14.5px;
}

.btn-slot-register {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #FFFFFF !important;
    border: 1px solid #991B1B;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-slot-register:hover {
    background: #991B1B;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.35);
}

.btn-slot-urgent {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
    animation: pulseBtn 2.5s infinite ease-in-out;
}

/* THẺ MOBILE */
.mobile-schedule-cards-wrap {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.m-schedule-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.m-schedule-card.is-past {
    opacity: 0.58;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-left: 4px solid #94A3B8;
}

.m-schedule-card.is-nearest {
    background: #FFFDF5;
    border: 2px solid #F59E0B;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
}

.m-card-nearest-badge {
    display: inline-block;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.m-schedule-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #F1F5F9;
}

.m-schedule-date {
    font-size: 13.5px;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.m-schedule-date i {
    color: var(--primary);
}

.m-schedule-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.m-schedule-time {
    font-size: 12px;
    color: #64748B;
}

.btn-m-slot-reg {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #FFFFFF;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-m-slot-past {
    background: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
}

.btn-m-slot-urgent {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35);
    animation: pulseBtn 2.5s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(220, 38, 38, 0.6); }
}

@media (max-width: 768px) {
    .desktop-schedule-table-wrap {
        display: none;
    }
    .mobile-schedule-cards-wrap {
        display: flex;
    }
    .course-schedule-box {
        padding: 16px 12px;
    }
    .schedule-heading {
        font-size: 16px;
    }
}

/* TỰ ĐỘNG CHUẨN HÓA BẢNG HTML TRONG NỘI DUNG BÀI VIẾT */
.course-entry-body table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    display: table;
}

.course-entry-body table th {
    background: #991B1B !important;
    color: #FFFFFF !important;
    padding: 10px 14px !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-size: 13.5px !important;
}

.course-entry-body table td {
    padding: 10px 12px !important;
    border: 1px solid #E2E8F0 !important;
    font-size: 13.5px !important;
}

.course-entry-body table tr:nth-child(even) {
    background: #F8FAFC;
}

/* Quyền lợi Nam Việt */
.course-perks-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-left: 4px solid #16A34A;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 26px;
}

.perks-heading {
    font-size: 16px;
    font-weight: 800;
    color: #166534;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.perks-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: #1E293B;
    line-height: 1.5;
}

.perks-list li i {
    color: #16A34A;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Video Nam Việt */
.course-video-section {
    margin-bottom: 26px;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.video-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-embed-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #000;
}

.video-embed-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Thủ tục 4 bước */
.fast-procedure-box {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 28px;
}

.procedure-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.procedure-header i {
    font-size: 28px;
    color: #2563EB;
    margin-top: 2px;
}

.procedure-header h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #1E40AF;
}

.procedure-header p {
    margin: 0;
    font-size: 13.5px;
    color: #1E3A8A;
}

.procedure-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.step-card {
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
    border: 1px solid #BFDBFE;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.06);
    position: relative;
}

.step-num {
    width: 26px;
    height: 26px;
    background: #2563EB;
    color: #FFFFFF;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
}

.step-card strong {
    display: block;
    font-size: 13px;
    color: #1E293B;
    margin-bottom: 4px;
}

.step-card p {
    margin: 0;
    font-size: 11.5px;
    color: #64748B;
    line-height: 1.4;
}

/* Đăng ký giữ suất cuối bài */
.course-bottom-register-box {
    margin-top: 36px;
    background: #FFFBEB;
    border: 2px dashed #F59E0B;
    border-radius: var(--radius-md);
    padding: 26px;
}

.bottom-register-title {
    font-size: 18px;
    font-weight: 800;
    color: #B45309;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-register-desc {
    font-size: 13.5px;
    color: #78350F;
    margin: 0 0 18px;
}

/* Giá, Tiết kiệm & Đảm bảo Sidebar */
.price-deal-label {
    display: inline-block;
    background: #FEE2E2;
    color: #B91C1C;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-orig-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.summary-saving-tag {
    background: #DC2626;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.summary-guarantee-note {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Khung 4 Cam Kết Vàng Sidebar */
.sidebar-commitments-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 2px solid #F59E0B;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.commit-card-head {
    background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
    color: #FFFFFF;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.commit-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.commit-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.commit-icon {
    color: #D97706;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.commit-info strong {
    display: block;
    font-size: 13px;
    color: #1E293B;
    margin-bottom: 2px;
}

.commit-info p {
    margin: 0;
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

/* Thẻ Chia Sẻ Bạn Bè */
.sidebar-share-card {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.share-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.3fr;
    gap: 6px;
}

.share-btn-zalo, .share-btn-fb, .share-btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.share-btn-zalo:hover, .share-btn-fb:hover, .share-btn-copy:hover {
    opacity: 0.9;
}

.share-btn-zalo {
    background: #0068FF;
    color: #FFFFFF !important;
}

.share-btn-fb {
    background: #1877F2;
    color: #FFFFFF !important;
}

.share-btn-copy {
    background: #E2E8F0;
    color: #334155 !important;
}

/* ==========================================================================
   MOBILE CRO CONVERSION ELEMENTS (CHO 85% LƯỢNG KHÁCH TRUY CẬP DI ĐỘNG)
   ========================================================================== */
.course-mobile-cta-card {
    display: none; /* Mặc định ẩn trên màn hình lớn / máy tính */
    background: #FFFBEB;
    border: 2px solid #F59E0B;
    border-radius: var(--radius-md);
    padding: 14px 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
    box-sizing: border-box;
    width: 100%;
}

.m-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.m-deal-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #B91C1C;
    background: #FEE2E2;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.m-exam-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: #1E40AF;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-price-flex {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #FDE68A;
    margin-bottom: 10px;
}

.m-price-val {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.m-price-sub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.m-orig-price {
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.m-saving-badge {
    background: #DC2626;
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.mobile-guarantee-note {
    font-size: 12px;
    color: #059669;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-m-register {
    width: 100%;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #FFFFFF !important;
    border: none;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    cursor: pointer;
}

.mobile-cta-sub-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-m-call, .btn-m-zalo {
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #FFFFFF !important;
}

.btn-m-call {
    background: #10B981;
}

.btn-m-zalo {
    background: var(--zalo-color);
}

/* THANH STICKY CHỐT ĐƠN ĐÁY MÀN HÌNH DI ĐỘNG */
.course-mobile-sticky-bar {
    display: none; /* Mặc định ẩn trên Desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 2.5px solid #C59B27; /* Viền chỉ vàng kim Nam Việt */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12), 0 -1px 6px rgba(127, 29, 29, 0.08);
    z-index: 99998;
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.sticky-bar-left {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.sticky-bar-left .sb-label {
    font-size: 9.5px;
    color: #854D0E;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sticky-bar-left .sb-price {
    font-size: 18px;
    font-weight: 900;
    color: #1E40AF;
    font-family: var(--font-heading);
}

.sticky-bar-left .sb-save {
    font-size: 10px;
    color: #0284C7;
    font-weight: 700;
}

.sticky-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sb-btn:active {
    transform: scale(0.96);
}

.sb-btn.sb-call {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #FFFFFF !important;
    padding: 8px 10px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.sb-btn.sb-zalo {
    background: linear-gradient(135deg, #0084FF 0%, #0068FF 100%);
    color: #FFFFFF !important;
    padding: 8px 11px;
    box-shadow: 0 2px 6px rgba(0, 104, 255, 0.3);
}

.sb-btn.sb-zalo svg,
.sb-btn.sb-zalo .sb-zalo-svg {
    width: 14px;
    height: 14px;
    fill: #FFFFFF;
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}

.sb-btn.sb-reg {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #FFFFFF !important;
    padding: 8px 13px;
    border: 1px solid rgba(197, 155, 39, 0.6);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
    background: #0F172A;
    color: #94A3B8;
    font-size: 14px;
    padding: 50px 0 20px;
    border-top: 4px solid var(--primary);
}

.footer-grid-4 {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--primary);
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-contact-list i {
    color: #FBBF24;
    margin-top: 4px;
}

.footer-links-list li {
    margin-bottom: 8px;
}

.footer-links-list a {
    color: #94A3B8;
    transition: color 0.2s;
}

.footer-links-list a:hover,
.footer-links-list a:focus-visible {
    color: #FFFFFF;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.footer-bottom a {
    color: #CBD5E1;
}

.footer-bottom a:hover {
    color: #FBBF24;
}

/* ==========================================================================
   12. FLOATING ACTION BUTTONS (GỌI ĐIỆN, ZALO, ĐĂNG KÝ - GÓC PHẢI THUẬN TAY CÁI)
   ========================================================================== */
.floating-contact-bar {
    position: fixed;
    bottom: 25px;
    right: 22px; /* CHUYỂN SANG GÓC PHẢI THUẬN TAY CÁI */
    left: auto;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
}

.float-btn:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.float-btn:active {
    transform: scale(0.95);
}

/* Tooltip nhãn hiển thị khi hover trên máy tính */
.float-btn-tooltip {
    position: absolute;
    right: 58px;
    background: #1E293B;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(197, 155, 39, 0.4);
}

.float-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #1E293B;
}

.float-btn:hover .float-btn-tooltip {
    opacity: 1;
    visibility: visible;
    right: 56px;
}

/* Nút Gọi Hotline - Navy viền Cyan */
.float-btn.phone {
    background: linear-gradient(135deg, #1E40AF 0%, #0284C7 100%);
    border: 2px solid #38BDF8;
    animation: quick-wiggle 2s infinite, royal-phone-pulse 2s infinite;
}

/* Nút Zalo */
.float-btn.zalo {
    background: linear-gradient(135deg, #0084FF 0%, #0068FF 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

/* Nút Đăng ký nhanh - Tone Vàng Kim / Cam uy tín */
.float-btn.register {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.float-btn svg,
.float-btn .zalo-svg-icon {
    width: 25px;
    height: 25px;
    fill: #FFFFFF;
    display: block;
}

.float-btn.register i {
    font-size: 20px;
    line-height: 1;
}

@keyframes royal-phone-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 155, 39, 0.65), 0 4px 15px rgba(127, 29, 29, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(197, 155, 39, 0), 0 4px 15px rgba(127, 29, 29, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 155, 39, 0), 0 4px 15px rgba(127, 29, 29, 0.4);
    }
}

@keyframes quick-wiggle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(10deg); }
    75% { transform: rotate(-4deg); }
    85% { transform: rotate(4deg); }
}

/* ==========================================================================
   13. MODAL POPUP ĐĂNG KÝ HỌC LÁI XE
   ========================================================================== */
/* ==========================================================================
   14. RESPONSIVE MOBILE & TABLET
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-cat-sidebar {
        display: none; /* Ẩn sidebar trên mobile, menu chính đã có */
    }
    .featured-5-grid {
        grid-template-columns: 1fr;
    }
    .courses-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .commitments-box {
        grid-template-columns: repeat(2, 1fr);
    }
    .commit-item {
        border-bottom: 1px solid var(--border-color);
    }
    .footer-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .single-course-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .course-sidebar-box {
        position: static;
        max-width: 100%;
        width: 100%;
    }
    .locations-grid, .videos-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .course-mobile-cta-card {
        display: block;
    }
    .course-mobile-sticky-bar {
        display: flex;
    }
    .course-sidebar-box .course-summary-card {
        display: none; /* Ẩn bớt card tóm tắt giá lặp lại trong sidebar trên mobile */
    }
    
    /* ẨN TOÀN BỘ NÚT TRÒN NỔI TRÊN TRANG KHÓA HỌC ĐỂ NHƯỜNG KHÔNG GIAN CHO THANH STICKY CHỐT ĐƠN ĐÁY */
    .single-khoa_hoc .floating-contact-bar,
    .single-khoa_hoc #button-contact-vr,
    .single-khoa_hoc .button-contact-vr,
    .single-khoa_hoc [id*="contact-vr"],
    .single-khoa_hoc [class*="contact-vr"],
    .single-khoa_hoc #gom-all-in-one {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .site-topbar {
        display: none;
    }
    
    /* ===================================================
       HEADER MOBILE NAM VIỆT - CAO CẤP, VỮNG CHẮC & ĐẲNG CẤP
       =================================================== */
    .site-header {
        background: #FFFFFF;
        border-bottom: 3px solid #C59B27 !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(127, 29, 29, 0.08) !important;
    }
    .tdlx-container {
        padding: 0 14px;
    }
    .header-main {
        padding: 13px 0 !important;
        width: 100%;
        box-sizing: border-box;
    }
    .header-main-inner {
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .brand-wrapper {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }
    .brand-link {
        gap: 10px !important;
        text-decoration: none;
        min-width: 0;
        max-width: 100%;
        display: flex;
        align-items: center;
    }
    .brand-logo-container {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .brand-crest-emblem {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        filter: drop-shadow(0 3px 6px rgba(127, 29, 29, 0.22));
    }
    .brand-custom-logo {
        max-height: 44px;
        max-width: 125px;
        width: auto;
        height: auto;
        object-fit: contain;
        flex-shrink: 0;
    }
    .brand-text {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .brand-prefix {
        display: block !important;
        font-size: clamp(8.5px, 2.2vw, 10px);
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: #8C5311;
        margin-bottom: 2px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-name, 
    .brand-text .site-title {
        font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
        font-size: clamp(13.5px, 3.8vw, 16.5px);
        line-height: 1.18;
        font-weight: 900;
        color: #7F1D1D;
        letter-spacing: 0.25px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: 0 1px 1px rgba(197, 155, 39, 0.12);
    }
    .brand-slogan,
    .brand-text .site-tagline {
        display: none !important; /* Ẩn tagline dài để không làm vỡ header mobile */
    }
    .header-actions {
        gap: 8px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    .header-actions .btn-header-zalo,
    .header-actions .btn-header-dangky {
        display: none !important;
    }
    .header-hotline-badge,
    .header-hotline-box {
        width: 38px;
        height: 38px;
        padding: 0 !important;
        background: linear-gradient(135deg, #FCF8ED 0%, #FBF3DC 100%);
        border: 1.5px solid #C59B27;
        border-radius: 50%;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.2s ease;
        box-shadow: 0 2px 7px rgba(197, 155, 39, 0.25);
    }
    .header-hotline-badge:active {
        transform: scale(0.94);
    }
    .hotline-badge-icon,
    .hotline-icon {
        width: 30px;
        height: 30px;
        background: linear-gradient(135deg, #1E40AF 0%, #0284C7 100%);
        color: #FFFFFF;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        flex-shrink: 0;
        animation: pulse-ring 2s infinite;
    }
    .hotline-badge-info,
    .hotline-info {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: linear-gradient(135deg, #1E40AF 0%, #0F172A 100%);
        border: 1.5px solid #38BDF8;
        border-radius: 9px;
        color: #FFFFFF;
        font-size: 17px;
        flex-shrink: 0;
        cursor: pointer;
        padding: 0;
        box-shadow: 0 2px 7px rgba(15, 23, 42, 0.3);
        transition: all 0.2s ease;
    }
    .mobile-menu-toggle:active {
        transform: scale(0.94);
    }
    .site-nav {
        display: none;
    }
    .site-nav.mobile-active {
        display: block;
        max-height: 80vh;
        overflow-y: auto;
        border-bottom: 2px solid #C59B27;
    }
    .nav-menu {
        flex-direction: column;
    }
    .nav-menu > li > a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 12px 20px;
    }
    .hero-banner-wrap {
        padding: 24px 18px;
    }
    .hero-title {
        font-size: 22px;
    }
    .commitments-box {
        grid-template-columns: 1fr;
    }
    .commit-item {
        border-right: none;
    }
    .featured-sub-grid {
        grid-template-columns: 1fr;
    }
    .courses-grid-4 {
        grid-template-columns: 1fr;
    }
    .locations-grid, .videos-grid-3 {
        grid-template-columns: 1fr;
    }
    .footer-grid-4 {
        grid-template-columns: 1fr;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Breadcrumb tinh gọn trên Mobile */
    .tdlx-breadcrumb {
        font-size: 11.5px;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }
    .tdlx-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    /* Tối ưu chi tiết trang Khóa học trên Mobile */
    .single-course-wrapper {
        padding: 12px 0 80px; /* Thêm khoảng trống chân trang cho thanh Sticky Bottom Bar */
    }
    .single-course-title {
        font-size: 19px;
        line-height: 1.35;
        margin-bottom: 8px;
        word-break: break-word;
    }
    .course-content-main {
        padding: 16px 12px;
        border-radius: var(--radius-sm);
    }
    .course-social-proof-bar {
        font-size: 11.5px;
        padding: 6px 10px;
        gap: 4px 8px;
        margin-bottom: 12px;
        justify-content: flex-start;
    }
    .proof-dot {
        display: none;
    }
    .proof-stars, .proof-students, .proof-status {
        white-space: nowrap;
    }
    .course-tabs-wrapper {
        top: 68px;
        margin-left: -12px;
        margin-right: -12px;
        padding: 4px 12px;
        width: calc(100% + 24px);
        max-width: calc(100% + 24px);
    }
    .tab-link {
        padding: 7px 11px;
        font-size: 11.5px;
    }
    .course-perks-box {
        padding: 14px 12px;
        margin-bottom: 18px;
    }
    .perks-heading {
        font-size: 14.5px;
    }
    .perks-list li {
        font-size: 13px;
    }
    .fast-procedure-box {
        padding: 14px 12px;
        margin-bottom: 18px;
    }
    .procedure-header {
        flex-direction: column;
        gap: 6px;
    }
    .procedure-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .step-card {
        padding: 9px 7px;
    }
    .step-card strong {
        font-size: 11.5px;
    }
    .step-card p {
        font-size: 10.5px;
    }
    .course-bottom-register-box {
        padding: 16px 12px;
        margin-top: 22px;
    }
    .bottom-register-title {
        font-size: 15.5px;
    }
    .bottom-register-desc {
        font-size: 12.5px;
    }
    .share-buttons-row {
        grid-template-columns: 1fr;
    }
    
    /* ẨN TOÀN BỘ NÚT FLOATING TRÒN TRÊN MOBILE TRANG KHÓA HỌC ĐỂ NHƯỜNG TRỌN VẸN KHÔNG GIAN CHO THANH STICKY CHỐT ĐƠN ĐÁY */
    .single-khoa_hoc .floating-contact-bar,
    .single-khoa_hoc #button-contact-vr,
    .single-khoa_hoc .button-contact-vr,
    .single-khoa_hoc [id*="contact-vr"],
    .single-khoa_hoc [class*="contact-vr"],
    .single-khoa_hoc #gom-all-in-one {
        display: none !important;
    }

    
    /* VỊ TRÍ NÚT FLOATING TRÊN MOBILE CÁC TRANG CÒN LẠI (TRANG CHỦ, TIN TỨC, GIỚI THIỆU...) */
    .floating-contact-bar {
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        right: 14px; /* GÓC PHẢI THUẬN TAY CÁI TRÊN MOBILE */
        left: auto;
        gap: 10px;
    }
    .float-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .float-btn svg,
    .float-btn .zalo-svg-icon {
        width: 23px;
        height: 23px;
    }
    .float-btn.register i {
        font-size: 19px;
    }
    .float-btn-tooltip {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .tdlx-container {
        padding: 0 10px;
    }
    .header-main-inner {
        gap: 6px;
    }
    .single-course-title {
        font-size: 18px;
    }
    .course-content-main {
        padding: 12px 8px;
    }
    .step-card {
        padding: 8px 5px;
    }
    .step-card strong {
        font-size: 11px;
    }
    .step-card p {
        font-size: 10px;
    }
    .sticky-bar-left .sb-save {
        display: none;
    }
    .sb-btn span {
        font-size: 11px;
    }
    .instant-contact-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .instant-btn {
        padding: 9px 8px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .tdlx-container {
        padding: 0 8px;
    }
    .header-main-inner {
        gap: 4px;
    }
    .brand-crest-emblem {
        width: 36px;
        height: 36px;
    }
    .brand-custom-logo {
        max-height: 36px;
        max-width: 90px;
    }
    .brand-link {
        gap: 6px !important;
    }
    .brand-prefix {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
    .brand-name, 
    .brand-text .site-title {
        font-size: 12.5px;
    }
    .header-actions {
        gap: 5px;
    }
    .header-hotline-badge,
    .header-hotline-box {
        width: 34px;
        height: 34px;
    }
    .hotline-badge-icon,
    .hotline-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}
