/* =========================================================
   PENTAFLOSS - NEWS PAGE
   CSS RIÊNG CHO TRANG BẢN TIN
   ---------------------------------------------------------
   - Không chỉnh Header
   - Không chỉnh Footer
   - Hỗ trợ tiếng Việt Unicode
   - Font an toàn, không lỗi dấu
========================================================= */


/* =========================================================
   1. FONT + NỀN CHUNG
========================================================= */

.news-page {
    width: 100%;
    margin: 0;
    padding: 0;

    background: #f4fbff;
    color: #16386d;
    font-family: "Be Vietnam Pro", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* Đảm bảo các phần tử bên trong không tự đổi font */

.news-page h1,
.news-page h2,
.news-page h3,
.news-page h4,
.news-page p,
.news-page a,
.news-page span,
.news-page button {
    font-family: "Be Vietnam Pro", sans-serif;
}


/* =========================================================
   2. CONTAINER
========================================================= */

.news-container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   3. BANNER BẢN TIN
========================================================= */

.news-hero {
    width: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #dff4ff;

    line-height: 0;
    font-size: 0;
}

.news-hero img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: contain;
}


/* =========================================================
   4. INTRO
========================================================= */

.news-intro {
    width: 100%;

    padding: 62px 0 35px;

    text-align: center;
}


.news-label {
    display: inline-block;

    margin: 0;

    color: #0757b8;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
    line-height: 1.4;
}


.news-mini-title {
    display: inline-block;

    margin: 0;

    color: #0757b8;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
    line-height: 1.4;
}


/* Tiêu đề chính */

.news-intro h1 {
    margin: 12px 0 15px;

    color: #123c79;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 38px;
    font-weight: 800;

    line-height: 1.3;

    letter-spacing: -0.3px;
}


/* Dòng chữ màu xanh */

.news-intro h1 span {
    color: #0a70df;

    font-family: "Be Vietnam Pro", sans-serif;
}


/* Mô tả */

.news-intro p {
    width: 720px;
    max-width: 100%;

    margin: 0 auto;

    color: #647b97;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 15px;
    font-weight: 400;

    line-height: 1.8;
}


/* =========================================================
   5. CATEGORY
========================================================= */

.news-category {
    width: 100%;

    padding: 5px 0 35px;
}


.news-category-list {
    display: flex;

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

    flex-wrap: wrap;

    gap: 10px;
}


.news-category-btn {
    display: inline-flex;

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

    min-height: 40px;

    padding: 10px 20px;

    border: 1px solid #d8eaf8;
    border-radius: 30px;

    background: #ffffff;

    color: #476889;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 13px;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;

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


.news-category-btn:hover,
.news-category-btn.active {
    background: #0757b8;

    border-color: #0757b8;

    color: #ffffff;

    transform: translateY(-1px);
}


/* =========================================================
   6. SECTION
========================================================= */

.news-featured,
.news-list {
    width: 100%;

    padding: 35px 0 65px;
}


/* =========================================================
   7. SECTION HEADING
========================================================= */

.news-section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 25px;
}


.news-section-heading h2 {
    margin: 6px 0 0;

    color: #123c79;

    font-family:"Be Vietnam Pro", sans-serif;
    font-size: 28px;
    font-weight: 800;

    line-height: 1.35;

    letter-spacing: -0.2px;
}


.news-section-heading > p {
    max-width: 390px;

    margin: 0;

    color: #6a819a;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 13px;
    font-weight: 400;

    line-height: 1.7;
}


/* =========================================================
   8. FEATURED ARTICLE
========================================================= */

.featured-news-card {
    display: grid;

    grid-template-columns: 230px 1fr;

    align-items: center;

    gap: 35px;

    padding: 32px;

    background: #ffffff;

    border: 1px solid #e0eef8;
    border-radius: 28px;

    box-shadow:
        0 12px 35px rgba(54, 125, 181, 0.08);
}


/* Ô icon */

.featured-news-icon {
    min-height: 205px;

    display: flex;

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

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #dff5ff,
            #effcff
        );

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 75px;

    line-height: 1;
}


/* =========================================================
   9. TAG BÀI VIẾT
========================================================= */

.article-tag {
    display: inline-block;

    margin: 0;

    color: #0871d9;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 11px;
    font-weight: 800;

    line-height: 1.4;

    letter-spacing: 0.8px;
}


/* =========================================================
   10. FEATURED TITLE
========================================================= */

