:root {
    --red: #C70000;
    --red-deep: #7F0000;
    --red-darker: #4F0000;
    --gold: #F7CB24;
    --gold-strong: #EDAE12;
    --gold-light: #FFF8C9;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--red-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

* {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--red);
    overflow-x: hidden;
}

/* ── TOPBAR ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.topbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-darker), var(--red), var(--gold));
}
.topbar-logo {
    width: 182px;
    height: 22px;
    background: url(https://cdn.baohatinh.vn/assets/web/styles/img/logo.svg) no-repeat 0 0;
    text-indent: -999em;
    display: block;
}
.topbar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
}
.topbar-label:hover {
    color: var(--red);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #1877f2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}
.share-btn:hover {
    opacity: .85;
}

/* ── HERO ── */
.hero {
    background: radial-gradient(ellipse at 50% -10%, var(--red-deep) 0%, var(--red) 55%, var(--red-darker) 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 3px solid rgba(247,203,36,.4);
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(247,203,36,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247,203,36,.06) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hero-glow-1 {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(247,203,36,.25) 0%, transparent 70%);
}
.hero-glow-2 {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(247,203,36,.18) 0%, transparent 70%);
}
.hero-flags {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.hero-flags::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 220px;
    max-width: 80vw;
    background: radial-gradient(ellipse, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 45%, transparent 72%);
    z-index: -1;
}
.hero-flags img {
    width: 260px;
    max-width: 62vw;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
}
.hero-stars {
    position: relative;
    z-index: 1;
    color: var(--gold);
    font-size: 15px;
    letter-spacing: 10px;
    margin-bottom: 20px;
    text-shadow: 0 0 16px rgba(247,203,36,.7);
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(247,203,36,.5);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: clamp(30px, 5.2vw, 54px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .01em;
    max-width: 820px;
    margin: 0 auto 20px;
    text-shadow: 0 2px 30px rgba(0,0,0,.35);
    position: relative;
    z-index: 1;
}
.hero-title span {
    color: var(--gold);
}
.hero-sub {
    font-size: clamp(14px, 2vw, 17px);
    color: rgba(255,255,255,.85);
    font-weight: 400;
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}
.hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(247,203,36,.3);
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}
.hero-meta-item i {
    color: var(--gold);
}

/* ── NAV PILLS ── */
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s;
    border: 1.5px solid transparent;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.nav-pill-active {
    background: var(--gold);
    color: var(--red-darker);
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.nav-pill-outline {
    background: rgba(0,0,0,.15);
    color: var(--gold-light);
    border-color: rgba(247,203,36,.35);
}
.nav-pill-outline:hover {
    background: rgba(0,0,0,.28);
    color: #fff;
    border-color: var(--gold);
}

/* ── SECTION WRAPPERS (full red theme) ── */
.section-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px;
}

/* ── SECTION HEADING ── */
.sec-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.sec-num {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 900;
    color: var(--red-darker);
    background: var(--gold);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .05em;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.sec-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}
.sec-desc {
    font-size: 16px;
    color: #ffde00;
    line-height: 1.7;
    margin: 0 0 32px 50px;
    font-weight: bold;
}

/* ── PREAMBLE / CLOSING GLASS CARD ── */
.quote-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0,0,0,.2);
    border: 1.5px solid rgba(247,203,36,.5);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 24px;
}
.quote-badge i {
    color: var(--gold);
}
.glass-card {
    padding: 28px 32px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(247,203,36,.35);
    border-radius: 18px;
    backdrop-filter: blur(6px);
    margin-bottom: 20px;
}
.glass-card p {
    font-size: 15px;
    color: rgba(255,255,255,.92);
    line-height: 1.85;
    text-align: justify;
}
.glass-card p + p {
    margin-top: 16px;
    padding-top: 16px;
}
.glass-card p strong {
    color: var(--gold);
}

