        :root {
            --bg-body: #f4f6f8;
            --bg-card: #ffffff;
            --primary: #003877;
            /* Alabama Crimson */
            --accent: #0e7ac6;
            --text-dark: #0f172a;
            --text-muted: #64748b;
            --border-radius: 20px;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            /* Neighbor Colors */
            --color-state-bg: #fff3e0;
            --color-state-text: #d26403;
            --color-country-bg: #e8f5e9;
            --color-country-text: #2e7d32;
            --color-water-bg: #e3f2fd;
            --color-water-text: #0277bd;
            --color-region-bg: #fae8e8;
            --color-region-text: #9E1B32;
        }

        * {
            box-sizing: border-box;
        }

        body {
            background-color: var(--bg-body);
            color: var(--text-dark);
            font-family: 'Inter', sans-serif;
            margin: 0;
            padding: 0;
            line-height: 1.6;
            /* Flex layout for sticky footer */
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Top Navigation Bar */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(135deg, #005387 0%, #003355 100%);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 40px;
            z-index: 100000;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .nav-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: -0.5px;
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-link {
            color: #94a3b8;
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            transition: color 0.2s;
        }

        .nav-link:hover {
            color: #fff;
        }

        /* Dropdown Styles */
        .nav-item {
            position: relative;
            display: flex;
            align-items: center;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: linear-gradient(135deg, #005387 0%, #003355 100%);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 10px 0;
            min-width: 200px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            max-height: 400px;
            overflow-y: auto;
        }

        /* Scrollbar styling for dropdown */
        .dropdown-menu::-webkit-scrollbar {
            width: 6px;
        }

        .dropdown-menu::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }

        .dropdown-menu::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-item {
            display: block;
            padding: 8px 20px;
            color: #94a3b8;
            text-decoration: none;
            font-size: 0.95rem;
            transition: all 0.2s;
        }

        .dropdown-item:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
            padding-left: 25px;
            /* Subtle slide effect */
        }

        /* --- Hero Section --- */
        .hero {
            background: linear-gradient(135deg, #005387 0%, #003355 100%);
            color: white;
            padding: 90px 20px 50px;
            /* Extra padding bottom for overlap */
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
            /* Changed to Grid to align with Dashboard */
            /* Changed to Grid to align with Dashboard */
            display: grid;
            grid-template-columns: 300px 1fr 300px;
            gap: 24px;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        /* Accessing direct children to center them in their grid cells */
        .hero-text {
            justify-self: center;
            text-align: center;
        }

        /* The Flag is an img, so justify-self works directly */
        .flag-img {
            justify-self: center;
            /* Existing styles below */
            height: 130px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            margin-top: -65px;
            /* Removed negative margin to ensure perfect centering */
        }

        .live-status {
            justify-self: end;
            /* Existing styles */
            display: flex;
            gap: 30px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 15px 30px;
            border-radius: 50px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .hero-text h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin: 0;
            letter-spacing: -0.02em;
            line-height: 1.1;
        }

        .hero-text .subtitle {
            font-size: 1.25rem;
            opacity: 0.9;
            font-weight: 400;
            margin-top: 10px;
        }

        .status-item {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .status-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            opacity: 0.8;
            font-weight: 600;
        }

        .status-value {
            font-size: 1.1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .flag-img:hover {
            transform: scale(1.15);
        }

        /* --- Main Grid --- */
        .dashboard-container {
            max-width: 1200px;
            margin: 20px auto 40px;
            /* Changed from negative margin to positive to prevent covering hero */
            padding: 0 20px;
            display: grid;
            grid-template-columns: 300px 1fr 300px;
            gap: 24px;
            position: relative;
            z-index: 5;
        }

        .bento-card {
            background: var(--bg-card);
            border-radius: var(--border-radius);
            padding: 24px;
            box-shadow: var(--shadow-md);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 12px;
        }

        /* Specific Areas */
        .grid-col-left {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .grid-col-center {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .grid-col-right {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        /* Seal & Map */
        .seal-img {
            width: 120px;
            height: 120px;
            display: block;
            margin: 0 auto;
            opacity: 0.9;
        }

        .map-img {
            width: 100%;
            height: auto;
            display: block;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
            transition: transform 0.3s ease;
        }

        .map-img:hover {
            transform: scale(1.50);
            position: relative;
            z-index: 999;
            cursor: pointer;
        }

        /* Cities List */
        .city-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            padding: 16px;
            border-radius: 12px;
            background: #f8fafc;
            margin-bottom: 12px;
            border: 1px solid #edf2f7;
        }

        .city-rank {
            background: var(--primary);
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .city-info h3 {
            margin: 0;
            font-size: 1.1rem;
            color: var(--text-dark);
        }

        .city-info .pop {
            font-size: 0.85rem;
            color: var(--accent);
            font-weight: 600;
            margin-bottom: 4px;
            display: block;
        }

        .city-info p {
            margin: 4px 0 0;
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        /* Tags/Chips */
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            transition: background 0.2s, transform 0.2s, box-shadow 0.2s, filter 0.2s;
        }

        .tag:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
            text-decoration: underline;
            filter: contrast(1.2);
        }

        /* Neighbor Tag Variants */
        .tag-state {
            background: var(--color-state-bg);
            color: var(--color-state-text);
            border: 1px solid rgba(230, 81, 0, 0.2);
        }

        .tag-country {
            background: var(--color-country-bg);
            color: var(--color-country-text);
            border: 1px solid rgba(46, 125, 50, 0.2);
        }

        .tag-water {
            background: var(--color-water-bg);
            color: var(--color-water-text);
            border: 1px solid rgba(2, 119, 189, 0.2);
        }

        .tag-region {
            background: var(--color-region-bg);
            color: var(--color-region-text);
            border: 1px solid rgba(244, 69, 0, 0.753);
        }

        /* Stats Grid */
        .stat-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .stat-box {
            background: #f8fafc;
            padding: 15px;
            border-radius: 12px;
            text-align: center;
        }

        .stat-num {
            display: block;
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary);
        }

        .stat-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
            font-weight: 600;
        }

        /* Chart */
        .chart-container-v2 {
            height: 250px;
            width: 100%;
        }

        /* Animation specific */
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .animate-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive */
        @media (max-width: 1024px) {

            .hero-content,
            .dashboard-container {
                grid-template-columns: 1fr 1fr;
            }

            .grid-col-right {
                grid-column: span 2;
            }
        }

        @media (max-width: 768px) {

            .hero-content,
            .dashboard-container {
                grid-template-columns: 1fr;
                margin-top: 20px;
            }

            .hero {
                padding-bottom: 40px;
                text-align: center;
            }

            .hero-content {
                /* On mobile, stack them. Grid is already 1fr via above rule, 
                   but we can keep gap */
                gap: 24px;
            }

            .grid-col-right {
                grid-column: auto;
            }
        }