.featured-news-content h3 {
    margin: 10px 0 12px;

    color: #153d76;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 24px;
    font-weight: 800;

    line-height: 1.45;

    letter-spacing: -0.2px;
}


/* Featured paragraph */

.featured-news-content p {
    max-width: 720px;

    margin: 0 0 18px;

    color: #667e98;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;

    line-height: 1.75;
}


/* =========================================================
   11. READ MORE
========================================================= */

.read-more {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin: 0;

    color: #0757b8;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 13px;
    font-weight: 800;

    line-height: 1.4;

    text-decoration: none;

    transition: color 0.2s ease;
}


.read-more:hover {
    color: #003d86;
}


/* =========================================================
   12. ARTICLE GRID
========================================================= */

.article-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   13. ARTICLE CARD
========================================================= */

.article-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1eef7;
    border-radius: 23px;

    box-shadow:
        0 8px 25px rgba(52, 123, 179, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.article-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 14px 30px rgba(52, 123, 179, 0.12);
}


/* =========================================================
   14. ARTICLE CARD IMAGE / ICON AREA
========================================================= */

.article-card-top {
    width: 100%;
    height: 145px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.article-card-top span {
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 58px;

    line-height: 1;
}


/* Các màu */

.article-card-top.blue {
    background: #dff3ff;
}


.article-card-top.mint {
    background: #def8f2;
}


.article-card-top.yellow {
    background: #fff5cf;
}


.article-card-top.pink {
    background: #ffe7ee;
}


.article-card-top.purple {
    background: #eee7ff;
}


.article-card-top.orange {
    background: #ffecd9;
}


/* =========================================================
   15. ARTICLE BODY
========================================================= */

.article-card-body {
    padding: 22px 22px 24px;
}


/* Tiêu đề card */

.article-card-body h3 {
    min-height: 58px;

    margin: 9px 0 10px;

    color: #163d75;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 17px;
    font-weight: 800;

    line-height: 1.5;

    letter-spacing: -0.1px;
}


/* Nội dung card */

.article-card-body p {
    min-height: 67px;

    margin: 0 0 17px;

    color: #71859d;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 13px;
    font-weight: 400;

    line-height: 1.75;
}


/* =========================================================
   16. CTA
========================================================= */

.news-cta {
    width: 100%;

    padding: 0 0 70px;
}


.news-cta-box {
    min-height: 190px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 35px 45px;

    border: 1px solid #d7edf9;
    border-radius: 28px;

    background:
        linear-gradient(
            110deg,
            #e3f7ff,
            #eefcff
        );
}


/* CTA title */

.news-cta-box h2 {
    max-width: 650px;

    margin: 8px 0 8px;

    color: #123c79;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 24px;
    font-weight: 800;

    line-height: 1.45;

    letter-spacing: -0.2px;
}


/* CTA text */

.news-cta-box p {
    max-width: 650px;

    margin: 0;

    color: #647b95;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 13px;
    font-weight: 400;

    line-height: 1.7;
}


/* =========================================================
   17. CTA BUTTON
========================================================= */

.news-cta-button {
    flex-shrink: 0;

    display: inline-flex;

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

    min-height: 44px;

    padding: 13px 21px;

    border-radius: 28px;

    background: #0757b8;

    color: #ffffff;

    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 13px;
    font-weight: 800;

    line-height: 1.2;

    text-decoration: none;

    box-shadow:
        0 8px 18px rgba(7, 87, 184, 0.18);

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


.news-cta-button:hover {
    background: #064b9e;

    transform: translateY(-2px);
}



/* =====================================================
   FOOTER PENTAFLOSS
========================================= */

.site-footer {
    width: 100%;
    background: #ddf8f6;
    color: #111;
}


/* =========================================
   KHỐI FOOTER CHÍNH
========================================= */

.footer-inner {
    width: 90%;
    max-width: 1180px;

    min-height: 215px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.15fr
        1fr
        1fr
        1.1fr
        1.25fr;

    align-items: center;

    column-gap: 35px;
}


/* =========================================
   MASCOT
========================================= */

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-brand img {
    width: 145px;
    height: 145px;

    object-fit: contain;

    display: block;
}


/* =========================================
   MENU
========================================= */

.footer-menu {
    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 20px;
}

.footer-menu a {
    width: fit-content;

    color: #111;

    text-decoration: none;

    font-family:  "Be Vietnam Pro", sans-serif;

    font-size: 17px;

    font-weight: 800;

    line-height: 1.2;

    white-space: nowrap;

    transition: .2s;
}

.footer-menu a:hover {
    color: #0757b8;
}


/* =========================================
   NÚT MUA NGAY
========================================= */

.footer-menu .buy-button {
    display: flex;

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

    width: 125px;

    padding: 9px 15px;

    border-radius: 25px;

    background: #0757b8;

    color: white;

    font-size: 14px;

    font-weight: 800;

    box-shadow: none;
}

.footer-menu .buy-button:hover {
    background: #0b3478;

    color: white;

    transform: translateY(-2px);
}


/* =========================================
   SOCIAL
========================================= */

.footer-social {
    align-self: center;
}

.footer-social h3 {
    margin: 0 0 16px;

    color: #111;

    font-family:  "Be Vietnam Pro", sans-serif;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;
}


/* =========================================
   ICON SOCIAL
========================================= */

.social-icons {
    display: flex;

    align-items: center;

    gap: 12px;
}

.social-icons a {
    width: 42px;
    height: 42px;

    display: flex;

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

    border-radius: 50%;

    background: #0757b8;

    transition: .2s;
}

.social-icons a:hover {
    background: #0b3478;

    transform: translateY(-2px);
}

.social-icons svg {
    width: 20px;
    height: 20px;

    fill: white;

    stroke: white;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================
   COPYRIGHT
========================================= */

.footer-bottom {
    width: 90%;
    max-width: 1180px;

    margin: 0 auto;

    border-top: 1px solid rgba(11, 52, 120, .14);

    padding: 20px 0 24px;
}

.footer-bottom p {
    margin: 0;

    color: #173d76;

    font-family: "Be Vietnam Pro", sans-serif;

    font-size: 12px;

    font-weight: 500;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .footer-inner {
        grid-template-columns:
            1fr 1fr 1fr;

        row-gap: 30px;

        padding: 30px 0;
    }

    .footer-brand {
        grid-row: span 2;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .footer-inner {
        width: 88%;

        grid-template-columns: 1fr 1fr;

        gap: 25px 20px;

        padding: 30px 0;
    }

    .footer-brand {
        grid-column: 1 / -1;

        justify-content: center;
    }

    .footer-brand img {
        width: 120px;
        height: 120px;
    }

    .footer-menu a {
        font-size: 14px;
    }

    .footer-social {
        grid-column: 1 / -1;
    }

    .footer-social h3 {
        font-size: 13px;
    }

    .footer-bottom {
        width: 88%;
    }

}
/* =========================================================
   19. RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {

    .article-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .featured-news-card {
        grid-template-columns: 180px 1fr;
    }


    .news-section-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    .news-section-heading > p {
        max-width: 600px;
    }


    .news-cta-box {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   20. RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 650px) {

    .news-container {
        width: 92%;
    }


    .news-intro {
        padding-top: 42px;
    }


    .news-intro h1 {
        font-size: 28px;

        line-height: 1.35;
    }


    .news-intro p {
        font-size: 14px;

        line-height: 1.7;
    }


    .news-section-heading h2 {
        font-size: 24px;
    }


    .article-grid {
        grid-template-columns: 1fr;
    }


    .featured-news-card {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 20px;
    }


    .featured-news-icon {
        min-height: 150px;

        font-size: 60px;
    }


    .featured-news-content h3 {
        font-size: 20px;

        line-height: 1.45;
    }


    .article-card-body h3 {
        min-height: auto;
    }


    .article-card-body p {
        min-height: auto;
    }


    .news-cta-box {
        padding: 28px 24px;
    }


    .news-cta-box h2 {
        font-size: 21px;
    }


    .news-cta-button {
        width: 100%;
    }

}

/* FIX FONT CHỮ RIÊNG CHO TRANG BẢN TIN */
.news-page,
.news-page * {
    font-family: "Be Vietnam Pro", sans-serif !important;
}

/* Đồng bộ kiểu chữ cho các tiêu đề */
.news-page h1,
.news-page h2,
.news-page h3,
.news-page h4 {
    font-family: "Be Vietnam Pro", sans-serif !important;
    font-style: normal;
}

/* Đảm bảo nội dung tiếng Việt hiển thị bình thường */
.news-page p,
.news-page a,
.news-page span,
.news-page button {
    font-family: "Be Vietnam Pro", sans-serif !important;
    font-style: normal;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
    color: #0b3478;
    cursor: pointer;
}

.cart-icon {
    font-size: 23px;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;

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

    background: #e53935;
    color: white;

    font-size: 11px;
    font-weight: 700;

    border-radius: 50%;
}
.article-card-top {
    height: 218px;
    overflow: hidden;
}

.article-card-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}