/* =========================================================
   VTrends UI/UX — chuẩn hóa token, AI chat, bài viết, a11y
   Load sau vtrends.css
   ========================================================= */

:root {
    --bs-primary: var(--vt-primary, #0548B5);
    --bs-primary-rgb: 5, 72, 181;
    --bs-link-color: var(--vt-primary, #0548B5);
    --bs-link-hover-color: #043a94;
    --vt-ai-gradient: linear-gradient(135deg, #043a94 0%, var(--vt-primary, #0548B5) 55%, var(--vt-cyan, #24B4F9) 100%);
    --vt-focus-ring: 0 0 0 3px rgba(5, 72, 181, 0.22);
}

/* Bootstrap primary đồng bộ brand */
.text-bg-primary,
.badge.text-bg-primary {
    background-color: var(--vt-primary) !important;
}
.btn-primary {
    --bs-btn-bg: var(--vt-primary);
    --bs-btn-border-color: var(--vt-primary);
    --bs-btn-hover-bg: #043a94;
    --bs-btn-hover-border-color: #043a94;
    --bs-btn-active-bg: #032f78;
    --bs-btn-active-border-color: #032f78;
}
.btn-outline-primary {
    --bs-btn-color: var(--vt-primary);
    --bs-btn-border-color: rgba(5, 72, 181, 0.45);
    --bs-btn-hover-bg: var(--vt-primary);
    --bs-btn-hover-border-color: var(--vt-primary);
}

/* Focus rõ hơn cho keyboard */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
    outline: none;
    box-shadow: var(--vt-focus-ring);
}

/* Skip link (ẩn đến khi tab) */
.vt-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 2000;
    padding: 0.65rem 1rem;
    background: var(--vt-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 10px 0;
    text-decoration: none;
}
.vt-skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
}

/* ===== AI Chat — brand + layout 2 cột gợi ý ===== */

/* Nút mở chat: avatar + nhãn «Tư vấn» */
.vt-ai-chat__toggle--consultant {
    width: auto;
    min-width: 56px;
    height: 56px;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff !important;
    color: var(--vt-ink, #0b1220);
    border: 2px solid rgba(5, 72, 181, 0.22);
    box-shadow: 0 10px 28px rgba(5, 72, 181, 0.22);
}
.vt-ai-chat__toggle--consultant:hover {
    border-color: rgba(5, 72, 181, 0.38);
    box-shadow: 0 14px 32px rgba(5, 72, 181, 0.28);
}
.vt-ai-chat__toggle-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.vt-ai-chat__toggle-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.vt-ai-chat__online {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
}
.vt-ai-chat__toggle-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
    padding-right: 2px;
}
.vt-ai-chat__toggle-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--vt-primary, #0548B5);
    letter-spacing: -0.02em;
}
.vt-ai-chat__toggle-sub {
    font-size: 10px;
    font-weight: 700;
    color: #16a34a;
}

.vt-ai-chat__avatar--photo {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent !important;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
}
.vt-ai-chat__avatar--photo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.55);
    display: block;
    background: #fff;
}
.vt-ai-chat__avatar--photo .vt-ai-chat__online {
    right: -1px;
    bottom: -1px;
}

.vt-ai-chat__title {
    font-size: 14px;
    line-height: 1.3;
}

.vt-ai-chat__toggle {
    background: var(--vt-ai-gradient);
    box-shadow: 0 10px 28px rgba(5, 72, 181, 0.38);
}
.vt-ai-chat__toggle:hover {
    box-shadow: 0 14px 32px rgba(5, 72, 181, 0.45);
}
.vt-ai-chat__toggle-badge {
    color: var(--vt-primary);
}
.vt-ai-chat__head {
    background: var(--vt-ai-gradient);
}
.vt-ai-chat__head-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.vt-ai-chat__subtitle {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.88;
    line-height: 1.2;
}
.vt-ai-chat__progress {
    height: 3px;
    background: rgba(5, 72, 181, 0.12);
    flex-shrink: 0;
    overflow: hidden;
}
.vt-ai-chat__progress[hidden] {
    display: none !important;
}
.vt-ai-chat__progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--vt-accent, #F5842A), var(--vt-cyan, #24B4F9));
    transition: width 0.35s ease;
}
.vt-ai-chat__msg--user {
    background: var(--vt-ai-gradient);
    box-shadow: 0 4px 12px rgba(5, 72, 181, 0.22);
}
.vt-ai-chat__send {
    background: var(--vt-ai-gradient);
}
.vt-ai-chat__input:focus {
    border-color: rgba(5, 72, 181, 0.45);
    box-shadow: var(--vt-focus-ring);
}

