@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f3a5f;
    --secondary: #1f6fa7;
    --accent: #E31B21;
    /* VnBusiness Red */
    --accent-light: #ffebec;
    --beige: #F5EBE1;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Encode Sans', sans-serif;
    background-color: var(--beige);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary);
    font-weight: 700;
}

h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.counter-wrapper {
    font-size: 80px;
    font-weight: 800;
    color: var(--accent);
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.sub-hero {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Section Styling */
section {
    padding: 60px 0;
    background: #fff;
    margin-bottom: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
}

/* Info Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    /* Optional: Constrain slightly to keep harmonious shape if container is very wide */
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: var(--beige);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(227, 27, 33, 0.15);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    fill: var(--accent);
}

/* SVG Charts & Maps */
.interactive-svg {
    width: 100%;
    height: auto;
    max-height: 500px;
    margin: 30px auto;
    display: block;
}

.chart-bar {
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-bar:hover {
    filter: brightness(1.1);
}

.map-ring {
    transition: all 0.3s ease;
    cursor: pointer;
    transform-origin: center;
}

.map-ring:hover {
    transform: scale(1.02);
    stroke-width: 15px;
    /* Thicker on hover */
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    /* Centered text */
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent);
}

.modal p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.close-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.close-btn:hover {
    background: var(--accent);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    .counter-wrapper {
        font-size: 48px;
    }

    section {
        padding: 40px 15px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}