﻿*,
*::before,
*::after {
    box-sizing: border-box;
}
body,
button,
input,
select,
textarea,
a,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
label {
    font-family: 'Roboto', Arial, sans-serif;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
/* =========================
   Header
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 800;
    color: var(--primary);
}
.site-logo {
    height: 74px;
    width: auto;
    object-fit: contain;
    display: block;
}
.logo-text {
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    letter-spacing: 1px;
}
.main-nav {
    display: flex;
    gap: 24px;
    font-weight: 600;
}
.main-nav a {
    color: var(--primary);
    font-weight: 700;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary);
}
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
/* =========================
   Base Components
========================= */
.btn,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: 0.2s ease;
}
.btn {
    border: 0;
    background: var(--secondary);
    color: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    cursor: pointer;
}
.btn:hover {
    filter: brightness(0.95);
}
.btn-outline {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.section {
    padding: 52px 0;
}
.section-head {
    margin-bottom: 24px;
}
.section-head.center {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}
.section-head h1,
.section-head h2 {
    color: var(--primary);
}
.section-head h2 {
    font-size: 34px;
    margin: 0 0 8px;
}
.section-head p {
    color: var(--muted);
    margin: 0;
}
.section-label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(242, 146, 32, 0.12);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 800;
}
.grid {
    display: grid;
    gap: 20px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}
.card p {
    color: var(--muted);
    margin: 0;
}
.empty-box {
    background: #fff;
    border: 1px dashed #cbd5e1;
    padding: 30px;
    border-radius: 18px;
    color: #64748b;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 800;
}
.back-link:hover {
    color: var(--secondary);
}
/* =========================
   Home Hero
========================= */
.hero {
    padding: 42px 0 38px;
    background: var(--primary);
}
.hero-support {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
.hero-support h1 {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero-support p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.hero-search-form,
.search-result-form {
    width: min(760px, 100%);
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
}
.hero-search-form {
    margin: 0 auto 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}
.search-result-form {
    margin: 0 auto 36px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.hero-search-form input,
.search-result-form input {
    flex: 1;
    width: 100%;
    height: 48px;
    border: 0;
    outline: 0;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 999px;
    color: var(--text);
    background: #fff;
}
.hero-search-form input::placeholder,
.search-result-form input::placeholder {
    color: #94a3b8;
}
.hero-search-form button,
.search-result-form button {
    height: 48px;
    min-width: 120px;
    border: 0;
    border-radius: 999px;
    padding: 0 26px;
    background: var(--secondary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.hero-search-form button {
    height: 50px;
    padding: 0 28px;
}
.hero-search-form button:hover,
.search-result-form button:hover {
    filter: brightness(0.95);
}
/* =========================
   Software Cards
========================= */
.software-grid {
    grid-template-columns: repeat(4, 1fr);
}
.software-card {
    position: relative;
    min-height: 210px;
    padding: 28px;
    border-radius: 22px;
    overflow: hidden;
    transition: 0.2s ease;
}
.software-card:hover,
.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
}
.software-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(242, 146, 32, 0.12);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
}
.software-card h3 {
    color: var(--primary);
    font-size: 22px;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.software-card p {
    min-height: 48px;
    line-height: 1.5;
}
.card-arrow {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 800;
}
/* =========================
   Video Cards
========================= */
.video-grid {
    grid-template-columns: repeat(3, 1fr);
}
.video-card {
    padding: 20px;
    border-radius: 22px;
    transition: 0.2s ease;
}
.video-card h3 {
    color: var(--primary);
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 8px;
}
.video-card p {
    color: var(--muted);
    line-height: 1.55;
}
.video-thumb {
    height: 170px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(27, 44, 88, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.video-thumb.has-image {
    padding: 0;
    overflow: hidden;
    background: #e2e8f0;
}
.video-thumb.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-meta {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}
.section-action {
    margin-top: 32px;
    text-align: center;
}
/* =========================
   Public Video Library
========================= */
.public-filter-form {
    max-width: 720px;
    margin: 0 auto 34px;
}
.public-filter-form input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 22px;
    font-size: 16px;
    outline: 0;
    background: #fff;
    color: var(--text);
}
.public-filter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 44, 88, 0.08);
}
/* =========================
   Video Detail
========================= */
.video-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
}
.video-player {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}
.video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-info {
    padding: 30px;
}
.video-info h1 {
    color: var(--primary);
    font-size: clamp(28px, 4vw, 46px);
    margin: 10px 0 16px;
    letter-spacing: -0.03em;
}
.description {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}
.content-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    color: var(--muted);
    line-height: 1.75;
}
.content-box h2 {
    color: var(--primary);
    margin-top: 0;
}
/* =========================
   Software Detail
========================= */
.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 30px;
}
.category-list a {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.2s ease;
}
.category-list a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}
/* =========================
   Search Page
========================= */
.search-result-head {
    text-align: center;
    margin: 8px 0 28px;
}
.search-result-head h2 {
    color: var(--primary);
}
.search-result-head p {
    color: var(--muted);
}
.search-empty {
    margin-top: 24px;
}
/* =========================
   FAQ Page
========================= */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}
.faq-question {
    width: 100%;
    border: 0;
    background: #fff;
    color: var(--primary);
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.faq-question:hover {
    color: var(--secondary);
}
.faq-question strong {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(242, 146, 32, 0.12);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.faq-answer {
    display: none;
    padding: 0 22px 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    display: block;
}
/* =========================
   Footer
========================= */
.site-footer {
    background: var(--primary);
    color: #fff;
    padding: 44px 0 22px;
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.site-footer h3 {
    margin: 0 0 10px;
    font-size: 22px;
}
.site-footer p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.82);
}
.footer-links {
    display: grid;
    gap: 10px;
}
.footer-links a {
    font-weight: 600;
}
.footer-links a:hover {
    color: var(--secondary);
}
.footer-contact strong {
    color: #fff;
}
.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}
/* =========================
   404 Page
========================= */
.empty-state {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 54px 28px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}
.empty-code {
    font-size: 86px;
    line-height: 1;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 16px;
}
.empty-state h1 {
    color: var(--primary);
    margin: 0 0 12px;
}
.empty-state p {
    color: var(--muted);
    margin: 0 0 26px;
}
.empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
/* =========================
   Responsive
========================= */
@media (max-width: 1000px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .software-grid,
    .video-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .header-inner {
        position: relative;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        right: 0;
        width: min(260px, calc(100vw - 32px));
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 12px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
        z-index: 20;
    }
    .main-nav.active {
        display: grid;
        gap: 6px;
    }
    .main-nav a {
        padding: 12px 14px;
        border-radius: 12px;
    }
    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(27, 44, 88, 0.06);
    }
    .hero {
        padding: 40px 0;
    }
    .hero-search-form,
    .search-result-form {
        border-radius: 22px;
        flex-direction: column;
        padding: 10px;
    }
    .hero-search-form input,
    .hero-search-form button,
    .search-result-form input,
    .search-result-form button {
        width: 100%;
    }
    .hero-search-form button,
    .search-result-form button {
        margin-top: 8px;
    }
    .hero-support p {
        font-size: 14px;
        line-height: 1.5;
    }
}
@media (max-width: 640px) {
    .section {
        padding: 40px 0;
    }
    .software-grid {
        grid-template-columns: 1fr;
    }
    .video-info {
        padding: 22px;
    }
    .empty-code {
        font-size: 68px;
    }
    .empty-state {
        padding: 42px 22px;
    }
}
/* =========================
   FAQ AI Chatbox
========================= */
.ai-chatbox {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    font-family: 'Roboto', Arial, sans-serif;
}
.ai-chatbox-toggle {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}
.ai-chatbox-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    display: none;
    flex-direction: column;
}
.ai-chatbox.active .ai-chatbox-panel {
    display: flex;
}
.ai-chatbox-head {
    padding: 16px 18px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ai-chatbox-head strong {
    display: block;
    font-size: 16px;
}
.ai-chatbox-head span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    opacity: 0.82;
}
.ai-chatbox-head button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
.ai-chatbox-body {
    flex: 1;
    padding: 16px;
    background: #f8fafc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ai-message {
    max-width: 86%;
    padding: 11px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}
.ai-message.bot {
    align-self: flex-start;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 5px;
}
.ai-message.user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 5px;
}
.ai-message.loading {
    color: var(--muted);
}
.ai-chatbox-form {
    padding: 12px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}