.vt-ai-chat__quick {
    padding: 6px 10px 4px;
    border-top: 1px solid var(--vt-border, #e2e8f0);
    background: #fff;
    flex-shrink: 0;
}
.vt-ai-chat__quick[hidden] {
    display: none !important;
}
.vt-ai-chat__quick-head {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--vt-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vt-ai-chat__quick-head i {
    color: var(--vt-accent, #F5842A);
    font-size: 11px;
}
.vt-ai-chat__quick-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 40px;
    min-height: 32px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.vt-ai-chat__chip {
    display: inline-block;
    flex: 0 0 auto;
    max-width: 168px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    border: 1px solid rgba(5, 72, 181, 0.18);
    background: rgba(5, 72, 181, 0.06);
    color: var(--vt-primary);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}
.vt-ai-chat__quick-grid.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}
.vt-ai-chat__chip:hover {
    background: rgba(5, 72, 181, 0.12);
    border-color: rgba(5, 72, 181, 0.32);
}

.vt-ai-chat__form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.vt-ai-chat__quick-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(5, 72, 181, 0.22);
    border-radius: 10px;
    background: rgba(5, 72, 181, 0.06);
    color: var(--vt-primary);
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.vt-ai-chat__quick-toggle:hover {
    background: rgba(5, 72, 181, 0.12);
}
.vt-ai-chat__quick-toggle[hidden] {
    display: none !important;
}
.vt-ai-chat__form .vt-ai-chat__input {
    flex: 1;
    min-width: 0;
}

.vt-ai-chat__lead-cta {
    align-self: stretch;
    margin-top: 4px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(5, 72, 181, 0.08), rgba(36, 180, 249, 0.1));
    border: 1px dashed rgba(5, 72, 181, 0.28);
    animation: vtAiMsgIn 0.25s ease;
}
.vt-ai-chat__lead-cta-text {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--vt-text, #334155);
}
.vt-ai-chat__lead-cta-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--vt-ai-gradient);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vt-ai-chat__lead-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 72, 181, 0.28);
}

@media (max-width: 991.98px) {
    .vt-ai-chat__toggle-text {
        display: none;
    }
    .vt-ai-chat__toggle--consultant {
        width: 56px;
        height: 56px;
        padding: 5px;
        border-radius: 18px;
        justify-content: center;
    }
    .vt-ai-chat__toggle-avatar {
        width: 42px;
        height: 42px;
    }
    .vt-ai-chat__toggle-avatar img {
        width: 42px;
        height: 42px;
    }
    .vt-ai-chat__quick-grid {
        max-height: 32px;
    }
    .vt-ai-chat.is-open {
        bottom: max(72px, calc(12px + env(safe-area-inset-bottom)));
    }
    .vt-ai-chat.is-open .vt-ai-chat__panel {
        bottom: 70px;
    }
}

