﻿*,
*::before,
*::after {
    box-sizing: border-box;
}
/* ================= HEADER ================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 9999;
}

    .site-header .navbar {
        height: 86px;
        padding: 0;
    }

    .site-header .container {
        max-width: 1320px;
    }

/* LOGO */

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #14213d !important;
    white-space: nowrap;
}

.logo-red {
    color: #e1062c;
}

/* MENU */

.navbar-nav {
    align-items: center;
    gap: 4px;
}

    .navbar-nav .nav-item {
        position: relative;
    }

    .navbar-nav .nav-link {
        color: #222 !important;
        font-size: 15px;
        font-weight: 600;
        padding: 30px 12px !important;
        white-space: nowrap;
    }

        .navbar-nav .nav-link:hover {
            color: #e1062c !important;
        }

/* DROPDOWN */

.dropdown-menu {
    border: none;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    min-width: 230px;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
}

    .dropdown-item:hover {
        background: #f5f5f5;
    }

@media(min-width:992px) {

    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* CTA */

.header-action {
    margin-left: 20px;
}

.btn-download {
    background: #e1062c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: .3s;
}

    .btn-download:hover {
        background: #c50023;
        color: #fff;
    }

/* ACTIVE */

.navbar-nav .nav-link.active {
    color: #e1062c !important;
}

/* RESPONSIVE */

@media(max-width:1200px) {

    .navbar-nav .nav-link {
        padding: 30px 8px !important;
        font-size: 14px;
    }
}

@media(max-width:991px) {

    .site-header .navbar {
        height: auto;
        padding: 10px 0;
    }

    .navbar-nav .nav-link {
        padding: 12px 0 !important;
    }

    .header-action {
        margin: 15px 0 0;
    }
}

/* =====================
HERO
===================== */

.hero-section {
    padding: 30px 0 0;
}

.hero-wrapper {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.04);
}

.hero-content {
    padding: 50px;
}

    .hero-content h1 {
        font-size: 72px;
        font-weight: 800;
        color: #14213d;
        margin-bottom: 10px;
    }

    .hero-content h2 {
        font-size: 52px;
        font-weight: 800;
        line-height: 1.2;
        color: #14213d;
    }

        .hero-content h2 span {
            display: block;
            color: #d90429;
        }

    .hero-content p {
        margin-top: 20px;
        color: #666;
        font-size: 16px;
        line-height: 28px;
    }

.hero-btn {
    margin-top: 30px;
}

.btn-main {
    display: inline-block;
    background: #d90429;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.btn-main {
    color: #fff;
}

.btn-outline-custom {
    display: inline-block;
    margin-left: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    border: 1px solid #d90429;
    color: #d90429;
    text-decoration: none;
    font-weight: 700;
}

.hero-image {
    text-align: center;
}

    .hero-image img {
        max-width: 100%;
        height: auto;
    }

/* =====================
FEATURE
===================== */

.feature-section {
    margin-top: -15px;
    position: relative;
    z-index: 5;
    margin-top: 15px;
}

.feature-wrapper {
    background: #081a3b;
    border-radius: 16px;
    overflow: hidden;
}

.feature-item {
    padding: 25px;
    display: flex;
    align-items: center;
    color: #fff;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 15px;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-item p {
    margin: 0;
    opacity: .8;
    font-size: 14px;
}

/* =====================
SECTION TITLE
===================== */

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 42px;
        font-weight: 800;
        color: #14213d;
        margin-bottom: 15px;
    }

    .section-title p {
        max-width: 700px;
        margin: auto;
        color: #666;
        line-height: 28px;
    }

/* =====================
CSCA INFO
===================== */

.csca-section {
    padding: 80px 0;
}

.info-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    height: 100%;
    transition: .3s;
}

    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,.05);
    }

.info-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-card p {
    color: #666;
    font-size: 15px;
    line-height: 26px;
}

/* =====================
ROADMAP
===================== */

.roadmap-section {
    padding-bottom: 80px;
}

.roadmap-wrapper {
    position: relative;
}

.roadmap-line {
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: #dbe2ef;
}

.roadmap-item {
    position: relative;
    text-align: center;
    z-index: 2;
}

.roadmap-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

    .roadmap-icon.red {
        background: #e63946;
    }

    .roadmap-icon.purple {
        background: #7b2cbf;
    }

    .roadmap-icon.orange {
        background: #ff9f1c;
    }

    .roadmap-icon.blue {
        background: #3a86ff;
    }

