/* ===== theme_fhh_huyhoangsoftware2025 — FOREST GREEN LIGHT THEME ===== */
/* Palette: Đại Lâm Mộc — Deep Forest Green on Crisp White         */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ── Forest Green Palette — đậm hơn, chuyên nghiệp hơn ── */
    --primary:          #15522f;   /* Đại Lâm — deep forest green  */
    --primary-dark:     #0c3320;   /* Tán rừng già                 */
    --primary-mid:      #1e7040;   /* Lá xanh đậm                  */
    --primary-light:    #2d9957;   /* Xanh sáng                    */
    --primary-pale:     #c8e6d2;   /* Xanh nhạt pastel             */
    --primary-pale-2:   #e8f5ed;   /* Nền xanh rất nhạt            */
    --accent:           #e8920c;   /* Amber đậm hơn                */
    --accent-light:     #fef3dc;   /* Nền amber nhạt               */

    /* ── Light Backgrounds — ít nhợt hơn ── */
    --bg-page:          #f4f8f5;   /* Nền trang — xanh nhẹ         */
    --bg-white:         #ffffff;
    --bg-section-alt:   #e8f2ec;   /* Nền section xen kẽ — đậm hơn */
    --bg-card:          #ffffff;
    --bg-glass:         rgba(255,255,255,0.92);

    /* ── Text — đậm hơn, dễ đọc hơn ── */
    --text-dark:        #0a1f12;   /* Heading — gần đen             */
    --text-body:        #1e3a28;   /* Body — xanh rừng đậm         */
    --text-muted:       #4a7259;   /* Muted — rêu vừa              */
    --text-on-primary:  #ffffff;

    /* ── Borders & Shadows ── */
    --border:           #aed4b8;
    --border-strong:    #6aad7e;
    --shadow-xs:  0 1px 4px rgba(15,51,32,.10);
    --shadow-sm:  0 2px 10px rgba(15,51,32,.12);
    --shadow-md:  0 6px 24px rgba(15,51,32,.14);
    --shadow-lg:  0 16px 48px rgba(15,51,32,.18);
    --shadow-xl:  0 24px 64px rgba(15,51,32,.22);
    --glow:       0 0 32px rgba(15,51,32,.26);

    /* ── Typography ── */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ── Layout ── */
    --max-w: 1400px;
    --section-py: 90px 0;
    --section-py-lg: 120px 0;
    --radius:    8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* ── Transitions ── */
    --t-fast:   0.18s ease;
    --t-normal: 0.30s ease;
    --t-slow:   0.55s cubic-bezier(.4,0,.2,1);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-page);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Tránh nội dung / animation (AOS translateX) làm tràn ngang trên mobile */
main.main-content {
    overflow-x: clip;
    max-width: 100%;
}
@supports not (overflow: clip) {
    main.main-content { overflow-x: hidden; }
}

/* Mobile: translateX trên .aos.fade-left/right + overflow-x clip → cắt mép trái, block nhìn lệch phải */
@media (max-width: 900px) {
    main.main-content .aos.fade-left,
    main.main-content .aos.fade-right {
        transform: translateY(28px);
    }
    main.main-content .aos.fade-left.animated,
    main.main-content .aos.fade-right.animated {
        transform: none;
        opacity: 1;
    }
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: .9rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--text-body); }

a {
    color: var(--primary-mid);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--primary); }

/* ===== LAYOUT ===== */
.container {
    max-width: min(var(--max-w), 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
@media (min-width:1400px) { .container { max-width: 90vw; } }
@media (min-width:1920px) { .container { max-width: 85vw; } }

.section { padding: var(--section-py); }
@media (min-width:1200px) { .section { padding: var(--section-py-lg); } }

.section-alt { background: var(--bg-section-alt); }
.section-primary { background: var(--primary); }
.section-dark { background: var(--primary-dark); }

/* Section separator accent line */
.section-alt + .section,
.section + .section-alt {
    border-top: 1px solid var(--border);
}

.row { display:flex; flex-wrap:wrap; margin:0 -15px; }
.col { padding:0 15px; }
.col-12 { flex:0 0 100%; }
.col-6  { flex:0 0 50%; }
.col-4  { flex:0 0 33.333%; }
.col-3  { flex:0 0 25%; }

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.hidden { opacity:0; visibility:hidden; pointer-events:none; }

.loader-spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--primary-pale);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--t-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.15);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t-normal);
    border-radius: inherit;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-sm), 0 0 0 0 rgba(26,92,56,.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 0 6px rgba(26,92,56,.12);
    color: white;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border-color: var(--border-strong);
}
.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #e8940d);
    color: white;
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color:white; }

.btn-lg { padding: 17px 36px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-xl { padding: 20px 44px; font-size: 18px; border-radius: var(--radius-xl); }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 38px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border);
    z-index: 1000;
    transition: box-shadow var(--t-normal), border-color var(--t-normal), background var(--t-normal);
}
.header.scrolled {
    background: rgba(255,255,255,.99);
    box-shadow: 0 4px 24px rgba(26,92,56,.12);
    border-color: var(--primary-pale);
}
/* Khi scroll qua top-bar thì header dịch lên top:0 */
.header.topbar-hidden {
    top: 0;
}
@media (max-width:768px) {
    .header { top: 0; }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
}

/* Body offset = topbar 38px + header ~70px */
body {
    padding-top: 108px;
}
@media (max-width:768px) {
    body { padding-top: 66px; }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}
.logo-link img { height: 42px; object-fit: contain; }
.logo-link span { color: var(--primary); }

.nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}
.nav-item { position: relative; }

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--t-fast);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-pale-2);
}

/* ── Nav CTA ── */
.nav-cta {
    margin-left: 12px;
    background: var(--primary) !important;
    color: white !important;
    padding: 9px 20px;
    border-radius: var(--radius);
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-2px); }

/* ── Dropdown ── */
.nav-item.dropdown { position: relative; }
.dropdown-toggle { display:flex; align-items:center; gap:.4rem; cursor:pointer; }
.dropdown-arrow { font-size:.65rem; transition: transform var(--t-normal); display:inline-block; }
.nav-item.dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--t-normal);
    z-index: 1001;
    min-width: 580px;
}
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.dropdown-content.single-column { grid-template-columns:1fr; min-width:280px; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem;
    border-radius: 8px;
    transition: all var(--t-fast);
    text-decoration: none;
}
.dropdown-item:hover {
    background: var(--bg-section-alt);
    transform: translateX(4px);
}
.dropdown-icon {
    width: 40px; height: 40px;
    background: var(--primary-pale);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.dropdown-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: .9rem;
}

/* ── Mobile toggle ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    gap: 5px;
}
.mobile-menu-toggle span {
    width: 26px; height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--t-normal);
    display: block;
}

/* ===== MOBILE NAV ===== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,61,37,.45);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all var(--t-normal);
}
.mobile-nav-overlay.active { opacity:1; visibility:visible; }

.mobile-nav {
    position: absolute;
    top:0; right:0;
    width: 320px; height: 100%;
    background: var(--bg-white);
    transform: translateX(100%);
    transition: transform var(--t-slow);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.mobile-nav-overlay.active .mobile-nav { transform: translateX(0); }

.mobile-nav-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 48px 16px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-section-alt);
}
.mobile-nav-header .mobile-nav-brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    font-size: inherit;
    font-weight: inherit;
}
.mobile-nav-header .mobile-nav-brand img {
    height: 38px;
    width: auto;
    max-width: 180px;
}
.mobile-nav-header .mobile-nav-company {
    display: block;
    max-width: 92%;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--primary);
}
.mobile-nav-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: var(--text-muted); line-height:1; padding: 4px 8px;
    border-radius: 8px; transition: all var(--t-fast);
}
.mobile-nav-close:hover { background: var(--primary-pale); color: var(--primary); }

.mobile-nav-content { padding: 16px 20px; }

.mobile-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 12px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    transition: all var(--t-fast);
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
    text-decoration: none;
}
.mobile-nav-link:hover { color: var(--primary); background: var(--primary-pale); }

.mobile-nav-cta { margin: 24px 0; text-align: center; }
.mobile-nav-contact { margin: 20px 0; }
.mobile-nav-contact h4 { color: var(--text-dark); margin-bottom: 12px; font-size:.95rem; }

.contact-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--t-fast);
}
.contact-item:hover { color: var(--primary); }

.mobile-nav-social {
    display: flex; justify-content: center; gap: 12px;
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border);
}
.social-link {
    width: 40px; height: 40px;
    background: var(--primary-pale);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all var(--t-fast);
    font-size: 18px;
}
.social-link:hover { background: var(--primary); color: white; transform: translateY(-3px); }

/* Icons */
.icon-home::before   { content: '🏡'; }
.icon-features::before { content: '⚡'; }
.icon-services::before { content: '🛠️'; }
.icon-pricing::before  { content: '💰'; }
.icon-news::before     { content: '📰'; }
.icon-contact::before  { content: '📞'; }
.icon-phone::before    { content: '📱'; }
.icon-email::before    { content: '✉️'; }
.icon-facebook::before { content: 'f'; font-weight:900; font-family:serif; }
.icon-youtube::before  { content: '▶'; }
.icon-zalo::before     { content: 'Z'; font-weight:900; }

@media (max-width:768px) {
    .mobile-nav { width:100%; }
    .mobile-nav-header .mobile-nav-company {
        font-size: .84rem;
        max-width: 88%;
    }
    .mobile-nav-header .mobile-nav-brand img { height: 34px; }
}
@media (max-width:1024px) {
    .dropdown-menu { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; background:transparent; min-width:auto; }
    .dropdown-content { grid-template-columns:1fr; padding:.75rem 0; gap:.75rem; }
    .dropdown-item { padding:.85rem; background:var(--bg-section-alt); border-radius:10px; margin-bottom:.4rem; }
    .dropdown-item:hover { background:var(--primary-pale); transform:none; }
    .dropdown-icon { background:var(--primary-pale); }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #edf7f1 0%, #d9ede2 35%, #c8e4d4 70%, #d2ebdc 100%);
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

/* Decorative shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(26,92,56,.10) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-slow 6s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(61,160,102,.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-slow 8s ease-in-out infinite reverse;
}

/* Floating shapes */
.hero-shape-1, .hero-shape-2, .hero-shape-3 {
    position: absolute;
    border-radius: 50%;
    opacity: .18;
}
.hero-shape-1 {
    width: 180px; height: 180px;
    background: var(--primary-mid);
    top: 15%; left: 8%;
    animation: float 7s ease-in-out infinite;
}
.hero-shape-2 {
    width: 100px; height: 100px;
    background: var(--accent);
    top: 60%; right: 12%;
    animation: float 5s ease-in-out infinite 1.5s;
}
.hero-shape-3 {
    width: 60px; height: 60px;
    background: var(--primary);
    top: 30%; right: 30%;
    animation: float 9s ease-in-out infinite 3s;
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    animation: fadeInDown .8s ease both;
    box-shadow: 0 4px 16px rgba(15,51,32,.25);
}
.hero-badge span { display: none; }

.hero h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    animation: fadeInUp .9s ease .1s both;
    font-weight: 800;
}
.hero h1 em {
    font-style: normal;
    color: var(--primary);
    position: relative;
}
.hero h1 em::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    animation: fadeInUp .9s ease .25s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp .9s ease .4s both;
}

/* Hero stats */
.hero-stats-grid {
    max-width: 860px;
    margin: 3.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.hero-stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(255,255,255,.95);
    box-shadow: 0 8px 28px rgba(15,51,32,.08);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.hero-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15,51,32,.12);
}
.hero-stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: .3rem;
}
.hero-stat-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
@media (max-width:768px) {
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .hero-stat-num { font-size: 2.2rem; }
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-title .label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-pale-2);
    color: var(--primary);
    border: 1.5px solid var(--primary-pale);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.section-title .label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}