.ai-chatbox-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 14px;
    outline: 0;
    font-size: 14px;
}
.ai-chatbox-form input:focus {
    border-color: var(--primary);
}
.ai-chatbox-form button {
    width: 64px;
    border: 0;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
@media (max-width: 640px) {
    .ai-chatbox {
        right: 14px;
        bottom: 14px;
    }
    .ai-chatbox-panel {
        width: calc(100vw - 28px);
        height: 440px;
        right: 0;
    }
    .ai-chatbox-toggle {
        width: 54px;
        height: 54px;
    }
}
.software-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.software-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.software-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(242, 146, 32, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.software-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.software-logo span {
    color: var(--secondary);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}
.software-card h3 {
    margin: 0;
}
.software-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 800;
}
@media (max-width: 768px) {
    .hero-search-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    .hero-search-form input {
        width: 100%;
        min-width: 0;
        height: 52px;
        padding: 0 18px;
        border-radius: 18px;
        font-size: 15px;
        text-align: center;
    }
    .hero-search-form button {
        width: 100%;
        height: 52px;
        margin-top: 0;
        border-radius: 18px;
        font-size: 15px;
        font-weight: 800;
    }
    .software-card {
        padding: 20px;
        gap: 14px;
    }
    .software-card-top {
        display: flex;
        align-items: center;
        gap: 14px;
    }
    .software-logo {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
    .software-logo span {
        font-size: 23px;
    }
    .software-card h3 {
        font-size: 20px;
        line-height: 1.2;
    }
    .software-card p {
        margin: 0;
        font-size: 15px;
        line-height: 1.5;
    }
    .software-link {
        font-size: 15px;
    }
}
/* =========================================================
   Layout refresh based on support center reference
   Chỉ lấy bố cục/sắp xếp, giữ màu thương hiệu hiện tại
========================================================= */
body {
    background: #f5f7fb;
}
.site-header {
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}
.header-inner {
    height: 66px;
    gap: 22px;
}
.brand {
    flex: 0 0 auto;
}
.site-logo {
    height: 52px;
    max-width: 170px;
}
.main-nav {
    flex: 1;
    justify-content: center;
    gap: 4px;
}
.main-nav a {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--primary);
}
.main-nav a:hover,
.main-nav a.active {
    background: rgba(27, 44, 88, 0.08);
    color: var(--primary);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.header-search-form {
    width: 230px;
    height: 38px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}
.header-search-form input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 10px 0 14px;
    color: var(--text);
    font-size: 13px;
}
.header-search-form input::placeholder {
    color: #8a94aa;
}
.header-search-form button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 900;
    cursor: pointer;
}
.header-support-btn {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.header-support-btn:hover {
    filter: brightness(0.96);
}
.hero.help-hero,
.hero {
    padding: 58px 0 48px;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-support {
    max-width: 780px;
}
.hero-support h1 {
    margin-bottom: 22px;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -0.035em;
}
.hero-search-form {
    width: min(680px, 100%);
    min-height: 58px;
    margin-bottom: 18px;
    padding: 6px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}
.hero-search-form input {
    height: 46px;
    font-size: 15px;
}
.hero-search-form button {
    min-width: 112px;
    height: 46px;
}
.hero-quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.hero-quick-links a {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
}
.hero-quick-links a:hover {
    background: rgba(255, 255, 255, 0.24);
}
.hero-search-suggestions,
.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.hero-search-suggestions {
    margin: -4px 0 18px;
}
.hero-search-suggestions a,
.search-suggestions a {
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 900;
}
.hero-search-suggestions a {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.hero-search-suggestions a:hover {
    background: rgba(255, 255, 255, 0.22);
}
.search-suggestions {
    margin: 14px 0 26px;
}
.search-suggestions span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}
.search-suggestions a {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
}
.search-suggestions a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}
@media (min-width: 769px) {
    .search-suggestions {
        width: min(760px, 100%);
        margin: 14px auto 30px;
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    }
}
.hero-support p {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}
.home-category-section {
    padding: 42px 0 30px;
}
.home-content-section {
    padding: 34px 0 56px;
    background: #eef2f7;
}
.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.home-section-head.compact {
    margin-bottom: 18px;
}
.home-section-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.home-section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}
.home-section-head a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.home-section-head a:hover {
    color: var(--secondary);
}
.home-software-grid,
.software-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.software-card {
    min-height: 168px;
    padding: 22px;
    border-radius: 14px;
    box-shadow: none;
    gap: 12px;
}
.software-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}
.software-card .software-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 8px;
}
.software-card h3 {
    font-size: 17px;
    line-height: 1.35;
}
.software-card p {
    min-height: 0;
    font-size: 13px;
    line-height: 1.55;
}
.software-card-stats {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.software-card-stats span {
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(27, 44, 88, 0.07);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 900;
}
.software-card-stats span:first-child {
    background: rgba(242, 146, 32, 0.14);
    color: var(--secondary);
}
.software-card .software-link,
.software-card .software-card-top {
    margin-top: 0;
}
.home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 34px;
    align-items: start;
}
.home-featured-panel,
.home-latest-panel {
    min-width: 0;
}
.featured-video-list {
    display: grid;
    gap: 14px;
}
.featured-video-item {
    min-height: 86px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    transition: 0.2s ease;
}
.featured-video-item:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}
.featured-video-item h3 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
}
.home-top-faq-panel {
    margin-top: 34px;
}
.home-top-faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 641px) {
    .home-top-faq-panel .featured-video-item > div {
        min-width: 0;
    }
    .home-top-faq-panel .featured-video-item h3 {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}
.featured-video-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.featured-video-item span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(27, 44, 88, 0.08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}
.latest-video-main {
    display: block;
    margin-bottom: 18px;
}
.latest-video-thumb,
.latest-video-small-thumb {
    position: relative;
    overflow: hidden;
    background: rgba(27, 44, 88, 0.08);
}
.latest-video-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    margin-bottom: 12px;
}
.latest-video-thumb img,
.latest-video-small-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-video-thumb span,
.latest-video-small-thumb span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}
.latest-video-small-thumb span {
    width: 34px;
    height: 34px;
    font-size: 12px;
}
.latest-video-main h3 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}
.latest-video-main p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.latest-video-small-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.latest-video-small-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 8px;
}
.latest-video-small h4 {
    margin: 0;
    color: var(--primary);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}