.roadmap-item h4 {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 700;
}

/* CATEGORY */
.category-section {
    padding: 80px 0;
}

.category-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    height: 100%;
    text-decoration: none;
    color: #222;
    transition: .3s;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,.05);
        color: #222;
    }

.category-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.category-card p {
    color: #666;
    margin-bottom: 0;
}
/* POSTS */
.latest-post-section {
    padding-bottom: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    height: 100%;
}

    .post-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.post-content {
    padding: 20px;
}

    .post-content h3 {
        font-size: 18px;
        line-height: 28px;
        min-height: 56px;
    }

.post-meta {
    color: #888;
    font-size: 14px;
}
/* DOWNLOAD */
.download-section {
    padding-bottom: 80px;
}

.download-box {
    background: #d90429;
    color: #fff;
    border-radius: 20px;
    padding: 50px;
}

    .download-box h2 {
        font-size: 32px;
        font-weight: 800;
    }

    .download-box ul {
        margin-top: 20px;
    }
/* FOOTER */
.site-footer {
    background: #081a3b;
    color: #fff;
    padding: 60px 0;
}

    .site-footer h4, .site-footer h5 {
        margin-bottom: 20px;
        font-weight: 700;
    }

    .site-footer ul {
        list-style: none;
        padding: 0;
    }

        .site-footer ul li {
            margin-bottom: 10px;
        }

    .site-footer a {
        color: #d4d8e3;
        text-decoration: none;
    }

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .footer-social a {
        width: 48px;
        height: 48px;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.15);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .3s;
    }

        .footer-social a:hover {
            transform: translateY(-3px);
            background: rgba(255,255,255,.15);
        }

    .footer-social img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        display: block;
    }


/* CATEGORY PAGE */

.breadcrumb-section {
    padding: 30px 0 20px;
}

.breadcrumb-custom {
    font-size: 14px;
}

    .breadcrumb-custom a {
        color: #666;
        text-decoration: none;
    }

.category-hero {
    padding-bottom: 40px;
}

.category-hero-box {
    background: #081a3b;
    color: #fff;
    border-radius: 20px;
    padding: 50px;
}

.category-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
}

.category-content p {
    font-size: 18px;
    line-height: 32px;
    opacity: .9;
}

/* FILTER */

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

    .filter-tags a {
        padding: 10px 18px;
        border-radius: 30px;
        background: #fff;
        border: 1px solid #ddd;
        text-decoration: none;
        color: #333;
    }

        .filter-tags a.active {
            background: #d90429;
            color: #fff;
        }

/* POSTS */

.search-box {
    margin-bottom: 25px;
}

.category-posts {
    padding-bottom: 80px;
}

/* SIDEBAR */

.sidebar-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

    .sidebar-box h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
    }

/* =====================
SIDEBAR
===================== */

.sidebar-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

    .sidebar-box h3 {
        font-size: 18px;
        font-weight: 800;
        color: #14213d;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f3f3f3;
    }

/* HOT POSTS */

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

    .sidebar-post-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .sidebar-post-item .thumb {
        width: 90px;
        min-width: 90px;
        display: block;
    }

        .sidebar-post-item .thumb img {
            width: 90px;
            height: 65px;
            object-fit: cover;
            border-radius: 10px;
            display: block;
        }

    .sidebar-post-item .content {
        flex: 1;
        min-width: 0;
    }

    .sidebar-post-item .title {
        display: block;
        color: #14213d;
        text-decoration: none;
        font-size: 14px;
        line-height: 22px;
        font-weight: 600;
        transition: .3s;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

        .sidebar-post-item .title:hover {
            color: #d90429;
        }

/* DOWNLOAD BOX */

.sidebar-download {
    background: #fff5f5;
    border: 1px solid #ffd7dd;
    border-radius: 16px;
    padding: 25px;
}

    .sidebar-download h4 {
        font-size: 20px;
        font-weight: 800;
        color: #14213d;
        margin-bottom: 15px;
    }

    .sidebar-download ul {
        padding-left: 18px;
        margin-bottom: 20px;
    }

    .sidebar-download li {
        margin-bottom: 8px;
        color: #555;
    }

    .sidebar-download .form-control {
        border-radius: 10px;
    }

    .sidebar-download .btn {
        border-radius: 10px;
        font-weight: 700;
    }

.sidebar-download {
    background: #fff5f5;
    border-radius: 16px;
    padding: 25px;
}

/* CTA */

.cta-category {
    padding-bottom: 80px;
}

.cta-box {
    background: #081a3b;
    color: #fff;
    border-radius: 20px;
    padding: 50px;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    height: 100%;
    transition: .3s;
}

    .post-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(0,0,0,.06);
    }

    .post-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