.section-title h2 {
    color: var(--text-dark);
    font-weight: 800;
}
.section-title p {
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0.5rem auto 0;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== HOME VIDEO CAROUSEL (slider video-trang-chu) ===== */
.home-video-section {
    background: linear-gradient(180deg, var(--bg-section-alt) 0%, #f4f8f6 50%, var(--bg-white) 100%);
    padding: 4.5rem 0;
    position: relative;
}
.home-video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231a5c38' fill-opacity='0.03'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.home-video-section .container { position: relative; z-index: 1; }
.home-video-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 100%;
}
.hvc-viewport {
    flex: 1;
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15,51,32,.14);
    background: #0a0a0a;
}
.hvc-track { position: relative; }
.hvc-slide {
    display: none;
    width: 100%;
}
.hvc-slide.is-active { display: block; }
.hvc-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.hvc-yt iframe,
.hvc-yt-poster,
.hvc-hls {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.hvc-hls { object-fit: contain; background: #000; }
.hvc-yt-poster { cursor: pointer; overflow: hidden; }
.hvc-yt-poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.hvc-yt-poster:hover img { transform: scale(1.03); }
.hvc-yt-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    color: var(--primary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
    transition: transform .2s, background .2s;
    padding-left: 4px;
}
.hvc-yt-play:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.hvc-caption {
    margin: 0;
    padding: .85rem 1.25rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    text-align: center;
}
.hvc-nav {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    color: var(--primary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t-fast);
    box-shadow: var(--shadow-sm);
}
.hvc-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.05);
}
.hvc-thumbs {
    display: flex;
    gap: .75rem;
    margin-top: 1.25rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: thin;
}
.hvc-thumb {
    position: relative;
    flex: 0 0 140px;
    height: 79px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #111;
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.hvc-thumb.is-active { border-color: var(--primary); }
.hvc-thumb:hover { transform: translateY(-2px); }
.hvc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hvc-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: 1.5rem;
}
.hvc-thumb-play {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: .85rem;
    opacity: 0;
    transition: opacity var(--t-fast);
}
.hvc-thumb:hover .hvc-thumb-play,
.hvc-thumb.is-active .hvc-thumb-play { opacity: 1; }
@media (max-width:768px) {
    .hvc-nav { width: 36px; height: 36px; font-size: .85rem; }
    .hvc-thumb { flex: 0 0 110px; height: 62px; }
}

/* ===== FEATURE CARDS ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width:1024px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px)  { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--bg-card);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    transition: all var(--t-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-normal);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-pale);
}
.feature-card:hover::after { transform: scaleX(1); }

/* Số thứ tự thay icon */
.feature-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-pale);
    line-height: 1;
    margin-bottom: .75rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}
.feature-card:hover .feature-num { color: var(--primary-pale); }
.feature-card h3 {
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .6rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.65;
    margin: 0;
}

/* Legacy .feature-icon — ẩn */
.feature-icon { display: none; }

/* Feature extra row — ngang 4 cột */
.feature-extra-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    margin-top: 2.5rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.fex-item {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1.5rem 1.75rem;
}
.fex-item strong {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
}
.fex-item span {
    font-size: .83rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.fex-divider {
    width: 1px;
    background: var(--border);
    align-self: stretch;
    margin: 1rem 0;
}
@media (max-width:900px) {
    .feature-extra-row {
        grid-template-columns: 1fr 1fr;
    }
    .fex-divider { display: none; }
    .fex-item { border-bottom: 1px solid var(--border); }
    .fex-item:nth-child(n+5) { border-bottom: none; }
}
@media (max-width:580px) {
    .feature-extra-row { grid-template-columns: 1fr; }
    .fex-item { border-bottom: 1px solid var(--border); }
    .fex-item:last-child { border-bottom: none; }
}

/* ===== STATS ===== */
.stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    position: relative;
}
.stat-item h3 {
    font-size: 3.2rem;
    color: white;
    margin-bottom: .35rem;
    font-weight: 800;
}
.stat-item p {
    color: rgba(255,255,255,.8);
    font-size: 1.05rem;
    margin: 0;
}
.stat-divider {
    width: 40px; height: 3px;
    background: rgba(255,255,255,.4);
    border-radius: 2px;
    margin: .75rem auto 0;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 2px solid var(--border);
    transition: all var(--t-normal);
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-xs);
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.pricing-card.featured {
    transform: scale(1.04);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(26,92,56,.12);
    background: linear-gradient(180deg, #f0faf4 0%, #ffffff 60%);
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-6px); }

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
}

.pricing-header h3 { font-size: 1.4rem; color: var(--text-dark); }
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.2rem 0;
    line-height: 1;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}
.pricing-features li {
    padding: .55rem 0;
    color: var(--text-body);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--border);
    font-size: .95rem;
}
.pricing-features li:last-child { border: none; }
.pricing-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    width: 20px; height: 20px;
    background: var(--primary-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.pricing-features li.disabled { color: var(--text-muted); }
.pricing-features li.disabled::before { content: '✗'; background: #f0f0f0; color: #ccc; }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(165deg, #0a2818 0%, var(--primary-dark) 35%, #0d3320 70%, #082115 100%);
    color: rgba(255,255,255,.8);
    padding: 5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), #ffd56a, var(--accent), var(--primary-light));
    background-size: 200% 100%;
    animation: footer-shimmer 6s ease-in-out infinite;
}
@keyframes footer-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.footer::after {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(61,160,102,.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-slow 8s ease-in-out infinite;
}
.footer .container::before {
    content: '';
    position: absolute;
    bottom: 60px; left: -100px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(245,166,35,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.footer .container { position: relative; }

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}
@media (max-width:1024px) { .footer-content { grid-template-columns: 1fr 1fr; } }
@media (max-width:640px)  { .footer-content { grid-template-columns: 1fr; } }

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    font-size: .95rem;
    letter-spacing: .3px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: .55rem;
}
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
    transition: width var(--t-normal);
}
.footer-section:hover h4::after { width: 48px; }
.footer-section p {
    color: rgba(255,255,255,.65);
    margin-bottom: .6rem;
    font-size: .9rem;
    line-height: 1.7;
}
.footer-section a {
    color: rgba(255,255,255,.65);
    margin-bottom: .55rem;
    display: block;
    font-size: .9rem;
    transition: color var(--t-fast), padding-left var(--t-fast);
    text-decoration: none;
}
.footer-section a:hover { color: rgba(255,255,255,1); padding-left: 6px; }

.footer-logo { margin-bottom: 1rem; display:flex; align-items:center; gap:10px; }
.footer-logo img { height: 44px; filter: brightness(0) invert(1); opacity:.9; }
.footer-logo span { color: #ffffff; font-size: 1.1rem; font-weight: 700; }
.footer-desc { font-size:.88rem; line-height:1.8; color:rgba(255,255,255,.6); }

.social-links { display:flex; gap:.75rem; margin-top:1.4rem; }
.social-links a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.8);
    transition: all var(--t-fast);
    font-size: 14px;
    text-decoration: none;
}
.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-color: transparent;
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245,166,35,.35);
}

/* Footer contact items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: .85rem;
    color: rgba(255,255,255,.65);
    font-size: .88rem;
}
.footer-contact-item i { color: var(--accent); margin-top:3px; flex-shrink:0; }
.footer-contact-item a { color: rgba(255,255,255,.65); text-decoration:none; display:inline; margin:0; padding:0; }
.footer-contact-item a:hover { color:white; }

/* Footer newsletter */
.footer-newsletter { margin-top: 1.2rem; }
.footer-newsletter .nl-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.footer-newsletter .nl-form:focus-within {
    border-color: rgba(245,166,35,.6);
    box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.footer-newsletter input {
    background: rgba(255,255,255,.1);
    border: none;
    color: white;
    padding: 10px 14px;
    font-size: .88rem;
    flex: 1;
    border-radius: 0;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.45); }
.footer-newsletter input:focus { outline: none; background: rgba(255,255,255,.15); box-shadow: none; }
.footer-newsletter button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    transition: background var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
}
.footer-newsletter button:hover { background: #e8940d; transform: translateX(-1px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 2rem;
    position: relative;
}
.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .85rem; margin: 0; }
.footer-links { display:flex; gap:1.5rem; flex-wrap:wrap; }
.footer-links a { color: rgba(255,255,255,.4); font-size:.85rem; text-decoration:none; transition: color var(--t-fast); margin:0; display:inline; padding:0; }
.footer-links a:hover { color: var(--accent); }

/* ===== CARDS / BOXES ===== */
.card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: all var(--t-normal);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-light); }

/* ===== FORMS ===== */
input, textarea, select {
    background: var(--bg-white);
    border: 2px solid var(--border);
    color: var(--text-dark);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font);
    transition: all var(--t-fast);
    width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,92,56,.12);
}

/* ===== BADGE / CHIP ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.badge-primary { background: var(--primary-pale); color: var(--primary); }
.badge-accent   { background: var(--accent-light); color: #c47d09; }

/* ===== ACCORDION ===== */
.accordion-item {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
}
.accordion-button {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 0;
    padding: 18px 22px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: var(--font);
}
.accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--bg-section-alt);
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(26,92,56,.15); }
.accordion-body { color: var(--text-body); background: var(--bg-white); padding: 16px 22px; }

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    border: none;
    margin: 0;
}

