/* Minification failed. Returning unminified contents.
(2,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(4,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(5,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(6,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(7,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(8,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(9,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(10,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(11,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(12,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(13,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(14,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(15,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(16,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(17,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(27,22): run-time error CSS1039: Token not allowed after unary operator: '-bg-body'
(28,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(56,35): run-time error CSS1039: Token not allowed after unary operator: '-border'
(70,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(78,21): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(82,26): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(90,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(95,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(124,39): run-time error CSS1039: Token not allowed after unary operator: '-border'
(212,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(224,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(229,30): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(249,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(276,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(283,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(298,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(315,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(322,34): run-time error CSS1039: Token not allowed after unary operator: '-border'
(330,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(344,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(351,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(366,21): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(376,22): run-time error CSS1039: Token not allowed after unary operator: '-bg-card'
(378,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(420,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(433,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(443,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(475,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(496,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(545,33): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(556,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(565,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(579,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(591,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(604,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(613,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(650,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(664,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(667,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(672,26): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(674,28): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(690,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(720,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(738,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(755,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(762,26): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(764,28): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(771,32): run-time error CSS1039: Token not allowed after unary operator: '-border'
(773,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(873,37): run-time error CSS1039: Token not allowed after unary operator: '-border'
(1530,32): run-time error CSS1039: Token not allowed after unary operator: '-border'
(1800,32): run-time error CSS1039: Token not allowed after unary operator: '-border'
(1836,33): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(1904,32): run-time error CSS1039: Token not allowed after unary operator: '-border'
 */
:root {
    --bg-body: #f7f3ea;
    --bg-card: #ffffff;
    --accent: #c0392b;
    --accent-soft: #e67e22;
    --ink: #2c2c34;
    --muted: #7a756b;
    --border: #e0d6c7;
    --color-bg: #0f1115;
    --color-panel: #181b22;
    --color-border: #3b2a16;
    --color-accent: #c89b3c;
    --color-accent-soft: #f1d8a8;
    --color-text: #f5f5f5;
    --color-text-muted: #b3b3b3;
    --radius-lg: 14px;
    --radius-md: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto;
    background: var(--bg-body);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.message-validate {
    color: red !important
}
/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(247,243,234,.92);
    border-bottom: 1px solid var(--border);
}
/* ===== NAV DÙNG CHUNG ===== */
.site-nav {
    display: flex;
    gap: 14px;
    font-size: 14px;
    align-items: center;
}

/* Link style chung */
.nav-link {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--ink);
    white-space: nowrap;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

    .nav-link:hover {
        background: rgba(0,0,0,.05);
        color: var(--ink);
    }

    .nav-link.is-active {
        background: var(--ink);
        color: #fff;
    }

/* Nút toggle mobile */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 20px;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--ink);
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px) {

    .header-inner {
        gap: 10px;
    }

    /* show nút toggle, ẩn nav mặc định */
    .nav-toggle {
        display: block;
    }

    .article-shell {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* nav chuyển thành menu dọc, phủ dưới header */
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        padding: 8px 16px 10px;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .25s ease, opacity .18s ease;
        z-index: 15;
    }

        /* khi mở */
        .site-nav.is-open {
            max-height: 300px; /* tuỳ số lượng menu */
            opacity: 1;
            pointer-events: auto;
        }

    /* link mobile full width, dễ bấm */
    .nav-link {
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 14px;
    }

        .nav-link.is-active {
            background: #111;
            color: #fff;
        }

    /* search thu gọn tí */
    .nav-actions {
        margin-left: auto;
    }

    .nav-search input {
        width: 90px;
    }
}

@media(max-width:520px) {
    .header-inner {
        padding-inline: 10px;
    }
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 11px;
    color: var(--muted);
}

.main-nav {
    display: flex;
    gap: 14px;
    font-size: 14px;
}

    .main-nav a {
        padding: 6px 10px;
        border-radius: 999px;
        color: var(--muted);
        white-space: nowrap;
    }

        .main-nav a.is-active {
            background: var(--ink);
            color: #fff;
        }

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===== NAV SEARCH (MERGED - loại bỏ duplicate) ===== */
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--muted);
}

    .nav-search input {
        border: none;
        outline: none;
        background: transparent;
        font-size: 13px;
        width: 180px;
    }