.post-content {
    padding: 20px;
}

    .post-content h3 {
        font-size: 18px;
        line-height: 28px;
        min-height: 84px;
    }

        .post-content h3 a {
            color: #14213d;
            text-decoration: none;
        }

.post-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.post-sapo {
    color: #666;
    font-size: 14px;
    line-height: 24px;
    height: 72px;
    overflow: hidden;
}

.btn-read {
    display: inline-block;
    margin-top: 10px;
    color: #d90429;
    font-weight: 700;
    text-decoration: none;
}

/* DETAIL PAGE */
.detail-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.article-detail {
    background: #fff;
}

.article-category {
    display: inline-block;
    background: #eef4ff;
    color: #0d47a1;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-title {
    font-size: 42px;
    line-height: 1.4;
    font-weight: 800;
    color: #14213d;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #777;
    margin-bottom: 25px;
}

.article-thumbnail {
    margin-bottom: 30px;
}

    .article-thumbnail img {
        width: 100%;
    }

.article-sapo {
    font-size: 20px;
    line-height: 34px;
    font-weight: 600;
    color: #333;
    padding: 25px;
    background: #f8f9fa;
    border-left: 4px solid #d90429;
    margin-bottom: 30px;
}

.toc-box {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

    .toc-box ul {
        padding-left: 20px;
    }

.article-content {
    font-size: 18px;
    line-height: 34px;
    color: #333;
}

    .article-content img {
        max-width: 100%;
        height: auto;
    }

    .article-content h2 {
        margin-top: 40px;
        margin-bottom: 20px;
        font-size: 32px;
        font-weight: 700;
    }

    .article-content h3 {
        margin-top: 30px;
        margin-bottom: 15px;
        font-size: 26px;
    }

.article-share {
    padding-top: 30px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.related-posts {
    margin-top: 50px;
}

    .related-posts h2 {
        margin-bottom: 30px;
        font-size: 28px;
        font-weight: 700;
    }

@media(max-width:768px) {
    .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
        line-height: 30px;
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 220px;
}

    .category-card h3 {
        min-height: 52px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .category-card p {
        flex: 1;
        line-height: 24px;
    }

.gift-icon {
    font-size: 90px;
    line-height: 1;
    animation: giftBounce 2s infinite;
}

@keyframes giftBounce {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.post-card {
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    transition: .3s;
}

    .post-card:hover {
        transform: translateY(-5px);
    }

.post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

    .post-content h3 {
        font-size: 18px;
        line-height: 1.5;
        min-height: 54px;
    }

        .post-content h3 a {
            color: #222;
            text-decoration: none;
        }

    .post-content p {
        color: #666;
        font-size: 14px;
        margin-top: 10px;
        min-height: 65px;
    }

.read-more {
    font-weight: 600;
    color: #e53935;
    text-decoration: none;
}

.article-share {
    background: #f8f9fb;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    margin-top: 40px;
}

    .article-share::before {
        content: "📢 Chia sẻ bài viết";
        display: block;
        font-size: 18px;
        font-weight: 700;
        color: #14213d;
        margin-bottom: 15px;
    }

#box-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

    .share-btn:hover {
        transform: translateY(-2px);
    }

.facebook {
    background: #1877f2;
    color: #fff;
}

.zalo {
    background: #0068ff;
    color: #fff;
}

.telegram {
    background: #24a1de;
    color: #fff;
}

.messenger {
    background: #8b5cf6;
    color: #fff;
}

.copy-link {
    background: #f3f4f6;
    color: #333;
}

/* =========================
DETAIL CONTENT ENHANCED
========================= */

/* Chống tràn toàn bộ nội dung */
.article-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

    /* IMAGE */
    .article-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 25px auto;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,.08);
    }

    /* FIGURE */
    .article-content figure {
        margin: 30px auto;
        text-align: center;
    }

    .article-content figcaption {
        font-size: 14px;
        color: #777;
        margin-top: 10px;
    }

    /* TABLE */
    .article-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 30px 0;
        font-size: 16px;
        overflow-x: auto;
        display: block;
    }

        .article-content table th,
        .article-content table td {
            border: 1px solid #ddd;
            padding: 12px 15px;
        }

        .article-content table th {
            background: #f5f7fa;
            font-weight: 700;
            color: #14213d;
        }

        .article-content table tr:nth-child(even) {
            background: #fafafa;
        }

        .article-content table tr:hover {
            background: #f1f5ff;
        }

    /* BLOCKQUOTE */
    .article-content blockquote {
        border-left: 5px solid #d90429;
        background: #f8f9fa;
        padding: 20px 25px;
        margin: 30px 0;
        font-style: italic;
        color: #444;
    }

    /* LIST */
    .article-content ul,
    .article-content ol {
        padding-left: 30px;
        margin-bottom: 25px;
    }

    .article-content li {
        margin-bottom: 10px;
    }

    /* LINK */
    .article-content a {
        color: #d90429;
        text-decoration: underline;
    }

        .article-content a:hover {
            color: #b00020;
        }

    /* CODE */
    .article-content pre {
        background: #0f172a;
        color: #fff;
        padding: 20px;
        border-radius: 12px;
        overflow-x: auto;
        margin: 25px 0;
    }

    .article-content code {
        background: #f1f5f9;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 90%;
    }

    /* IFRAME YOUTUBE */
    .article-content iframe {
        width: 100%;
        max-width: 100%;
        min-height: 450px;
        border-radius: 12px;
        margin: 25px 0;
    }

    /* VIDEO */
    .article-content video {
        max-width: 100%;
        border-radius: 12px;
    }

    /* HR */
    .article-content hr {
        border: none;
        border-top: 1px solid #e5e7eb;
        margin: 40px 0;
    }

/* RESPONSIVE TABLE */
.table-responsive-custom {
    overflow-x: auto;
    margin: 25px 0;
}

/* RESPONSIVE */
@media(max-width:768px) {

    .article-content table {
        font-size: 14px;
    }

    .article-content iframe {
        min-height: 250px;
    }

    .article-content img {
        border-radius: 8px;
    }
}

.article-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 30px auto;
}