.site-footer {
    margin-top: 0;
    padding: 30px 0 18px;
    background: #e5e7eb;
    color: var(--primary);
}
.footer-inner {
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 24px;
}
.site-footer h3 {
    color: var(--primary);
    font-size: 18px;
}
.site-footer p,
.site-footer a {
    color: #5b6785;
    font-size: 13px;
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
}
.footer-contact {
    text-align: right;
}
.footer-contact strong {
    color: var(--primary);
}
.footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(27, 44, 88, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #5b6785;
}
.ai-chatbox-toggle {
    border-radius: 10px;
    background: var(--primary);
    min-width: 138px;
    height: 42px;
    font-size: 12px;
}
.ai-chatbox-panel {
    border-radius: 16px;
}
@media (max-width: 1100px) {
    .header-search-form {
        display: none;
    }
    .home-content-grid {
        grid-template-columns: 1fr;
    }
    .home-latest-panel {
        max-width: 620px;
    }
}
@media (max-width: 900px) {
    .header-inner {
        height: 64px;
    }
    .header-actions {
        margin-left: auto;
    }
    .header-support-btn {
        display: none;
    }
    .main-nav {
        position: absolute;
        top: 64px;
        right: 16px;
        width: min(280px, calc(100vw - 32px));
        justify-content: flex-start;
        border-radius: 16px;
    }
    .main-nav a {
        justify-content: flex-start;
        min-height: 44px;
        border-radius: 12px;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .hero.help-hero,
    .hero {
        padding: 48px 0 42px;
    }
    .home-software-grid,
    .software-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .footer-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .footer-contact {
        text-align: left;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1180px);
    }
    .site-logo {
        height: 46px;
        max-width: 140px;
    }
    .hero-support h1 {
        font-size: 28px;
    }
    .hero-search-form {
        border-radius: 18px;
    }
    .hero-search-form input {
        text-align: left;
    }
    .hero-quick-links {
        gap: 8px;
    }
    .hero-quick-links a {
        font-size: 12px;
        padding: 0 10px;
    }
    .home-section-head {
        display: block;
    }
    .home-section-head h2 {
        font-size: 24px;
    }
    .home-software-grid,
    .software-grid,
    .latest-video-small-grid {
        grid-template-columns: 1fr;
    }
    .featured-video-item {
        padding: 16px;
    }
    .home-top-faq-list {
        grid-template-columns: 1fr;
    }
    .latest-video-thumb span {
        width: 46px;
        height: 46px;
    }
}
.mobile-back-top {
    position: fixed;
    right: 14px;
    bottom: 82px;
    z-index: 9999;
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.2s ease;
}
@media (max-width: 768px) {
    .mobile-back-top.show {
        display: inline-flex;
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================
   Mobile homepage layout like support design
   Only affects mobile
========================= */
@media (max-width: 768px) {
    body {
        background: #f6f8fc;
    }
    .container {
        width: calc(100% - 16px);
    }
    .hero {
        padding: 24px 0 26px;
        border-radius: 0;
        background-position: center;
    }
    .hero-support {
        max-width: 100%;
        padding: 0 8px;
    }
    .hero-support h1 {
        margin-bottom: 14px;
        font-size: 20px;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }
    .hero-support p {
        display: none;
    }
    .hero-search-form {
        width: 100%;
        max-width: 100%;
        height: 44px;
        margin: 0 auto 14px;
        padding: 4px;
        border-radius: 8px;
        flex-direction: row;
        gap: 4px;
    }
    .hero-search-form input {
        height: 36px;
        padding: 0 10px;
        border-radius: 6px;
        font-size: 12px;
        text-align: left;
    }
    .hero-search-form button {
        width: 38px;
        min-width: 38px;
        height: 36px;
        padding: 0;
        border-radius: 6px;
        font-size: 0;
        position: relative;
    }
    .hero-search-form button::before {
        content: "🔍";
        font-size: 15px;
        line-height: 1;
    }
    .hero-quick-links,
    .quick-links,
    .hero-tags {
        display: flex;
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
        margin-top: 8px;
    }
    .hero-quick-links a,
    .quick-links a,
    .hero-tags a {
        min-height: 24px;
        padding: 0 10px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
    }
    .section {
        padding: 26px 0;
    }
    .section-head,
    .section-head.center {
        margin-bottom: 16px;
        text-align: center;
    }
    .section-label {
        display: none;
    }
    .section-head h1,
    .section-head h2 {
        margin-bottom: 6px;
        font-size: 17px;
        line-height: 1.3;
    }
    .section-head p {
        font-size: 11px;
        line-height: 1.5;
    }
    .software-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .software-card {
        min-height: 72px;
        padding: 12px 8px;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }
    .software-card:hover {
        transform: none;
    }
    .software-card-top {
        display: block;
    }
    .software-logo,
    .software-icon {
        width: 30px;
        height: 30px;
        margin: 0 auto 6px;
        border-radius: 8px;
    }
    .software-logo img {
        padding: 5px;
    }
    .software-logo span,
    .software-icon {
        font-size: 15px;
    }
    .software-card h3 {
        font-size: 11px;
        line-height: 1.2;
    }
    .software-card p,
    .software-link,
    .card-arrow {
        display: none;
    }
    .home-content-grid,
    .home-bottom-grid,
    .home-main-grid,
    .featured-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .home-section-title,
    .content-column h2,
    .video-column h2,
    .section-title-row h2 {
        margin: 0 0 12px;
        font-size: 15px;
        line-height: 1.3;
        color: var(--primary);
    }
    .section-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .section-title-row a {
        font-size: 10px;
        font-weight: 800;
        color: var(--primary);
    }
    .featured-list,
    .popular-video-list {
        display: grid;
        gap: 8px;
    }
    .featured-item,
    .popular-video-item {
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    }
    .featured-item h3,
    .popular-video-item h3 {
        margin: 0 0 4px;
        font-size: 11px;
        line-height: 1.35;
        color: var(--primary);
    }
    .featured-item p,
    .popular-video-item p {
        margin: 0;
        font-size: 10px;
        line-height: 1.4;
        color: var(--muted);
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .video-grid,
    .latest-video-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .video-grid::-webkit-scrollbar,
    .latest-video-grid::-webkit-scrollbar {
        display: none;
    }
    .video-card {
        flex: 0 0 150px;
        width: 150px;
        padding: 0;
        border-radius: 6px;
        overflow: hidden;
        scroll-snap-align: start;
        box-shadow: none;
    }
    .video-card:hover {
        transform: none;
    }
    .video-thumb {
        height: 84px;
        margin-bottom: 0;
        border-radius: 0;
    }
    .video-meta {
        margin: 0;
        padding: 7px 8px 2px;
        font-size: 9px;
        line-height: 1.3;
    }
    .video-card h3 {
        padding: 0 8px 8px;
        margin: 0;
        font-size: 10px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .video-card p {
        display: none;
    }
    .site-footer {
        margin-top: 24px;
        padding: 24px 0 70px;
        text-align: center;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .site-footer h3 {
        font-size: 14px;
    }
    .site-footer p,
    .site-footer a,
    .footer-bottom {
        font-size: 10px;
    }
    .footer-links,
    .footer-contact {
        display: none;
    }
    .footer-bottom {
        margin-top: 12px;
        padding-top: 10px;
    }
    .ai-chatbox {
        right: 12px;
        bottom: 12px;
    }
    .ai-chatbox-toggle {
        height: 42px;
        min-width: 128px;
        padding: 0 12px;
        border-radius: 6px;
        font-size: 11px;
    }
}
/* =========================
   Mobile latest videos layout
   1 large video + 4 small videos
========================= */
@media (max-width: 768px) {
    .mobile-latest-layout .latest-video-main {
        display: block;
        margin-bottom: 18px;
    }
    .mobile-latest-layout .latest-video-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 10px;
        background: #e5eaf2;
    }
    .mobile-latest-layout .latest-video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mobile-latest-layout .latest-video-thumb span {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }
    .mobile-latest-layout .latest-video-main h3 {
        margin: 0 0 6px;
        font-size: 18px;
        line-height: 1.35;
        color: var(--primary);
        font-weight: 900;
    }
    .mobile-latest-layout .latest-video-main p {
        margin: 0;
        font-size: 13px;
        line-height: 1.45;
        color: var(--muted);
    }
    .mobile-latest-layout .latest-video-small-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
    }
    .mobile-latest-layout .latest-video-small {
        display: block;
        min-width: 0;
    }
    .mobile-latest-layout .latest-video-small-thumb {
        width: 100%;
        aspect-ratio: 16 / 10;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 8px;
        background: #e5eaf2;
    }
    .mobile-latest-layout .latest-video-small-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mobile-latest-layout .latest-video-small-thumb span {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    .mobile-latest-layout .latest-video-small h4 {
        margin: 0;
        font-size: 14px;
        line-height: 1.35;
        color: var(--primary);
        font-weight: 900;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
/* =========================
   Mobile header
========================= */
@media (max-width: 768px) {
    .site-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
    }
    .header-inner {
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .brand {
        min-width: 0;
    }
    .site-logo {
        height: 42px;
        max-width: 130px;
        object-fit: contain;
    }
    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }
    .header-search-form,
    .header-support-btn {
        display: none;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: var(--primary);
        color: #fff;
        border: 0;
        font-size: 20px;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 58px;
        right: 8px;
        width: min(260px, calc(100vw - 16px));
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
        z-index: 1001;
    }
    .main-nav.active {
        display: grid;
        gap: 4px;
    }
    .main-nav a {
        min-height: 42px;
        padding: 0 12px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        font-size: 13px;
        color: var(--primary);
        font-weight: 800;
    }
    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(27, 44, 88, 0.08);
        color: var(--primary);
    }
}
/* =========================================================
   Software detail UI - scoped
   Chỉ ảnh hưởng software.php
========================================================= */
.software-detail-page {
    background: #f5f7fb;
    min-height: 100vh;
}
.software-detail-page .sw-mobile-hero,
.software-detail-page .sw-mobile-modules,
.software-detail-page .sw-mobile-videos,
.software-detail-page .sw-mobile-help {
    display: none;
}
.software-detail-page .sw-hero-section {
    padding: 22px 0 0;
}
.software-detail-page .sw-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
.software-detail-page .sw-breadcrumb a {
    color: var(--primary);
}
.software-detail-page .sw-breadcrumb strong {
    color: var(--secondary);
}
.software-detail-page .sw-hero-card {
    min-height: 230px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}
.software-detail-page .sw-hero-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.software-detail-page .sw-hero-content > span {
    width: max-content;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.software-detail-page .sw-hero-content h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.software-detail-page .sw-hero-content p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.7;
}
.software-detail-page .sw-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.software-detail-page .sw-btn-primary,
.software-detail-page .sw-btn-outline {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.software-detail-page .sw-btn-primary {
    background: #fff;
    color: var(--primary);
}
.software-detail-page .sw-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}
.software-detail-page .sw-hero-media {
    position: relative;
    min-height: 230px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.software-detail-page .sw-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(27, 44, 88, 0.25), rgba(27, 44, 88, 0.75));
}
.software-detail-page .sw-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.software-detail-page .sw-hero-logo-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(135deg, #f8fbff 0%, #dfe8f7 100%);
}
.software-detail-page .sw-hero-logo-media::after {
    background: linear-gradient(90deg, rgba(27, 44, 88, 0.08), rgba(27, 44, 88, 0.16));
}
.software-detail-page .sw-hero-logo-media img {
    position: relative;
    z-index: 1;
    width: min(70%, 300px);
    height: auto;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.18));
}
.software-detail-page .sw-hero-media > span {
    width: 120px;
    height: 120px;
    margin: 54px auto 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 900;
}
.software-detail-page .sw-main-section {
    padding: 34px 0 60px;
}
.software-detail-page .sw-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}
.software-detail-page .sw-sidebar {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 18px;
}
.software-detail-page .sw-sidebar-card,
.software-detail-page .sw-help-card,
.software-detail-page .sw-lesson-card,
.software-detail-page .sw-feature-video,
.software-detail-page .sw-video-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}
.software-detail-page .sw-sidebar-card,
.software-detail-page .sw-help-card {
    padding: 16px;
}
.software-detail-page .sw-sidebar-card h2 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.software-detail-page .sw-sidebar-nav {
    display: grid;
    gap: 6px;
}
.software-detail-page .sw-sidebar-nav a {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
}
.software-detail-page .sw-sidebar-nav a span {
    color: var(--secondary);
    font-size: 13px;
}
.software-detail-page .sw-sidebar-nav a:hover,
.software-detail-page .sw-sidebar-nav a.active {
    background: rgba(27, 44, 88, 0.06);
}
.software-detail-page .sw-help-card h3 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 900;
}
.software-detail-page .sw-help-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.software-detail-page .sw-help-card a {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.software-detail-page .sw-content {
    display: grid;
    gap: 34px;
    min-width: 0;
}
.software-detail-page .sw-category-block {
    scroll-margin-top: 96px;
}
.software-detail-page .sw-category-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.software-detail-page .sw-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(242, 146, 32, 0.12);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    font-size: 14px;
    font-weight: 900;
}
.software-detail-page .sw-category-head h2 {
    margin: 0 0 5px;
    color: var(--primary);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.software-detail-page .sw-category-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
.software-detail-page .sw-category-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 20px;
    align-items: stretch;
}
.software-detail-page .sw-lesson-list {
    display: grid;
    gap: 14px;
}
.software-detail-page .sw-lesson-card {
    position: relative;
    min-height: 112px;
    padding: 18px 48px 18px 18px;
    transition: 0.2s ease;
}
.software-detail-page .sw-lesson-card:hover,
.software-detail-page .sw-feature-video:hover,
.software-detail-page .sw-video-card:hover {
    border-color: rgba(242, 146, 32, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.software-detail-page .sw-lesson-card span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(27, 44, 88, 0.06);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}
.software-detail-page .sw-lesson-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
}
.software-detail-page .sw-lesson-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.software-detail-page .sw-lesson-card em {
    position: absolute;
    right: 18px;
    top: 18px;
    color: var(--primary);
    font-style: normal;
    font-weight: 900;
}
.software-detail-page .sw-feature-video,
.software-detail-page .sw-video-card {
    min-width: 0;
    overflow: hidden;
    display: block;
    transition: 0.2s ease;
}
.software-detail-page .sw-feature-thumb,
.software-detail-page .sw-video-thumb,
.software-detail-page .sw-mobile-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e8edf5;
    overflow: hidden;
}
.software-detail-page .sw-feature-thumb img,
.software-detail-page .sw-video-thumb img,
.software-detail-page .sw-mobile-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.software-detail-page .sw-video-placeholder {
    width: 100%;
    height: 100%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.software-detail-page .sw-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    font-size: 14px;
}
.software-detail-page .sw-feature-video > div:last-child,
.software-detail-page .sw-video-body {
    padding: 14px 16px 16px;
}
.software-detail-page .sw-feature-video strong,
.software-detail-page .sw-video-card h3 {
    display: block;
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 15px;
    line-height: 1.38;
    font-weight: 900;
}
.software-detail-page .sw-feature-video p,
.software-detail-page .sw-video-meta,
.software-detail-page .sw-video-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.software-detail-page .sw-video-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
@media (max-width: 1100px) and (min-width: 769px) {
    .software-detail-page .sw-layout {
        grid-template-columns: 1fr;
    }
    .software-detail-page .sw-sidebar {
        position: static;
        order: -1;
    }
    .software-detail-page .sw-sidebar-card {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .software-detail-page .sw-sidebar-card::-webkit-scrollbar {
        display: none;
    }
    .software-detail-page .sw-sidebar-nav {
        display: flex;
        gap: 8px;
        min-width: max-content;
    }
    .software-detail-page .sw-sidebar-nav a {
        border: 1px solid var(--border);
        background: #fff;
        white-space: nowrap;
    }
    .software-detail-page .sw-help-card {
        display: none;
    }
    .software-detail-page .sw-category-grid {
        grid-template-columns: 1fr;
    }
    .software-detail-page .sw-video-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 99999 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    .header-inner {
        position: relative !important;
        height: 58px !important;
        overflow: visible !important;
    }
    .main-nav {
        display: none;
        position: fixed !important;
        top: 62px !important;
        right: 10px !important;
        left: auto !important;
        width: min(260px, calc(100vw - 20px)) !important;
        padding: 10px !important;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
        z-index: 100000 !important;
    }
    .main-nav.active {
        display: grid !important;
        gap: 4px;
    }
    .software-detail-page .sw-hero-section,
    .software-detail-page .sw-layout {
        display: none;
    }
    .software-detail-page .sw-mobile-hero,
    .software-detail-page .sw-mobile-modules,
    .software-detail-page .sw-mobile-videos,
    .software-detail-page .sw-mobile-help {
        display: block;
    }
    .software-detail-page .container {
        width: calc(100% - 24px);
    }
    .software-detail-page .sw-mobile-hero {
        padding: 12px 0 0;
    }
    .software-detail-page .sw-mobile-hero-card {
        position: relative;
        min-height: 190px;
        border-radius: 14px;
        overflow: hidden;
        background: var(--primary);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
    }
    .software-detail-page .sw-mobile-hero-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.8));
    }
    .software-detail-page .sw-mobile-hero-card img {
        width: 100%;
        height: 190px;
        object-fit: cover;
    }
    .software-detail-page .sw-mobile-hero-logo-card {
        display: flex;
        align-items: center;
        justify-content: center;
        background:
            radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.2), transparent 45%),
            linear-gradient(135deg, #f8fbff 0%, #dfe8f7 100%);
    }
    .software-detail-page .sw-mobile-hero-logo-card::after {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.7));
    }
    .software-detail-page .sw-mobile-hero-logo-card img {
        width: min(70%, 240px);
        height: auto;
        max-height: 110px;
        object-fit: contain;
        filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.18));
    }
    .software-detail-page .sw-mobile-hero-fallback {
        color: #fff;
        font-size: 54px;
        font-weight: 900;
    }
    .software-detail-page .sw-mobile-hero-overlay {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 1;
        color: #fff;
    }
    .software-detail-page .sw-mobile-hero-overlay span {
        display: inline-flex;
        margin-bottom: 6px;
        padding: 5px 8px;
        border-radius: 6px;
        background: var(--primary);
        color: #fff;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .software-detail-page .sw-mobile-hero-overlay h1 {
        margin: 0;
        color: #fff;
        font-size: 19px;
        line-height: 1.2;
        font-weight: 900;
    }
    .software-detail-page .sw-mobile-desc {
        margin: 10px 0 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
    }
    .software-detail-page .sw-main-section {
        padding: 18px 0 34px;
    }
    .software-detail-page .sw-mobile-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 0 12px;
    }
    .software-detail-page .sw-mobile-section-head h2 {
        margin: 0;
        color: var(--primary);
        font-size: 16px;
        font-weight: 900;
        line-height: 1.3;
    }
    .software-detail-page .sw-mobile-section-head a {
        color: var(--primary);
        font-size: 11px;
        font-weight: 900;
    }
    .software-detail-page .sw-mobile-module-list {
        display: grid;
        gap: 10px;
    }
    .software-detail-page .sw-mobile-module-card {
        min-height: 78px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    }
    .software-detail-page .sw-mobile-module-card > span {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: rgba(27, 44, 88, 0.08);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 900;
    }
    .software-detail-page .sw-mobile-module-card strong {
        display: block;
        margin-bottom: 4px;
        color: var(--primary);
        font-size: 13px;
        line-height: 1.3;
        font-weight: 900;
    }
    .software-detail-page .sw-mobile-module-card p {
        margin: 0 0 5px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .software-detail-page .sw-mobile-module-card em {
        color: var(--secondary);
        font-size: 10px;
        font-style: normal;
        font-weight: 900;
    }
    .software-detail-page .sw-mobile-videos {
        margin-top: 22px;
    }
    .software-detail-page .sw-mobile-video-list {
        display: grid;
        gap: 12px;
    }
    .software-detail-page .sw-mobile-video-card {
        display: block;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    }
    .software-detail-page .sw-mobile-video-thumb .sw-play {
        width: 46px;
        height: 46px;
        font-size: 13px;
    }
    .software-detail-page .sw-mobile-video-body {
        padding: 9px 10px 11px;
    }
    .software-detail-page .sw-mobile-video-body h3 {
        margin: 0 0 4px;
        color: var(--primary);
        font-size: 13px;
        line-height: 1.35;
        font-weight: 900;
    }
    .software-detail-page .sw-mobile-video-body p {
        margin: 0;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.4;
    }
    .software-detail-page .sw-mobile-help {
        margin-top: 18px;
        padding: 18px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }
    .software-detail-page .sw-mobile-help h3 {
        margin: 0 0 8px;
        color: var(--primary);
        font-size: 15px;
        font-weight: 900;
    }
    .software-detail-page .sw-mobile-help p {
        margin: 0 0 14px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.5;
    }
    .software-detail-page .sw-mobile-help div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .software-detail-page .sw-mobile-help a {
        min-height: 38px;
        border-radius: 9px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 900;
    }
    .software-detail-page .sw-mobile-help a:first-child {
        background: var(--primary);
        color: #fff;
    }
    .software-detail-page .sw-mobile-help a:last-child {
        border: 1px solid var(--border);
        color: var(--primary);
        background: #fff;
    }
}
/* =========================================================
   Software mobile refinements
   - Giữ header website chung
   - Mobile mặc định chỉ hiện 5 video, có nút xem thêm
   - Footer mobile gọn hơn cho trang software
========================================================= */
@media (max-width: 768px) {
    body.software-page-body {
        background: #f5f7fb;
        padding-bottom: 0;
    }
    body.software-page-body .site-header {
        display: block !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 99999 !important;
        background: #fff !important;
        overflow: visible !important;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    }
    body.software-page-body .header-inner {
        position: relative !important;
        height: 58px !important;
        overflow: visible !important;
    }
    body.software-page-body .main-nav {
        display: none;
        position: fixed !important;
        top: 62px !important;
        right: 10px !important;
        left: auto !important;
        width: min(260px, calc(100vw - 20px)) !important;
        padding: 10px !important;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
        z-index: 100000 !important;
        overflow: visible !important;
    }
    body.software-page-body .main-nav.active {
        display: grid !important;
        gap: 4px;
    }
    .software-detail-page .sw-mobile-topbar,
    .software-detail-page .sw-mobile-bottom-nav,
    .software-detail-page .software-mobile-bottom-nav,
    .software-detail-page .mobile-bottom-nav,
    .software-detail-page .software-app-bottom-nav {
        display: none !important;
    }
    .software-detail-page .sw-mobile-videos {
        margin-top: 22px;
    }
    .software-detail-page .sw-mobile-show-more {
        margin-top: 14px;
        text-align: center;
    }
    .software-detail-page .sw-mobile-show-more a {
        width: 100%;
        min-height: 44px;
        border-radius: 12px;
        background: var(--primary);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 900;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    }
    body.software-page-body .site-footer {
        display: block !important;
        margin-top: 0;
        padding: 28px 0 22px;
        background: linear-gradient(180deg, #eef2f7 0%, #e5eaf2 100%);
        color: var(--primary);
        border-top: 1px solid rgba(27, 44, 88, 0.08);
        text-align: left;
    }
    body.software-page-body .footer-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    body.software-page-body .site-footer h3 {
        margin: 0 0 8px;
        color: var(--primary);
        font-size: 18px;
        font-weight: 900;
    }
    body.software-page-body .site-footer p,
    body.software-page-body .site-footer a {
        color: #5b6785;
        font-size: 12px;
        line-height: 1.6;
    }
    body.software-page-body .footer-links {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 14px;
    }
    body.software-page-body .footer-contact {
        display: block !important;
        text-align: left;
        padding: 14px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.62);
        border: 1px solid rgba(27, 44, 88, 0.08);
    }
    body.software-page-body .footer-contact strong {
        color: var(--primary);
    }
    body.software-page-body .footer-bottom {
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid rgba(27, 44, 88, 0.12);
        color: #6b7894;
        font-size: 11px;
        display: block;
    }
}
@media (max-width: 768px) {
    .software-detail-page .sw-mobile-module-item.is-hidden,
    .software-detail-page .sw-mobile-video-item.is-hidden {
        display: none;
    }
    .software-detail-page .sw-mobile-load-more {
        width: 100%;
        height: 42px;
        margin-top: 14px;
        border: 0;
        border-radius: 12px;
        background: var(--primary);
        color: #fff;
        font-size: 13px;
        font-weight: 900;
        cursor: pointer;
    }
    .software-detail-page .sw-mobile-load-more:hover {
        filter: brightness(0.96);
    }
}
/* =========================================================
   Videos library page - scoped
   Chỉ ảnh hưởng videos.php
========================================================= */
.videos-page {
    background: #f5f7fb;
    min-height: 100vh;
}
.videos-page-hero {
    padding: 42px 0 28px;
}
.videos-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(242, 146, 32, 0.12);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 900;
}
.videos-page-hero h1 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.videos-page-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}
.videos-page-content {
    padding: 18px 0 64px;
}
.videos-filter-card {
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: center;
}
.videos-search-box,
.videos-mobile-search {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.videos-search-box span,
.videos-mobile-search span {
    color: #7b88a4;
    font-weight: 900;
}
.videos-search-box input,
.videos-mobile-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}
.videos-search-box input::placeholder,
.videos-mobile-search input::placeholder {
    color: #9aa5b8;
}
.videos-filter-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.videos-filter-selects select {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    outline: 0;
}
.video-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.video-library-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.2s ease;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.video-library-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 146, 32, 0.45);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}
.video-library-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8edf5;
}
.video-library-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-library-thumb > span {
    width: 100%;
    height: 100%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.video-library-thumb strong {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    font-size: 14px;
}
.video-library-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.video-library-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.video-library-tags span {
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(27, 44, 88, 0.06);
    color: var(--primary);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}
.video-library-tags span:first-child {
    background: rgba(242, 146, 32, 0.12);
    color: var(--secondary);
}
.video-library-card h3 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 900;
}
.video-library-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-library-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7894;
    font-size: 12px;
    font-weight: 700;
}
.video-library-actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
}
.video-library-load-more {
    display: none;
}
.video-library-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.video-library-pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}
.video-library-pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.video-library-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.video-library-pagination span {
    color: #6b7894;
    font-weight: 900;
}
.videos-mobile-filter {
    display: none;
}
.videos-empty {
    margin-top: 24px;
}
@media (max-width: 1024px) {
    .videos-filter-card {
        grid-template-columns: 1fr;
    }
    .video-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .videos-page-hero,
    .videos-filter-card {
        display: none;
    }
    .videos-page-content {
        padding: 14px 0 42px;
    }
    .videos-page .container {
        width: calc(100% - 18px);
    }
    .videos-mobile-filter {
        display: block;
        margin-bottom: 14px;
    }
    .videos-mobile-title {
        min-height: 34px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--primary);
    }
    .videos-mobile-title strong {
        font-size: 14px;
        font-weight: 900;
    }
    .videos-mobile-title span {
        font-size: 14px;
        font-weight: 900;
    }
    .videos-mobile-search {
        height: 40px;
        margin-bottom: 10px;
        border-radius: 8px;
        background: #fff;
    }
    .videos-mobile-search input {
        font-size: 12px;
    }
    .videos-mobile-chips {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .videos-mobile-chips::-webkit-scrollbar {
        display: none;
    }
    .videos-mobile-chips button {
        flex: 0 0 auto;
        height: 32px;
        padding: 0 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #fff;
        color: var(--primary);
        font-size: 11px;
        font-weight: 900;
        cursor: pointer;
    }
    .videos-mobile-chips button.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
    .video-library-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .video-library-card {
        border-radius: 10px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    }
    .video-library-card:hover {
        transform: none;
    }
    .video-library-thumb strong {
        width: 44px;
        height: 44px;
        font-size: 12px;
    }
    .video-library-body {
        padding: 10px 11px 12px;
    }
    .video-library-tags {
        margin-bottom: 7px;
    }
    .video-library-tags span {
        padding: 4px 6px;
        font-size: 9px;
    }
    .video-library-card h3 {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 1.35;
    }
    .video-library-card p {
        display: none;
    }
    .video-library-meta {
        justify-content: flex-start;
        gap: 8px;
        font-size: 11px;
    }
    .video-library-pagination {
        display: none;
    }
    .video-library-actions {
        margin-top: 20px;
    }
    .video-library-load-more {
        width: min(180px, 100%);
        min-height: 40px;
        border: 1px solid var(--primary);
        border-radius: 10px;
        background: #fff;
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 900;
        cursor: pointer;
    }
}
/* =========================
   Videos desktop filters
   Hide custom select on public videos page
========================= */
@media (min-width: 769px) {
    .videos-page .custom-select {
        display: none !important;
    }
    .videos-page select.custom-select-hidden {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: 100% !important;
        height: 48px !important;
        appearance: auto !important;
    }
    .videos-page .videos-library-filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 310px 310px;
        gap: 16px;
        align-items: center;
        margin-bottom: 38px;
    }
    .videos-page .videos-library-search {
        width: 100%;
    }
    .videos-page .videos-library-select {
        width: 100%;
    }
    .videos-page .videos-library-select select {
        width: 100%;
        height: 48px;
        padding: 0 18px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        color: var(--primary);
        font-size: 14px;
        font-weight: 800;
    }
}
@media (max-width: 768px) {
    .videos-page .custom-select {
        display: none !important;
    }
    .videos-page select.custom-select-hidden {
        display: none !important;
    }
}
/* =========================
   Videos filters
========================= */
@media (min-width: 769px) {
    .videos-page .custom-select {
        display: none !important;
    }
    .videos-page select.custom-select-hidden {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: 100% !important;
        height: 48px !important;
        appearance: auto !important;
    }
}
@media (max-width: 768px) {
    .videos-page .videos-mobile-title {
        justify-content: flex-start;
    }
    .videos-page .videos-mobile-title span {
        display: none;
    }
    .videos-page .videos-mobile-module-filter {
        display: none;
        margin-top: 10px;
        padding: 10px;
        border: 1px solid rgba(27, 44, 88, 0.08);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    }
    .videos-page .videos-mobile-module-filter.is-active {
        display: block;
    }
    .videos-page .videos-mobile-module-head {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .videos-page .videos-mobile-module-head span {
        min-height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        background: rgba(242, 146, 32, 0.14);
        color: var(--secondary);
        display: inline-flex;
        align-items: center;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .videos-page .videos-mobile-module-head strong {
        color: #64748b;
        font-size: 11px;
        font-weight: 800;
    }
    .videos-page .videos-mobile-category-chips {
        display: none;
        gap: 8px;
        overflow-x: auto;
        padding: 0 2px 3px;
        scrollbar-width: none;
    }
    .videos-page .videos-mobile-category-chips::-webkit-scrollbar {
        display: none;
    }
    .videos-page .videos-mobile-category-chips.is-active {
        display: flex;
    }
    .videos-page .videos-mobile-category-chips button {
        flex: 0 0 auto;
        max-width: 210px;
        min-height: 32px;
        padding: 0 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #fff;
        color: var(--primary);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
        font-weight: 900;
        cursor: pointer;
    }
    .videos-page .videos-mobile-category-chips button.active {
        background: var(--secondary);
        border-color: var(--secondary);
        color: #fff;
    }
    .videos-page .custom-select,
    .videos-page select.custom-select-hidden {
        display: none !important;
    }
}
/* =========================================================
   FAQ page redesign - match current faq.php classes
   Chỉ ảnh hưởng faq.php
========================================================= */
.faq-page {
    min-height: 100vh;
    background: #f5f7fb;
}
.faq-page .faq-hero {
    padding: 46px 0 28px;
    text-align: center;
}
.faq-page .faq-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(242, 146, 32, 0.12);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 900;
}
.faq-page .faq-hero h1 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.faq-page .faq-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}
.faq-page .faq-content-section {
    padding: 20px 0 64px;
}
.faq-page .faq-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}
.faq-page .faq-sidebar {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 18px;
}
.faq-page .faq-sidebar-card,
.faq-page .faq-help-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}
.faq-page .faq-sidebar-card {
    padding: 16px;
}
.faq-page .faq-sidebar-card h2 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.faq-page #faqCategoryNav {
    display: grid;
    gap: 6px;
}
.faq-page #faqCategoryNav button,
.faq-page .faq-mobile-chips button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.faq-page #faqCategoryNav button {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}
.faq-page #faqCategoryNav button:hover,
.faq-page #faqCategoryNav button.active {
    background: rgba(27, 44, 88, 0.06);
}
.faq-page #faqCategoryNav button span {
    color: var(--secondary);
    font-weight: 900;
}
.faq-page .faq-help-card {
    padding: 18px;
    background: var(--primary);
    color: #fff;
}
.faq-page .faq-help-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}
.faq-page .faq-help-card p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.55;
}
.faq-page .faq-help-card a {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.faq-page .faq-main {
    min-width: 0;
}
.faq-page .faq-search-box,
.faq-page .faq-mobile-search {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-page .faq-search-box {
    margin-bottom: 24px;
}
.faq-page .faq-search-box span,
.faq-page .faq-mobile-search span {
    color: #7b88a4;
    font-weight: 900;
}
.faq-page .faq-search-box input,
.faq-page .faq-mobile-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}
.faq-page .faq-search-box input::placeholder,
.faq-page .faq-mobile-search input::placeholder {
    color: #9aa5b8;
}
.faq-page .faq-mobile-search,
.faq-page .faq-mobile-chips,
.faq-page .faq-mobile-category-chips {
    display: none;
}
.faq-page .faq-groups {
    display: grid;
    gap: 32px;
}
.faq-page .faq-group {
    scroll-margin-top: 96px;
}
.faq-page .faq-group-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}
.faq-page .faq-group-head div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-page .faq-group-head span {
    color: var(--secondary);
    font-size: 20px;
    font-weight: 900;
}
.faq-page .faq-group-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 900;
}
.faq-page .faq-group-head p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
}
.faq-page .faq-accordion-list {
    display: grid;
    gap: 10px;
}
.faq-page .faq-page-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}
.faq-page .faq-page-question {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border: 0;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.faq-page .faq-page-question span {
    color: var(--primary);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 900;
}
.faq-page .faq-page-question strong {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(27, 44, 88, 0.06);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    font-size: 15px;
    font-weight: 900;
}
.faq-page .faq-page-item.active .faq-page-question strong {
    background: var(--primary);
    color: #fff;
}
.faq-page .faq-page-answer {
    display: none;
    padding: 0 18px 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.faq-page .faq-page-item.active .faq-page-answer {
    display: block;
}
.faq-page .faq-empty {
    margin-top: 18px;
    padding: 22px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}
.faq-page .faq-feature-section {
    margin-top: 46px;
    padding-top: 34px;
    border-top: 1px solid var(--border);
}
.faq-page .faq-feature-head {
    margin-bottom: 18px;
    text-align: center;
}
.faq-page .faq-feature-head h2 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 900;
}
.faq-page .faq-feature-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
.faq-page .faq-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.faq-page .faq-feature-card {
    min-height: 138px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}
.faq-page .faq-feature-card.is-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.faq-page .faq-feature-card span {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 900;
}
.faq-page .faq-feature-card strong {
    color: var(--primary);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}
.faq-page .faq-feature-card em {
    margin-top: auto;
    color: var(--primary);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}
.faq-page .faq-feature-card.is-primary span,
.faq-page .faq-feature-card.is-primary strong,
.faq-page .faq-feature-card.is-primary em {
    color: #fff;
}
@media (max-width: 768px) {
    .faq-page .faq-hero {
        padding: 24px 0 14px;
        text-align: left;
    }
    .faq-page .container {
        width: calc(100% - 18px);
    }
    .faq-page .faq-eyebrow {
        display: none;
    }
    .faq-page .faq-hero h1 {
        max-width: 280px;
        margin: 0 0 12px;
        font-size: 24px;
        line-height: 1.25;
    }
    .faq-page .faq-hero p {
        display: none;
    }
    .faq-page .faq-mobile-search {
        display: flex;
        height: 42px;
        border-radius: 8px;
    }
    .faq-page .faq-mobile-search input {
        font-size: 12px;
    }
    .faq-page .faq-content-section {
        padding: 8px 0 42px;
    }
    .faq-page .faq-mobile-chips {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-bottom: 14px;
        scrollbar-width: none;
    }
    .faq-page .faq-mobile-chips::-webkit-scrollbar {
        display: none;
    }
    .faq-page .faq-mobile-chips button {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 14px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #fff;
        color: var(--primary);
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
    }
    .faq-page .faq-mobile-chips button.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
    .faq-page .faq-mobile-category-chips.is-active {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin: -6px 0 14px;
    }
    .faq-page .faq-mobile-category-chips button {
        min-height: 32px;
        padding: 0 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #fff;
        color: var(--primary);
        cursor: pointer;
        font-size: 11px;
        font-weight: 900;
    }
    .faq-page .faq-mobile-category-chips button.active {
        background: var(--secondary);
        border-color: var(--secondary);
        color: #fff;
    }
    .faq-page .faq-layout {
        display: block;
    }
    .faq-page .faq-sidebar {
        display: block;
        position: static;
        margin-top: 18px;
    }
    .faq-page .faq-sidebar-card {
        display: none;
    }
    .faq-page .faq-help-card {
        margin-top: 20px;
        padding: 18px;
        background: #eaf1ff;
        color: var(--primary);
        border: 0;
        box-shadow: none;
        text-align: center;
    }
    .faq-page .faq-help-card h3 {
        color: var(--primary);
    }
    .faq-page .faq-help-card p {
        color: #5b6785;
    }
    .faq-page .faq-help-card a {
        width: 100%;
        background: var(--primary);
        color: #fff;
    }
    .faq-page .faq-search-box {
        display: none;
    }
    .faq-page .faq-groups {
        gap: 18px;
    }
    .faq-page .faq-group-head {
        display: none;
    }
    .faq-page .faq-accordion-list {
        gap: 10px;
    }
    .faq-page .faq-page-item {
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    }
    .faq-page .faq-page-question {
        min-height: 54px;
        padding: 14px;
    }
    .faq-page .faq-page-question span {
        font-size: 13px;
    }
    .faq-page .faq-page-answer {
        padding: 0 14px 14px;
        font-size: 12px;
        line-height: 1.65;
    }
    .faq-page .faq-feature-section {
        margin-top: 30px;
        padding-top: 24px;
    }
    .faq-page .faq-feature-head h2 {
        font-size: 19px;
    }
    .faq-page .faq-feature-head p {
        font-size: 12px;
    }
    .faq-page .faq-feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .faq-page .faq-feature-card {
        min-height: 116px;
        padding: 16px;
        border-radius: 12px;
    }
    .faq-page .faq-feature-card strong {
        font-size: 15px;
    }
}
/* =========================================================
   Global mobile footer redesign
   Áp dụng cho tất cả trang mobile
========================================================= */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 28px !important;
        padding: 26px 0 18px !important;
        background: linear-gradient(180deg, #eef2f7 0%, #e5eaf2 100%) !important;
        color: var(--primary) !important;
        border-top: 1px solid rgba(27, 44, 88, 0.08) !important;
        text-align: left !important;
    }
    .site-footer .container {
        width: calc(100% - 18px) !important;
    }
    .footer-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .site-footer h3 {
        margin: 0 0 8px !important;
        color: var(--primary) !important;
        font-size: 18px !important;
        line-height: 1.25 !important;
        font-weight: 900 !important;
    }
    .site-footer p,
    .site-footer a {
        color: #5b6785 !important;
        font-size: 12px !important;
        line-height: 1.6 !important;
    }
    .footer-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px 14px !important;
    }
    .footer-contact {
        display: block !important;
        padding: 14px !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(27, 44, 88, 0.08) !important;
        text-align: left !important;
    }
    .footer-contact p {
        margin: 0 0 8px !important;
    }
    .footer-contact p:last-child {
        margin-bottom: 0 !important;
    }
    .footer-contact strong {
        color: var(--primary) !important;
        font-weight: 900 !important;
    }
    .footer-bottom {
        display: block !important;
        margin-top: 16px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(27, 44, 88, 0.12) !important;
        color: #6b7894 !important;
        font-size: 11px !important;
        line-height: 1.6 !important;
    }
    .footer-bottom a {
        font-size: 11px !important;
    }
}
/* =========================
   Global font sync with NASYS main website
========================= */
:root {
    --font-main: 'Roboto', Arial, sans-serif;
}
html,
body,
button,
input,
select,
textarea,
a,
p,
span,
div,
label,
small,
strong,
em,
table,
th,
td,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main) !important;
}
/* =========================
   Header menu stronger
========================= */
.main-nav {
    gap: 18px;
}
.main-nav a {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--primary);
}
.main-nav a:hover,
.main-nav a.active {
    background: rgba(27, 44, 88, 0.08);
    color: var(--primary);
}
.header-support-btn {
    min-height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
}
@media (max-width: 768px) {
    .main-nav a {
        min-height: 42px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 10px;
    }
}
.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: #fff;
}
/* =========================
   Global footer
========================= */
.site-footer {
    margin-top: 60px;
    padding: 32px 0 24px;
    background: #e9edf4;
    border-top: 1px solid rgba(27, 44, 88, 0.1);
    color: var(--primary);
}
.site-footer .container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: start;
}
.site-footer h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 900;
}
.site-footer p {
    margin: 0;
    color: #5b6785;
    font-size: 13px;
    line-height: 1.6;
}
.footer-contact {
    min-width: 300px;
    text-align: left;
}
.footer-contact p {
    margin-bottom: 8px;
}
.footer-contact p:last-child {
    margin-bottom: 0;
}
.footer-contact strong {
    color: var(--primary);
    font-weight: 900;
}
.footer-bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(27, 44, 88, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #6b7894;
    font-size: 13px;
}
.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #5b6785;
    font-size: 13px;
}
.footer-links a:hover {
    color: var(--secondary);
}
@media (max-width: 768px) {
    .site-footer {
        margin-top: 36px;
        padding: 26px 0 18px;
    }
    .site-footer .container {
        width: calc(100% - 18px);
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .footer-contact {
        min-width: 0;
        padding: 14px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.65);
        border: 1px solid rgba(27, 44, 88, 0.08);
    }
    .footer-bottom {
        display: block;
        margin-top: 16px;
        padding-top: 14px;
        font-size: 11px;
        line-height: 1.6;
    }
    .footer-links {
        justify-content: flex-start;
        margin-top: 8px;
        gap: 6px;
    }
    .footer-links a {
        font-size: 11px;
    }
}
/* =========================================================
   Public FAQ hierarchy filters
   Append-only override: giữ nguyên toàn bộ code cũ
========================================================= */
.faq-page .faq-tree-nav {
    display: grid;
    gap: 6px;
}
.faq-page .faq-tree-nav button {
    width: 100%;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}
