:root {
    --main-green: #f08080;
    --dark-green: #780000;
    --light-green: #f8d7da;
    --background: #fff8f8;
    --white: #ffffff;
    --text: #3d0c11;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.top-header {
    background: var(--light-green);
    padding: 30px 0;
    text-align: center;
}

/* .top-header h1 {
    margin: 0;
    color: var(--dark-green);
} */

.top-header h1 {
    margin: 0;
    color: var(--dark-green);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.navbar {
    background: #780000;
    border-top: 1px solid #e6b8bb;
    border-bottom: 1px solid #e6b8bb;
    overflow: visible;
}


.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    overflow: visible;
}

.nav-menu > a,
.nav-menu > .dropdown {
    position: relative;
}

.nav-menu > a,
.dropdown > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    color: #d9d9d9;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;

    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.4px;
}

 .nav-menu > a:hover,
.dropdown > a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}


.nav-menu > * {
    position: relative;
}

.nav-menu > * + *::before {
    content: "|";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.35);
    font-weight: bold;
}

.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 10px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.dropdown:hover > a::after,
.dropdown:focus-within > a::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 38px;
    left: 0;
    min-width: 300px;
    background: #ffffff;
    border: 1px solid #e6b8bb;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(120, 0, 0, 0.16);
    z-index: 3000;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0s linear 0.22s;
}

.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 38px;
    width: 100%;
    height: 10px;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    color: var(--dark-green);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    border-bottom: 1px solid #f4d9dc;
    background: #ffffff;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a::after {
    content: "›";
    color: #a4161a;
    font-size: 17px;
    opacity: 0.65;
    flex-shrink: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.dropdown-content a:hover {
    background: #fff1f1;
    color: #780000;
}

.dropdown-content a:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

.main-content {
    padding: 30px 0;
}