/* ── READING PROGRESS ── */
.progress-wrap {
    margin-bottom: 20px;
}
.progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 8px;
}
.progress-label i {
    color: var(--gold);
}
.progress-label strong {
    color: #fff;
    font-weight: 900;
}
.progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(247,203,36,.25);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-strong), var(--gold));
    border-radius: 999px;
    transition: width .5s ease;
}

/* ── SEARCH / FILTER BAR ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(247,203,36,.3);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}
.filter-bar .field {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.filter-bar input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 10px;
    border: 1px solid rgba(247,203,36,.4);
    background: rgba(0,0,0,.25);
    color: var(--gold-light);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}
.filter-bar input::placeholder {
    color: rgba(255,248,201,.5);
}
.filter-bar input:focus {
    border-color: var(--gold);
}
.filter-bar .field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 13px;
}
.filter-count {
    display: flex;
    align-items: center;
    padding: 0 6px;
    font-size: 12px;
    color: var(--gold-light);
    font-weight: 700;
    white-space: nowrap;
}

/* ── DOSSIER LIST (sequential accordion, Điều 1 → Điều 19, chia 3 nhóm chính thức) ── */
.dossier-group + .dossier-group {
    margin-top: 36px;
}
.dossier-group.is-hidden {
    display: none;
}
.dossier-group-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.dossier-group-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0,0,0,.28);
    border: 1.5px solid rgba(247,203,36,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.dossier-group-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    flex-shrink: 1;
}
.dossier-group-eyebrow {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gold);
    line-height: 1.3;
}
.dossier-group-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    text-transform: uppercase;
}
.dossier-group-line {
    flex: 1;
    height: 1px;
    min-width: 20px;
    background: linear-gradient(90deg, rgba(247,203,36,.15), rgba(247,203,36,.5));
}
.dossier-group-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    padding: 4px 12px;
    border: 1px solid rgba(247,203,36,.3);
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.4;
}
@media (max-width: 640px) {
    .dossier-group-count {
        display: none;
    }
}
.dossier-item {
    border-radius: 14px;
    margin-bottom: 10px;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(247,203,36,.25);
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}
.dossier-item.is-hidden {
    display: none;
}
.dossier-item:hover {
    border-color: rgba(247,203,36,.5);
}
.dossier-item.is-open {
    background: rgba(0,0,0,.3);
    border-color: var(--gold);
}
.dossier-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.dossier-node {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    color: var(--red-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.dossier-titles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.dossier-num {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
}
.dossier-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}
.dossier-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all .2s ease;
}
.dossier-item.is-read .dossier-check {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--red-darker);
}
.dossier-chevron {
    flex-shrink: 0;
    color: var(--gold);
    font-size: 13px;
    transition: transform .3s ease;
}
.dossier-item.is-open .dossier-chevron {
    transform: rotate(180deg);
}
.dossier-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}
.dossier-item.is-open .dossier-body {
    grid-template-rows: 1fr;
}
.dossier-body-inner {
    overflow: hidden;
    padding: 0 18px;
}
.dossier-item.is-open .dossier-body-inner {
    padding: 0 18px 18px 70px;
}
.dossier-body-inner p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,.85);
    text-align: justify;
}
.dossier-body-inner p + p {
    margin-top: 10px;
}

/* ── DIVIDER ── */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247,203,36,.35) 30%, rgba(247,203,36,.35) 70%, transparent);
    margin: 0;
}

/* ── FOOTER ── */
.footer {
    background: var(--red-darker);
    color: rgba(255,255,255,.6);
    padding: 40px 20px 60px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-darker), var(--red), var(--gold));
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* scrollreveal helper */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up {
    animation: fade-up .65s ease both;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

@media (max-width: 900px) {
    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .flip-grid {
        grid-template-columns: 1fr;
    }
    .flip-card {
        height: 210px;
    }
    .section-inner {
        padding: 44px 16px;
    }
    .sec-desc {
        margin-left: 0;
    }
    .filter-bar select {
        width: 100%;
    }
}