.faq-page .faq-tree-nav .faq-parent-btn {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 900;
    text-align: left;
}
.faq-page .faq-tree-nav .faq-parent-btn span {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 900;
}
.faq-page .faq-tree-nav .faq-parent-btn:hover,
.faq-page .faq-tree-nav .faq-parent-btn.active {
    background: rgba(27, 44, 88, 0.08);
    color: var(--primary);
}
.faq-page .faq-child-nav {
    display: grid;
    gap: 4px;
    margin: -2px 0 6px 22px;
    padding-left: 11px;
    border-left: 1px solid rgba(27, 44, 88, 0.12);
}
.faq-page .faq-tree-nav .faq-child-btn {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    background: transparent;
    color: #405070;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}
.faq-page .faq-tree-nav .faq-child-btn span {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 900;
}
.faq-page .faq-tree-nav .faq-child-btn:hover,
.faq-page .faq-tree-nav .faq-child-btn.active {
    background: rgba(242, 146, 32, 0.12);
    color: var(--primary);
}
.faq-page .faq-software-group {
    display: grid;
    gap: 26px;
}
.faq-page .faq-software-head {
    margin: 4px 0 -8px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(27, 44, 88, 0.96), rgba(27, 44, 88, 0.82));
    color: #fff;
}
.faq-page .faq-software-head h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.015em;
}
.faq-page .faq-software-group .faq-group {
    scroll-margin-top: 96px;
}
.faq-page .faq-software-group .faq-group-head {
    margin-top: 0;
}
.faq-page [data-filter-type][data-filter-value].active {
    font-weight: 900;
}
@media (max-width: 768px) {
    .faq-page .faq-mobile-chips {
        display: flex !important;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-bottom: 14px;
        scrollbar-width: none;
    }
    .faq-page .faq-mobile-chips::-webkit-scrollbar {
        display: none;
    }
    .faq-page .faq-mobile-chips button {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 14px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #fff;
        color: var(--primary);
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
    }
    .faq-page .faq-mobile-chips button.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
    .faq-page .faq-mobile-category-chips.is-active {
        display: flex !important;
        gap: 8px;
        flex-wrap: wrap;
        margin: -6px 0 14px;
    }
    .faq-page .faq-mobile-category-chips button {
        min-height: 32px;
        padding: 0 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #fff;
        color: var(--primary);
        cursor: pointer;
        font-size: 11px;
        font-weight: 900;
    }
    .faq-page .faq-mobile-category-chips button.active {
        background: var(--secondary);
        border-color: var(--secondary);
        color: #fff;
    }
    .faq-page .faq-sidebar-card {
        display: none !important;
    }
    .faq-page .faq-software-group {
        gap: 18px;
    }
    .faq-page .faq-software-head {
        display: block;
        margin: 0 0 -4px;
        padding: 12px 14px;
        border-radius: 12px;
    }
    .faq-page .faq-software-head h2 {
        font-size: 16px;
    }
    .faq-page .faq-group-head {
        display: none !important;
    }
}
@media (min-width: 769px) {
    .faq-page .faq-groups {
        gap: 36px;
    }
    .faq-page .faq-software-group + .faq-software-group {
        padding-top: 8px;
        border-top: 1px solid rgba(27, 44, 88, 0.08);
    }
}
/* =========================
   Chatbox polish
========================= */
.ai-chatbox {
    right: 20px;
    bottom: 20px;
}
.ai-chatbox-toggle {
    min-width: 132px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #263b72);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
    letter-spacing: 0;
}
.ai-chatbox-panel {
    width: 376px;
    height: 520px;
    border: 1px solid rgba(27, 44, 88, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}
.ai-chatbox-head {
    min-height: 64px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary), #20376d);
}
.ai-chatbox-head strong {
    font-size: 15px;
    letter-spacing: 0;
}
.ai-chatbox-head button {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 20px;
    line-height: 1;
    transition: 0.2s ease;
}
.ai-chatbox-head button:hover {
    background: rgba(255, 255, 255, 0.24);
}
.ai-chatbox-body {
    padding: 16px;
    gap: 10px;
    background:
        radial-gradient(circle at 18% 0%, rgba(242, 146, 32, 0.10), transparent 32%),
        #f6f8fc;
}
.ai-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.55;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.ai-message.bot {
    border-color: rgba(27, 44, 88, 0.12);
    border-bottom-left-radius: 6px;
}
.ai-message.user {
    background: var(--primary);
    border-bottom-right-radius: 6px;
    box-shadow: 0 10px 22px rgba(27, 44, 88, 0.16);
}
.ai-message.loading {
    box-shadow: none;
}
.ai-chatbox-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}
.ai-chatbox-suggestions button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(27, 44, 88, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
}
.ai-chatbox-suggestions button:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-1px);
}
.ai-chatbox-form {
    padding: 12px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(27, 44, 88, 0.10);
}
.ai-chatbox-form input {
    height: 44px;
    border-color: rgba(27, 44, 88, 0.24);
    border-radius: 999px;
    padding: 0 15px;
}
.ai-chatbox-form button {
    width: 62px;
    height: 44px;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(242, 146, 32, 0.24);
}
@media (max-width: 640px) {
    .ai-chatbox {
        right: 10px;
        bottom: 10px;
    }
    .ai-chatbox-panel {
        right: 0;
        bottom: 52px;
        width: min(330px, calc(100vw - 28px));
        height: min(420px, calc(100vh - 128px));
        border-radius: 15px;
    }
    .ai-chatbox-head {
        min-height: 52px;
        padding: 11px 13px;
    }
    .ai-chatbox-head strong {
        font-size: 14px;
    }
    .ai-chatbox-head button {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    .ai-chatbox-body {
        padding: 12px;
        gap: 8px;
    }
    .ai-message {
        max-width: 90%;
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 12px;
        line-height: 1.5;
    }
    .ai-chatbox-suggestions {
        gap: 6px;
    }
    .ai-chatbox-suggestions button {
        min-height: 29px;
        padding: 0 9px;
        font-size: 10px;
    }
    .ai-chatbox-form {
        padding: 9px;
        gap: 8px;
    }
    .ai-chatbox-form input {
        height: 39px;
        font-size: 13px;
    }
    .ai-chatbox-form button {
        width: 52px;
        height: 39px;
        font-size: 13px;
    }
    .ai-chatbox-toggle {
        min-width: 108px;
        height: 38px;
        border-radius: 999px;
        font-size: 10px;
    }
}
@media (max-width: 390px) {
    .ai-chatbox-panel {
        width: min(304px, calc(100vw - 24px));
        height: min(390px, calc(100vh - 126px));
    }
    .ai-chatbox-suggestions button {
        font-size: 9px;
        padding: 0 8px;
    }
}
/* =========================================================
   Public video detail redesign - video.php only
========================================================= */
.video-watch-page {
    min-height: 100vh;
    background: #f5f7fb;
}
.video-watch-section {
    padding: 24px 0 56px;
}
.video-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}
.video-watch-main {
    min-width: 0;
}
.video-back-link {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}
.video-watch-player {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}
.video-watch-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-watch-info {
    padding: 18px 0 16px;
    border-bottom: 1px solid var(--border);
}
.video-watch-info h1 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 900;
}
.video-watch-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
.video-watch-meta span:nth-child(n + 3) {
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 900;
}
.video-watch-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
    align-items: start;
    padding-top: 22px;
}
.video-watch-description h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}
.video-watch-description p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.75;
}
.video-watch-content-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 10px;
    background: #eef2f7;
    color: #334155;
    font-size: 14px;
    line-height: 1.75;
}
.video-watch-content-box h3 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 900;
}
.video-sequence-nav {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(27, 44, 88, 0.12);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.video-sequence-nav a {
    position: relative;
    min-height: 78px;
    padding: 14px 54px 14px 18px;
    border: 1px solid rgba(27, 44, 88, 0.14);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #f7faff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}
.video-sequence-nav a::after {
    content: "›";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(27, 44, 88, 0.08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}
.video-sequence-nav a:first-child::after {
    content: "‹";
    right: auto;
    left: 16px;
}
.video-sequence-nav a:first-child {
    padding: 14px 18px 14px 54px;
}
.video-sequence-nav a:hover {
    border-color: rgba(242, 146, 32, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}
.video-sequence-nav span {
    color: var(--secondary);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}
.video-sequence-nav strong {
    color: var(--primary);
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.video-sequence-empty {
    display: block;
}
.video-watch-doc-card,
.video-related-card,
.video-help-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}
.video-watch-doc-card {
    padding: 20px;
    background: #e5e7eb;
}
.video-watch-doc-card h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}
.video-watch-doc-card p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}
.video-watch-primary-btn,
.video-watch-outline-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.video-watch-primary-btn {
    margin-bottom: 10px;
    background: var(--primary);
    color: #fff;
}
.video-watch-outline-btn {
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
}
.video-watch-sidebar {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 20px;
    min-width: 0;
}
.video-related-card {
    padding: 18px;
}
.video-related-card h2,
.video-help-card h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
}
.video-related-list {
    display: grid;
    gap: 14px;
}
.video-related-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.video-related-thumb {
    position: relative;
    overflow: hidden;
    width: 96px;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    background: #e2e8f0;
}
.video-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-related-thumb span {
    width: 100%;
    height: 100%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}
.video-related-info {
    min-width: 0;
}
.video-related-info strong {
    display: -webkit-box;
    margin-bottom: 4px;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.video-related-info small {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}
.video-related-more {
    min-height: 38px;
    margin-top: 18px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.video-help-card {
    padding: 20px;
    background: #cfe1ff;
    border-color: #aac8fa;
}
.video-help-card p {
    margin: 0 0 14px;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}
.video-help-card a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}
@media (max-width: 1024px) {
    .video-watch-layout {
        grid-template-columns: 1fr;
    }
    .video-watch-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .video-watch-section {
        padding: 14px 0 36px;
    }
    .video-watch-page .container {
        width: calc(100% - 18px);
    }
    .video-back-link {
        margin-bottom: 10px;
        font-size: 12px;
    }
    .video-watch-layout {
        gap: 18px;
    }
    .video-watch-player {
        border-radius: 10px;
    }
    .video-watch-info {
        padding: 14px 0;
    }
    .video-watch-info h1 {
        font-size: 19px;
        line-height: 1.35;
    }
    .video-watch-meta {
        gap: 8px;
        font-size: 12px;
    }
    .video-watch-content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 18px;
    }
    .video-watch-description h2 {
        font-size: 17px;
    }
    .video-watch-description p,
    .video-watch-content-box {
        font-size: 13px;
        line-height: 1.65;
    }
    .video-watch-doc-card {
        padding: 16px;
    }
    .video-sequence-nav {
        margin-top: 16px;
        padding-top: 12px;
        gap: 8px;
    }
    .video-sequence-nav a {
        min-height: 72px;
        padding: 12px 10px 10px;
        border-radius: 10px;
        gap: 5px;
    }
    .video-sequence-nav a::after {
        display: none;
    }
    .video-sequence-nav a:first-child {
        padding: 12px 10px 10px;
    }
    .video-sequence-nav span {
        font-size: 9px;
        line-height: 1.1;
    }
    .video-sequence-nav strong {
        font-size: 11px;
        line-height: 1.25;
    }
    .video-watch-sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .video-related-card,
    .video-help-card {
        padding: 16px;
    }
    .video-related-item {
        grid-template-columns: 92px minmax(0, 1fr);
    }
    .video-related-thumb {
        width: 92px;
    }
    .video-related-info strong {
        font-size: 12.5px;
    }
    .video-related-info small {
        font-size: 11px;
    }
}
/* =========================================================
   Video detail content full width when document card removed
========================================================= */
.video-watch-content-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}
.video-watch-description {
    width: 100% !important;
    max-width: 100% !important;
}
.video-watch-content-box {
    width: 100% !important;
    max-width: 100% !important;
}
.video-watch-doc-card {
    display: none !important;
}

