﻿*,
*::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;
}