/* ===== SHAPES / DECORATIONS ===== */
.shape-blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(26,92,56,.08), rgba(61,160,102,.12));
    pointer-events: none;
}
.shape-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(26,92,56,.12);
    pointer-events: none;
}
.shape-dot-grid {
    position: absolute;
    opacity: .4;
    background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity:0; transform:translateY(32px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeInDown {
    from { opacity:0; transform:translateY(-20px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity:0; transform:translateX(-32px); }
    to   { opacity:1; transform:translateX(0); }
}
@keyframes fadeInRight {
    from { opacity:0; transform:translateX(32px); }
    to   { opacity:1; transform:translateX(0); }
}
@keyframes float {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-20px) rotate(5deg); }
}
@keyframes pulse-slow {
    0%,100% { transform: scale(1); opacity: .6; }
    50%      { transform: scale(1.12); opacity: 1; }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes slideInRight {
    from { opacity:0; transform:translateX(40px); }
    to   { opacity:1; transform:translateX(0); }
}
@keyframes scaleIn {
    from { opacity:0; transform:scale(.85); }
    to   { opacity:1; transform:scale(1); }
}
@keyframes countUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── Scroll-triggered animation classes ── */
.aos {
    opacity: 1;
    transform: none;
    transition: opacity .7s ease, transform .7s ease;
}
/* Chỉ ẩn trước khi animate khi JS đã bật AOS */
.js-aos .aos:not(.animated) {
    opacity: 0;
}
.js-aos .aos.fade-up:not(.animated)   { transform: translateY(36px); }
.js-aos .aos.fade-left:not(.animated) { transform: translateX(-36px); }
.js-aos .aos.fade-right:not(.animated){ transform: translateX(36px); }
.js-aos .aos.zoom-in:not(.animated)   { transform: scale(.88); }

.aos.animated {
    opacity: 1;
    transform: none;
}
.aos.delay-1 { transition-delay:.1s; }
.aos.delay-2 { transition-delay:.2s; }
.aos.delay-3 { transition-delay:.3s; }
.aos.delay-4 { transition-delay:.4s; }
.aos.delay-5 { transition-delay:.5s; }

@media (prefers-reduced-motion: reduce) {
    .aos,
    .js-aos .aos:not(.animated) {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── Legacy class support ── */
.animate-on-scroll { opacity:0; transform:translateY(30px); transition:all .6s ease; }
.animate-on-scroll.animated { opacity:1; transform:none; }

/* ===== UTILITIES ===== */
.text-center  { text-align:center; }
.text-left    { text-align:left; }
.text-right   { text-align:right; }
.text-primary { color: var(--primary) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-white   { color: white !important; }
.text-dark    { color: var(--text-dark) !important; }

.bg-white     { background: var(--bg-white) !important; }
.bg-primary   { background: var(--primary) !important; }
.bg-light     { background: var(--bg-section-alt) !important; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.mb-1{margin-bottom:.5rem;} .mb-2{margin-bottom:1rem;} .mb-3{margin-bottom:1.5rem;}
.mb-4{margin-bottom:2rem;}  .mb-5{margin-bottom:3rem;}
.mt-1{margin-top:.5rem;}    .mt-2{margin-top:1rem;}    .mt-3{margin-top:1.5rem;}
.mt-4{margin-top:2rem;}     .mt-5{margin-top:3rem;}

.d-none   { display:none; }
.d-block  { display:block; }
.d-flex   { display:flex; }
.d-grid   { display:grid; }
.gap-1    { gap:.5rem; }  .gap-2 { gap:1rem; }  .gap-3 { gap:1.5rem; }
.flex-wrap{ flex-wrap:wrap; }
.justify-center  { justify-content:center; }
.justify-between { justify-content:space-between; }
.align-center    { align-items:center; }
.rounded  { border-radius:var(--radius); }
.rounded-lg { border-radius:var(--radius-lg); }
.shadow   { box-shadow:var(--shadow-sm); }
.shadow-lg{ box-shadow:var(--shadow-lg); }

hr { border-color: var(--border); opacity: .6; }

/* ===== TOP BAR ===== */
.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    background: var(--primary-dark);
    color: rgba(255,255,255,.9);
    font-size: 13px;
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}
.top-bar-left, .top-bar-right { display:flex; align-items:center; gap:1.5rem; flex-wrap:nowrap; }
.top-bar a {
    color: rgba(255,255,255,.85);
    text-decoration:none;
    transition: color var(--t-fast);
    display:flex; align-items:center; gap:5px;
    font-size: 12.5px;
}
.top-bar a:hover { color: var(--accent); }
.top-bar span { color: rgba(255,255,255,.5); font-size:12.5px; display:flex; align-items:center; gap:5px; }
.top-bar i { font-size: 11px; }
@media (max-width:768px) { .top-bar { display:none; } }

/* ===== PAGE HERO (trang con) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-mid) 100%);
    padding: 120px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(245,166,35,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #ffffff; margin-bottom: .75rem; font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }
.page-hero--edu { padding: 50px 0px !important; }

/* Nút outline trên nền hero xanh đậm */
.page-hero .btn-outline-white,
.sol-hero.page-hero .btn-outline-white {
    background: rgba(255,255,255,.14);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,.75);
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.page-hero .btn-outline-white:hover,
.sol-hero.page-hero .btn-outline-white:hover {
    background: rgba(255,255,255,.28);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: .88rem;
}
.breadcrumb a { color: rgba(255,255,255,.65); text-decoration:none; transition: color var(--t-fast); }
.breadcrumb a:hover { color: rgba(255,255,255,1); }
.breadcrumb span { color: rgba(255,255,255,.4); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--primary-dark);
    border-top: none;
    border-bottom: none;
    padding: 18px 0;
}
.trust-bar-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-bar-label {
    color: rgba(255,255,255,.55);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.trust-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-logos span {
    font-size: .88rem;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    letter-spacing: .5px;
    transition: color var(--t-fast);
}
.trust-logos span:hover { color: rgba(255,255,255,.9); }

/* ===== SECTION STAT HIGHLIGHT ===== */
.stat-highlight {
    text-align: center;
    padding: 1.5rem;
}
.stat-highlight .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: .4rem;
    display: block;
}
.stat-highlight .stat-label {
    font-size: .88rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 600;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}
.process-step {
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
}
.process-step::after {
    content: '';
    position: absolute;
    top: 48px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-pale), var(--border));
}
.process-step:last-child::after { display:none; }
.step-number {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 20px rgba(26,92,56,.25);
}
.process-step h4 { color: var(--text-dark); margin-bottom: .5rem; }
.process-step p { color: var(--text-muted); font-size: .9rem; margin:0; }
@media (max-width:768px) { .process-step::after { display:none; } }

/* ===== MODULE GRID ===== */
.module-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}
@media (max-width:1200px) { .module-categories { grid-template-columns: repeat(3,1fr); } }
@media (max-width:900px)  { .module-categories { grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px)  { .module-categories { grid-template-columns: 1fr; } }

.module-category {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--t-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.module-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-normal);
}
.module-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.module-category:hover::before { transform: scaleX(1); }

.category-icon { display: none; } /* ẩn icon theo yêu cầu */
.category-header { margin-bottom: .75rem; }
.category-header h4 {
    color: var(--text-dark);
    font-size: .97rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.module-count {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3px;
}
.category-modules { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.75rem; }
.module-tag {
    background: var(--primary-pale-2);
    color: var(--primary);
    border: 1px solid var(--primary-pale);
    padding: 3px 9px;
    border-radius: 5px;
    font-size: .75rem;
    font-weight: 500;
    transition: all var(--t-fast);
}
.module-tag:hover { background: var(--primary-pale); border-color: var(--border-strong); }

/* Platform stats bar — nền gradient đậm */
.platform-stats-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    margin-top: 2.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-mid) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-md);
}
@media (max-width:900px) {
    .platform-stats-bar { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .psb-divider { display: none; }
}
@media (max-width:560px) {
    .platform-stats-bar { grid-template-columns: 1fr 1fr; padding: 1.5rem; }
}
.psb-item {
    text-align: center;
}
.psb-item strong {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: .35rem;
}
.psb-item span {
    font-size: .8rem;
    color: rgba(255,255,255,.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.psb-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,.2);
}

/* Legacy .platform-stats — giữ lại cho các trang khác dùng */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
@media (max-width:768px) { .platform-stats { grid-template-columns: repeat(2,1fr); } }
.platform-stats .stat-item { text-align:center; }
.platform-stats .stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: .35rem;
}
.platform-stats .stat-label {
    font-size: .8rem;
    color: rgba(255,255,255,.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===== SOLUTION LIST ===== */
.sol-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sol-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 1.75rem;
    align-items: center;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    transition: all var(--t-normal);
    box-shadow: var(--shadow-xs);
}
.sol-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.sol-highlight {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f9f4 0%, #ffffff 60%);
    box-shadow: var(--shadow-sm), 0 0 0 3px rgba(21,82,47,.07);
}
.sol-highlight:hover { transform: translateX(4px); }

.sol-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-pale);
    line-height: 1;
    letter-spacing: -1px;
    flex-shrink: 0;
}
.sol-highlight .sol-num { color: var(--primary-pale); }

.sol-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .6rem;
    flex-wrap: wrap;
}
.sol-head h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
}

.sol-body > p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: .85rem;
    line-height: 1.65;
}

.sol-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .75rem;
    margin: 0;
}
.sol-features li {
    font-size: .8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.sol-features li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-light);
    flex-shrink: 0;
}

.sol-cta {
    flex-shrink: 0;
}

@media (max-width:900px) {
    .sol-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
    }
    .sol-cta {
        grid-column: 1 / -1;
    }
    .sol-item:hover { transform: none; }
}
@media (max-width:600px) {
    .sol-item { grid-template-columns: 1fr; padding: 1.4rem; }
    .sol-num { font-size: 1.4rem; }
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
    min-width: 0;
}
@media (max-width:900px) { .contact-grid { grid-template-columns:1fr; } }

.contact-form-wrapper {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-xs);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .contact-form-wrapper { padding: 1.5rem 1.25rem; }
}
.contact-form-wrapper .form-header { margin-bottom: 1.75rem; }
.contact-form-wrapper .form-header h3 { color: var(--text-dark); font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.contact-form-wrapper .form-header p { color: var(--text-muted); font-size:.9rem; margin:0; line-height:1.6; }

/* Contact form — single column, full width */
.contact-form-wrapper .site-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.contact-form-wrapper .form-group { margin-bottom: 1.15rem; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
@media (max-width:600px) { .form-row { grid-template-columns:1fr; } }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display:block; font-size:.875rem; font-weight:600; color:var(--text-dark); margin-bottom:.45rem; }
.form-group label .req { color:#e53e3e; margin-left:2px; }
.form-group input,
.form-group textarea,
.form-group select { margin: 0; width: 100%; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8f74' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 14px center; padding-right:36px; }
.form-error { color: #e53e3e; font-size:.8rem; margin-top:.35rem; display:none; }
.form-group.has-error input,
.form-group.has-error textarea { border-color: #e53e3e; }
.form-group.has-error .form-error { display:block; }

/* Checkbox & radio */
.form-check { display:flex; align-items:center; gap:.6rem; }
.form-check input[type=checkbox],
.form-check input[type=radio] {
    width: 18px; height: 18px; flex-shrink:0;
    accent-color: var(--primary);
    margin: 0; padding:0;
    cursor: pointer;
    border-radius: 4px;
}
.form-check label { cursor:pointer; font-size:.9rem; margin:0; }

.contact-info-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.5rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-icon {
    width: 42px; height: 42px; flex-shrink:0;
    background: var(--primary-pale);
    border-radius: 8px;
    display: flex; align-items:center; justify-content:center;
    color: var(--primary);
    font-size: 1rem;
}
.contact-info-text strong { display:block; font-size:.82rem; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); margin-bottom:.2rem; }
.contact-info-text a, .contact-info-text span { color:var(--text-dark); font-size:.92rem; font-weight:500; text-decoration:none; display:block; }
.contact-info-text a:hover { color:var(--primary); }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-mid) 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position:relative; z-index:2; text-align:center; }
.cta-section h2 { color:#ffffff; }
.cta-section p { color: rgba(255,255,255,.85); font-size:1.1rem; max-width:580px; margin: 0 auto 2rem; }
.cta-section .btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,.5);
}
.cta-section .btn-outline-white:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.8);
}
.cta-contact-info { display:flex; align-items:center; justify-content:center; gap:2rem; flex-wrap:wrap; margin-top:1.5rem; }
.cta-contact-info a { color:rgba(255,255,255,.75); font-size:.92rem; display:flex; align-items:center; gap:.5rem; text-decoration:none; transition:color var(--t-fast); }
.cta-contact-info a:hover { color:var(--accent); }

/* ===== QUICK CONTACT FLOATING TOGGLE ===== */
.qc-wrap {
    position: fixed;
    bottom: 90px;   /* đẩy lên cao hơn back-to-top */
    right: 24px;
    z-index: 997;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Toggle button */
.qc-toggle {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(15,51,32,.35);
    transition: all var(--t-normal);
    position: relative;
    flex-shrink: 0;
}
.qc-toggle:hover {
    background: var(--primary-mid);
    transform: scale(1.08);
}
.qc-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(.6);
    transition: all var(--t-normal);
}
.qc-icon-open {
    transition: all var(--t-normal);
}
.qc-wrap.open .qc-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(.6);
}
.qc-wrap.open .qc-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.qc-wrap.open .qc-toggle {
    background: var(--primary-dark);
}