/* ===== Trang bài viết — gọn, rõ, khoa học ===== */
.vt-article-page {
    background: var(--vt-bg, #f6f9ff) !important;
    padding: 1.25rem 0 3rem;
}
/* Breadcrumb — không cắt title dài */
.vt-article-bc {
    margin-bottom: 0.85rem;
}
.vt-article-bc .breadcrumb {
    font-size: 0.8125rem;
    background: transparent;
    padding: 0;
    gap: 0.15rem;
}
.vt-article-bc .breadcrumb-item a {
    color: var(--vt-muted);
    text-decoration: none;
}
.vt-article-bc .breadcrumb-item a:hover {
    color: var(--vt-primary);
}
.vt-article-bc .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

/* Khối đọc chính — một card duy nhất */
.vt-article-card {
    background: #fff;
    border: 1px solid var(--vt-border, rgba(15, 23, 42, 0.1));
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    padding: 1.35rem 1.35rem 1.5rem;
}
@media (min-width: 992px) {
    .vt-article-card {
        padding: 1.75rem 2rem 1.85rem;
    }
}

.vt-article-head {
    margin-bottom: 1.15rem;
}
.vt-article-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vt-primary);
    background: rgba(5, 72, 181, 0.08);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
}
.vt-article-cat:hover {
    background: rgba(5, 72, 181, 0.14);
    color: #043a94;
}
.vt-article-title {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.025em;
    color: var(--vt-ink, #0b1220);
    margin: 0 0 0.7rem;
}
.vt-article-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    font-size: 0.8125rem;
    color: var(--vt-muted);
}
.vt-article-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.vt-article-meta i {
    font-size: 0.78rem;
    opacity: 0.85;
}

/* Chia sẻ — ngay dưới meta bài viết */
.vt-article-share--top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    width: 100%;
    margin-top: 0.9rem;
    padding: 0.7rem 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--vt-border, rgba(15, 23, 42, 0.1));
    border-radius: 12px;
}
.vt-article-share__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
}

/* Tóm tắt — gọn, không “alert” */
.vt-article-lead {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(5, 72, 181, 0.05);
    border-left: 3px solid var(--vt-primary);
    border-radius: 0 10px 10px 0;
}
.vt-article-lead__label {
    margin: 0 0 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vt-primary);
}
.vt-article-lead__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--vt-text);
}

/* Cover: luôn full chiều ngang khung bài, ảnh cover giữa khung */
.vt-article-card .vt-article-cover,
.vt-article-page .vt-article-cover {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f7;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    box-sizing: border-box;
}
.vt-article-card .vt-article-cover img,
.vt-article-page .vt-article-cover img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 auto !important;
    object-fit: cover;
    object-position: center center;
    vertical-align: middle;
}

/* Prose — chuẩn đọc blog: block layout, không float ảnh */
.vt-article-body {
    width: 100%;
    max-width: 100%;
}
.vt-article-prose {
    font-size: 1.02rem;
    line-height: 1.78;
    color: var(--vt-text);
    overflow-wrap: anywhere;
    word-wrap: break-word;
}
/* Reset global `section{padding:72px 0}` (vtrends.css) trong nội dung bài */
.vt-article-page section,
.vt-article-body section,
.vt-article-prose section {
    padding: 0;
    margin: 0 0 1.15em;
}
.vt-article-prose section:last-child {
    margin-bottom: 0;
}
.vt-article-prose > *:first-child {
    margin-top: 0;
}
.vt-article-prose p,
.vt-article-prose .lead {
    margin: 0 0 1.05em;
}
.vt-article-prose .lead {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--vt-ink);
}
.vt-article-prose h2,
.vt-article-prose h3,
.vt-article-prose h4 {
    color: var(--vt-ink);
    margin-top: 1.35em;
    margin-bottom: 0.45em;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.vt-article-prose section > h2:first-child,
.vt-article-prose section > h3:first-child,
.vt-article-prose section > h4:first-child {
    margin-top: 0;
}
.vt-article-prose h2 { font-size: 1.28rem; }
.vt-article-prose h3 { font-size: 1.12rem; }
.vt-article-prose h4 { font-size: 1.02rem; }
.vt-article-prose ul,
.vt-article-prose ol {
    margin: 0 0 1.15em;
    padding-left: 1.35rem;
    clear: both;
}
.vt-article-prose li {
    margin-bottom: 0.45em;
    padding-left: 0.15rem;
}
.vt-article-prose li > ul,
.vt-article-prose li > ol {
    margin-top: 0.4em;
    margin-bottom: 0.35em;
    clear: none;
}
.vt-article-prose li::marker {
    color: var(--vt-primary);
}
/* Ảnh / figure — block full width, không float (tránh list bọc cạnh ảnh) */
.vt-article-prose img,
.vt-article-body img,
.vt-article-page .post-body img,
.vt-article-page .content-html img {
    display: block;
    float: none !important;
    clear: both;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 1.35rem 0;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--vt-border, rgba(15, 23, 42, 0.1));
}
.vt-article-prose figure,
.vt-article-body figure,
.vt-article-page .post-body figure,
.vt-article-prose .vt-inline-figure,
.post-body .vt-inline-figure {
    display: block;
    float: none !important;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}