.article-content {
    overflow-x: hidden;
}

    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

.related-posts .sidebar-post-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all .3s ease;
    background: #fff;
}

    .related-posts .sidebar-post-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0,0,0,.08);
        border-color: #f07814;
    }

.related-posts .thumb {
    flex: 0 0 140px;
    overflow: hidden;
    border-radius: 6px;
}

    .related-posts .thumb img {
        width: 100%;
        height: 95px;
        object-fit: cover;
        transition: .4s;
    }

.related-posts .sidebar-post-item:hover .thumb img {
    transform: scale(1.08);
}

.related-posts .content {
    flex: 1;
}

.related-posts .title {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin-bottom: 8px;
    text-decoration: none;
    transition: .3s;
}

    .related-posts .title:hover {
        color: #f07814;
    }

.related-posts .sapo {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.related-posts .read-more {
    color: #f07814;
    font-weight: 600;
    text-decoration: none;
}

    .related-posts .read-more:hover {
        text-decoration: underline;
    }


#pagging .pagination {
    gap: 6px;
}

#pagging .page-link {
    border-radius: 8px;
    min-width: 42px;
    text-align: center;
}

#pagging .page-item.active .page-link {
    background: #dc3545;
    border-color: #dc3545;
}

#pagging .page-link:hover {
    background: #f8f9fa;
}