.hero {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-left: 6px solid var(--dark-green);
    margin-bottom: 30px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.category-card {
    background: var(--white);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #b7e4c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-card h3 {
    margin-top: 0;
    color: var(--dark-green);
}

.footer {
    background: var(--main-green);
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

.category-card {
    text-decoration: none;
    color: var(--text);
    transition: 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--dark-green);
}

.article-section {
    margin-top: 35px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.article-card {
    background: white;
    border: 1px solid #b7e4c7;
    border-radius: 12px;
    padding: 18px;
}

.article-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.article-card a,
.latest-item a {
    color: var(--dark-green);
    text-decoration: none;
}

.article-card a:hover,
.latest-item a:hover {
    text-decoration: underline;
}

.latest-item {
    background: white;
    border: 1px solid #b7e4c7;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
}

.detail-page {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #b7e4c7;
}

.article-meta {
    color: #52796f;
    font-size: 14px;
}

.detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0;
}

.article-content {
    line-height: 1.8;
}

.download-link {
    display: inline-block;
    background: var(--dark-green);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
}

.user-bar {
    background: #eefaf1;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #b7e4c7;
}

.user-bar a {
    color: var(--dark-green);
    font-weight: bold;
    text-decoration: none;
}

/* .logout-btn {
    background: none;
    border: none;
    color: var(--dark-green);
    font-weight: bold;
    cursor: pointer;
} */

.user-bar a,
.logout-btn {
    color: var(--dark-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.login-box {
    max-width: 420px;
    margin: 40px auto;
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #b7e4c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.login-box h2 {
    text-align: center;
    color: var(--dark-green);
}

.login-box label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #b7e4c7;
}

.login-box button {
    width: 100%;
    margin-top: 20px;
    padding: 11px;
    border: none;
    background: var(--dark-green);
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.error-message {
    color: red;
    text-align: center;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-main,
.btn-secondary,
.btn-danger {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-main {
    background: var(--dark-green);
    color: white;
}

.btn-secondary {
    background: #d8f3dc;
    color: var(--dark-green);
}

.btn-danger {
    background: #c1121f;
    color: white;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px;
    border-bottom: 1px solid #d8f3dc;
    text-align: left;
}

.dashboard-table th {
    background: var(--main-green);
    color: var(--dark-green);
}

.danger-link {
    color: #c1121f;
}

.form-box {
    max-width: 850px;
    margin: auto;
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #b7e4c7;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--dark-green);
}

.form-control,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #b7e4c7;
    border-radius: 8px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.filter-form {
    background: white;
    border: 1px solid #b7e4c7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-form input,
.filter-form select {
    padding: 10px;
    border: 1px solid #b7e4c7;
    border-radius: 8px;
    min-width: 180px;
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #b7e4c7;
    text-decoration: none;
    color: var(--dark-green);
}

.pagination span {
    font-weight: bold;
}

.error-page {
    max-width: 600px;
    margin: 60px auto;
    background: white;
    text-align: center;
    padding: 45px 30px;
    border-radius: 16px;
    border: 1px solid #b7e4c7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.error-page h1 {
    font-size: 90px;
    margin: 0;
    color: var(--dark-green);
}

.error-page h2 {
    margin-top: 10px;
    color: var(--dark-green);
}

.error-page p {
    margin: 20px 0;
    color: #52796f;
}

.error-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.dashboard-sidebar {
    background: white;
    border: 1px solid #b7e4c7;
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.dashboard-sidebar h3 {
    margin-top: 0;
    color: var(--dark-green);
    border-bottom: 1px solid #d8f3dc;
    padding-bottom: 10px;
}

.dashboard-sidebar a {
    display: block;
    padding: 11px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: var(--dark-green);
    text-decoration: none;
    font-weight: bold;
}

.dashboard-sidebar a:hover {
    background: #d8f3dc;
}

.dashboard-content {
    min-width: 0;
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }
}

.map-placeholder {
    margin-top: 20px;
    padding: 80px 20px;
    text-align: center;
    background: #f1faee;
    border: 2px dashed #95d5b2;
    border-radius: 14px;
    color: var(--dark-green);
    font-weight: bold;
}

.home-intro-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    background: white;
    border: 1px solid #b7e4c7;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 35px;
}

.intro-text h2 {
    color: var(--dark-green);
}

.video-placeholder {
    height: 260px;
    background: #f1faee;
    border: 2px dashed #95d5b2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-green);
    font-weight: bold;
}

.lecture-slider-section {
    margin-top: 35px;
}

.lecture-slider {
    position: relative;
    height: 330px;
    overflow: hidden;
    border-radius: 18px;
    background: white;
    border: 1px solid #b7e4c7;
}

.lecture-slide {
    display: none;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: white;
}

.lecture-slide.active {
    display: block;
}

.lecture-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lecture-slide h3 {
    position: absolute;
    left: 30px;
    bottom: 25px;
    background: rgba(45, 106, 79, 0.85);
    padding: 14px 18px;
    border-radius: 10px;
}

.slider-dots {
    text-align: center;
    margin-top: 14px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #b7e4c7;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: var(--dark-green);
}

@media (max-width: 768px) {
    .home-intro-row {
        grid-template-columns: 1fr;
    }
}

.material-section {
    margin-top: 28px;
}

.material-section h3 {
    color: var(--dark-green);
    border-left: 5px solid var(--dark-green);
    padding-left: 12px;
}

.crime-chart-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 28px;
    margin-top: 25px;
}

.register-box {
    max-width: 560px;
}

.login-box ul.errorlist {
    color: #c1121f;
    padding-left: 18px;
    font-size: 14px;
}

.auth-note {
    text-align: center;
    margin-top: 18px;
}

.auth-note a {
    color: var(--dark-green);
    font-weight: bold;
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e6b8bb;
}

.profile-header {
    display: flex;
    gap: 25px;
    align-items: center;
}

.avatar-box img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--main-green);
    color: white;
    font-size: 48px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-grid {
    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;
}

.profile-grid strong {
    color: var(--dark-green);
}

.profile-table {
    margin-top: 20px;
}

.profile-row {
    display: flex;
    align-items: center;

    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.profile-row span {
    width: 180px;
    color: #666;
    font-weight: 500;
}

.profile-row strong {
    color: var(--dark-green);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.stat-card {
    background: white;
    border: 1px solid #e6b8bb;
    border-radius: 14px;
    padding: 20px;
}

.stat-card span {
    display: block;
    color: #666;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 28px;
    color: var(--dark-green);
}

.stat-card {
    background: white;
    border-left: 5px solid #780000;
}

/* =========================
   SVG Vietnam Map + Chart
   ========================= */

/* Layout giống bản đồ minh họa lớn */
.map-chart-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 24px;
    margin-top: 24px;
}

.svg-map-wrapper,
.map-side-panel {
    position: relative;
    background: #ffffff;
    border: 1px solid #e6b8bb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(120, 0, 0, 0.08);
}

/* #vietnamSvgMap {
    width: 100%;
    min-height: 980px;
}

#vietnamSvgMap svg {
    width: 100%;
    height: 980px;
    display: block;
} */

/* Tỉnh */
.province {
    stroke: #ffffff;
    stroke-width: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.province:hover,
.province.group-hover {
    filter: brightness(1.25);
    stroke: #ffd166;
    stroke-width: 2.5;
}

.province.selected {
    stroke: #ffd166;
    stroke-width: 3;
    filter: brightness(1.2);
}

/* 6 vùng */
.province.north-mountain { fill: #780000; }
.province.red-river { fill: #9d0208; }
.province.north-central { fill: #ae2012; }
.province.south-central { fill: #bb3e03; }
.province.south-east { fill: #ca6702; }
.province.mekong { fill: #ee9b00; }

.province:not(.north-mountain):not(.red-river):not(.north-central):not(.south-central):not(.south-east):not(.mekong) {
    fill: #dddddd;
}

/* Tên 34 tỉnh trên map */
.province-label {
    font-size: 5.5px;
    fill: #ffffff;
    font-weight: 700;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: middle;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.65);
    stroke-width: 1.3px;
}

/* Chú thích */
.region-legend {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.region-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #3d0c11;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-block;
}

.legend-color.north-mountain { background: #780000; }
.legend-color.red-river { background: #9d0208; }
.legend-color.north-central { background: #ae2012; }
.legend-color.south-central { background: #bb3e03; }
.legend-color.south-east { background: #ca6702; }
.legend-color.mekong { background: #ee9b00; }

/* Tooltip */
.map-tooltip {
    display: none;
    position: absolute;
    background: #3d0c11;
    color: white;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: none;
    z-index: 50;
}

/* Hoàng Sa - Trường Sa */
.island-marker {
    position: absolute;
    background: rgba(255,255,255,.96);
    border: 2px solid #780000;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: bold;
    color: #780000;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 10;
}

.island-group {
    position: absolute;
    z-index: 20;
}

.hoang-sa {
    right: 90px;
    top: 260px;
}

.truong-sa {
    right: 70px;
    top: 430px;
}

.island-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #780000;
    margin-bottom: 5px;
}

.island-marker {
    background: rgba(255,255,255,.96);
    border: 2px solid #780000;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #780000;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.map-side-panel canvas {
    margin-top: 15px;
    max-height: 380px;
}

@media (max-width: 900px) {
    .map-chart-layout {
        grid-template-columns: 1fr;
    }

    #vietnamSvgMap,
    #vietnamSvgMap svg {
        min-height: 650px;
        height: 650px;
    }

    .province-label {
        font-size: 4.5px;
    }
}

.region-detail-section {
    margin-top: 40px;
    background: white;
    border: 1px solid #e6b8bb;
    border-radius: 16px;
    padding: 24px;
}

.region-detail-section h2 {
    color: var(--dark-green);
    border-left: 6px solid var(--dark-green);
    padding-left: 12px;
}

.home-map-section {
    margin-top: 0;
    background: white;
    border: 1px solid #e6b8bb;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 4px 16px rgba(120, 0, 0, 0.06);
}

.home-map-header h2 {
    color: var(--dark-green);
    margin-bottom: 6px;
}

.home-map-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: stretch;
    margin-top: 22px;
}

.home-map-legend,
.home-map-chart,
.home-map-wrapper {
    background: #fff8f8;
    border: 1px solid #e6b8bb;
    border-radius: 14px;
    padding: 18px;
}

.home-map-wrapper {
    position: relative;
    height: 540px;
    overflow: hidden;
}

.home-map-wrapper #vietnamSvgMap {
    width: 100%;
    height: 720px;
}

.home-map-wrapper #vietnamSvgMap svg {
    width: 100%;
    height: 720px;
    display: block;
    transform: translateY(-10px);
}
.home-map-chart canvas {
    margin: 16px 0 20px;
    max-height: 280px;
}

.chart-note {
    color: #666;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .home-map-layout {
        grid-template-columns: 1fr;
    }

    .home-map-wrapper {
        height: 620px;
    }
}

.article-list .article-list-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    align-items: start;
}

.article-list .article-thumb-wrapper {
    width: 160px;
    height: 100px;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.article-list .article-thumb-wrapper img.article-thumb {
    width: 160px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e6b8bb;
    transition: transform 0.3s ease;
}

.article-list .article-thumb-wrapper:hover img.article-thumb {
    transform: scale(1.08);
}

.article-list-content h3 {
    margin-top: 0;
}

.latest-item {
    transition: all 0.25s ease;
}

.latest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(120,0,0,0.08);
}

@media (max-width: 768px) {
    .article-list .article-list-item {
        grid-template-columns: 1fr;
    }

    .article-list .article-thumb-wrapper,
    .article-list .article-thumb-wrapper img.article-thumb {
        width: 100% !important;
        height: 200px !important;
    }
}

.article-thumb {
    width: 160px !important;
    height: 100px !important;
    object-fit: cover !important;
}

.article-thumb-wrapper {
    width: 160px !important;
    height: 100px !important;
    overflow: hidden;
    display: block;
    border-radius: 10px;
}

.article-thumb:hover {
    transform: scale(1.08);
}

.article-thumb {
    width: 140px !important;
    height: 85px !important;
}

.section-title,
.article-section h2,
.category-list-title,
.home-map-header h2,
.lecture-slider-section h2 {
    text-align: center;
    text-transform: uppercase;
    color: #780000;
    font-size: 24px;
    font-weight: 800;
    margin: 35px 0 22px;
    position: relative;
}

.section-title::after,
.article-section h2::after,
.home-map-header h2::after,
.lecture-slider-section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #c1121f;
    margin: 10px auto 0;
    border-radius: 99px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.news-card {
    background: white;
    border: 1px solid #e6b8bb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(120, 0, 0, 0.06);
    transition: 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(120, 0, 0, 0.12);
}

.news-image {
    display: block;
    height: 175px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.06);
}

.news-body {
    padding: 16px 18px 18px;
}

.news-category {
    display: inline-block;
    background: #780000;
    color: white;
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 99px;
    margin-bottom: 8px;
}

.news-date {
    display: block;
    color: #777;
    margin-bottom: 8px;
}

.news-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.news-body h3 a {
    color: #780000;
    text-decoration: none;
}

.news-body h3 a:hover {
    text-decoration: underline;
}

.news-body p {
    color: #444;
    line-height: 1.55;
}

.read-more-link {
    color: #c1121f;
    font-weight: bold;
    text-decoration: none;
}

.site-footer {
    margin-top: 50px;
    background: #780000;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 30px;
    padding: 34px 0;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
    text-transform: uppercase;
    color: #fff;
}

.site-footer p {
    line-height: 1.6;
    color: #ffecec;
}

.site-footer a {
    display: block;
    color: #ffecec;
    text-decoration: none;
    margin-bottom: 8px;
}

.site-footer a:hover {
    color: #ffd166;
}

.footer-bottom {
    text-align: center;
    padding: 12px;
    background: #520000;
    color: #ffecec;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

h1, h2, h3, h4 {
    font-weight: 700;
}

.nav-menu a {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.article-section h2,
.home-map-header h2,
.lecture-slider-section h2,
.detail-page h2 {
    text-transform: uppercase;
    text-align: center;
    font-weight: 800;
    color: #780000;
}

.site-footer h3,
.site-footer h4 {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.home-map-header {
    text-align: center;
    margin-bottom: 20px;
}

.home-map-header h2 {
    margin-bottom: 8px;
}

.home-map-header p {
    margin: 0;
    color: #666;
}

/* =========================
   Vụ án điển hình - Home
   ========================= */

.case-news-section {
    margin-top: 45px;
}

/* .case-news-section > h2 {
    text-align: center;
    text-transform: uppercase;
    color: #780000;
    font-size: 24px;
    font-weight: 800;
    margin: 35px 0 22px;
    position: relative;
}

.case-news-section > h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #c1121f;
    margin: 10px auto 0;
    border-radius: 99px;
} */

.case-news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.case-featured,
.case-latest {
    background: #ffffff;
    border: 1px solid #e6b8bb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(120, 0, 0, 0.06);
}

.case-featured > h3,
.case-latest > h3 {
    text-transform: uppercase;
    color: #780000;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f4d9dc;
}

/* Tin nổi bật bên trái */
.case-featured .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

/* Tin mới nhất bên phải */
.latest-news-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.latest-news-item:last-child {
    border-bottom: none;
}

.latest-thumb {
    flex-shrink: 0;
    width: 92px;
    height: 68px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e6b8bb;
}

.latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.latest-news-item:hover .latest-thumb img {
    transform: scale(1.08);
}

.latest-content {
    flex: 1;
    min-width: 0;
}

.latest-badge {
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 8px;
    background: #c1121f;
    color: #ffffff;
    font-size: 10px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.5;
}

.latest-content a {
    display: block;
    color: #780000;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    font-size: 14px;
}

.latest-content a:hover {
    color: #c1121f;
}

.latest-content small {
    color: #888;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .case-news-layout {
        grid-template-columns: 1fr;
    }
}

.reference-section {
    margin-top: 45px;
}

/* .reference-section > h2 {
    text-align: center;
    text-transform: uppercase;
    color: #780000;
    font-size: 24px;
    font-weight: 800;
    margin: 35px 0 22px;
    position: relative;
}

.reference-section > h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #c1121f;
    margin: 10px auto 0;
    border-radius: 99px;
} */

.tag-research {
    background: #005f73 !important;
}

.tag-book {
    background: #6a4c93 !important;
}

.tag-report {
    background: #9d0208 !important;
}

.reference-section {
    margin-top: 45px;
}

.reference-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.reference-column {
    background: white;
    border: 1px solid #e6b8bb;
    border-radius: 14px;
    padding: 18px;
}

.reference-column > h3 {
    text-align: center;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 15px;
}

.reference-column .news-grid {
    grid-template-columns: 1fr;
}

.reference-column .news-image {
    height: 140px;
}

.reference-column .btn-main {
    margin-top: 12px;
}

@media(max-width: 1000px) {
    .reference-layout {
        grid-template-columns: 1fr;
    }
}

.home-section-title,
.reference-section > h2,
.case-news-section > h2,
.detail-page > h2 {
    text-align: center;
    text-transform: uppercase;
    color: #780000;
    font-size: 24px;
    font-weight: 800;
    margin: 35px 0 22px;
    position: relative;
}

.home-section-title::after,
.reference-section > h2::after,
.case-news-section > h2::after,
.detail-page > h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #c1121f;
    margin: 10px auto 0;
    border-radius: 99px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}


.banner-bar{
    width:100%;
    background:#fff;
}

.banner-image{
    display:block;
    width:100%;
    max-height:180px;
    object-fit:cover;
}

.hero{
    padding:0;
    margin-bottom:30px;
}

.hero-banner{
    width:100%;
    border-radius:12px;
    display:block;
}


.header-slider{
    position:relative;
    height:220px;
    overflow:hidden;
}

.header-track{
    position:absolute;
    inset:0;
    display:flex;
    animation:scrollHeader 40s linear infinite;
}

.header-track img{
    width:240px;      /* 8 ảnh nhỏ */
    height:220px;
    object-fit:cover;
    flex-shrink:0;
}

.header-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.35);
}

.header-brand-center{
    position:absolute;
    inset:0;
    z-index:10;

    display:flex;
    flex-direction:column;   /* logo trên, chữ dưới */
    justify-content:center;
    align-items:center;

    text-align:center;
    color:white;
}

.site-logo{
    width:90px;
    height:90px;

    border-radius:50%;
    object-fit:cover;

    background:white;
    padding:6px;

    box-shadow:0 4px 15px rgba(0,0,0,.25);

    margin-bottom:12px;
}

.header-brand-center h1{
    margin:0;

    color:#ffd700;      /* vàng #ffd166*/
    font-size:38px;
    font-weight:800;

    text-shadow:
        0 2px 8px rgba(0,0,0,.4);

    letter-spacing:1px;
}

.header-brand-center p{
    margin-top:8px;

    color:#f5f5f5;
    font-size:15px;

    text-shadow:
        0 2px 8px rgba(0,0,0,.4);
}


@keyframes scrollHeader{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-1920px);
    }
}


.footer-brand{
    display:flex;
    align-items:center;
    gap:18px;
}

.footer-logo{
    width:80px;
    height:80px;

    border-radius:50%;
    object-fit:cover;

    background:white;
    padding:6px;

    flex-shrink:0;
}

.footer-logo-column{
    display:flex;
    justify-content:center;
    align-items:center;
}

.footer-logo{
    width:90px;
    height:90px;

    border-radius:50%;
    background:white;
    padding:6px;

    object-fit:cover;
}

.site-footer{
    position: relative;
}

.footer-logo-floating{
    position: absolute;

    left: 25px;          /* chỉnh trái phải */
    top: 50%;

    transform: translateY(-50%);
}

.footer-logo{
    width: 90px;
    height: 90px;

    border-radius: 50%;
    background: white;
    padding: 6px;

    object-fit: cover;
}

.footer-logo-floating{
    left: 150px;
    top: 29%;
}

.protected-content {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.home-chart-image,
.region-chart-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
    margin: 16px 0 22px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6b8bb;
}

/* Nền hiệu ứng chỉ nằm dưới navbar và trên footer */
.body-effect-area {
    position: relative;
    background: var(--background);
    overflow: hidden;
    padding: 0;
}

.body-effect-area::before,
.body-effect-area::after {
    content: "";
    position: absolute;
    top: 0;
    width: calc((100% - 1200px) / 2);
    height: 100%;
    background: #8b0000;
    z-index: 0;
}

.body-effect-area::before {
    left: 0;
}

.body-effect-area::after {
    right: 0;
}

/* .body-effect-area .main-content {
    position: relative;
    z-index: 5;
    background: var(--background);
    min-height: 70vh;
    padding: 30px 0;
    box-shadow: 0 0 35px rgba(0,0,0,0.28);
} */

.body-effect-area .main-content {
    position: relative;
    z-index: 5;
    background: var(--background);
    min-height: 70vh;
    padding: 30px 0;
    box-shadow: 0 0 35px rgba(0,0,0,0.28);
}

.body-effect-area .side-bg {
    position: absolute;
    top: 0;
    width: calc((100% - 1200px) / 2);
    height: 100%;
    z-index: 1;
    pointer-events: none;

    background-image: url("/static/images/side-red-bg.jpg");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.body-effect-area .side-bg.left {
    left: 0;
}

.body-effect-area .side-bg.right {
    right: 0;
    transform: scaleX(-1);
}

.body-effect-area .side-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 215, 0, .95) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255, 220, 90, .75) 0 1px, transparent 2px);
    background-size: 90px 130px, 140px 180px;
    animation: goldParticles 16s linear infinite;
    opacity: .75;
}

.body-effect-area .side-bg::after {
    content: "";
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: -20%;
    height: 120%;
    background:
        linear-gradient(to top, transparent, rgba(255, 214, 80, .75), transparent) 20% 100% / 2px 45% no-repeat,
        linear-gradient(to top, transparent, rgba(255, 214, 80, .55), transparent) 55% 100% / 2px 60% no-repeat,
        linear-gradient(to top, transparent, rgba(255, 214, 80, .45), transparent) 80% 100% / 2px 38% no-repeat;
    animation: lightLines 7s ease-in-out infinite;
    opacity: .8;
}

@keyframes goldParticles {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 0 -500px, 0 -700px;
    }
}

@keyframes lightLines {
    0%, 100% {
        transform: translateY(30px);
        opacity: .35;
    }
    50% {
        transform: translateY(-35px);
        opacity: .9;
    }
}

@media (max-width: 1200px) {
    .body-effect-area .side-bg {
        display: none;
    }

    .body-effect-area {
        background: var(--background);
    }

    .body-effect-area .main-content {
        box-shadow: none;
    }
}

/* =========================
   Home Hero Banner
   ========================= */

.home-hero-banner {
    position: relative;
    min-height: 360px;
    border-radius: 22px;
    overflow: hidden;
    margin-top: -30px;
    margin-bottom: 38px;
    border-radius: 0 0 22px 22px;

    background:
        radial-gradient(circle at 18% 30%, rgba(255, 215, 0, .35), transparent 28%),
        linear-gradient(135deg, #780000 0%, #9d0208 48%, #c1121f 100%);
    box-shadow: 0 12px 32px rgba(120, 0, 0, .22);
}

.home-hero-banner::before {
    content: "★";
    position: absolute;
    right: 35px;
    top: -15px;
    color: rgba(255, 215, 0, .16);
    font-size: 190px;
    line-height: 1;
}

.home-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255,255,255,.16) 45%, transparent 70%);
    transform: translateX(-100%);
    animation: heroLightSweep 8s ease-in-out infinite;
}

