/* --- VARIABLES --- */
:root {
    --bg-main: #ffffff; 
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --accent-green: #059669;
    --accent-dark-green: #064e3b;
    --accent-blue: #2563eb;
    --accent-red: #ef4444;
    --accent-gray: #e2e8f0;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    
    --font-title: 'Phudu', cursive;
    --font-body: 'Roboto', sans-serif;
    
    /* WIDTH CONFIGS */
    --w-max: 1920px;
    --w-subtitle: 1080px;
    --w-text: 760px;
    --w-chart-full: 1800px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.8;
    overflow-x: hidden;
    padding-top: 45px;
}

/* --- NAVIGATOR STYLES --- */
.sp-sticky-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 45px;
    background-color: #000; display: flex; align-items: center; justify-content: space-between;
    z-index: 99999; box-shadow: 0 2px 5px rgba(0,0,0,0.5); font-family: Arial, sans-serif;
}
.left-group { display: flex; align-items: center; height: 100%; }
.sp-back-to-k14 {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; background-color: #007f74; color: white;
    text-decoration: none; font-size: 18px; transition: background 0.3s; cursor: pointer;
}
.sp-back-to-k14:hover { background-color: #00665d; }
.sp-mag-logo { margin-left: 15px; display: flex; align-items: center; text-decoration: none; }
.sp-mag-logo img { height: 24px; width: auto; display: block; }
.center-logo {
    position: absolute; left: 50%; transform: translateX(-50%);
    pointer-events: none; user-select: none; display: flex; align-items: center; justify-content: center;
}
.center-logo img { height: 26px; width: auto; display: block; }
.right-group { display: flex; align-items: center; padding-right: 15px; }
.fb-custom-btn {
    display: flex; align-items: center; gap: 6px; color: white; text-decoration: none;
    font-size: 13px; font-family: Helvetica, Arial, sans-serif; font-weight: bold;
    cursor: pointer; opacity: 0.9; transition: opacity 0.2s;
}
.fb-custom-btn:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 600px) { .center-logo { display: none; } }

/* --- LAYOUT --- */
.wrapper-main {
    width: 100%;
    margin: 0 auto;
    position: relative;
    background: var(--bg-main);
}

.header-section {
    background: #ffffff;
    padding-top: 80px;
    padding-bottom: 20px;
}

.col-text { max-width: var(--w-text); margin: 0 auto; padding: 0 20px; }

.col-chart-1920 { 
    max-width: var(--w-chart-full); 
    margin: 40px auto; 
    padding: 0 40px; 
}

.full-width-image {
    max-width: var(--w-max);
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 40px auto;
}

/* --- TYPOGRAPHY --- */
.cover-title-container {
    width: 100%;
    max-width: var(--w-subtitle);
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.main-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

h2, h3 {
    font-family: var(--font-title); font-weight: 700; 
    color: var(--text-primary); text-align: left; 
    position: relative;
}

h2 { font-size: 32px; margin-top: 80px; margin-bottom: 20px; border-bottom: 2px solid var(--accent-gray); padding-bottom: 12px; }
h3 { font-size: 26px; margin-top: 50px; margin-bottom: 20px; }
h4 { font-family: var(--font-title); font-size: 1.5rem; margin-top: 0; margin-bottom: 25px; color: var(--text-primary); text-align: center; }

p { margin-bottom: 1.5rem; font-size: 1.15rem; color: #2d3748; text-align: justify; }

strong { color: var(--text-primary); font-weight: 900; }

.first-letter-drop::first-letter {
    font-size: 6.75rem; 
    font-weight: 900;
    color: var(--accent-green); 
    float: left;
    margin-right: 12px;
    font-family: var(--font-title);
    line-height: 0.8;
    font-style: normal !important;
}

ul.custom-list {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    padding: 20px 20px 20px 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 1.15rem;
}
ul.custom-list li { margin-bottom: 10px; color: #2d3748; }

/* --- CHART STYLES & LAYOUTS --- */
.chart-box {
    background: transparent; 
    padding: 0;
    border-radius: 0; 
    border: none;
    box-shadow: none; 
    margin-bottom: 60px;
}

.flex-container { 
    display: flex; 
    flex-direction: row;
    gap: 60px; 
    align-items: center; 
    justify-content: center;
}
.flex-chart { flex: 1 1 45%; min-width: 300px; }
.flex-table { flex: 1 1 55%; min-width: 300px; display: flex; flex-direction: column; align-items: center;}

.chart-container { position: relative; height: 400px; width: 100%; }

.chart-note {
    font-size: 0.95rem; 
    color: var(--text-secondary); 
    text-align: center; 
    margin-top: 20px; 
    font-style: italic;
    width: 100%;
}

/* DATA CARDS */
.global-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: #ffffff; padding: 30px; border-radius: 0; border: 1px solid #e2e8f0; text-align: left; }
.card-num { font-family: var(--font-title); font-size: 2.5rem; color: var(--accent-blue); display: block; line-height: 1.2;}
.card-label { font-weight: 900; font-size: 1.2rem; margin-bottom: 12px; display: block; color: var(--accent-dark-green); }

/* --- HTML BAR CHART (WHO-5) --- */
.who5-html-chart {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}
.who5-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.who5-question {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}
.who5-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.who5-track {
    flex-grow: 1;
    height: 32px;
    background-color: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.who5-fill {
    height: 100%;
    background-color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    border-radius: 6px;
}
.who5-score {
    font-weight: 900;
    color: white;
    font-size: 1rem;
}
.who5-max {
    font-weight: bold;
    color: var(--text-secondary);
    width: 30px;
    font-size: 1.1rem;
}

/* --- TOGGLE BUTTON & TABLE --- */
.toggle-table-btn {
    background-color: #f8fafc;
    color: var(--accent-blue);
    border: 1px dashed var(--accent-blue);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}
.toggle-table-btn:hover {
    background-color: #eff6ff;
}
.table-wrapper-hidden {
    display: none !important;
}

/* --- TABLES --- */
.table-container { overflow-x: auto; width: 100%; }
.custom-table { width: 100%; border-collapse: collapse; min-width: 700px; background: transparent;}
.custom-table th { background: transparent; color: var(--text-secondary); padding: 12px 10px; text-align: left; font-family: var(--font-body); font-size: 0.9rem; border-bottom: 2px solid #cbd5e1; text-transform: uppercase; font-weight: bold;}
.custom-table th.right { text-align: right; }
.custom-table th.center { text-align: center; }
.custom-table td { padding: 15px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; color: var(--text-primary); font-size: 1.05rem; font-weight: 500;}
.custom-table tr:hover { background: #f8fafc; }
.custom-table td.right { text-align: right; }

.color-l0 { color: #dc2626; } /* Thấp tuyệt đối */
.color-l1 { color: #ea580c; } /* Rất thấp */
.color-l2 { color: #d97706; } /* Thấp */
.color-l3 { color: #2563eb; } /* Bình thường */
.color-l4 { color: #4ade80; } /* Cao */
.color-l5 { color: #0f766e; } /* Cao tuyệt đối */

.legend-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 0.95rem; font-weight: bold; margin-bottom: 24px; color: var(--text-secondary);}
.legend-item { display: flex; align-items: center; }
.legend-color { width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; }

.fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn 0.8s forwards; }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .flex-container { flex-direction: column; }
    .flex-chart, .flex-table { width: 100%; }
    .col-chart-1920 { padding: 0 20px; }
}
@media (max-width: 600px) {
    .main-title { font-size: 2rem; }
    h2 { font-size: 26px; }
    .chart-container { height: 300px; }
}