/* =========================================================
   Search page redesign
========================================================= */
.search-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(242, 146, 32, 0.08), transparent 26%),
        radial-gradient(circle at 78% 10%, rgba(27, 44, 88, 0.08), transparent 30%),
        #f5f7fb;
}
.search-hero {
    padding: 28px 0 30px;
}
.search-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: end;
}
.search-hero-main {
    min-width: 0;
}
.search-back-link {
    margin-bottom: 20px;
    color: var(--primary);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
}
.search-hero-head {
    max-width: 760px;
}
.search-hero-head > span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(27, 44, 88, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.search-hero-head h1 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.search-hero-head h1 strong {
    color: var(--secondary);
    font-weight: 900;
}
.search-hero-head p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
.search-modern-form {
    width: min(760px, 100%);
    min-height: 54px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}
.search-modern-form > span {
    width: 32px;
    color: #64748b;
    text-align: center;
    font-weight: 900;
}
.search-modern-form input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}
.search-modern-form button {
    min-width: 110px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}
.search-modern-suggestions {
    width: min(760px, 100%);
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.search-modern-suggestions span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.search-modern-suggestions a {
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 900;
}
.search-modern-suggestions a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}
.search-summary {
    width: min(760px, 100%);
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.search-summary div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
}
.search-summary strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}
.search-summary span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}
.search-hero-aside {
    padding: 22px;
    border: 1px solid rgba(27, 44, 88, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(10px);
}
.search-hero-aside > span {
    color: var(--secondary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.search-hero-aside h2 {
    margin: 8px 0 18px;
    color: var(--primary);
    display: -webkit-box;
    overflow: hidden;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.search-hero-aside div {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}
.search-hero-aside p {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(27, 44, 88, 0.06);
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}
.search-hero-aside p strong {
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
}
.search-hero-aside a {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.search-results-section {
    padding: 6px 0 56px;
}
.search-result-group {
    margin-top: 30px;
}
.search-group-head {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}
.search-group-head span {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.search-group-head h2 {
    margin: 6px 0 0;
    color: var(--primary);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}
.search-group-head a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.search-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.search-video-card,
.search-faq-modern-item,
.search-empty-card,
.search-help-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.search-video-card {
    overflow: hidden;
    transition: 0.2s ease;
}
.search-video-card:hover {
    transform: translateY(-3px);
    border-color: rgba(242, 146, 32, 0.45);
}
.search-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8edf5;
}
.search-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-video-thumb > span {
    width: 100%;
    height: 100%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.search-video-thumb strong {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    font-size: 13px;
}
.search-video-body {
    padding: 14px;
}
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.search-tags span {
    min-height: 22px;
    padding: 0 7px;
    border-radius: 6px;
    background: rgba(27, 44, 88, 0.07);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 900;
}
.search-tags span:first-child {
    background: rgba(242, 146, 32, 0.14);
    color: var(--secondary);
}
.search-video-body h3 {
    margin: 0 0 8px;
    color: var(--primary);
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.search-video-body p {
    margin: 0 0 12px;
    color: var(--muted);
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.search-video-body small {
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
}
.search-video-body small span {
    color: #94a3b8;
}
.search-faq-modern-list {
    display: grid;
    gap: 10px;
}
.search-faq-modern-item {
    min-height: 92px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}
.search-faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.search-faq-tags span {
    min-height: 22px;
    padding: 0 7px;
    border-radius: 6px;
    background: rgba(27, 44, 88, 0.07);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.search-faq-tags span:first-child {
    background: rgba(242, 146, 32, 0.14);
    color: var(--secondary);
}
.search-faq-modern-item h3 {
    margin: 5px 0 6px;
    color: var(--primary);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}
.search-faq-modern-item p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.search-faq-modern-item > strong {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(27, 44, 88, 0.07);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.search-more-row {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px dashed rgba(27, 44, 88, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.search-more-row span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}
.search-more-row a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.search-empty-card {
    padding: 30px;
    text-align: center;
}
.search-empty-card h2 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 24px;
    font-weight: 900;
}
.search-empty-card p {
    margin: 0;
    color: var(--muted);
}
.search-empty-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.search-empty-actions a {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.search-empty-actions a:first-child {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.search-help-card {
    margin-top: 38px;
    padding: 24px 28px;
    border-color: rgba(0, 82, 204, 0.3);
    background: linear-gradient(135deg, rgba(27, 44, 88, 0.96), #0b66d8);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}
.search-help-card h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}
.search-help-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.6;
}
.search-help-card div:last-child {
    display: flex;
    gap: 10px;
}
.search-help-card a {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.search-help-card a:first-child {
    background: #fff;
    color: var(--primary);
}
@media (max-width: 900px) {
    .search-hero-layout {
        grid-template-columns: 1fr;
    }
    .search-hero-aside {
        display: none;
    }
    .search-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .search-hero {
        padding: 18px 0 18px;
    }
    .search-page .container {
        width: calc(100% - 18px);
    }
    .search-back-link,
    .search-hero-head > span {
        display: none;
    }
    .search-hero-head h1 {
        margin-bottom: 14px;
        font-size: 22px;
        line-height: 1.25;
    }
    .search-hero-head p {
        display: none;
    }
    .search-modern-form {
        min-height: 46px;
        padding: 5px;
        border-radius: 10px;
        gap: 4px;
    }
    .search-modern-form > span {
        width: 28px;
        font-size: 12px;
    }
    .search-modern-form input {
        height: 36px;
        font-size: 12px;
    }
    .search-modern-form button {
        min-width: 40px;
        width: 40px;
        height: 36px;
        padding: 0;
        border-radius: 8px;
        font-size: 0;
    }
    .search-modern-form button::before {
        content: "⌕";
        font-size: 16px;
    }
    .search-modern-suggestions {
        gap: 7px;
        margin-top: 10px;
    }
    .search-modern-suggestions span {
        width: 100%;
        font-size: 10px;
    }
    .search-modern-suggestions a {
        min-height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }
    .search-modern-suggestions a:nth-of-type(n + 4) {
        display: none;
    }
    .search-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }
    .search-summary div {
        padding: 10px 8px;
        border-radius: 10px;
        text-align: center;
    }
    .search-summary strong {
        font-size: 20px;
    }
    .search-summary span {
        font-size: 10px;
        line-height: 1.3;
    }
    .search-results-section {
        padding: 2px 0 34px;
    }
    .search-result-group {
        margin-top: 24px;
    }
    .search-group-head {
        margin-bottom: 12px;
        align-items: center;
    }
    .search-group-head span {
        font-size: 10px;
    }
    .search-group-head h2 {
        font-size: 18px;
    }
    .search-group-head a {
        font-size: 11px;
    }
    .search-video-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .search-video-card,
    .search-faq-modern-item {
        border-radius: 10px;
    }
    .search-video-body {
        padding: 11px;
    }
    .search-video-body h3 {
        font-size: 15px;
    }
    .search-video-body p {
        display: none;
    }
    .search-video-thumb strong {
        width: 44px;
        height: 44px;
    }
    .search-faq-modern-item {
        min-height: 86px;
        padding: 13px 14px;
    }
    .search-faq-modern-item h3 {
        font-size: 14px;
    }
    .search-faq-modern-item p {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    .search-more-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .search-more-row span,
    .search-more-row a {
        font-size: 12px;
    }
    .search-empty-card {
        padding: 22px 16px;
        border-radius: 12px;
    }
    .search-empty-card h2 {
        font-size: 18px;
    }
    .search-empty-card p {
        font-size: 13px;
        line-height: 1.55;
    }
    .search-empty-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .search-empty-actions a {
        width: 100%;
    }
    .search-help-card {
        margin-top: 28px;
        padding: 22px 18px;
        grid-template-columns: 1fr;
        text-align: center;
        border-radius: 12px;
    }
    .search-help-card h2 {
        font-size: 20px;
    }
    .search-help-card p {
        font-size: 13px;
    }
    .search-help-card div:last-child {
        display: grid;
        grid-template-columns: 1fr;
    }
    .search-help-card a {
        width: 100%;
    }
}

/* =========================================================
   Homepage hero search polish
========================================================= */
.hero-search-suggestions {
    margin: -2px 0 20px;
}
.hero-search-suggestions span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.hero-search-suggestions a {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
}
@media (min-width: 769px) {
    .hero-quick-links {
        margin-top: 2px;
    }
    .hero-quick-links a {
        min-height: 38px;
        padding: 0 18px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        font-size: 13px;
    }
}
@media (max-width: 768px) {
    .hero-search-suggestions {
        gap: 7px;
        margin: 0 auto 14px;
    }
    .hero-search-suggestions span {
        width: 100%;
        color: rgba(255, 255, 255, 0.62);
        font-size: 10px;
        text-align: center;
    }
    .hero-search-suggestions a {
        min-height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }
    .hero-search-suggestions a:nth-of-type(n + 4) {
        display: none;
    }
    .hero-quick-links {
        width: min(310px, 100%);
        margin: 0 auto 14px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .hero-quick-links a {
        min-height: 34px !important;
        padding: 0 10px !important;
        border-radius: 9px !important;
        background: rgba(255, 255, 255, 0.14) !important;
        justify-content: center;
        font-size: 10px !important;
        text-align: center;
    }
}

/* =========================================================
   Client UX refinements
========================================================= */
.featured-video-item h3,
.video-library-card h3,
.software-detail-page .sw-feature-video strong,
.software-detail-page .sw-video-card h3,
.software-detail-page .sw-mobile-video-body h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.videos-result-count {
    grid-column: 1 / -1;
    margin-top: -6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}
.faq-result-tools {
    margin: -10px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.faq-result-tools p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}
.faq-result-tools div {
    display: flex;
    gap: 8px;
}
.faq-result-tools button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}
.faq-result-tools button:hover {
    border-color: var(--primary);
}
.faq-page .faq-page-item.is-highlighted {
    border-color: rgba(242, 146, 32, 0.7);
    background: #fff8ed;
    box-shadow: 0 18px 44px rgba(242, 146, 32, 0.16);
}
.software-detail-page .sw-mobile-module-card.active {
    border-color: rgba(242, 146, 32, 0.75);
    background: #fff8ed;
}
.software-detail-page .sw-mobile-module-card.active > span {
    background: var(--secondary);
    color: #fff;
}
.software-detail-page .sw-mobile-module-card strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.software-detail-page .sw-mobile-module-card small {
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(242, 146, 32, 0.16);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 900;
}
.video-watch-breadcrumb {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}
.video-watch-breadcrumb a {
    color: var(--primary);
}
.video-watch-breadcrumb strong {
    color: var(--secondary);
}
.video-watch-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.video-watch-actions a,
.video-watch-actions button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}
.video-watch-actions button {
    font-family: inherit;
}
.video-watch-actions a:hover,
.video-watch-actions button:hover {
    border-color: var(--primary);
}
@media (max-width: 768px) {
    .videos-page .videos-mobile-title {
        justify-content: space-between;
        gap: 10px;
    }
    .videos-page .videos-mobile-title #videoLibraryMobileResultCount {
        min-height: 24px;
        padding: 0 9px;
        border-radius: 999px;
        background: rgba(27, 44, 88, 0.08);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        font-size: 11px;
        font-weight: 900;
    }
    .videos-mobile-chips,
    .videos-page .videos-mobile-category-chips,
    .faq-page .faq-mobile-chips {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .videos-page .videos-mobile-category-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .faq-result-tools {
        margin: 0 0 14px;
        align-items: flex-start;
        flex-direction: column;
    }
    .faq-result-tools div {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .faq-result-tools button {
        width: 100%;
    }
    .software-detail-page .sw-mobile-module-card strong {
        align-items: flex-start;
    }
    .video-watch-breadcrumb {
        margin-bottom: 10px;
        font-size: 11px;
    }
    .video-watch-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .video-watch-actions a,
    .video-watch-actions button {
        width: 100%;
        min-height: 38px;
        padding: 0 6px;
        white-space: nowrap;
        font-size: 11px;
    }
}

/* =========================================================
   Responsive safety
========================================================= */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px;
        padding-right: 16px;
    }
    .site-header,
    body.software-page-body .site-header {
        width: 100%;
        overflow: visible !important;
    }
    .site-header .container,
    .header-inner,
    body.software-page-body .header-inner {
        width: 100% !important;
        max-width: 100% !important;
    }
    .site-header .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .header-inner,
    body.software-page-body .header-inner {
        min-width: 0;
        padding: 0 12px !important;
        justify-content: space-between;
    }
    .brand {
        min-width: 0;
        flex: 1 1 auto;
    }
    .site-logo {
        max-width: 130px;
        width: auto;
        height: auto;
        max-height: 44px;
    }
    .header-actions {
        min-width: 0;
        margin-left: auto;
        flex: 0 0 auto;
    }
    .menu-toggle {
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        flex: 0 0 42px;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 1;
        overflow: hidden;
        transform: none !important;
    }
    .menu-toggle::before {
        content: "\2630";
        display: block;
        color: #fff;
        font-size: 24px;
        line-height: 1;
    }
    .hero-search-form,
    .search-result-form {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }
    .hero-support,
    .search-hero,
    .home-software-grid,
    .software-grid,
    .video-grid,
    .faq-page,
    .software-detail-page,
    .video-watch-page,
    .search-page-body main {
        max-width: 100%;
    }
    .hero-support h1,
    .section-head h1,
    .section-head h2 {
        max-width: 100%;
        overflow-wrap: break-word;
    }
    .hero-search-form input,
    .search-result-form input {
        min-width: 0;
    }
    .hero-search-form button {
        min-width: 38px;
        flex: 0 0 38px;
    }
}