.container-site {
    width: min(var(--site-container), calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

/*
         * MENU DESKTOP
         */

.desktop-navigation {
    display: flex;
    align-items: center;
    height: 72px;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 72px;
    padding-right: 10px;
    padding-left: 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

    .menu-link:hover {
        border-bottom-color: var(--site-red);
        background: #fff7f7;
        color: var(--site-red);
    }

/*
         * MENU THẢ XUỐNG
         */

.submenu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 100;
    display: none;
    min-width: 250px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 14px 14px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14), 0 6px 15px rgba(15, 23, 42, 0.08);
}

.menu-item:hover > .submenu,
.menu-item:focus-within > .submenu {
    display: block;
}

.submenu-right {
    right: 0;
    left: auto;
}

.submenu-wide {
    width: 330px;
}

.submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .submenu a:hover {
        background: #fef2f2;
        color: var(--site-red);
    }

.submenu-divider {
    height: 1px;
    margin: 7px 5px;
    background: #e2e8f0;
}

.submenu-title {
    padding: 8px 12px 5px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/*
         * MENU MOBILE
         */

.mobile-menu-wrapper {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

    .mobile-menu-wrapper.is-open {
        display: block;
    }

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 94vw);
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.2);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding-right: 18px;
    padding-left: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-content {
    height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 15px;
}

.mobile-menu-link {
    display: block;
    margin-bottom: 5px;
    padding: 12px 13px;
    border-radius: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

    .mobile-menu-link:hover {
        background: #fef2f2;
        color: var(--site-red);
    }

.mobile-menu-details {
    margin-bottom: 7px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

    .mobile-menu-details summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding-right: 13px;
        padding-left: 13px;
        color: #334155;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

        .mobile-menu-details summary::-webkit-details-marker {
            display: none;
        }

    .mobile-menu-details[open] summary {
        background: #fef2f2;
        color: var(--site-red);
    }

.mobile-menu-children {
    padding: 7px;
    border-top: 1px solid #f1f5f9;
}

    .mobile-menu-children a {
        display: block;
        padding: 9px 10px;
        border-radius: 8px;
        color: #64748b;
        font-size: 13px;
        text-decoration: none;
    }

        .mobile-menu-children a:hover {
            background: #f8fafc;
            color: var(--site-red);
        }

.mobile-parent-link {
    background: #fee2e2;
    color: var(--site-red-dark) !important;
    font-weight: 700;
}

/*
         * FOOTER
         */

.footer-link {
    display: block;
    padding: 5px 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: #ffffff;
    }

@media (max-width: 1399px) {

    .menu-link {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 12px;
    }
}

@media (max-width: 1279px) {

    .container-site {
        width: min(var(--site-container), calc(100% - 24px));
    }
}

@media (max-width: 767px) {

    .container-site {
        width: min(var(--site-container), calc(100% - 20px));
    }
}


/* ==============================
   SOCIAL CARD TRONG SIDEBAR
   ============================== */

.sidebar-social-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding: 16px 18px;
    overflow: hidden;
    background: radial-gradient( circle at 100% 0, rgba(230, 0, 35, 0.08), transparent 48% ), #ffffff;
    border: 1px solid #e7ebf1;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(11, 35, 69, 0.06);
}

    /* Vạch nhấn bên trái */

    .sidebar-social-card::before {
        content: "";
        position: absolute;
        top: 16px;
        bottom: 16px;
        left: 0;
        width: 4px;
        background: #e60023;
        border-radius: 0 4px 4px 0;
    }

.sidebar-social-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-left: 3px;
}

.sidebar-social-card__label {
    display: block;
    margin: 0 0 4px;
    color: #e00024;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.sidebar-social-card__title {
    display: block;
    margin: 0;
    color: #0b2345;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-social-card__actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.sidebar-social-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(11, 35, 69, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .sidebar-social-button img {
        display: block;
        width: 21px;
        height: 21px;
        object-fit: contain;
    }

    .sidebar-social-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 9px 20px rgba(11, 35, 69, 0.14);
    }

.sidebar-social-button--facebook:hover {
    border-color: #1877f2;
}

.sidebar-social-button--x {
    background: #050505;
    border-color: #050505;
}

    .sidebar-social-button--x img {
        width: 20px;
        height: 20px;
    }

    .sidebar-social-button--x:hover {
        border-color: #313131;
        background: #222222;
    }

/* Hiệu ứng khi dùng bàn phím */

.sidebar-social-button:focus-visible {
    outline: 3px solid rgba(230, 0, 35, 0.18);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .sidebar-social-card {
        padding: 14px 16px;
    }

    .sidebar-social-card__title {
        font-size: 13.5px;
    }

    .sidebar-social-button {
        width: 40px;
        height: 40px;
    }
}



/* ====================================== SIDEBAR - BÀI VIẾT ĐƯỢC QUAN TÂM ====================================== */

.sidebar-box--ranking {
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e7ebf1;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(11, 35, 69, 0.08);
}

/* Header */

.sidebar-ranking-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    background: radial-gradient( circle at right top, rgba(36, 100, 220, 0.17), transparent 45% ), linear-gradient(135deg, #081d3d 0%, #0d2d5d 100%);
}

.sidebar-ranking-label {
    display: inline-block;
    margin-bottom: 5px;
    color: #ff4655;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.sidebar-ranking-heading h3 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    text-transform: none;
}