.vt-article-prose figure img,
.vt-article-body figure img,
.vt-article-prose .vt-inline-figure img,
.post-body .vt-inline-figure img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--vt-border, rgba(15, 23, 42, 0.1));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    object-fit: cover;
}
.vt-article-prose .vt-inline-figure--wide img,
.post-body .vt-inline-figure--wide img {
    border-radius: 14px;
}
/* Vô hiệu float cũ (bài đã publish) */
.vt-article-prose .vt-inline-figure--float-right,
.vt-article-prose .vt-inline-figure--float-left,
.post-body .vt-inline-figure--float-right,
.post-body .vt-inline-figure--float-left {
    float: none !important;
    width: 100%;
    margin: 1.5rem 0;
}
.vt-article-prose figcaption,
.vt-article-prose .vt-inline-figure__cap,
.post-body .vt-inline-figure__cap {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--vt-muted, #64748b);
    text-align: center;
    font-style: normal;
}
.vt-article-prose p > img,
.vt-article-body p > img {
    display: block;
    width: 100% !important;
    margin: 1.35rem 0;
}
/* Tiêu đề mục trong bài (AI hay dùng h2.h3) */
.vt-article-prose h2,
.vt-article-prose h2.h3 {
    clear: both;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 1.75em !important;
}
.vt-article-prose > h2:first-child,
.vt-article-prose > section:first-child h2:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0.5em !important;
}
.vt-article-prose blockquote {
    margin: 1.1em 0;
    padding: 0.65rem 1rem;
    border-left: 3px solid var(--vt-primary);
    background: rgba(5, 72, 181, 0.04);
    color: var(--vt-ink);
    font-size: 0.98rem;
}
.vt-article-prose a {
    color: var(--vt-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.vt-article-prose a:hover {
    color: #043a94;
}
.vt-article-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 1em 0;
}
.vt-article-prose th,
.vt-article-prose td {
    border: 1px solid var(--vt-border);
    padding: 0.45rem 0.65rem;
    text-align: left;
}
.vt-article-prose th {
    background: #f8fafc;
    font-weight: 650;
}

/* Thanh cuối bài — chỉ link quay lại */
.vt-article-page .vt-article-foot,
.vt-article-card .vt-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem 1.25rem;
    margin-top: 1.75rem;
    padding: 0.65rem 0.15rem 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--vt-text, #334155);
}
.vt-article-page .vt-article-share,
.vt-article-card .vt-article-share {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.vt-article-page .vt-article-share__label,
.vt-article-card .vt-article-share__label {
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--vt-muted, #64748b);
    margin-right: 0.15rem;
    letter-spacing: 0.02em;
}
.vt-article-page .vt-article-share__btn,
.vt-article-card .vt-article-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    text-decoration: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.vt-article-page .vt-article-share__btn:hover,
.vt-article-page .vt-article-share__btn.is-copied,
.vt-article-card .vt-article-share__btn:hover,
.vt-article-card .vt-article-share__btn.is-copied {
    background: var(--vt-primary, #0548B5);
    border-color: var(--vt-primary, #0548B5);
    color: #fff;
    text-decoration: none;
}
.vt-article-page .vt-article-back,
.vt-article-card .vt-article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--vt-primary, #0548B5) !important;
    text-decoration: none !important;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: rgba(5, 72, 181, 0.06);
    white-space: nowrap;
}
.vt-article-page .vt-article-back:hover,
.vt-article-card .vt-article-back:hover {
    color: #043a94 !important;
    background: rgba(5, 72, 181, 0.12);
    text-decoration: none !important;
}

/* Khối sau bài: điều hướng + cùng chuyên mục + quay lại */
.vt-article-more {
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.vt-article-more--solo {
    margin-top: 0.85rem;
}

/* Prev / next — hàng ngang, icon tròn */
.vt-article-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}
@media (min-width: 640px) {
    .vt-article-nav:has(.vt-article-nav__item--prev):has(.vt-article-nav__item--next) {
        grid-template-columns: 1fr 1fr;
    }
}
.vt-article-nav__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.05rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none !important;
    min-height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.vt-article-nav__item:hover {
    border-color: rgba(5, 72, 181, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}
.vt-article-nav__item--next {
    justify-content: flex-end;
    text-align: right;
}
.vt-article-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(5, 72, 181, 0.08);
    color: var(--vt-primary, #0548B5);
    font-size: 0.85rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.vt-article-nav__item:hover .vt-article-nav__icon {
    background: var(--vt-primary, #0548B5);
    color: #fff;
}
.vt-article-nav__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}
.vt-article-nav__item--next .vt-article-nav__text {
    align-items: flex-end;
}
.vt-article-nav__label {
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vt-muted, #64748b);
}
.vt-article-nav__title {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--vt-ink, #0b1220);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vt-article-nav__item:hover .vt-article-nav__title {
    color: var(--vt-primary, #0548B5);
}
@media (max-width: 639px) {
    .vt-article-nav__item--next {
        justify-content: flex-start;
        text-align: left;
    }
    .vt-article-nav__item--next .vt-article-nav__text {
        align-items: flex-start;
        order: 2;
    }
    .vt-article-nav__item--next .vt-article-nav__icon {
        order: 3;
        margin-left: auto;
    }
}

/* Cùng chuyên mục — lưới card dọc */
.vt-article-related {
    margin: 0;
    padding: 1.1rem 1.15rem 1.15rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}
.vt-article-related__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.vt-article-related__head-text {
    min-width: 0;
}
.vt-article-related__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
    color: var(--vt-ink, #0b1220);
    letter-spacing: -0.02em;
}
.vt-article-related__sub {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--vt-muted, #64748b);
    line-height: 1.35;
}
.vt-article-related__more {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.3;
    color: var(--vt-primary, #0548B5);
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 0.1rem;
}
.vt-article-related__more:hover {
    color: #043a94;
}

.vt-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 576px) {
    .vt-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .vt-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

.vt-related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.vt-related-card:hover {
    border-color: rgba(5, 72, 181, 0.35);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}
.vt-related-card__media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    overflow: hidden;
    background: #e2e8f0;
}
.vt-related-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.vt-related-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.85rem;
    font-weight: 750;
    color: #94a3b8;
    background: linear-gradient(135deg, #e8eef5, #f1f5f9);
}
.vt-related-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem 0.85rem;
    min-width: 0;
    flex: 1;
}
.vt-related-card__title {
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--vt-ink, #0b1220);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vt-related-card:hover .vt-related-card__title {
    color: var(--vt-primary, #0548B5);
}
.vt-related-card__meta {
    font-size: 0.72rem;
    color: var(--vt-muted, #64748b);
    margin-top: auto;
}

/* Nút quay lại danh sách */
.vt-article-more__foot {
    display: flex;
    justify-content: center;
    padding-top: 0.15rem;
}
.vt-article-more__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--vt-primary, #0548B5) !important;
    text-decoration: none !important;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 72, 181, 0.2);
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.vt-article-more__back:hover {
    color: #fff !important;
    background: var(--vt-primary, #0548B5);
    border-color: var(--vt-primary, #0548B5);
    text-decoration: none !important;
}

/* Sidebar */
.vt-article-side {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.vt-article-side__card {
    background: #fff;
    border: 1px solid var(--vt-border);
    border-radius: 14px;
    padding: 1rem 1.05rem;
}
.vt-article-side__title {
    margin: 0 0 0.7rem;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--vt-ink);
}
.vt-article-search {
    display: flex;
    gap: 0.4rem;
}
.vt-article-search .form-control {
    font-size: 0.9rem;
    height: 38px;
    border-radius: 8px;
}
.vt-article-search .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.vt-article-side__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: vt-latest;
}
.vt-article-side__list li {
    counter-increment: vt-latest;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.vt-article-side__list li:first-child {
    border-top: none;
}
.vt-article-side__link {
    display: grid;
    grid-template-columns: 1.35rem 1fr;
    gap: 0.45rem 0.55rem;
    padding: 0.65rem 0;
    text-decoration: none;
}
.vt-article-side__link::before {
    content: counter(vt-latest, decimal-leading-zero);
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--vt-primary);
    line-height: 1.4;
    padding-top: 0.1rem;
}
.vt-article-side__link-title {
    grid-column: 2;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--vt-ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vt-article-side__link:hover .vt-article-side__link-title {
    color: var(--vt-primary);
}
.vt-article-side__link-meta {
    grid-column: 2;
    font-size: 0.75rem;
    color: var(--vt-muted);
}
.vt-article-side__cta {
    background: var(--vt-ai-gradient) !important;
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    color: #fff;
}
.vt-article-side__cta-kicker {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.92;
}
.vt-article-side__cta-text {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
    opacity: 0.92;
}
.vt-article-side__cta .btn-light {
    border: none;
    color: var(--vt-primary);
}

@media (max-width: 991px) {
    .vt-article-side {
        position: static;
    }
    .vt-article-page {
        padding-top: 1rem;
    }
}

/* Tin tức — nút đọc tiếp */
.vt-news-read-btn.btn-primary {
    background: var(--vt-primary);
    border-color: var(--vt-primary);
}

/* Modal lead — header đồng bộ */
.vt-modal__header {
    background: linear-gradient(135deg, rgba(5, 72, 181, 0.06), rgba(36, 180, 249, 0.08));
    border-bottom: 1px solid var(--vt-border);
}

/* ===== Lead modal — layout cân đối, B2B ===== */
.vt-lead-modal .modal-dialog {
    max-width: min(920px, calc(100vw - 1.5rem));
}
.vt-lead-modal__content {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(11, 18, 32, 0.18);
}
.vt-lead-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
}
.vt-lead-modal__title-block {
    flex: 1;
    min-width: 0;
}
.vt-lead-modal__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vt-primary);
    background: rgba(5, 72, 181, 0.08);
    border: 1px solid rgba(5, 72, 181, 0.14);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.5rem;
}
.vt-lead-modal__header .modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--vt-ink, #0b1220);
    letter-spacing: -0.02em;
}
.vt-lead-modal__subtitle {
    font-size: 0.875rem;
    color: var(--vt-muted, #64748b);
    line-height: 1.5;
    max-width: 36rem;
}
.vt-lead-modal__close {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.vt-lead-modal__main {
    padding: 0.25rem 1.5rem 1.5rem;
}
.vt-lead-modal__form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
.vt-lead-modal__section + .vt-lead-modal__section {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}
.vt-lead-modal__legend {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vt-ink, #0b1220);
    margin-bottom: 0.85rem;
    width: 100%;
}
.vt-lead-modal__legend-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: var(--vt-primary);
    flex-shrink: 0;
}
.vt-lead-modal__form .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--vt-ink, #0b1220);
}
.vt-lead-modal__form .form-control,
.vt-lead-modal__form .form-select {
    border-radius: 10px;
    border-color: rgba(15, 23, 42, 0.12);
    font-size: 0.9375rem;
    padding: 0.55rem 0.75rem;
}
.vt-lead-modal__form .form-control:focus,
.vt-lead-modal__form .form-select:focus {
    border-color: rgba(5, 72, 181, 0.45);
    box-shadow: var(--vt-focus-ring);
}
.vt-lead-modal__form .form-text {
    font-size: 0.75rem;
    color: var(--vt-muted);
    margin-top: 0.35rem;
}

.vt-lead-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}
.vt-lead-modal__actions .btn-lg {
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    border-radius: 12px;
}
.vt-lead-modal__privacy {
    flex: 1 1 100%;
    font-size: 0.75rem;
    color: var(--vt-muted);
    margin-top: 0.15rem;
}
.vt-lead-modal__privacy a {
    color: var(--vt-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Sidebar — full height, gradient nhẹ */
.vt-lead-modal__aside {
    background: linear-gradient(165deg, #f4f8ff 0%, #eef6fc 45%, #f8fafc 100%);
    border-left: 1px solid rgba(5, 72, 181, 0.1);
}
.vt-lead-modal__aside-inner {
    padding: 1.35rem 1.35rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.vt-lead-modal__aside-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vt-primary);
    margin-bottom: 0.75rem;
}

.vt-lead-modal__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.vt-lead-modal__steps li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.vt-lead-modal__step-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid rgba(5, 72, 181, 0.12);
    color: var(--vt-primary);
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(5, 72, 181, 0.08);
}
.vt-lead-modal__steps li strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--vt-ink);
    line-height: 1.3;
}
.vt-lead-modal__steps li span {
    display: block;
    font-size: 0.78rem;
    color: var(--vt-muted);
    line-height: 1.45;
    margin-top: 0.1rem;
}

.vt-lead-modal__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.vt-lead-modal__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.8125rem;
    color: var(--vt-ink);
    line-height: 1.45;
}
.vt-lead-modal__benefits li i {
    color: var(--vt-primary);
    margin-top: 0.2rem;
    font-size: 0.7rem;
}

