/* =========================================================
   IT GUIDE - SUBPAGE
   Dùng chung cho các trang nội dung
   ========================================================= */

/* ---------------------------------------------------------
   Header cố định riêng cho subpage
   --------------------------------------------------------- */

body:has(.subpage) .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: #ffffff;
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.08);
}

body:has(.subpage) .site-header .header-inner {
    min-height: 68px;
}

body:has(.subpage) .site-header .brand-logo {
    height: 54px;
}

body:has(.subpage) .site-header .nav-link {
    color: var(--blue-dark);
    text-shadow: none;
}

body:has(.subpage) .site-header .nav-link:hover {
    color: var(--blue);
}

/*
   Đẩy nội dung xuống đúng bằng chiều cao header
   để header không che mất phần đầu bài viết.
*/
body:has(.subpage) .site-main {
    min-height: 0;
    margin-top: 0;
    padding-top: 92px;
    padding-bottom: 114px;
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.subpage {
    width: min(1400px, calc(100% - 100px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.subpage-layout {
    width: 100%;
    display: block;
}

/* ---------------------------------------------------------
   Sidebar - luôn cố định khi cuộn bài viết
   --------------------------------------------------------- */

.subpage-sidebar {
    position: fixed;
    top: 116px;
    left: max(50px, calc((100vw - 1400px) / 2));
    z-index: 900;
    width: 280px;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-left: 4px solid var(--yellow);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 10px;
}

.subpage-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subpage-sidebar-link {
    display: block;

    padding: 11px 13px;

    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;

    border-radius: 9px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.subpage-sidebar-link:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
    transform: translateX(2px);
}

.subpage-sidebar-link.active {
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(21, 94, 239, 0.20);
}

/* ---------------------------------------------------------
   Article
   --------------------------------------------------------- */

.subpage-article {
    min-width: 0;
    margin-left: 308px;
    margin-right: 0;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 24px 44px 42px;
}

.subpage-article-title {
    margin: 0 0 24px;
    color: var(--blue-dark);
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.25;
    font-weight: 750;
    text-align: center;
}

.subpage-article-content {
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}

.subpage-article-content h2 {
    margin: 30px 0 12px;

    color: var(--blue-dark);
    font-size: 22px;
    line-height: 1.35;
}

.subpage-article-content h3 {
    margin: 24px 0 10px;

    color: var(--blue-dark);
    font-size: 18px;
    line-height: 1.4;
}

.subpage-article-content p {
    margin: 0 0 16px;
}

.subpage-article-content ul,
.subpage-article-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.subpage-article-content li {
    margin-bottom: 7px;
}

.subpage-article-content strong {
    color: #111827;
}

.subpage-article-content a {
    color: var(--blue);
    text-decoration: underline;
}

.subpage-article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .subpage-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 20px;
    }

    .subpage-article {
        padding: 28px 30px 36px;
    }
}

@media (max-width: 700px) {

    body:has(.subpage) .site-header .header-inner {
        min-height: 64px;
    }

    body:has(.subpage) .site-header .brand-logo {
        height: 50px;
    }

    body:has(.subpage) .site-main {
        min-height: 0;
        padding-top: 82px;
        padding-bottom: 114px;
    }

    .subpage {
        padding: 18px 0 30px;
    }

    .subpage-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .subpage-sidebar {
        position: static;
        width: 100%;
        max-height: none;
    }

    .subpage-article {
        width: 100%;
        padding: 26px 22px 32px;
    }

    .subpage-article-title {
        font-size: 26px;
    }
}


/* =========================================================
   ARTICLE ATTACHMENTS
   ========================================================= */

.article-attachments {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e4e7ec;
}

.article-attachments-title {
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: 20px;
    line-height: 1.4;
}

.article-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text);
    text-decoration: none;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.article-attachment-item:hover {
    border-color: var(--blue);
    background: var(--blue-light);
    transform: translateX(2px);
}

.article-attachment-icon {
    flex: 0 0 auto;
    font-size: 24px;
}

.article-attachment-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-attachment-name {
    color: var(--blue-dark);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.article-attachment-size {
    color: #64748b;
    font-size: 13px;
}

.article-attachment-download {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .article-attachment-item {
        align-items: flex-start;
    }

    .article-attachment-download {
        display: none;
    }
}

/* =========================================================
   SUBPAGE - FOOTER HEIGHT
   Giữ chiều cao 90px nhưng không cố định vị trí
   ========================================================= */

body:has(.subpage) .site-footer {
    height: 90px;
    box-sizing: border-box;
}

body:has(.subpage) .site-footer .footer-inner {
    height: 100%;
    box-sizing: border-box;
    padding: 10px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}


/* =========================================================
   SUBPAGE - FULL HEIGHT LAYOUT
   Footer không fixed nhưng luôn nằm cuối màn hình
   khi nội dung ngắn.
   ========================================================= */

body:has(.subpage) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:has(.subpage) .site-main {
    flex: 1 0 auto;
    min-height: 0;
}

body:has(.subpage) .site-footer {
    flex: 0 0 90px;
    height: 90px;
}


/* ================================
   H2 SUBMENU - AUTO GENERATED
   ================================ */

.subpage-h2-link {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 2px solid #dbe4f0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.subpage-h2-link:hover {
    border-left-color: var(--blue);
    background: #f1f6ff;
    color: var(--blue-dark);
    transform: translateX(2px);
}

.subpage-h2-link.active {
    border-left-color: var(--blue);
    background: #eef5ff;
    color: var(--blue-dark);
    box-shadow: none;
}

.subpage-article-content h2 {
    scroll-margin-top: 110px;
}

/* ================================
   H2 SUBMENU - APPEAR ANIMATION
   ================================ */

.subpage-h2-link {
    opacity: 0;
    transform: translateX(-6px);
    animation: subpageH2Appear 0.35s ease forwards;
}

.subpage-h2-link:nth-of-type(2) {
    animation-delay: 0.04s;
}

.subpage-h2-link:nth-of-type(3) {
    animation-delay: 0.08s;
}

.subpage-h2-link:nth-of-type(4) {
    animation-delay: 0.12s;
}

.subpage-h2-link:nth-of-type(5) {
    animation-delay: 0.16s;
}

.subpage-h2-link:nth-of-type(6) {
    animation-delay: 0.20s;
}

.subpage-h2-link:nth-of-type(7) {
    animation-delay: 0.24s;
}

.subpage-h2-link:nth-of-type(8) {
    animation-delay: 0.28s;
}

@keyframes subpageH2Appear {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .subpage-h2-link {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ================================
   H2 SUBMENU - COLLAPSE / EXPAND
   ================================ */

.subpage-h2-submenu {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        height 0.32s ease,
        opacity 0.22s ease;
}

.subpage-h2-submenu.is-open {
    opacity: 1;
}

.subpage-h2-submenu .subpage-h2-link {
    margin-left: 14px;
    padding-left: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .subpage-h2-submenu {
        transition: none;
    }
}


/* ================================
   IMAGE LIGHTBOX
   ================================ */

.subpage-article-content img.lightbox-image {
    cursor: zoom-in;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(8, 15, 30, 0.82);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-image {
    display: block;

    width: 90vw;
    height: 88vh;

    max-width: 90vw;
    max-height: 88vh;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.45);

    cursor: zoom-out;

    transform: scale(0.92);

    transition:
        transform 0.28s ease;
}

.image-lightbox.is-open .image-lightbox-image {
    transform: scale(1);
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;

    font-size: 32px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.06);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .image-lightbox {
        padding: 20px;
    }

    .image-lightbox-image {
        max-width: 94vw;
        max-height: 82vh;
    }

    .image-lightbox-close {
        top: 12px;
        right: 12px;

        width: 42px;
        height: 42px;

        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-lightbox,
    .image-lightbox-image,
    .image-lightbox-close {
        transition: none;
    }
}


/* =========================================================
   MOBILE RESPONSIVE - IT GUIDE FINAL
   Desktop giữ nguyên hoàn toàn.
   ========================================================= */

@media (max-width: 900px) {

    body:has(.subpage) .site-header .header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    body:has(.subpage) .site-main {
        padding-top: 86px;
    }

    .subpage {
        width: min(100% - 32px, 760px);
        padding: 16px 0 30px;
    }

    .subpage-layout {
        width: 100%;
        display: block;
    }

    /*
     * MOBILE:
     * Sidebar trở thành drawer trượt từ bên trái.
     */
    .subpage-sidebar {
        position: fixed;

        top: 60px;
        left: 0;

        width: min(82vw, 320px);
        height: calc(100vh - 60px);

        max-height: none;

        margin: 0;

        overflow-y: auto;
        overflow-x: hidden;

        z-index: 1100;

        background: #ffffff;

        border: 1px solid #e4e7ec;
        border-left: 4px solid var(--yellow);
        border-radius: 0 14px 14px 0;

        box-shadow:
            8px 0 28px rgba(15, 23, 42, 0.16);

        padding: 10px;

        transform: translateX(-105%);
        transition:
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);

        visibility: hidden;
    }

    .subpage-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .subpage-sidebar-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .subpage-sidebar-link {
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.45;
    }

    /*
     * Nút mở mục lục
     */
    .mobile-sidebar-toggle {
        position: fixed;

        top: 70px;
        left: 12px;

        z-index: 1200;

        width: 44px;
        height: 44px;

        display: flex;
        align-items: center;
        justify-content: center;

        border: 2px solid var(--yellow);
        border-radius: 10px;

        background: var(--blue);
        color: #ffffff;

        font-size: 22px;
        line-height: 1;

        cursor: pointer;

        box-shadow:
            0 5px 16px rgba(15, 23, 42, 0.18);

        transition:
            background 0.2s ease,
            transform 0.2s ease;
    }

    .mobile-sidebar-toggle:hover {
        background: var(--blue-dark);
    }


    /*
     * Khi sidebar mở:
     * nút X nằm ở góc phải phía trên của drawer.
     */
    .mobile-sidebar-toggle.is-open {
        left: calc(min(82vw, 320px) - 54px);
        top: 68px;
        z-index: 1201;
    }

    .mobile-sidebar-toggle:active {
        transform: scale(0.95);
    }

    /*
     * Nền mờ phía sau drawer
     */
    .mobile-sidebar-overlay {
        position: fixed;

        inset: 0;

        z-index: 1050;

        background: rgba(8, 15, 30, 0.42);

        opacity: 0;
        visibility: hidden;

        transition:
            opacity 0.28s ease,
            visibility 0.28s ease;
    }

    .mobile-sidebar-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    /*
     * Khi drawer mở, khóa scroll trang phía sau.
     */
    body.mobile-sidebar-open {
        overflow-x: hidden;
    }

    /*
     * MOBILE PUSH DRAWER
     *
     * Khi mở sidebar, nội dung bài viết được đẩy sang phải.
     * Không dùng overlay.
     */
    .subpage {
        transition: none;
    }

    .subpage-article {
        transition:
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.mobile-sidebar-open .subpage-article {
        transform: translateX(min(82vw, 320px));
    }

    .mobile-sidebar-overlay {
        display: none !important;
    }

    .mobile-sidebar-toggle.is-open {
        left: calc(min(82vw, 320px) - 54px);
    }

    /*
     * Bài viết full width trên mobile.
     */
    .subpage-article {
        width: 100%;
        margin-left: 0;
        margin-right: 0;

        padding: 70px 24px 34px;

        border-radius: 14px;
    }

    .subpage-article-title {
        margin-bottom: 20px;
        font-size: clamp(24px, 5vw, 30px);
    }

    .subpage-article-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .subpage-article-content h2 {
        margin-top: 28px;
        font-size: 20px;
        scroll-margin-top: 92px;
    }

    .subpage-article-content h3 {
        font-size: 17px;
    }

    .subpage-article-content img {
        max-width: 100%;
        height: auto;
    }

    /*
     * H2 submenu vẫn giữ nguyên cơ chế hiện tại.
     */
    .subpage-h2-submenu {
        width: 100%;
    }

    .subpage-h2-link {
        margin-left: 8px !important;
        padding-left: 12px !important;
        font-size: 13px;
    }

    /*
     * Lightbox
     */
    .image-lightbox {
        padding: 14px;
    }

    .image-lightbox-image {
        width: 96vw;
        height: 84vh;
        max-width: 96vw;
        max-height: 84vh;
        border-radius: 8px;
    }

    .image-lightbox-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }
}


@media (max-width: 600px) {

    body:has(.subpage) .site-header .header-inner {
        min-height: 60px;
        padding-left: 14px;
        padding-right: 14px;
    }

    body:has(.subpage) .site-header .brand-logo {
        height: 40px;
    }

    body:has(.subpage) .site-header .main-nav {
        gap: 12px;
    }

    body:has(.subpage) .site-header .nav-link {
        font-size: 13px;
    }

    body:has(.subpage) .site-main {
        padding-top: 76px;
    }

    .mobile-sidebar-toggle {
        top: 68px;
        left: 10px;
        width: 42px;
        height: 42px;
    }


    .mobile-sidebar-toggle.is-open {
        left: calc(min(86vw, 310px) - 52px);
        top: 68px;
    }

    body.mobile-sidebar-open .subpage-article {
        transform: translateX(min(86vw, 310px));
    }

    .subpage {
        width: calc(100% - 20px);
        padding: 10px 0 24px;
    }

    .subpage-sidebar {
        width: min(86vw, 310px);
        top: 68px;
        height: calc(100vh - 78px);
        padding: 8px;
    }

    .subpage-sidebar-link {
        padding: 10px 11px;
        font-size: 13px;
        line-height: 1.4;
    }

    .subpage-h2-link {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        font-size: 12px;
    }

    .subpage-article {
        padding: 66px 16px 28px;
        border-radius: 12px;
    }

    .subpage-article-title {
        margin-bottom: 18px;
        font-size: 24px;
        line-height: 1.28;
    }

    .subpage-article-content {
        font-size: 15px;
        line-height: 1.68;
    }

    .subpage-article-content h2 {
        margin: 26px 0 10px;
        font-size: 19px;
        line-height: 1.35;
        scroll-margin-top: 78px;
    }

    .subpage-article-content h3 {
        margin: 22px 0 9px;
        font-size: 17px;
    }

    .subpage-article-content ul,
    .subpage-article-content ol {
        padding-left: 21px;
    }

    .subpage-article-content img {
        margin: 16px auto;
        border-radius: 8px;
    }

    .image-lightbox-image {
        width: 96vw;
        height: 82vh;
        max-width: 96vw;
        max-height: 82vh;
    }
}


@media (max-width: 380px) {

    body:has(.subpage) .site-header .header-inner {
        padding-left: 11px;
        padding-right: 11px;
    }

    body:has(.subpage) .site-header .brand-logo {
        height: 36px;
    }

    body:has(.subpage) .site-header .main-nav {
        gap: 9px;
    }

    body:has(.subpage) .site-header .nav-link {
        font-size: 12px;
    }

    .mobile-sidebar-toggle {
        top: 67px;
        left: 8px;
        width: 40px;
        height: 40px;
    }


    .mobile-sidebar-toggle.is-open {
        left: calc(88vw - 48px);
        top: 67px;
    }

    body.mobile-sidebar-open .subpage-article {
        transform: translateX(88vw);
    }

    .subpage {
        width: calc(100% - 14px);
    }

    .subpage-sidebar {
        width: 88vw;
        top: 67px;
        height: calc(100vh - 77px);
    }

    .subpage-article {
        padding-left: 13px;
        padding-right: 13px;
    }

    .subpage-article-title {
        font-size: 22px;
    }

    .subpage-article-content {
        font-size: 14px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .subpage-sidebar,
    .mobile-sidebar-overlay,
    .mobile-sidebar-toggle,
    .subpage-h2-submenu,
    .subpage-h2-link,
    .image-lightbox,
    .image-lightbox-image,
    .image-lightbox-close {
        transition: none !important;
        animation: none !important;
    }
}


/* ===== FINAL MOBILE SIDEBAR POSITION ===== */

@media (max-width: 900px) {

    body:has(.subpage) .subpage-sidebar {
        top: 68px !important;
        bottom: 10px !important;
        height: auto !important;
        max-height: none !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
    }

}

@media (max-width: 600px) {

    body:has(.subpage) .subpage-sidebar {
        top: 68px !important;
        bottom: 10px !important;
        height: auto !important;
        max-height: none !important;
    }

}

@media (max-width: 380px) {

    body:has(.subpage) .subpage-sidebar {
        top: 67px !important;
        bottom: 10px !important;
        height: auto !important;
        max-height: none !important;
    }

}

/* =========================================================
   FINAL MOBILE SIDEBAR - SYNC WITH ARTICLE
   ========================================================= */

@media (max-width: 900px) {

    body:has(.subpage) .subpage-sidebar {
        top: auto !important;
        bottom: auto !important;
        height: auto !important;
        max-height: none !important;
        box-sizing: border-box !important;
    }

}


/* =========================================================
   MOBILE SIDEBAR HANDLE
   Không dùng transform để căn giữa.
   Không animate top / transform.
   ========================================================= */

@media (max-width: 900px) {

    .mobile-sidebar-toggle {
        position: fixed !important;

        top: calc(50% - 27px) !important;
        left: 0 !important;

        width: 18px !important;
        height: 54px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        box-sizing: border-box !important;

        border: 0 !important;
        border-radius: 0 10px 10px 0 !important;

        background: var(--blue) !important;
        color: #fff !important;

        font-size: 0 !important;
        line-height: 0 !important;

        box-shadow: 3px 4px 14px rgba(15, 23, 42, 0.28) !important;

        z-index: 1201 !important;

        transition:
            left 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            width 0.2s ease,
            background 0.2s ease !important;

        transform: none !important;
    }

    .mobile-sidebar-toggle::before {
        content: "";

        width: 7px;
        height: 7px;

        border-top: 2px solid #fff;
        border-right: 2px solid #fff;

        transform: rotate(45deg);
    }

    .mobile-sidebar-toggle.is-open {
        left: min(82vw, 320px) !important;
    }

    .mobile-sidebar-toggle.is-open::before {
        transform: rotate(-135deg);
    }

    .mobile-sidebar-toggle:hover {
        width: 23px !important;
        background: var(--blue-dark) !important;
    }

}

@media (max-width: 600px) {

    .mobile-sidebar-toggle {
        top: calc(50% - 25px) !important;
        width: 17px !important;
        height: 50px !important;
    }

    .mobile-sidebar-toggle.is-open {
        left: min(86vw, 310px) !important;
    }

}

@media (max-width: 380px) {

    .mobile-sidebar-toggle {
        top: calc(50% - 24px) !important;
        width: 16px !important;
        height: 48px !important;
    }

    .mobile-sidebar-toggle.is-open {
        left: 88vw !important;
    }

}


/* =========================================================
   MOBILE PUSH LAYOUT - FINAL
   Sidebar mở:
   - Article dịch sang phải bằng đúng chiều rộng sidebar
   - Article chiếm phần không gian còn lại
   - Không transform
   - Không left
   - Không làm mất nội dung
   - Header không bị ảnh hưởng
   ========================================================= */

@media (max-width: 900px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    .subpage-layout {
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }

    .subpage-article {
        position: relative !important;

        left: auto !important;
        right: auto !important;

        transform: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        box-sizing: border-box !important;

        transition:
            margin-left 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            width 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    body.mobile-sidebar-open .subpage-article {
        margin-left: min(82vw, 320px) !important;
        width: calc(100% - min(82vw, 320px)) !important;
    }

}

@media (max-width: 600px) {

    body.mobile-sidebar-open .subpage-article {
        margin-left: min(86vw, 310px) !important;
        width: calc(100% - min(86vw, 310px)) !important;
    }

}

@media (max-width: 380px) {

    body.mobile-sidebar-open .subpage-article {
        margin-left: 88vw !important;
        width: calc(100% - 88vw) !important;
    }

}

/* =========================================================
   MOBILE TRUE PUSH
   Article giữ nguyên kích thước và được đẩy sang phải.
   Không transform.
   Không co chiều rộng Article.
   ========================================================= */

@media (max-width: 900px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    .subpage-layout {
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }

    .subpage-article {
        position: relative !important;

        left: auto !important;
        right: auto !important;

        transform: none !important;

        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box !important;

        transition:
            margin-left 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    body.mobile-sidebar-open .subpage-article {
        margin-left: min(82vw, 320px) !important;
    }

}

@media (max-width: 600px) {

    body.mobile-sidebar-open .subpage-article {
        margin-left: min(86vw, 310px) !important;
    }

}

@media (max-width: 380px) {

    body.mobile-sidebar-open .subpage-article {
        margin-left: 88vw !important;
    }

}