.sidebar-ranking-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #ffffff;
    font-size: 21px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

/* Danh sách */

.popular-ranking {
    margin: 0;
    padding: 5px 18px;
    list-style: none;
}

.popular-ranking__item {
    margin: 0;
    border-bottom: 1px solid #edf0f4;
}

    .popular-ranking__item:last-child {
        border-bottom: 0;
    }

.popular-ranking__link {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 94px;
    padding: 16px 0;
    color: inherit;
    text-decoration: none;
}

    /* Thanh màu khi hover */

    .popular-ranking__link::before {
        content: "";
        position: absolute;
        top: 16px;
        bottom: 16px;
        left: -18px;
        width: 3px;
        border-radius: 0 4px 4px 0;
        background: #e60023;
        opacity: 0;
        transform: scaleY(0.4);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .popular-ranking__link:hover::before {
        opacity: 1;
        transform: scaleY(1);
    }

/* Số thứ tự */

.popular-ranking__number {
    color: #d8dee7;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Top 1 */

.popular-ranking__item:nth-child(1)
.popular-ranking__number {
    color: #e60023;
}

/* Top 2 */

.popular-ranking__item:nth-child(2)
.popular-ranking__number {
    color: #123d78;
}

/* Top 3 */

.popular-ranking__item:nth-child(3)
.popular-ranking__number {
    color: #4d78ad;
}

.popular-ranking__link:hover
.popular-ranking__number {
    color: #e60023;
    transform: translateX(3px);
}

/* Nội dung */

.popular-ranking__content {
    display: block;
    min-width: 0;
}

.popular-ranking__title {
    display: -webkit-box;
    overflow: hidden;
    color: #102544;
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 700;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    transition: color 0.2s ease;
}

.popular-ranking__more {
    display: block;
    margin-top: 6px;
    color: #8a95a5;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.popular-ranking__arrow {
    color: #b4becb;
    font-size: 19px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.popular-ranking__link:hover
.popular-ranking__title {
    color: #e60023;
}

.popular-ranking__link:hover
.popular-ranking__arrow {
    color: #e60023;
    transform: translateX(4px);
}

/* Mobile và tablet */

@media (max-width: 991.98px) {
    .sidebar-box--ranking {
        margin-top: 30px;
    }

    .popular-ranking__link {
        grid-template-columns: 52px minmax(0, 1fr) 24px;
    }
}

@media (max-width: 575.98px) {
    .sidebar-ranking-heading {
        padding: 17px;
    }

    .popular-ranking {
        padding-right: 16px;
        padding-left: 16px;
    }

    .popular-ranking__link {
        grid-template-columns: 44px minmax(0, 1fr) 18px;
        gap: 10px;
        min-height: 82px;
        padding: 13px 0;
    }

    .popular-ranking__number {
        font-size: 29px;
    }

    .popular-ranking__title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
}

/* ======================================END SIDEBAR - BÀI VIẾT ĐƯỢC QUAN TÂM ====================================== */


/* ==============================    SOCIAL CARD TRONG SIDEBAR  ============================== */

.sidebar-social-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding: 16px 18px;
    overflow: hidden;
    background: radial-gradient( circle at 100% 0, rgba(230, 0, 35, 0.08), transparent 48% ), #ffffff;
    border: 1px solid #e7ebf1;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(11, 35, 69, 0.06);
}

    /* Vạch nhấn bên trái */

    .sidebar-social-card::before {
        content: "";
        position: absolute;
        top: 16px;
        bottom: 16px;
        left: 0;
        width: 4px;
        background: #e60023;
        border-radius: 0 4px 4px 0;
    }

.sidebar-social-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-left: 3px;
}

.sidebar-social-card__label {
    display: block;
    margin: 0 0 4px;
    color: #e00024;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.sidebar-social-card__title {
    display: block;
    margin: 0;
    color: #0b2345;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-social-card__actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.sidebar-social-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(11, 35, 69, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .sidebar-social-button img {
        display: block;
        width: 21px;
        height: 21px;
        object-fit: contain;
    }

    .sidebar-social-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 9px 20px rgba(11, 35, 69, 0.14);
    }

.sidebar-social-button--facebook:hover {
    border-color: #1877f2;
}

.sidebar-social-button--x {
    background: #050505;
    border-color: #050505;
}

    .sidebar-social-button--x img {
        width: 20px;
        height: 20px;
    }

    .sidebar-social-button--x:hover {
        border-color: #313131;
        background: #222222;
    }