.hero-drum {
    position: absolute;

    left: 450px;
    bottom: -52px;

    width: 520px;
    height: 520px;

    background-image: url("/static/images/trong_dong.png");
    background-size: contain;
    background-repeat: no-repeat;

    opacity: .1;

    z-index: 1;

    animation: drumRotate 120s linear infinite;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 214, 80, .6) 0 1px, transparent 2px);
    background-size: 95px 95px;
    opacity: .28;
    animation: heroStarsMove 18s linear infinite;
}

.home-hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    padding: 58px 58px;
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 215, 0, .18);
    border: 1px solid rgba(255, 215, 0, .55);
    color: #ffe082;
    font-weight: 700;
    margin-bottom: 16px;
}

.home-hero-content h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.18;
    text-transform: uppercase;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 3px 12px rgba(0,0,0,.35);
}

.home-hero-content p {
    max-width: 680px;
    margin: 18px 0 28px;
    font-size: 17px;
    color: #fff4f4;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: .25s ease;
}

.hero-btn.primary {
    background: #ffd700;
    color: #780000;
}

.hero-btn.secondary {
    background: rgba(255,255,255,.12);
    color: white;
    border: 1px solid rgba(255,255,255,.45);
}

.hero-btn:hover {
    transform: translateY(-3px);
}