.vt-lead-modal__trust {
    margin-top: auto;
    padding-top: 1.15rem;
    border-top: 1px dashed rgba(5, 72, 181, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.vt-lead-modal__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--vt-muted);
}
.vt-lead-modal__trust-item i {
    width: 1.25rem;
    text-align: center;
    color: var(--vt-primary);
}
.vt-lead-modal__trust-item a {
    color: var(--vt-primary);
    font-weight: 700;
    text-decoration: none;
}
.vt-lead-modal__trust-item a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .vt-lead-modal__aside {
        border-left: 0;
        border-top: 1px solid rgba(5, 72, 181, 0.1);
    }
    .vt-lead-modal__main {
        padding: 0 1.25rem 1.25rem;
    }
    .vt-lead-modal__header {
        padding: 1.1rem 1.25rem 0.85rem;
    }
    .vt-lead-modal__aside-inner {
        padding: 1.15rem 1.25rem 1.35rem;
    }
    .vt-lead-modal__trust {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .vt-lead-modal__actions .btn-lg {
        width: 100%;
    }
    .vt-lead-modal__actions .btn-vt-outline {
        width: 100%;
    }
}

/* ===== Trang Hệ sinh thái — danh sách chữ, không icon ===== */
.vt-eco-page .section-head .vt-lead {
    max-width: 42rem;
}
.vt-eco-panel {
    background: #fff;
    border: 1px solid var(--vt-border, rgba(15, 23, 42, 0.1));
    border-radius: var(--vt-radius, 16px);
    box-shadow: var(--vt-shadow2, 0 10px 26px rgba(2, 12, 27, 0.08));
    overflow: hidden;
}
.vt-eco-list {
    display: flex;
    flex-direction: column;
}
.vt-eco-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transition: background 0.12s ease;
}
.vt-eco-row:last-child {
    border-bottom: 0;
}
.vt-eco-row:hover {
    background: rgba(5, 72, 181, 0.03);
}
.vt-eco-row__main {
    min-width: 0;
    flex: 1;
}
.vt-eco-row__top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.2rem;
}
.vt-eco-row__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.35;
    color: var(--vt-ink, #0b1220);
    letter-spacing: -0.02em;
}
.vt-eco-row__cat {
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--vt-muted, #64748b);
    padding: 0.12rem 0.42rem;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.05);
}
.vt-eco-row__desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--vt-muted, #64748b);
}
.vt-eco-row__action {
    flex-shrink: 0;
    padding-top: 0.1rem;
}
.vt-eco-row__link {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 650;
    color: var(--vt-primary, #0548B5);
    text-decoration: none !important;
    white-space: nowrap;
}
.vt-eco-row__link:hover {
    color: #043a94;
    text-decoration: underline !important;
}
.vt-eco-row__soon {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vt-muted, #64748b);
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .vt-eco-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .vt-eco-row__action {
        padding-top: 0;
    }
}