.nav-search-icon {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(0,1.3fr);
    gap: 24px;
    margin-top: 24px;
    padding: 22px 20px;
    border-radius: 18px;
    background: #fffdf8;
    border: 1px solid var(--border);
}

.hero-kicker {
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.25;
}

.hero-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.hero-summary {
    font-size: 14px;
    color: #514a3f;
    max-width: 480px;
    margin-bottom: 16px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.hero-right {
    border-left: 1px dashed var(--border);
    padding-left: 18px;
}

.hero-right-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 8px;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-item {
    padding: 7px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

    .topic-item span:last-child {
        color: var(--muted);
        font-size: 12px;
    }

/* GRID BÀI VIẾT */
.section-title {
    margin: 26px 0 10px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

    .section-title small {
        font-size: 12px;
        color: var(--ink);
    }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-thumb {
    position: relative;
    padding-top: 60%;
    background: #ddd;
}

    .news-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-body {
    padding: 12px 13px 14px;
}

.news-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff5ea;
    color: #b45b1c;
    margin-bottom: 6px;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.news-meta {
    font-size: 11px;
    color: var(--muted);
}
/* =========== ARTICLE DETAIL LAYOUT =========== */
.article-shell {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0,2.1fr) minmax(0,1fr);
    gap: 32px;
}

/* breadcrumb */
.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    padding: 8px 15px;
    margin-bottom: 20px;
    list-style: none;
    background-color: #f5f5f5;
    border-radius: 4px
}

    .breadcrumb a {
        color: var(--muted);
    }

    .breadcrumb > li {
        display: inline-block
    }

        .breadcrumb > li + li:before {
            padding: 0 5px;
            color: #ccc;
            content: "/"
        }

    .breadcrumb > .active {
        color: #777
    }


/* tiêu đề bài viết */
.article-hero h1 {
    font-size: 30px;
    line-height: 1.25;
    margin: 4px 0 10px;
}

/* meta trên đầu: tác giả – ngày – thời lượng đọc */
.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

/* tag chuyên mục */
.badge-cat {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fff5ea;
    color: #b45b1c;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}
/* ảnh cover */
.article-cover {
    margin: 14px 0 18px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #ddd;
}

    .article-cover img {
        width: 100%;
        height: auto;
        display: block;
    }

/* đoạn lead (mở bài) */
.article-lead {
    font-size: 15px;
    color: #4b4337;
    margin-bottom: 18px;
}

/* thân bài */
.article-body {
    font-size: 15px;
    color: #3a342b;
}

    .article-body h2 {
        font-size: 20px;
        margin: 18px 0 8px;
    }

    .article-body h3 {
        font-size: 17px;
        margin: 16px 0 6px;
    }

    .article-body p {
        margin: 8px 0;
    }

    .article-body ul {
        padding-left: 20px;
        margin: 6px 0 10px;
    }

    .article-body li {
        margin-bottom: 4px;
    }
/* trích dẫn */
.article-quote {
    margin: 18px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--accent-soft);
    background: #fffef9;
    font-style: italic;
    color: #5b5145;
    border-radius: 8px;
}

/* chia sẻ bài viết */
.article-share {
    margin-top: 22px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}
/* cột phải */
.article-aside {
    font-size: 14px;
}

/* box tác giả */
.author-box {
    background: #fffdf8;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 14px 14px 16px;
    margin-bottom: 18px;
}

.author-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.author-role {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.author-desc {
    font-size: 13px;
    color: #4b4337;
}

/* các block phụ bên phải */
.aside-block {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 12px 14px 14px;
    margin-bottom: 16px;
}

.aside-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 8px;
}

.aside-list {
    list-style: inside;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

    .aside-list li {
        margin-bottom: 6px;
    }

    .aside-list a {
        color: #333;
    }
/* ============= LIST TIN MỚI ============= */

.news-list-header {
    margin-top: 24px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.news-list-title {
    font-size: 24px;
    font-weight: 700;
}

.news-list-sub {
    font-size: 13px;
    color: var(--muted);
}

/* filter chips */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-chip {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 12px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}

    .filter-chip.is-active {
        background: var(--ink);
        color: #fff;
        border-color: var(--ink);
    }

/* layout list: main + aside */
.news-list-shell {
    display: grid;
    grid-template-columns: minmax(0,2.2fr) minmax(0,1fr);
    gap: 26px;
}

/* card dạng hàng */
.news-row {
    display: flex;
    gap: 14px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 14px;
}

.news-row-thumb {
    flex: 0 0 180px;
    position: relative;
    background: #ddd;
}

    .news-row-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-row-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-row-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 4px;
}

.news-row-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.news-row-excerpt {
    font-size: 13px;
    color: #554d43;
    margin-bottom: 6px;
}

.news-row-meta {
    font-size: 11px;
    color: var(--muted);
}


/* pagination */
.pagination {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
}

.page-btn {
    min-width: 30px;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    text-align: center;
    cursor: pointer;
}

    .page-btn.is-current, .page-btn.active {
        background: var(--ink);
        color: #fff;
        border-color: var(--ink);
    }

/* FOOTER MINI */
.mini-footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
/* Container chung */
.site-footer {
    padding: 50px 20px 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    background-color: transparent; /* Theo theme trang web */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Chia 2 cột đều nhau */
    gap: 40px;
}

/* Kiểu chữ tiêu đề */
.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: inherit;
}

/* Danh sách link */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        text-decoration: none;
        font-size: 14px;
        color: #666;
        transition: all 0.3s ease;
        display: inline-block;
    }