.hero-drum {
    animation:
        drumRotate 120s linear infinite,
        drumFloat 8s ease-in-out infinite;
}

/* @keyframes drumFloat {
    0%,100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -12px;
    }
} */

@keyframes drumRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes heroLightSweep {
    0%, 60% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes heroStarsMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 -300px;
    }
}

@media (max-width: 768px) {
    .home-hero-content {
        padding: 40px 24px;
    }

    .home-hero-content h1 {
        font-size: 30px;
    }

    .home-hero-banner::before {
        font-size: 120px;
        right: 20px;
    }
}

/* =========================
   Statistics Counter
   ========================= */

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 0 42px;
    background: #ffffff;
    border: 1px solid #e6b8bb;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(120,0,0,.08);
}

.stat-card-home {
    position: relative;
    padding: 26px 18px;
    text-align: center;
    background: #fff;
}

.stat-card-home + .stat-card-home {
    border-left: 1px solid #f0c7ca;
}

.stat-card-home::before {
    content: "✦";
    display: block;
    color: #d4a017;
    font-size: 22px;
    margin-bottom: 6px;
}

.stat-card-home span {
    display: block;
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
    color: #780000;
}

.stat-card-home p {
    margin: 8px 0 0;
    color: #5f1b1f;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.stat-icon {
    margin-bottom: 14px;
}