/* Menu items */
.qc-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    /* hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--t-normal);
    pointer-events: none;
}
.qc-wrap.open .qc-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.qc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    border-radius: 50px;
    padding: 0;
    transition: all var(--t-fast);
}
.qc-item:hover { transform: translateX(-4px); color: white; }

.qc-label {
    background: var(--primary-dark);
    color: white;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    /* Staggered appear */
    transition: all var(--t-fast);
}
.qc-phone .qc-label  { background: var(--primary-dark); }
.qc-zalo  .qc-label  { background: #0068ff; }
.qc-mess  .qc-label  { background: #0084ff; }

.qc-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.qc-phone .qc-icon { background: var(--primary); }
.qc-zalo  .qc-icon { background: #0068ff; }
.qc-mess  .qc-icon { background: #0084ff; }

/* Stagger animation cho từng item */
.qc-menu .qc-item:nth-child(1) { transition-delay: .05s; }
.qc-menu .qc-item:nth-child(2) { transition-delay: .10s; }
.qc-menu .qc-item:nth-child(3) { transition-delay: .15s; }

@media (max-width:600px) {
    .qc-wrap { bottom: 80px; right: 16px; }
    .qc-label { display: none; }
    .qc-icon  { width: 46px; height: 46px; font-size: 18px; }
}

/* ===== NEWS CARDS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.75rem;
}
@media (max-width:1024px) { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:640px)  { .news-grid { grid-template-columns: 1fr; } }

.news-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.news-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-cat {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 700;
}

.news-card-body { padding: 1.4rem; flex: 1; display:flex; flex-direction:column; }
.news-card-meta { display:flex; align-items:center; gap:1rem; color:var(--text-muted); font-size:.8rem; margin-bottom:.75rem; }
.news-card-meta i { font-size:.7rem; }
.news-card-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-title:hover { color: var(--primary); }
.news-card-excerpt {
    color: var(--text-muted);
    font-size: .875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex:1;
}
.news-card-footer { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--border); padding-top:.85rem; margin-top:auto; }
.news-card-author { display:flex; align-items:center; gap:.5rem; font-size:.8rem; color:var(--text-muted); }
.news-read-more { color:var(--primary); font-size:.82rem; font-weight:600; display:flex; align-items:center; gap:.3rem; text-decoration:none; transition:gap var(--t-fast); }
.news-read-more:hover { gap:.6rem; }

/* News layout with sidebar */
.news-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width:1280px) { .news-layout { grid-template-columns: 2fr 1fr; } }
@media (max-width:1024px) { .news-layout { grid-template-columns:1fr; } }

/* Sidebar */
.sidebar { display:flex; flex-direction:column; gap:1.5rem; }
.sidebar-widget {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
}
.sidebar-widget h4 {
    color: var(--text-dark);
    font-size: .95rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--primary-pale);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.sidebar-widget h4::before { content:''; display:inline-block; width:3px; height:16px; background:var(--primary); border-radius:2px; }

.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: var(--text-body);
    text-decoration: none;
    transition: all var(--t-fast);
    font-size: .9rem;
    margin-bottom: .3rem;
}
.sidebar-cat-item:hover, .sidebar-cat-item.active { background: var(--primary-pale); color: var(--primary); }
.sidebar-cat-count { background: var(--bg-section-alt); color: var(--text-muted); padding: 1px 8px; border-radius: 50px; font-size:.75rem; font-weight:600; }
.sidebar-cat-item.active .sidebar-cat-count { background:var(--primary); color:white; }

.sidebar-news-item {
    display: flex;
    gap: .85rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.sidebar-news-item:last-child { border-bottom: none; padding-bottom:0; }
.sidebar-news-img {
    width: 68px; height: 52px; flex-shrink:0;
    border-radius: 8px; overflow:hidden;
}
.sidebar-news-img img { width:100%; height:100%; object-fit:cover; }
.sidebar-news-title { color:var(--text-dark); font-size:.85rem; font-weight:600; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sidebar-news-title:hover { color:var(--primary); }
.sidebar-news-date { color:var(--text-muted); font-size:.75rem; margin-top:.25rem; }

/* Newsletter widget */
.nl-widget form { display:flex; flex-direction:column; gap:.75rem; }
.nl-widget input { font-size:.88rem; padding: 10px 14px; }
.nl-widget button { background:var(--primary); color:white; border:none; padding:10px; border-radius:var(--radius); cursor:pointer; font-weight:600; font-size:.88rem; transition:background var(--t-fast); }
.nl-widget button:hover { background:var(--primary-mid); }

/* ===== PAGINATION ===== */
/* Div-based (video, v.v.) */
.pagination:not(ul) {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pagination:not(ul) a,
.pagination:not(ul) span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: all var(--t-fast);
    box-sizing: border-box;
}
.pagination:not(ul) a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.pagination:not(ul) a.active,
.pagination:not(ul) .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Paginate service: <div class="pagination-wrap"><ul class="pagination">… */
.pagination-wrap {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}
.pagination-wrap ul.pagination {
    display: flex;
    align-items: center;
    gap: .45rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination-wrap ul.pagination > li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.pagination-wrap ul.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 40px;
    height: 40px;
    width: auto;
    padding: 0 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-body);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.pagination-wrap ul.pagination li.page-item a {
    padding: 0 16px;
}
.pagination-wrap ul.pagination li a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}
.pagination-wrap ul.pagination li.active a,
.pagination-wrap ul.pagination li.current a {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination-wrap ul.pagination li.active a:hover,
.pagination-wrap ul.pagination li.current a:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}
.pagination-wrap ul.pagination li.page-item.unavailable a,
.pagination-wrap ul.pagination li.unavailable a {
    opacity: 1;
    background: var(--bg-section-alt);
    color: var(--text-muted);
    border-color: var(--border);
    cursor: not-allowed;
    pointer-events: none;
}
.pagination-wrap ul.pagination > li.page-item:not(:has(a)) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    color: var(--text-muted);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .05em;
    user-select: none;
}
@media (max-width: 480px) {
    .pagination-wrap ul.pagination li.page-item a {
        padding: 0 12px;
        font-size: .82rem;
    }
    .pagination-wrap ul.pagination li a {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
    }
}

/* ===== ARTICLE ===== */
.article-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
/* Cho aside stretch hết chiều cao của article để TOC sticky hoạt động */
.article-layout > article { align-self: start; }
.article-layout > aside { align-self: stretch; }
@media (max-width:1280px) { .article-layout { grid-template-columns: 2fr 1fr; } }
@media (max-width:1024px) { .article-layout { grid-template-columns:1fr; } }

.article-header { margin-bottom: 2rem; }
.article-meta { display:flex; align-items:center; gap:1.2rem; flex-wrap:wrap; color:var(--text-muted); font-size:.85rem; margin-bottom:1rem; }
.article-meta i { font-size:.75rem; }
.article-meta .cat-badge { background:var(--primary-pale); color:var(--primary); padding:3px 10px; border-radius:4px; font-weight:600; font-size:.75rem; text-decoration:none; }

.article-body { line-height: 1.85; color: var(--text-body); }
.article-body h2, .article-body h3, .article-body h4 { color: var(--text-dark); margin: 2rem 0 1rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body img { max-width:100%; border-radius:var(--radius); margin: 1rem 0; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    background: var(--bg-section-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
    color: var(--text-body);
    font-style: italic;
}
.article-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}
.article-body code { background: var(--bg-section-alt); padding: 2px 6px; border-radius: 4px; font-size:.9em; color:var(--primary); }
.article-body pre code { background:none; color:inherit; padding:0; }

/* Share buttons */
.share-buttons { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; margin-top:2rem; padding-top:1.5rem; border-top:1px solid var(--border); }
.share-btn {
    display:flex; align-items:center; gap:.4rem;
    padding: 7px 16px; border-radius:50px;
    font-size:.82rem; font-weight:600;
    text-decoration:none; color:white;
    transition: all var(--t-fast);
}
.share-btn:hover { transform:translateY(-2px); color:white; }
.share-btn.fb  { background:#1877f2; }
.share-btn.tw  { background:#1da1f2; }
.share-btn.li  { background:#0a66c2; }
.share-btn.copy{ background:var(--text-muted); }

/* Tags */
.article-tags { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; margin-top:1.5rem; }
.article-tags span { color:var(--text-muted); font-size:.85rem; font-weight:600; }
.tag-link { background:var(--bg-section-alt); color:var(--text-muted); padding:4px 12px; border-radius:50px; font-size:.8rem; text-decoration:none; transition:all var(--t-fast); border:1px solid var(--border); }
.tag-link:hover { background:var(--primary-pale); color:var(--primary); border-color:var(--primary-light); }

/* TOC & Sticky sidebar */
/* Sidebar article: các widget đứng yên, TOC widget mới sticky */
.article-layout > aside { }
@media (max-width:1024px) {
    .article-layout > aside { position: static; }
}

/* TOC widget sticky riêng — bám theo scroll của page */
.toc-widget {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.toc-widget::-webkit-scrollbar { width: 4px; }
.toc-widget::-webkit-scrollbar-track { background: transparent; }
.toc-widget::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
@media (max-width:1024px) { .toc-widget { position: static; max-height: none; overflow: visible; } }

.toc-list { list-style:none; padding:0; }
.toc-list li { margin-bottom:.3rem; }
.toc-list a { color:var(--text-muted); font-size:.84rem; text-decoration:none; display:block; padding:.3rem .5rem; border-left:2px solid transparent; transition:all var(--t-fast); border-radius:0 4px 4px 0; }
.toc-list a:hover, .toc-list a.active { color:var(--primary); border-left-color:var(--primary); background:var(--primary-pale); }
.toc-list li.toc-h3 a { padding-left:1.2rem; font-size:.78rem; }

/* ===== TOAST / ALERT ===== */
.toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    z-index: 9999;
    animation: fadeInRight .3s ease;
    max-width: 340px;
}
.toast.success { border-color: #22c55e; }
.toast.success i { color: #22c55e; }
.toast.error   { border-color: #e53e3e; }
.toast.error   i { color: #e53e3e; }
.toast-close { background:none; border:none; cursor:pointer; color:var(--text-muted); margin-left:.5rem; font-size:1.1rem; line-height:1; }

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
    .nav { display: none; }
    .mobile-menu-toggle { display: flex; }
}
@media (max-width:768px) {
    :root { --section-py: 60px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    .hero-buttons { flex-direction:column; align-items:center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    .col-6, .col-4, .col-3 { flex: 0 0 100%; }
    .feature-grid, .pricing-grid { grid-template-columns:1fr; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-6px); }
    .hero-shape-1, .hero-shape-2, .hero-shape-3 { display:none; }
    .hero-stats-grid { grid-template-columns: repeat(2,1fr) !important; gap:1rem !important; }
    .trust-bar .trust-logos span { display:none; }
    .trust-bar .trust-logos span:nth-child(-n+4) { display:inline; }
}
@media (max-width:480px) {
    .container { padding: 0 16px; }
    .hero { padding-top: 70px; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }
    .feature-card, .pricing-card { padding: 1.6rem; }
    .stat-item h3 { font-size: 2.4rem; }
}

/* ── Roadmap Timeline ─────────────────────────────────── */
.roadmap-timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}
.roadmap-line {
    position: absolute;
    left: 28px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-pale));
}
.roadmap-block {
    margin-bottom: 3rem;
}
.roadmap-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.roadmap-dot {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem;
    flex-shrink: 0;
    position: relative; z-index: 1;
}
.roadmap-dot--active {
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: white;
    box-shadow: 0 0 0 4px rgba(26,92,56,.2);
}
.roadmap-dot--planned {
    background: rgba(148,163,184,.12);
    border: 2px dashed var(--border-strong);
    color: var(--text-muted);
}
.roadmap-dot--research {
    background: rgba(148,163,184,.08);
    border: 2px dashed var(--border);
    color: var(--text-muted);
    opacity: .75;
}
.roadmap-meta h3 { color: var(--text-dark); margin: 0; font-size: 1.1rem; }
.roadmap-status { font-size: .82rem; font-weight: 600; }
.roadmap-status--active  { color: var(--primary); }
.roadmap-status--planned { color: var(--text-muted); }
.roadmap-status--research{ color: #94a3b8; }

.roadmap-items {
    margin-left: 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}
.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
}
.roadmap-item--in-progress { border-color: var(--primary-pale); }
.roadmap-item--beta        { border-color: var(--accent-light); }
.roadmap-item--planned     { background: var(--bg-section-alt); }
.roadmap-item--research    { background: var(--bg-section-alt); opacity: .8; }
.roadmap-item div { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.roadmap-item strong { font-size: .875rem; color: var(--text-body); font-weight: 600; line-height: 1.4; }
.roadmap-item small  { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }
.roadmap-dot-sm {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.roadmap-dot-sm--in-progress { background: var(--primary); }
.roadmap-dot-sm--beta        { background: var(--accent); }
.roadmap-dot-sm--planned     { background: #94a3b8; }
.roadmap-dot-sm--research    { background: #cbd5e1; }
.roadmap-badge {
    margin-left: auto;
    align-self: flex-start;
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
}
.roadmap-badge--beta { background: var(--accent-light); color: #c47d09; }
@media (max-width:600px) {
    .roadmap-items { grid-template-columns: 1fr; margin-left: 56px; }
    .roadmap-line  { left: 20px; }
    .roadmap-dot   { width: 42px; height: 42px; font-size: .75rem; }
}

/* ═══════════════════════════════════════════════════════════
   NĂNG LỰC — Landing Page Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.nl-hero {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-mid) 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.nl-hero .container {
    width: 100%;
    max-width: min(960px, 100%);
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}
.nl-hero-inner { max-width: 960px; margin: 0 auto; width: 100%; }
.nl-hero-content {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.nl-hero-content .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    padding: .4rem 1.2rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}
.nl-hero-content h1 { color: white; font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.25rem; }
.nl-hero-content h1 em { color: var(--accent); font-style: normal; }
.nl-hero-content p { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 680px; margin: 0 auto 2rem; line-height: 1.65; }

.nl-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.25rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.25rem clamp(0.75rem, 3vw, 2rem);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
.nl-stat {
    text-align: center;
    padding: .5rem clamp(0.65rem, 2.5vw, 2.5rem);
    min-width: 0;
    flex: 1 1 calc(50% - 0.5rem);
    max-width: 100%;
    box-sizing: border-box;
}
.nl-stat strong { display: block; font-size: 2rem; font-weight: 800; color: white; line-height: 1.1; }
.nl-stat span {
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: .25rem;
    display: block;
    overflow-wrap: break-word;
    hyphens: auto;
}
.nl-stat-div { width: 1px; height: 48px; background: rgba(255,255,255,.2); flex-shrink: 0; }
@media (min-width: 900px) {
    .nl-hero-stats {
        flex-wrap: nowrap;
        gap: 0;
    }
    .nl-stat {
        flex: 0 1 auto;
        padding: .5rem 2.5rem;
    }
}
@media (max-width:700px) {
    .nl-hero { padding: 110px 0 60px; }
    .nl-hero-content h1 { font-size: 2rem; }
    .nl-stat-div { display: none; }
    .nl-stat { flex: 1 1 45%; padding: .5rem 1rem; }
}

/* ── 3 Pillars ── */
.nl-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.nl-pillar {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.nl-pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.nl-pillar--featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.nl-pillar--featured::before {
    content: 'Nổi bật nhất';
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 50px;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
}
.nl-pillar-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-pale);
    line-height: 1;
    margin-bottom: .75rem;
    letter-spacing: -2px;
}
.nl-pillar--featured .nl-pillar-num { color: var(--primary-pale); }
.nl-pillar-body h3 { font-size: 1.35rem; font-weight: 800; color: var(--text-dark); margin-bottom: .75rem; }
.nl-pillar-body p { font-size: .95rem; color: var(--text-body); line-height: 1.65; margin-bottom: 1rem; }
.nl-pillar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.nl-pillar-list li {
    font-size: .9rem;
    color: var(--text-body);
    padding-left: 1rem;
    position: relative;
}
.nl-pillar-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}
.nl-pillar-projects {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.nl-pillar-projects span {
    font-size: .82rem;
    background: var(--primary-pale-2);
    color: var(--primary-dark);
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
}
@media (max-width:1024px) { .nl-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width:640px)  { .nl-pillars { grid-template-columns: 1fr; } }

/* ── Portfolio Flagship ── */
.nl-portfolio-flagship {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}
.nl-project-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform .2s, box-shadow .2s;
}
.nl-project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-pale); }
.nl-project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.nl-project-domain {
    font-family: 'Courier New', monospace;
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-pale-2);
    padding: 3px 12px;
    border-radius: 6px;
}
.nl-project-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.nl-project-badge--web      { background: #dbeafe; color: #1e40af; }
.nl-project-badge--erp      { background: var(--primary-pale-2); color: var(--primary-dark); }
.nl-project-badge--app      { background: #fef3c7; color: #92400e; }
.nl-project-badge--affiliate{ background: #fce7f3; color: #9d174d; }
.nl-project-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin-bottom: .6rem; }
.nl-project-card p  { font-size: .9rem; color: var(--text-body); line-height: 1.65; margin-bottom: 1rem; }

.nl-project-metrics {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.nl-metric { flex: 1; text-align: center; }
.nl-metric strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.nl-metric span   { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }

.nl-project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.nl-project-tags span {
    font-size: .82rem;
    background: var(--bg-section-alt);
    color: var(--text-body);
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--border);
}
.nl-project-domains {
    font-size: .85rem;
    color: var(--text-muted);
    font-style: italic;
}
@media (max-width:900px) { .nl-portfolio-flagship { grid-template-columns: 1fr; } }

/* ── More projects ── */
.nl-portfolio-more {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.nl-more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.nl-more-item {
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s, background .2s;
}
.nl-more-item:hover { border-color: var(--primary-pale); background: var(--primary-pale-2); }
.nl-more-domain   { font-size: .9rem; font-weight: 700; color: var(--primary); margin-bottom: .2rem; }
.nl-more-industry { font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; }
.nl-more-type     { font-size: .78rem; background: var(--bg-section-alt); color: var(--text-body); padding: 1px 8px; border-radius: 50px; }
@media (max-width:1024px) { .nl-more-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width:700px)  { .nl-more-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px)  { .nl-more-grid { grid-template-columns: 1fr; } }

/* ── App cards ── */
.nl-apps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.nl-app-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: transform .2s, box-shadow .2s;
}
.nl-app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-pale); }
.nl-app-top { display: flex; align-items: center; gap: .75rem; }
.nl-app-icon {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
    flex-shrink: 0;
}
.nl-app-name     { font-size: 1rem; font-weight: 800; color: var(--text-dark); }
.nl-app-category { font-size: .82rem; color: var(--text-muted); margin-top: .15rem; }
.nl-app-desc     { font-size: .88rem; color: var(--text-body); line-height: 1.6; flex: 1; margin: 0; }
.nl-app-bottom   { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.nl-app-platform { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: .35rem; }
.nl-app-platform i { font-size: .85rem; }
@media (max-width:1100px) { .nl-apps-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width:700px)  { .nl-apps-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px)  { .nl-apps-grid { grid-template-columns: 1fr; } }

/* ── Lead section ── */
.nl-lead-section { background: var(--bg-section-alt); }
.nl-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.nl-pitch-commits { display: flex; flex-direction: column; gap: 1rem; }
.nl-commit-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}
.nl-commit-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.nl-commit-item strong { font-size: .95rem; color: var(--text-dark); font-weight: 700; display: block; }
.nl-commit-item small  { font-size: .85rem; color: var(--text-muted); display: block; margin-top: .15rem; line-height: 1.6; }
.nl-pitch-contacts { display: flex; flex-direction: column; gap: .65rem; }
.nl-lead-form-wrap { }
@media (max-width:900px) {
    .nl-lead-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .nl-lead-pitch .section-title { text-align: center; }
    .nl-pitch-contacts { flex-direction: row; }
}

/* ═══════════════════════════════════════════════════════
   EDUCATION / LMS — Khóa học
   ═══════════════════════════════════════════════════════ */
.edu-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
@media (max-width:1024px) { .edu-layout { grid-template-columns: 1fr; } }

/* Trang danh sách khóa học — full width, sát hero 30px, căn giữa lưới */
.section.edu-index-section {
    padding: 30px 0 3.5rem;
}
@media (min-width:1200px) {
    .section.edu-index-section { padding: 30px 0 4rem; }
}
.edu-index-section .edu-course-grid,
.edu-index-section .edu-empty {
    opacity: 1;
    transform: none;
}

.edu-filter-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.75rem; padding: .75rem 1.25rem;
    background: var(--bg-white); border-radius: var(--radius); border: 1.5px solid var(--border);
}
.edu-filter-count { font-size: .88rem; color: var(--text-muted); }

.edu-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    width: 100%;
}
@media (max-width: 768px)  { .edu-course-grid { grid-template-columns: 1fr; gap: 1rem; } }

.edu-course-card {
    display: flex; flex-direction: column;
    background: var(--bg-white); border: 1.5px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    min-height: 100%;
}
.edu-course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.edu-course-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-section-alt); min-height: 200px; }
.edu-course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.edu-course-card:hover .edu-course-img img { transform: scale(1.05); }
.edu-course-img-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg-section-alt), var(--primary-pale-2));
    color: var(--primary-light); font-size: 2.5rem; opacity: .5;
}
.edu-course-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
    padding: 3px 10px; border-radius: 50px;
}
.edu-course-body { padding: 1rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.edu-course-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem; margin-bottom: .55rem; }
.edu-course-meta .edu-chip { font-size: 10px; height: 22px; padding: 0 8px; }
.edu-course-title { font-size: .92rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: .4rem; }
.edu-course-excerpt { font-size: .8rem; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: .65rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edu-course-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: .7rem; margin-top: auto; gap: .5rem; }
.edu-price-old { font-size: .75rem; color: var(--text-muted); text-decoration: line-through; margin-right: .35rem; }
.edu-price-current { font-size: .92rem; font-weight: 800; color: var(--primary); }
.edu-price-free { font-size: .88rem; font-weight: 700; color: var(--accent); }
.edu-read-more { font-size: .75rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.edu-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.edu-feature-list li { font-size: .85rem; color: var(--text-body); display: flex; align-items: center; gap: .5rem; }
.edu-feature-list i { color: var(--primary); }
.edu-empty { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.edu-empty i { font-size: 3rem; opacity: .3; display: block; margin-bottom: 1rem; }

/* Detail — layout 8/4 */
.edu-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 1.75rem;
    align-items: start;
}
@media (max-width:1024px) { .edu-detail-layout { grid-template-columns: 1fr; } }
.edu-detail-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.edu-detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width:768px) { .edu-detail-hero { grid-template-columns: 1fr; } }
.edu-detail-cover img { width: 100%; border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; }
.edu-detail-info h1 { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: .75rem; line-height: 1.3; }
.edu-detail-desc { font-size: .9rem; color: var(--text-body); line-height: 1.7; }
.edu-section-card {
    background: var(--bg-white); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
}
.edu-section-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.edu-section-card h3 i { color: var(--primary); }
.edu-rich-text { font-size: .9rem; color: var(--text-body); line-height: 1.75; }
.edu-cta-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.35rem; position: sticky; top: 100px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.edu-cta-price { text-align: center; margin-bottom: 1.25rem; }
.edu-cta-features { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: .55rem; }
.edu-cta-features li { font-size: .84rem; color: var(--text-body); display: flex; align-items: center; gap: .5rem; }
.edu-cta-features i { color: var(--primary); width: 16px; }