/* Hiệu ứng khi dùng bàn phím */

.sidebar-social-button:focus-visible {
    outline: 3px solid rgba(230, 0, 35, 0.18);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .sidebar-social-card {
        padding: 14px 16px;
    }

    .sidebar-social-card__title {
        font-size: 13.5px;
    }

    .sidebar-social-button {
        width: 40px;
        height: 40px;
    }
}


.download-section {
    padding: 60px 0;
}

.download-box {
    padding: 45px 50px;
    color: #fff;
    background: #e8002d;
    border-radius: 22px;
}

    .download-box h2 {
        margin-bottom: 20px;
        font-size: 32px;
        font-weight: 800;
        line-height: 1.25;
    }

    .download-box ul {
        margin-bottom: 0;
    }

.document-register-form .form-control {
    min-height: 48px;
    padding: 10px 15px;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
}

    .document-register-form .form-control:focus {
        outline: 3px solid rgba(255, 255, 255, 0.35);
    }

.document-register-form .btn {
    min-height: 48px;
    padding: 10px 18px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 6px;
}

.document-register-form .form-check-label {
    font-size: 13px;
    line-height: 1.5;
}

.document-register-form .form-check-input {
    cursor: pointer;
}

.gift-icon {
    font-size: 72px;
    line-height: 1;
    color: #fff;
}

@media (max-width: 991.98px) {
    .download-box {
        padding: 35px 25px;
        text-align: center;
    }

        .download-box ul {
            display: inline-block;
            text-align: left;
        }

    .document-register-form {
        text-align: left;
    }

    .gift-icon {
        font-size: 60px;
    }
}

@media (max-width: 575.98px) {
    .download-section {
        padding: 35px 0;
    }

    .download-box {
        padding: 30px 18px;
        border-radius: 16px;
    }

        .download-box h2 {
            font-size: 25px;
        }
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

    .article-actions a,
    .article-actions span {
        color: #555;
        text-decoration: none;
        font-weight: 500;
    }

    .article-actions i {
        margin-right: 6px;
        color: #1877F2;
    }

.fb-like-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #1877f2;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(24,119,242,.2);
}

    .fb-like-wrap:hover {
        background: #166fe5;
    }


/* ================================ PAGINATION =============================== */

.news-pagination {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Nếu JS đang sinh ra ul/div bọc bên ngoài */
    .news-pagination .pagination,
    .news-pagination ul {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

        /* Trường hợp JS sinh trực tiếp a/span */
        .news-pagination > a,
        .news-pagination > span,
        .news-pagination .pagination a,
        .news-pagination .pagination span,
        .news-pagination li a,
        .news-pagination li span {
            min-width: 42px;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 14px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: #ffffff;
            color: #334155;
            font-size: 14px;
            font-weight: 600;
            line-height: 1;
            text-decoration: none;
            transition: all 0.2s ease;
        }

            /* Hover */
            .news-pagination > a:hover,
            .news-pagination .pagination a:hover,
            .news-pagination li a:hover {
                color: #dc2626;
                border-color: #fecaca;
                background: #fef2f2;
                transform: translateY(-1px);
            }

    /* Trang hiện tại */
    .news-pagination .active,
    .news-pagination .current,
    .news-pagination li.active a,
    .news-pagination li.active span {
        color: #ffffff !important;
        background: #dc2626 !important;
        border-color: #dc2626 !important;
        box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
    }

    /* Disabled */
    .news-pagination .disabled,
    .news-pagination li.disabled a,
    .news-pagination li.disabled span {
        color: #94a3b8 !important;
        background: #f8fafc !important;
        border-color: #e2e8f0 !important;
        cursor: not-allowed;
        pointer-events: none;
        box-shadow: none;
    }

    /* Nút Đầu / Trước / Sau / Cuối */
    .news-pagination .page-nav {
        padding: 0 16px;
    }

/* Mobile */
@media (max-width: 640px) {

    .news-pagination .pagination,
    .news-pagination ul {
        gap: 6px;
    }

        .news-pagination > a,
        .news-pagination > span,
        .news-pagination .pagination a,
        .news-pagination .pagination span,
        .news-pagination li a,
        .news-pagination li span {
            min-width: 38px;
            height: 38px;
            padding: 0 11px;
            font-size: 13px;
            border-radius: 9px;
        }
}

/* ================================ END PAGINATION =============================== */