.stat-icon i {
    font-size: 34px;
    color: #d4a017;

    animation: floatIcon 3s ease-in-out infinite;

    filter:
        drop-shadow(0 0 8px rgba(255,215,0,.35));
}

.stat-card-home:nth-child(2) .stat-icon i {
    animation-delay: .5s;
}

.stat-card-home:nth-child(3) .stat-icon i {
    animation-delay: 1s;
}

.stat-card-home:nth-child(4) .stat-icon i {
    animation-delay: 1.5s;
}

@keyframes floatIcon {
    0%,100%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-8px);
    }
}

.stat-card-home:hover .stat-icon i {
    color: #ffd700;
    transform: scale(1.15);
}

.stat-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;

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

.stat-icon::before{
    content:"";

    position:absolute;
    inset:0;

    border:2px solid rgba(255,215,0,.25);
    border-radius:50%;

    animation: spinRing 12s linear infinite;
}

@keyframes spinRing{
    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}


.breaking-news {
    display: flex;
    align-items: center;
    height: 54px;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #fff, #fff8e1);
    border: 1px solid rgba(212, 160, 23, .45);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(120, 0, 0, .1);
}

.breaking-label {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 22px;
    background: linear-gradient(135deg, #780000, #b00000);
    color: white;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
}

.breaking-label i {
    color: #ffd700;
    animation: bellShake 1.8s ease-in-out infinite;
}

.breaking-label::after {
    content: "";
    position: absolute;
    right: -18px;
    top: 0;
    border-top: 27px solid transparent;
    border-bottom: 27px solid transparent;
    border-left: 18px solid #b00000;
}

.breaking-wrapper {
    overflow: hidden;
    width: 100%;
    padding-left: 5px;
}

.breaking-track {
    display: flex;
    align-items: center;
    gap: 42px;
    white-space: nowrap;
    animation: newsScroll 35s linear infinite;
}

.breaking-track:hover {
    animation-play-state: paused;
}

.breaking-track a {
    color: #780000;
    text-decoration: none;
    font-weight: 700;
}

.breaking-track a i {
    color: #d4a017;
    margin-right: 8px;
    font-size: 12px;
}

.breaking-track a:hover {
    color: #c1121f;
}


@keyframes newsScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes bellShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(-12deg);
    }
    40% {
        transform: rotate(12deg);
    }
    60% {
        transform: rotate(-8deg);
    }
    80% {
        transform: rotate(8deg);
    }
}