/* Chapters */
.edu-chapter-list { display: flex; flex-direction: column; gap: .5rem; }
.edu-chapter { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.edu-chapter-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1.1rem; background: var(--bg-section-alt); cursor: pointer; user-select: none;
}
.edu-chapter-header:hover { background: var(--primary-pale-2); }
.edu-chapter-name { font-weight: 600; font-size: .9rem; color: var(--text-dark); display: flex; align-items: center; gap: .5rem; }
.edu-chapter-icon { font-size: .7rem; transition: transform .2s; color: var(--primary); }
.edu-chapter.open .edu-chapter-icon { transform: rotate(90deg); }
.edu-chapter-count { font-size: .78rem; color: var(--text-muted); }
.edu-lesson-list { display: none; }
.edu-chapter.open .edu-lesson-list { display: block; }
.edu-lesson-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 1.1rem .7rem 2rem; border-top: 1px solid var(--border);
}
.edu-lesson-info { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--text-body); }
.edu-lesson-icon-video { color: #e74c3c; }
.edu-lesson-icon-text { color: var(--primary); }
.edu-lesson-icon-doc { color: #14b8a6; }
.edu-lesson-trial { font-size: .68rem; background: var(--accent); color: #fff; padding: 1px 7px; border-radius: 50px; font-weight: 600; }
.edu-lesson-link { color: var(--primary); font-size: .9rem; }
.edu-lesson-locked { color: var(--text-muted); font-size: .85rem; }

/* Player layout */
.edu-player-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width:1024px) { .edu-player-layout { grid-template-columns: 1fr; } }
.edu-text-lesson { padding: 2rem; background: var(--bg-white); min-height: 200px; }
.edu-sidebar-lessons { max-height: 520px; overflow-y: auto; }
.edu-sidebar-chapter {
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-muted); padding: .75rem .5rem .35rem; margin-top: .5rem;
}
.edu-sidebar-lesson {
    display: flex; align-items: center; gap: .5rem; padding: .55rem .65rem;
    border-radius: var(--radius); text-decoration: none; font-size: .83rem; color: var(--text-body);
    transition: background .15s;
}
.edu-sidebar-lesson:hover, .edu-sidebar-lesson.active { background: var(--primary-pale-2); color: var(--primary); }
.edu-sidebar-lesson span { flex: 1; line-height: 1.35; }
.edu-done-icon { color: #22c55e; font-size: .75rem; }

/* Exam */
.edu-exam-wrap { max-width: 820px; margin: 0 auto; }
.edu-exam-header { margin-bottom: 2rem; }
.edu-exam-header h1 { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin-bottom: .75rem; }
.edu-exam-badge { display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 12px; border-radius: 50px; margin-bottom: .75rem; }
.edu-exam-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .84rem; color: var(--text-muted); margin-bottom: .75rem; }
.edu-exam-meta i { color: var(--primary); margin-right: .25rem; }
.edu-exam-desc { font-size: .88rem; color: var(--text-body); line-height: 1.6; }
.edu-question-card {
    background: var(--bg-white); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem;
}
.edu-question-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.edu-question-no { font-weight: 700; color: var(--primary); font-size: .88rem; }
.edu-question-point { font-size: .75rem; color: var(--text-muted); background: var(--bg-section-alt); padding: 2px 8px; border-radius: 50px; }
.edu-question-text { font-size: .95rem; font-weight: 600; color: var(--text-dark); line-height: 1.5; margin-bottom: .5rem; }
.edu-question-desc { font-size: .84rem; color: var(--text-muted); margin-bottom: .75rem; }
.edu-question-img { max-width: 100%; border-radius: var(--radius); margin-bottom: .75rem; }
.edu-options { display: flex; flex-direction: column; gap: .5rem; }
.edu-option {
    display: flex; align-items: flex-start; gap: .6rem; padding: .65rem .85rem;
    border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer;
    font-size: .88rem; color: var(--text-body); transition: border-color .15s, background .15s;
}
.edu-option:hover { border-color: var(--primary); background: var(--primary-pale-2); }
.edu-option input { margin-top: 3px; accent-color: var(--primary); }
.edu-answer-text {
    width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: .75rem; font-size: .88rem; font-family: inherit; resize: vertical; color: var(--text-body);
}
.edu-answer-text:focus { outline: none; border-color: var(--primary); }
.edu-exam-submit { display: flex; gap: .75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid var(--border); }
.edu-exam-result { text-align: center; padding: 3rem 2rem; background: var(--bg-white); border-radius: var(--radius); border: 1.5px solid var(--border); }
.edu-exam-result-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.edu-exam-result--pass .edu-exam-result-icon { color: #22c55e; }
.edu-exam-result--fail .edu-exam-result-icon { color: #ef4444; }
.edu-exam-result h2 { font-size: 1.3rem; color: var(--text-dark); margin-bottom: .75rem; }
.edu-exam-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Comment reply form (education + video) */
.reply-form { margin-top: .75rem; padding: .85rem; background: var(--bg-section-alt); border-radius: var(--radius); border: 1.5px solid var(--border); }
.reply-form textarea { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius); padding: .65rem; font-size: .86rem; font-family: inherit; resize: vertical; min-height: 70px; box-sizing: border-box; }
.reply-form textarea:focus { outline: none; border-color: var(--primary); }
.reply-form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }
.btn-reply-cancel { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); padding: 5px 14px; border-radius: var(--radius); cursor: pointer; font-size: .82rem; }
.btn-reply-submit { background: var(--primary); color: #fff; border: none; padding: 5px 14px; border-radius: var(--radius); cursor: pointer; font-size: .82rem; font-weight: 600; }
.btn-reply-submit:hover { background: var(--primary-dark); }

/* ── Detail page v2 ── */
.edu-detail-hero-bar { padding: 90px 0 24px; background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-mid) 100%); }
.edu-detail-hero-bar .breadcrumb { margin: 0; }
.edu-detail-hero-bar .breadcrumb a, .edu-detail-hero-bar .breadcrumb span { color: rgba(255,255,255,.75); }
.edu-detail-hero-bar .breadcrumb .current { color: #fff; }
.edu-detail-page { padding-top: 1.5rem; margin-top: -1rem; }

.edu-detail-hero-card {
    display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem;
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px;
    padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
@media (max-width:768px) { .edu-detail-hero-card { grid-template-columns: 1fr; } }
.edu-detail-hero-card .edu-detail-cover { position: relative; border-radius: 10px; overflow: hidden; }
.edu-detail-hero-card .edu-detail-cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }

.edu-intro-video-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.edu-intro-video-head {
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-section-alt);
}
.edu-intro-video-head h3 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: .45rem;
}
.edu-intro-video-head h3 i { color: var(--primary); }
.edu-intro-video-card .lms-player-stage { border-radius: 0; }
.edu-hero-badge { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; height: 24px; display: inline-flex; align-items: center; box-sizing: border-box; }
.edu-hero-badge--free { background: #0bb783; color: #fff; }
.edu-hero-badge--hot { background: #f1416c; color: #fff; }
.edu-detail-info h1 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 800; color: var(--text-dark); margin-bottom: .65rem; line-height: 1.3; }
.edu-detail-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.edu-detail-meta > span {
    display: inline-flex; align-items: center; gap: .35rem;
    height: 24px; padding: 0 10px; border-radius: 4px;
    font-size: 11px; font-weight: 600; background: #f1f3f5; color: #7e8299;
}
.edu-detail-meta > span i { font-size: 11px; opacity: .85; }
.edu-detail-meta .vid-cat { background: var(--primary-pale-2); color: var(--primary); }
.edu-detail-desc { font-size: .88rem; color: var(--text-body); line-height: 1.65; margin-bottom: 0; }
.edu-hero-cta { margin-top: 1rem; }

.edu-tabs-card, .edu-curriculum-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px;
    margin-bottom: 1.25rem; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.edu-tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); background: var(--bg-section-alt); }