/* Hover Effect: Trượt sang phải và đổi màu */
.footer-links a:hover {
    color: #007aff; /* Màu xanh đặc trưng Apple/Sfone */
    transform: translateX(5px);
}

.footer-copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 13px;
    color: #999;
}

/* Tương thích Dark Mode hệ thống */
@media (prefers-color-scheme: dark) {
    .site-footer {
        border-top-color: rgba(255,255,255,0.1);
    }

    .footer-links a {
        color: #aaa;
    }

        .footer-links a:hover {
            color: #58a6ff;
        }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột trên mobile */
        text-align: center;
    }

    .footer-links a:hover {
        transform: none; /* Tắt hiệu ứng trượt trên cảm ứng */
    }
}

/* RESPONSIVE */
@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        border-left: none;
        border-top: 1px dashed var(--border);
        padding-left: 0;
        padding-top: 14px;
    }

    .main-nav {
        display: none; /* thu gọn – nếu cần có thể làm menu mobile riêng */
    }
}

@media(max-width:720px) {
    .news-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .article-hero h1 {
        font-size: 24px;
    }
}

@media(max-width:520px) {
    .header-inner {
        padding-inline: 10px;
    }

    .hero {
        padding: 18px 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .nav-search input {
        width: 90px;
    }
}
/* ==========================
   BÓI SIM – BLOCK RIÊNG
   ========================== */

/* Wrapper */
.boi-sim-page {
    padding: 40px 0 60px;
}

/* Container riêng, tránh đụng .container chung */
.boi-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.boi-header {
    text-align: center;
    margin-bottom: 30px;
}

    .boi-header h1 {
        font-size: 26px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .boi-header .subtitle {
        font-size: 14px;
    }

/* Form */
.boi-form {
    border-radius: 14px;
    padding: 18px 18px 12px;
    margin-bottom: 25px;
}

.boi-label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

.boi-form form {
    margin: 0;
}

/* Hàng chính: sim + nút */
.boi-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.boi-input {
    flex: 1 1 260px;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.boi-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

/* Lưới thông tin cá nhân */
.boi-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 5px;
}

.boi-form-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.boi-input-small {
    width: 100%;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}

/* Note */
.boi-note {
    margin-top: 6px;
    font-size: 12px;
}

/* Panel chung */
.panel {
    border-radius: 14px;
    padding: 18px 18px 16px;
    margin-bottom: 20px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.panel-step {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.panel-header h2 {
    font-size: 17px;
    margin: 0;
}

.panel-subtitle {
    font-size: 12px;
}

/* Tổng quan */
.summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
    gap: 18px;
}

.summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.score-main {
    font-size: 30px;
    font-weight: 700;
}

.score-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.score-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
}

.summary-text p {
    font-size: 13px;
    margin-bottom: 8px;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

    .summary-list li {
        margin-bottom: 4px;
    }

/* 2 cột dưới */
.boi-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Kinh Dịch */
.kd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.kd-item {
    border-radius: 10px;
    padding: 10px;
}

.kd-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.kd-value {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
}

.kd-brief {
    margin-top: 4px;
    font-size: 12px;
}

/* Năng lượng số */
.energy-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.energy-row {
    border-radius: 10px;
    padding: 8px 10px;
}

.energy-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.energy-percent {
    font-weight: 600;
}

.energy-bar {
    position: relative;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 5px;
}

.energy-fill {
    height: 100%;
    border-radius: inherit;
}

/* Ngũ Hành – Du Niên – CCCD grids */
.boi-extra-panels {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nguhanh-grid,
.dunien-grid,
.cccd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.nguhanh-item,
.dunien-item,
.cccd-item {
    border-radius: 10px;
    padding: 10px;
}

.nh-label,
.dn-label,
.cc-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nh-value,
.dn-value,
.cc-value {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
}

.nh-note,
.energy-note {
    margin-top: 4px;
    font-size: 12px;
}

/* RESPONSIVE cho block bói sim */
@media (max-width: 992px) {
    .boi-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nguhanh-grid,
    .dunien-grid,
    .cccd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .score-circle {
        margin: 0 auto 10px;
    }

    .boi-two-columns {
        grid-template-columns: 1fr;
    }

    .kd-grid {
        grid-template-columns: 1fr;
    }

    .boi-form-grid {
        grid-template-columns: 1fr;
    }

    .nguhanh-grid,
    .dunien-grid,
    .cccd-grid {
        grid-template-columns: 1fr;
    }
    .header-inner {
        gap: 10px;
        padding: 8px 10px;
    }

    .brand {
        min-width: 0;
        flex: 1;
        gap: 8px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }

        .brand-mark img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .brand-text {
        min-width: 0;
    }

    .brand-title {
        font-size: 15px;
        line-height: 1.2;
        font-weight: 700;
        /* cho phép xuống dòng */
        white-space: normal;
        /* tránh bị tràn */
        overflow: hidden;
    }

    /* Ẩn slogan mobile */
    .brand-sub {
        display: none;
    }

    .nav-actions {
        display: none
    }
                
    .nav-toggle {
        flex-shrink: 0;
    }
}
/* THEME SÁNG ĐỎ CHO BÓI SIM */

.boi-sim-page.light .boi-header h1 {
    color: #b80000;
}

.boi-sim-page.light .boi-header .subtitle {
    color: #555;
}

.boi-sim-page.light .boi-form {
    background: #ffffff;
    border: 1px solid #ffb3b3;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.boi-sim-page.light .boi-label,
.boi-sim-page.light .boi-note {
    color: #777;
}

.boi-sim-page.light .boi-input,
.boi-sim-page.light .boi-input-small {
    background: #ffffff;
    border: 1px solid #d2d2d9;
    color: #222;
}

    .boi-sim-page.light .boi-input::placeholder,
    .boi-sim-page.light .boi-input-small::placeholder {
        color: #9898a3;
    }

.boi-sim-page.light .boi-btn {
    background: linear-gradient(135deg, #d10000, #ff6a6a);
    color: #fff;
}

/* Panel + tag + energy màu sáng */
.boi-sim-page.light .panel {
    background: #ffffff;
    border: 1px solid #ffb5b5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.boi-sim-page.light .panel-step {
    border-color: #d10000;
    color: #d10000;
}

.boi-sim-page.light .tag {
    color: #b80000;
    border-color: #ffbaba;
    background: #fff2f2;
}

.boi-sim-page.light .tag-good {
    background: #eafaf2;
    border-color: #7dd7a9;
    color: #1c6b40;
}

.boi-sim-page.light .energy-bar {
    background: #f0e6e6;
}

.boi-sim-page.light .energy-fill {
    background: linear-gradient(90deg,#d10000,#ff7575);
}

.boi-sim-page.light .kd-item,
.boi-sim-page.light .energy-row,
.boi-sim-page.light .nguhanh-item,
.boi-sim-page.light .dunien-item,
.boi-sim-page.light .cccd-item {
    background: #fff8f8;
    border: 1px solid #ffd6d6;
}

.boi-sim-page.light .kd-label,
.boi-sim-page.light .nh-label,
.boi-sim-page.light .dn-label,
.boi-sim-page.light .cc-label {
    color: #777;
}

.boi-sim-page.light .kd-value,
.boi-sim-page.light .nh-value,
.boi-sim-page.light .dn-value,
.boi-sim-page.light .cc-value {
    color: #b80000;
}

.boi-sim-page.light .nh-good,
.boi-sim-page.light .dn-good {
    color: #1c6b40;
}

.boi-sim-page.light .score-circle {
    background: radial-gradient(circle, #fffafa 0, #ffe3e3 75%);
    border-color: #ff8a8a;
}
/* =========================================================
   MOBILE OPTIMIZE - KIEN THUC PHONG THUY
   Dán cuối file style.css để override CSS cũ
   ========================================================= */

/* Chống tràn ngang toàn trang */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.site-main,
.wrap,
.list-layout,
.grid,
.news-list-shell,
.news-row,
.news-row a,
.news-row-body {
    min-width: 0;
}

/* Ảnh không bị méo */
img {
    max-width: 100%;
    height: auto;
}

/* =========================
   TABLET / MOBILE CHUNG
   ========================= */
@media (max-width: 900px) {

    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-inner {
        position: relative;
        padding: 8px 12px;
        gap: 10px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        overflow: hidden;
    }

        .brand-mark img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

    .brand-text {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-title {
        font-size: 15px;
        line-height: 1.2;
        letter-spacing: .03em;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .brand-sub {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 10px;
        flex: 0 0 38px;
        background: #fffdf8;
    }

    .site-nav {
        top: 100%;
        left: 10px;
        right: 10px;
        border: 1px solid var(--border);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 14px 28px rgba(0,0,0,.08);
        background: #fffdf8;
    }

        .site-nav.is-open {
            max-height: 380px;
        }

    .nav-link {
        width: 100%;
        padding: 11px 12px;
        border-radius: 10px;
        font-size: 14px;
    }

    /* Layout danh sách chuyển thành 1 cột */
    .news-list-shell {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

        .news-list-shell aside {
            order: 2;
        }

    .grid {
        order: 1;
    }

    .aside-block {
        margin-top: 6px;
    }
}

/* =========================
   MOBILE 768PX
   ========================= */
@media (max-width: 768px) {

    .breadcrumb {
        margin-top: 10px;
        margin-bottom: 12px;
        padding: 8px 10px;
        font-size: 12px;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .breadcrumb > li {
            white-space: nowrap;
        }

    .author-hero {
        display: none;
    }

    .filter-row {
        margin-bottom: 10px;
    }

    .news-row {
        border-radius: 14px;
        margin-bottom: 12px;
    }

        /* Quan trọng: override inline style trong HTML */
        .news-row > a {
            display: flex !important;
            flex: 1 1 auto !important;
            gap: 10px !important;
            min-width: 0;
        }

    .news-row-thumb {
        flex: 0 0 116px;
        width: 116px;
        min-height: 88px;
    }

    .news-row-body {
        padding: 9px 10px 9px 0;
        min-width: 0;
    }

    .news-row-cat {
        font-size: 10px;
        line-height: 1.25;
        letter-spacing: .06em;
        margin-bottom: 4px;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-row-title {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-row-excerpt {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-row-meta {
        font-size: 10.5px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .aside-block {
        padding: 12px;
        border-radius: 14px;
    }

    .aside-title {
        font-size: 12px;
    }

    .aside-list {
        font-size: 13px;
        list-style-position: outside;
        padding-left: 16px;
    }

    .pagination {
        justify-content: center;
        margin-top: 16px;
    }

    .page-btn {
        min-width: 34px;
        padding: 8px 10px;
    }
}

/* =========================
   MOBILE NHỎ 520PX
   ========================= */
@media (max-width: 520px) {

    .page {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 28px;
    }

    .site-header {
        background: rgba(247,243,234,.96);
    }

    .header-inner {
        padding: 7px 10px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brand-title {
        font-size: 14px;
        line-height: 1.18;
        letter-spacing: .02em;
    }

    .nav-toggle {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .news-row {
        background: #fffdf8;
    }

        .news-row > a {
            gap: 9px !important;
        }

    .news-row-thumb {
        flex: 0 0 104px;
        width: 104px;
        min-height: 82px;
    }

    .news-row-body {
        padding: 8px 9px 8px 0;
    }

    .news-row-title {
        font-size: 13.5px;
        line-height: 1.32;
    }

    .news-row-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .news-row-meta {
        font-size: 10px;
    }
}

/* =========================
   MOBILE RẤT NHỎ 380PX
   ========================= */
@media (max-width: 380px) {

    .brand-title {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }

    .news-row-thumb {
        flex: 0 0 92px;
        width: 92px;
        min-height: 76px;
    }

    .news-row-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .news-row-excerpt {
        display: none;
    }

    .news-row-meta {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
}

/* =========================================================
   ARTICLE DETAIL MOBILE OPTIMIZE
   Tối ưu bố cục trang bài viết chi tiết
   Dán cuối file style.css
   ========================================================= */

/* Khung bài viết đọc dễ hơn trên desktop */
.article-shell {
    align-items: start;
}

    .article-shell > article {
        min-width: 0;
        background: #fffdf8;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 22px 22px 26px;
    }

.article-aside {
    min-width: 0;
}

/* Tiêu đề bài viết */
.article-hero h1 {
    max-width: 820px;
    letter-spacing: -0.02em;
}

/* Meta phía trên */
.article-meta-top {
    row-gap: 6px;
}

/* Ảnh cover */
.article-cover {
    margin-top: 16px;
    margin-bottom: 20px;
}

    .article-cover img {
        width: 100%;
        display: block;
        object-fit: cover;
    }

/* Lead nếu có nội dung */
.article-lead:not(:empty) {
    padding: 12px 14px;
    background: #fff8ed;
    border-left: 3px solid var(--accent-soft);
    border-radius: 10px;
    line-height: 1.65;
}

/* Nội dung bài viết */
.article-body {
    line-height: 1.75;
    word-break: break-word;
    overflow-wrap: anywhere;
}

    .article-body p {
        margin: 0 0 13px;
    }

    .article-body a {
        color: #b45b1c;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .article-body abbr {
        text-decoration: none;
        font-weight: 600;
        color: #8a3d17;
    }

    /* Xử lý ảnh / table trong nội dung bài */
    .article-body img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 12px auto;
        border-radius: 12px;
    }

    .article-body table {
        width: 100% !important;
        max-width: 100%;
        border-collapse: collapse;
        margin: 16px 0;
    }

    .article-body table,
    .article-body tbody,
    .article-body tr,
    .article-body td {
        max-width: 100%;
    }

    .article-body td {
        padding: 0;
    }

    .article-body figure {
        margin: 16px 0;
    }

    .article-body iframe,
    .article-body video {
        max-width: 100%;
    }

/* Box chia sẻ */
.article-share {
    padding-top: 18px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.share-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Aside nhìn chắc hơn */
.author-box,
.article-aside .aside-block {
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.author-desc {
    line-height: 1.65;
}

    .author-desc p {
        margin: 0 0 8px;
    }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 900px) {

    .article-shell {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 18px;
    }

        .article-shell > article {
            padding: 20px 18px 24px;
            border-radius: 16px;
        }

    .article-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

        .author-box,
        .article-aside .aside-block {
            margin-bottom: 0;
        }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {

    .sitemap {
        margin-top: 8px;
    }

    .breadcrumb {
        display: flex;
        gap: 0;
        align-items: center;
        overflow-x: auto;
        white-space: nowrap;
        padding: 8px 10px;
        margin-bottom: 12px;
        scrollbar-width: none;
    }

        .breadcrumb::-webkit-scrollbar {
            display: none;
        }

        .breadcrumb > li {
            flex: 0 0 auto;
        }

    .article-shell {
        margin-top: 12px;
        gap: 16px;
    }

        .article-shell > article {
            padding: 16px 14px 20px;
            border-radius: 15px;
        }

    .badge-cat {
        font-size: 10px;
        padding: 3px 8px;
    }

    .article-hero h1 {
        font-size: 24px;
        line-height: 1.28;
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .article-meta-top {
        font-size: 11.5px;
        gap: 6px;
        line-height: 1.45;
    }

    .article-cover {
        margin: 13px -2px 16px;
        border-radius: 14px;
    }

    .article-lead {
        font-size: 14px;
        line-height: 1.65;
    }

    .article-body {
        font-size: 15px;
        line-height: 1.72;
    }

        .article-body p {
            margin-bottom: 12px;
        }

        .article-body h2 {
            font-size: 20px;
            line-height: 1.35;
            margin-top: 22px;
            margin-bottom: 10px;
        }

        .article-body h3 {
            font-size: 17px;
            line-height: 1.4;
        }

        /* Quan trọng: table trong bài viết không gây tràn mobile */
        .article-body table {
            display: block;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

            .article-body table img {
                width: 100%;
                max-width: 100%;
                height: auto;
            }

    .article-share {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: stretch;
        margin-top: 18px;
    }

        .article-share span {
            grid-column: 1 / -1;
            font-size: 13px;
        }

    .share-btn {
        width: 100%;
        border-radius: 10px;
        padding: 9px 10px;
        font-size: 13px;
        background: #fff;
    }

    .article-aside {
        grid-template-columns: 1fr;
        gap: 12px;
    }

        .author-box,
        .article-aside .aside-block {
            border-radius: 15px;
            padding: 13px 14px;
        }

    .author-name {
        font-size: 15px;
    }

    .author-role {
        font-size: 12px;
    }

    .author-desc {
        font-size: 13px;
    }

    .aside-list {
        list-style-position: outside;
        padding-left: 18px;
        line-height: 1.55;
    }

        .aside-list li {
            margin-bottom: 8px;
        }
}

/* =========================================================
   MOBILE NHỎ
   ========================================================= */
@media (max-width: 520px) {

    .article-shell > article {
        padding: 14px 12px 18px;
        border-radius: 14px;
    }

    .article-hero h1 {
        font-size: 21px;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }

    .article-meta-top {
        font-size: 11px;
    }

        .article-meta-top span:nth-child(2),
        .article-meta-top span:nth-child(4) {
            display: none;
        }

        .article-meta-top span {
            display: inline-flex;
            padding: 3px 7px;
            border-radius: 999px;
            background: #fff8ed;
            border: 1px solid #f0dfc8;
        }

    .article-cover {
        margin-left: -4px;
        margin-right: -4px;
        border-radius: 13px;
    }

    .article-body {
        font-size: 14.5px;
        line-height: 1.72;
    }

        .article-body p {
            margin-bottom: 11px;
        }

        .article-body img {
            border-radius: 10px;
        }

    .article-share {
        grid-template-columns: 1fr;
    }

    .share-btn {
        justify-content: center;
    }

    .author-box,
    .article-aside .aside-block {
        padding: 12px;
    }
}

/* =========================================================
   MOBILE RẤT NHỎ
   ========================================================= */
@media (max-width: 380px) {

    .article-hero h1 {
        font-size: 20px;
    }

    .article-body {
        font-size: 14px;
    }

    .article-meta-top span {
        font-size: 10.5px;
        padding: 3px 6px;
    }
}