/* =========================
   Scroll Animation
   ========================= */

.fade-section {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.fade-section.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay-1 {
    transition-delay: .15s;
}

.fade-delay-2 {
    transition-delay: .3s;
}

.fade-delay-3 {
    transition-delay: .45s;
}

.fade-delay-4 {
    transition-delay: .6s;
}

.fade-delay-5 {
    transition-delay: .75s;
}

.fade-delay-6 {
    transition-delay: .9s;
}

.fade-delay-7 {
    transition-delay: 1.05s;
}

.fade-delay-8 {
    transition-delay: 1.2s;
}

#backToTop {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 55px;
    height: 55px;

    border: none;
    border-radius: 50%;

    background: #780000;
    color: #ffd700;

    font-size: 20px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: .3s;

    z-index: 9999;

    box-shadow:
        0 8px 20px rgba(120,0,0,.3);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-4px);

    background: #a00000;
}

.hero-decoration {
    position: absolute;
    right: 70px;
    top: 50%;
    width: 430px;
    height: 330px;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-vietnam-map {
    position: absolute;
    right: -25px;
    top: -130px;
    width: 420px;
    height: 600px;
    z-index: 3;
    animation: mapFloat 6s ease-in-out infinite;
}

.hero-vietnam-map svg {
    width: 100%;
    height: 100%;
}

.hero-vietnam-map path {
    fill: #d00000 !important;
    stroke: rgba(255,255,255,.55);
    stroke-width: .5;
}

@keyframes mapFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =========================
   Hero Islands
   ========================= */

.hero-hoang-sa-wrapper,
.hero-truong-sa-wrapper {
    position: absolute;
    z-index: 6;
}

/* Hoàng Sa */
.hero-hoang-sa-wrapper {
    right: 115px;
    top: 190px;
}

.hero-hoang-sa {
    width: 32px;
    display: block;

    filter:
        drop-shadow(0 0 6px rgba(255,215,0,.5));
}

/* Trường Sa */
.hero-truong-sa-wrapper {
    right: 85px;
    top: 295px;
}

.hero-truong-sa {
    width: 42px;
    display: block;

    filter:
        drop-shadow(0 0 6px rgba(255,215,0,.5));
}

/* Label chung */
.hero-hoang-sa-label,
.hero-truong-sa-label {

    position: absolute;

    color: #ffd700;

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

    white-space: nowrap;

    background: rgba(120,0,0,.92);

    border: 1px solid rgba(255,215,0,.55);

    border-radius: 999px;

    padding: 3px 8px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.25);

    text-shadow:
        0 0 4px rgba(0,0,0,.6);
}

/* Hoàng Sa */
.hero-hoang-sa-label {
    left: 38px;
    top: -4px;
}

/* Trường Sa */
.hero-truong-sa-label {
    left: 32px;
    top: -16px;
}

.crime-specific-section h2 {
    text-align: center;
    color: #780000;
    text-transform: uppercase;
}

.article-video{
    text-align:center;
    margin:25px 0;
}

.article-video video{
    width:600px;
    max-width:100%;
    max-height:350px;
    border-radius:12px;
    box-shadow:0 4px 20px rgba(0,0,0,.15);
}