.edu-tab-btn {
    flex: 1; padding: .85rem 1rem; border: none; background: transparent; font-size: .88rem;
    font-weight: 600; color: var(--text-muted); cursor: pointer; transition: .15s;
}
.edu-tab-btn.active { color: var(--primary); background: var(--bg-white); box-shadow: inset 0 -2px 0 var(--primary); }
.edu-tabs-body { padding: 1.5rem; }
.edu-tab-pane { display: none; }
.edu-tab-pane.active { display: block; }

/* ── Curriculum v3 — đồng bộ phong cách admin ── */
.edu-curriculum-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--border);
}
.edu-curriculum-head h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .2rem; color: var(--text-dark); }
.edu-curriculum-head p { margin: 0; font-size: .82rem; color: var(--text-muted); }

.edu-curriculum-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .85rem; }

.edu-chapter-block {
    background: #f8fafb; border: 1px solid #ebedf2; border-radius: 10px; overflow: hidden;
}
.edu-chapter-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .85rem 1rem; border: none; background: transparent; cursor: pointer; text-align: left;
    transition: background .15s;
}
.edu-chapter-toggle:hover { background: rgba(255,255,255,.6); }
.edu-chapter-left { display: flex; align-items: center; gap: .55rem; min-width: 0; flex: 1; }
.edu-chapter-chevron { font-size: .62rem; color: var(--text-muted); transition: transform .2s; flex-shrink: 0; }
.edu-chapter-block.open .edu-chapter-chevron { transform: rotate(0deg); }
.edu-chapter-block:not(.open) .edu-chapter-chevron { transform: rotate(-90deg); }
.edu-chapter-num {
    width: 24px; height: 24px; border-radius: 6px; background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 800; flex-shrink: 0;
}
.edu-chapter-title { font-weight: 700; font-size: .9rem; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.edu-chapter-lessons { display: none; padding: 0 .75rem .75rem; flex-direction: column; gap: .5rem; }
.edu-chapter-block.open .edu-chapter-lessons { display: flex; }

/* Chip thống nhất */
.edu-chip {
    display: inline-flex; align-items: center; gap: 4px;
    height: 24px; padding: 0 10px; border-radius: 4px;
    font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; box-sizing: border-box;
}
.edu-chip i { font-size: 11px; }
.edu-chip--muted { background: #f1f3f5; color: #7e8299; }
.edu-chip--success { background: #e8fff3; color: #0bb783; }
.edu-chip--open { background: #e8fff3; color: #0bb783; }
.edu-chip--locked { background: #ffe2e5; color: #f1416c; }
.edu-chip--trial { background: #e8fff3; color: #0bb783; }
.edu-chip--text { background: #e8fff3; color: #0bb783; }
.edu-chip--doc { background: #fff8dd; color: #b45309; }

/* Lesson item — card ngang như admin */
.edu-lesson-item {
    display: flex; align-items: center; gap: .85rem;
    padding: .65rem .75rem; background: #fff; border: 1px solid #ebedf2;
    border-radius: 10px; text-decoration: none; color: inherit;
    transition: box-shadow .15s ease, border-color .15s ease;
}
a.edu-lesson-item--playable:hover {
    border-color: var(--primary-light, #a7f3d0); box-shadow: 0 2px 12px rgba(15, 118, 110, .08);
    text-decoration: none; color: inherit;
}
.edu-lesson-item--locked { opacity: .72; }

.edu-lesson-thumb {
    position: relative; width: 112px; height: 63px; border-radius: 8px; overflow: hidden;
    flex-shrink: 0; background: linear-gradient(135deg, #1e293b, #334155);
}
.edu-lesson-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edu-lesson-thumb-icon {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.88); font-size: 1.25rem;
}
.edu-lesson-thumb-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.28); pointer-events: none; transition: background .15s;
}
a.edu-lesson-item--playable:hover .edu-lesson-thumb-overlay { background: rgba(0,0,0,.38); }
.edu-lesson-thumb-overlay i {
    width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92);
    color: var(--primary); font-size: .6rem; display: flex; align-items: center; justify-content: center;
    padding-left: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.edu-lesson-thumb-overlay--lock { background: rgba(15,23,42,.45); }
.edu-lesson-thumb-overlay--lock i { background: rgba(255,255,255,.15); color: #fff; padding-left: 0; font-size: .7rem; box-shadow: none; }
.edu-lesson-thumb-dur {
    position: absolute; right: 4px; bottom: 4px; z-index: 2;
    background: rgba(0,0,0,.72); color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px; line-height: 1.3;
}

.edu-lesson-content { flex: 1; min-width: 0; }
.edu-lesson-name {
    font-size: .88rem; font-weight: 700; color: var(--text-dark); line-height: 1.35;
    margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.edu-lesson-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

.edu-lesson-arrow {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; color: var(--text-muted); background: #f4f6f8;
}
a.edu-lesson-item--playable:hover .edu-lesson-arrow { background: var(--primary-pale-2); color: var(--primary); }
.edu-lesson-item--locked .edu-lesson-arrow { color: #a1a5b7; background: #f4f6f8; }

.edu-empty-inline { padding: 2rem; text-align: center; color: var(--text-muted); font-size: .88rem; }

@media (max-width: 640px) {
    .edu-lesson-thumb { width: 96px; height: 54px; }
    .edu-lesson-name { font-size: .84rem; }
    .edu-lesson-arrow { display: none; }
}

/* Thảo luận khóa học — sidebar */
.edu-discuss-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.edu-discuss-head {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .9rem 1.15rem; border-bottom: 1px solid var(--border);
}
.edu-discuss-head h4 {
    margin: 0; font-size: .95rem; font-weight: 700; color: var(--text-dark);
    display: flex; align-items: center; gap: .45rem;
}
.edu-discuss-head h4 i { color: var(--primary); }
.edu-discuss-count {
    font-size: 11px; font-weight: 600; color: #7e8299; background: #f1f3f5;
    height: 24px; padding: 0 10px; border-radius: 4px;
    display: inline-flex; align-items: center; box-sizing: border-box;
}
.edu-discuss-body { padding: 1rem 1.15rem; }
.edu-discuss-trigger {
    width: 100%; border: 1.5px dashed var(--border); background: var(--bg-section-alt);
    border-radius: 10px; padding: .65rem 1rem; font-size: .84rem; font-weight: 600;
    color: var(--text-muted); cursor: pointer; transition: .15s; margin-bottom: .85rem;
}
.edu-discuss-trigger:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale-2); }
.edu-discuss-login {
    display: block; text-align: center; padding: .75rem; font-size: .84rem; font-weight: 600;
    color: var(--primary); text-decoration: none; background: var(--primary-pale-2); border-radius: 10px; margin-bottom: .85rem;
}
.edu-discuss-form { display: none; margin-bottom: .85rem; }
.edu-discuss-form.is-open { display: block; }
.edu-discuss-form textarea {
    width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: .65rem .85rem;
    font-size: .84rem; resize: vertical; min-height: 72px; margin-bottom: .5rem;
}
.edu-discuss-form-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.edu-discuss-list {
    list-style: none; padding: 0; margin: 0; max-height: 420px; overflow-y: auto;
}
.edu-discuss-list:empty::after {
    content: 'Chưa có bình luận. Hãy là người đầu tiên!';
    display: block; text-align: center; color: var(--text-muted); font-size: .82rem; padding: 1.5rem .5rem;
}

.edu-cta-btn { width: 100%; justify-content: center; margin-bottom: .65rem; }

/* ── LMS Video Player Page ── */
.lms-video-page {
    background: var(--bg-section-alt);
    padding-top: 32px;
    padding-bottom: 2rem;
    min-height: 60vh;
}
.lms-body { padding-top: .25rem; }

.lms-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 1100px) { .lms-grid { grid-template-columns: 1fr; } }

/* Player stage */
.lms-player-stage {
    position: relative;
    background: #0b0f0d;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,.18);
    margin-bottom: 1.25rem;
}
.lms-player-stage--shorts {
    display: flex; flex-direction: column; align-items: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    padding: 1rem 0 0;
}
.lms-player-stage--shorts .lms-ratio--youtube {
    width: 100%; max-width: 400px;
    padding-bottom: 177.78%;
}
.lms-ratio {
    position: relative; width: 100%; height: 0; overflow: hidden; background: #000;
}
.lms-ratio--youtube { padding-bottom: 56.25%; }
.lms-ratio--native { padding-bottom: 56.25%; }
.lms-ratio iframe,
.lms-ratio .video-js,
.lms-ratio video {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.lms-ratio .video-js { padding-top: 0 !important; height: 100% !important; }
.lms-ratio .video-js .vjs-tech { object-fit: contain; }
.lms-ratio .video-js .vjs-control-bar {
    background: linear-gradient(to top, rgba(0,0,0,.88), transparent);
    height: 46px;
}
.lms-ratio .video-js .vjs-play-progress,
.lms-ratio .video-js .vjs-volume-level { background: var(--primary); }
.lms-ratio .video-js .vjs-big-play-button {
    border: none; border-radius: 50%; width: 68px; height: 68px; line-height: 68px;
    top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0;
    background: rgba(0,0,0,.65); transition: transform .2s;
}
.lms-ratio .video-js:hover .vjs-big-play-button { transform: translate(-50%, -50%) scale(1.06); }

.lms-source-badge {
    display: flex; align-items: center; gap: .4rem;
    padding: .55rem 1rem; font-size: .72rem; font-weight: 700;
    color: rgba(255,255,255,.8); background: rgba(0,0,0,.55);
    letter-spacing: .02em;
}
.lms-player-stage--shorts .lms-source-badge { width: 100%; max-width: 400px; }

.lms-native-player { background: #000; }
.lms-quality-bar {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    padding: 10px 14px; background: rgba(0,0,0,.92);
    border-top: 1px solid rgba(255,255,255,.08);
}
.lms-quality-label {
    font-size: .75rem; color: rgba(255,255,255,.65); font-weight: 700;
    margin-right: 4px; letter-spacing: .02em;
}
.lms-q-btn {
    padding: 4px 14px; font-size: .72rem; font-weight: 700;
    border: 1.5px solid rgba(255,255,255,.22); border-radius: 20px;
    background: transparent; color: rgba(255,255,255,.85);
    cursor: pointer; transition: .15s;
}
.lms-q-btn:hover { border-color: var(--primary); color: var(--primary-light, #86efac); }
.lms-q-btn.active {
    background: var(--primary); border-color: var(--primary); color: #fff;
}

.lms-text-stage { background: var(--bg-white); padding: 2rem; min-height: 200px; }
.lms-text-stage-inner { max-width: 760px; margin: 0 auto; }
.lms-empty-stage {
    min-height: 280px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .75rem;
    color: rgba(255,255,255,.55); padding: 2.5rem;
}
.lms-empty-stage i { font-size: 2.5rem; opacity: .5; }

/* Lesson info — cột trái */
.lms-lesson-info-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: 14px; padding: 1rem 1.15rem; margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.lms-course-back {
    display: inline-block; font-size: .84rem; font-weight: 600; color: var(--primary);
    text-decoration: none; margin-bottom: .5rem; line-height: 1.4;
}
.lms-course-back::before { content: '← '; opacity: .75; }
.lms-course-back:hover { color: var(--primary-dark); text-decoration: underline; }

.lms-lesson-title {
    font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 800;
    color: var(--text-dark); margin: 0 0 .5rem; line-height: 1.35;
}
.lms-lesson-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: .75rem; }
.lms-lesson-progress { margin-bottom: .75rem; padding-top: .15rem; }
.lms-lesson-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    margin-bottom: .65rem;
}
.lms-lesson-actions { margin-top: .25rem; }

.lms-chip {
    display: inline-flex; align-items: center; gap: 4px;
    height: 24px; padding: 0 10px; border-radius: 4px;
    font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
    box-sizing: border-box; text-decoration: none;
}
.lms-chip i { font-size: 11px; }
.lms-chip--muted { background: #f1f3f5; color: #7e8299; }
.lms-chip--open { background: #e8fff3; color: #0bb783; }
.lms-chip--locked { background: #ffe2e5; color: #f1416c; }
.lms-chip--trial { background: #e8fff3; color: #0bb783; }
.lms-chip--course { background: var(--primary-pale-2); color: var(--primary); }
.lms-chip--course:hover { background: var(--primary); color: #fff; }
.lms-chip--text { background: #e8fff3; color: #0bb783; }
.lms-chip--doc { background: #fff8dd; color: #b45309; }

/* Bài đọc / tài liệu — không dùng khung video đen */
.lms-text-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.5rem 1.75rem; margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.lms-text-card-body { font-size: .92rem; line-height: 1.75; color: var(--text-body); }
.lms-text-card--doc, .lms-text-card--empty {
    text-align: center; padding: 2.5rem 1.5rem;
}
.lms-text-card-doc-icon {
    width: 56px; height: 56px; border-radius: 12px; margin: 0 auto 1rem;
    background: #fff8dd; color: #b45309;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.lms-text-card--doc h2 { font-size: 1.1rem; margin: 0 0 .5rem; color: var(--text-dark); }
.lms-text-card--doc p { margin: 0; color: var(--text-muted); font-size: .88rem; }
.lms-text-card--empty i { font-size: 2rem; color: var(--text-muted); opacity: .5; margin-bottom: .75rem; }
.lms-text-card--empty p { color: var(--text-muted); margin-bottom: 1rem; }
.lms-text-card--below-video { margin-top: 1rem; border-top: 1px solid var(--border); }

.lms-action-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .85rem; border-radius: 8px; font-size: .82rem; font-weight: 600;
    border: 1px solid var(--border); background: var(--bg-white); color: var(--text-dark);
    text-decoration: none; transition: .15s;
}
.lms-action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale-2); text-decoration: none; }
.lms-action-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.lms-action-btn--primary:hover { background: var(--primary-dark); color: #fff; }

/* Sidebar — cột phải 4 */
.lms-sidebar-panel {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    position: sticky; top: 92px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    display: flex; flex-direction: column;
    max-height: calc(100vh - 108px);
}
.lms-sidebar-top { flex-shrink: 0; }
.lms-sidebar-panel.is-top-collapsed .lms-sidebar-top { display: none; }
.lms-sidebar-panel.is-top-collapsed .lms-sidebar-curriculum { max-height: 38vh; }
.lms-sidebar-panel.is-top-collapsed .lms-sidebar-discuss {
    flex: 1; max-height: none; min-height: 200px;
}

.lms-sidebar-toggle {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .45rem; border: none; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); background: #fafbfc;
    font-size: .72rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
    transition: .15s; flex-shrink: 0;
}
.lms-sidebar-toggle:hover { background: var(--primary-pale-2); color: var(--primary); }

.lms-sidebar-head {
    padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.lms-sidebar-head h4 {
    font-size: .92rem; font-weight: 800; color: var(--text-dark);
    margin: 0 0 .45rem; line-height: 1.35;
}
.lms-sidebar-meta { display: flex; flex-wrap: wrap; gap: 5px; }

.lms-sidebar-progress {
    padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.lms-progress-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .75rem; margin-bottom: .4rem;
}
.lms-progress-label { color: var(--text-muted); font-weight: 600; }
.lms-progress-count { color: var(--primary); font-weight: 700; }
.lms-progress-track {
    height: 5px; background: #eef1f4; border-radius: 99px; overflow: hidden;
}
.lms-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-mid, #34d399));
    border-radius: 99px; transition: width .3s;
}

.lms-sidebar-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    padding: .75rem 1.1rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.lms-nav-link {
    display: flex; flex-direction: column; gap: .15rem;
    padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 8px;
    text-decoration: none; transition: .15s; background: #fafbfc;
}
.lms-nav-link:hover { border-color: var(--primary); background: var(--primary-pale-2); text-decoration: none; }
.lms-nav-dir { font-size: .68rem; font-weight: 700; color: var(--primary); letter-spacing: .02em; }
.lms-nav-name { font-size: .78rem; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.lms-nav-link--prev .lms-nav-dir::before { content: '← '; }
.lms-nav-link--next { text-align: right; }
.lms-nav-link--next .lms-nav-dir::after { content: ' →'; }

.lms-sidebar-curriculum-head {
    padding: .85rem 1rem; font-size: .88rem; font-weight: 700; color: var(--text-dark);
    border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.lms-sidebar-curriculum {
    flex: 1; overflow-y: auto; min-height: 0;
    padding: .65rem; border-bottom: 1px solid var(--border);
    max-height: 52vh;
}

/* Danh sách bài sidebar — style admin */
.lms-ch-block {
    background: #f8fafb; border: 1px solid #ebedf2; border-radius: 8px;
    margin-bottom: .5rem; overflow: hidden;
}
.lms-ch-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .55rem .65rem; border: none; background: transparent; cursor: pointer; text-align: left;
}
.lms-ch-left { display: flex; align-items: center; gap: .45rem; min-width: 0; flex: 1; }
.lms-ch-chevron { font-size: .58rem; color: var(--text-muted); transition: transform .2s; }
.lms-ch-block.open .lms-ch-chevron { transform: rotate(0deg); }
.lms-ch-block:not(.open) .lms-ch-chevron { transform: rotate(-90deg); }
.lms-ch-num {
    width: 20px; height: 20px; border-radius: 5px; background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 800; flex-shrink: 0;
}
.lms-ch-title {
    font-size: .78rem; font-weight: 700; color: var(--text-dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lms-ch-lessons { display: none; padding: 0 .45rem .45rem; flex-direction: column; gap: .35rem; }
.lms-ch-block.open .lms-ch-lessons { display: flex; }

.lms-s-item {
    display: flex; align-items: center; gap: .55rem;
    padding: .45rem .5rem; background: #fff; border: 1px solid #ebedf2;
    border-radius: 8px; text-decoration: none; color: inherit; transition: .12s;
}
a.lms-s-item:hover { border-color: var(--primary-light, #a7f3d0); box-shadow: 0 1px 8px rgba(15,118,110,.06); text-decoration: none; color: inherit; }
.lms-s-item.is-active { border-color: var(--primary); background: var(--primary-pale-2); }
.lms-s-item.is-locked { opacity: .68; cursor: not-allowed; }

.lms-s-thumb {
    position: relative; width: 64px; height: 36px; border-radius: 5px;
    overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #1e293b, #334155);
}
.lms-s-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lms-s-thumb-icon {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.88); font-size: .75rem;
}
.lms-s-dur {
    position: absolute; right: 2px; bottom: 2px;
    background: rgba(0,0,0,.72); color: #fff; font-size: 8px; font-weight: 700;
    padding: 1px 4px; border-radius: 3px; line-height: 1.3;
}
.lms-s-lock {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(15,23,42,.42); color: #fff; font-size: .65rem;
}
.lms-s-body { flex: 1; min-width: 0; }
.lms-s-name {
    display: block; font-size: .76rem; font-weight: 600; color: var(--text-dark);
    line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lms-s-item.is-active .lms-s-name { color: var(--primary); }
.lms-s-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }

.lms-sidebar-discuss {
    flex-shrink: 0; padding: .85rem 1rem 1rem;
    overflow-y: auto; flex: 1; min-height: 180px;
}
.lms-discuss-head { margin-bottom: .65rem; }
.lms-discuss-head h5 {
    margin: 0; font-size: .88rem; font-weight: 700; color: var(--text-dark);
    display: flex; align-items: center; gap: .4rem;
}
.lms-discuss-head h5 i { color: var(--primary); }

.lms-comment-box { margin-bottom: .65rem; }
.lms-comment-trigger {
    width: 100%; padding: .55rem .85rem; border: none; border-radius: 8px;
    background: var(--primary); color: #fff; font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: .15s;
}
.lms-comment-trigger:hover { background: var(--primary-dark); }
.lms-comment-login {
    display: block; text-align: center; padding: .55rem; font-size: .82rem; font-weight: 600;
    color: var(--primary); text-decoration: none; background: var(--primary-pale-2); border-radius: 8px;
}
.lms-comment-form { display: none; margin-top: .5rem; }
.lms-comment-form.show { display: block; }
.lms-comment-form textarea {
    width: 100%; border: 1px solid var(--border); border-radius: 8px;
    padding: .55rem .75rem; font-size: .82rem; resize: vertical;
    min-height: 64px; margin-bottom: .45rem; box-sizing: border-box;
}
.lms-comment-form textarea:focus { outline: none; border-color: var(--primary); }
.lms-comment-actions { display: flex; justify-content: flex-end; gap: .4rem; }
.lms-comment-actions .btn-cancel {
    padding: .35rem .75rem; border: 1px solid var(--border); background: #fff;
    border-radius: 6px; font-size: .78rem; cursor: pointer; color: var(--text-muted);
}
.lms-comment-actions .btn-submit {
    padding: .35rem .85rem; border: none; background: var(--primary); color: #fff;
    border-radius: 6px; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.lms-comment-actions .btn-submit:hover { background: var(--primary-dark); }
.lms-comment-list { list-style: none; padding: 0; margin: 0; }
.lms-comment-list:empty::after {
    content: 'Chưa có bình luận';
    display: block; text-align: center; color: var(--text-muted);
    font-size: .78rem; padding: .75rem 0;
}

/* Attachment */
.lms-attachment-card {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: var(--bg-white); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 1.15rem 1.35rem; margin-bottom: 1.25rem;
}
.lms-attachment-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--primary-pale-2); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.lms-attachment-body { flex: 1; min-width: 160px; }
.lms-attachment-body strong { display: block; font-size: .92rem; color: var(--text-dark); margin-bottom: .15rem; }
.lms-attachment-body p { margin: 0; font-size: .8rem; color: var(--text-muted); }

/* Legacy player classes (detail page compat) */
.edu-player-page { padding-top: 1rem; }
.vp-youtube { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.vp-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.vp-outer--shorts .vp-youtube { padding-bottom: 177.78%; max-width: 420px; margin: 0 auto; }
.vp-wrap { position: relative; background: #000; }
.vp-wrap .video-js { width: 100% !important; height: auto !important; padding-top: 56.25%; }
.vp-wrap .video-js .vjs-tech { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vp-wrap .video-js .vjs-play-progress, .vp-wrap .video-js .vjs-volume-level { background: var(--primary); }

/* ── Edu checkout / thank you (đăng ký khóa học) ── */
.edu-pay-wrap {
    background: var(--bg-section-alt);
    padding: 2rem 0 3.5rem;
    min-height: 50vh;
}
.edu-pay-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.edu-pay-step {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--border);
}
.edu-pay-step.is-active {
    color: var(--primary);
    border-color: rgba(26, 92, 56, .25);
    background: rgba(26, 92, 56, .06);
}
.edu-pay-step__num {
    width: 20px; height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
    background: var(--border);
    color: var(--text-muted);
}
.edu-pay-step.is-active .edu-pay-step__num {
    background: var(--primary);
    color: #fff;
}
.edu-pay-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
    align-items: start;
    max-width: 980px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .edu-pay-layout { grid-template-columns: 1fr; }
}
.edu-pay-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.edu-pay-panel__head {
    padding: .9rem 1.15rem;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.edu-pay-panel__head i { color: var(--primary); opacity: .9; }
.edu-pay-panel__body { padding: 1.15rem 1.25rem 1.25rem; }
.edu-pay-course-hero {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
@media (max-width: 560px) {
    .edu-pay-course-hero { grid-template-columns: 1fr; }
}
.edu-pay-course-hero__img {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-section-alt);
    border: 1px solid var(--border);
}
.edu-pay-course-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edu-pay-course-hero__title {
    margin: 0 0 .45rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-dark);
}
.edu-pay-course-hero__desc {
    margin: 0 0 .65rem;
    font-size: .84rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.edu-pay-course-hero__link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.edu-pay-course-hero__link:hover { text-decoration: underline; }
.edu-pay-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px dashed var(--border);
}
.edu-pay-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    background: var(--bg-section-alt);
    color: var(--text-body);
    border: 1px solid var(--border);
}
.edu-pay-chip i { color: var(--primary); font-size: .75rem; }
.edu-pay-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .25rem;
}
@media (max-width: 560px) { .edu-pay-methods { grid-template-columns: 1fr; } }
.edu-pay-method {
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem .85rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
    background: #fff;
}
.edu-pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.edu-pay-method.is-active {
    border-color: var(--primary);
    background: rgba(26, 92, 56, .04);
    box-shadow: 0 2px 10px rgba(26, 92, 56, .1);
}
.edu-pay-method__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section-alt);
    flex-shrink: 0;
}
.edu-pay-method__icon img { max-height: 24px; max-width: 100%; }
.edu-pay-method__text strong {
    display: block;
    font-size: .82rem;
    color: var(--text-dark);
    margin-bottom: .1rem;
}
.edu-pay-method__text span {
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.edu-pay-aside { position: sticky; top: 90px; }
.edu-pay-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    font-size: .86rem;
    color: var(--text-body);
    border-bottom: 1px dashed var(--border);
}
.edu-pay-sum-row:last-of-type { border-bottom: none; }
.edu-pay-sum-due {
    margin-top: .75rem;
    padding: .85rem .9rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 92, 56, .08), rgba(245, 166, 35, .08));
    border: 1px solid rgba(26, 92, 56, .15);
}
.edu-pay-sum-due span {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: .2rem;
}
.edu-pay-sum-due strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.02em;
}
.edu-pay-note {
    margin: .85rem 0 0;
    padding: .7rem .85rem;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    font-size: .78rem;
    color: #166534;
    line-height: 1.5;
}
.edu-pay-submit {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    font-weight: 700;
}
.edu-pay-hero {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}
.edu-pay-hero__icon {
    width: 72px; height: 72px;
    margin: 0 auto .85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    box-shadow: 0 4px 16px rgba(5, 150, 105, .15);
}
.edu-pay-hero h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 800;
    color: var(--text-dark);
}
.edu-pay-hero p { margin: 0; font-size: .86rem; color: var(--text-muted); }
.edu-pay-hero__uid {
    display: inline-block;
    margin-top: .35rem;
    padding: .2rem .55rem;
    border-radius: 6px;
    background: var(--bg-section-alt);
    font-weight: 700;
    color: var(--text-dark);
    font-size: .82rem;
}
.edu-pay-info-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto 1rem;
}
@media (max-width: 700px) { .edu-pay-info-row { grid-template-columns: 1fr; } }
.edu-pay-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.edu-pay-status--ok { background: #ecfdf5; color: #059669; }
.edu-pay-status--wait { background: #fffbeb; color: #d97706; }
.edu-pay-qr-card {
    max-width: 980px;
    margin: 0 auto 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.edu-pay-qr-card__body { padding: 1.25rem 1.35rem 1.35rem; }
.edu-pay-qr-title {
    text-align: center;
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
}
.edu-pay-qr-lead {
    text-align: center;
    margin: 0 0 1.1rem;
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.edu-pay-qr-grid {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    max-width: 720px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .edu-pay-qr-grid { grid-template-columns: 1fr; justify-items: center; }
}
.edu-pay-qr-img-wrap {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    text-align: center;
}
.edu-pay-qr-img { display: block; width: 150px; height: auto; max-width: 100%; }
.edu-pay-qr-dl {
    display: inline-block;
    margin-top: .65rem;
    padding: .4rem .85rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--primary);
    text-decoration: none;
}
.edu-pay-qr-dl:hover { opacity: .92; color: #fff !important; }
.edu-pay-qr-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.edu-pay-qr-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: .84rem;
}
.edu-pay-qr-row:last-child { border-bottom: none; }
.edu-pay-qr-k { color: var(--text-muted); font-weight: 600; min-width: 100px; flex-shrink: 0; }
.edu-pay-qr-v { color: var(--text-dark); font-weight: 600; text-align: right; word-break: break-all; }
.edu-pay-qr-v--amount { color: var(--primary); font-size: .95rem; }
.edu-pay-qr-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.edu-pay-copy {
    margin-left: .35rem;
    cursor: pointer;
    color: var(--primary);
    opacity: .75;
    transition: opacity .15s;
}
.edu-pay-copy:hover { opacity: 1; }
.edu-pay-qr-note {
    margin: 1rem 0 0;
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.edu-pay-online {
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}
.edu-pay-online__title {
    margin: 0 0 .75rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
}
.edu-pay-online-methods {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
    margin-bottom: .85rem;
}
.edu-pay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
    margin-top: 1.25rem;
}
