        :root {
            --primary-teal: #00685b;
            --primary-teal-hover: #005046;
            --primary-teal-light: #e6f3f1;
            --bg-page: #f8fafc;
            --bg-card: #ffffff;
            --bg-pill-container: #edf2f7;
            --border-color: #e2e8f0;
            --text-dark: #1e293b;
            --text-muted: #64748b;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            --radius-lg: 16px;
            --radius-md: 12px;
            --radius-pill: 9999px;
            --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }

        [data-theme="dark"] {
            --primary-teal: #00897b;
            --primary-teal-hover: #00a896;
            --primary-teal-light: rgba(0, 137, 123, 0.2);
            --bg-page: #0f172a;
            --bg-card: #1e293b;
            --bg-pill-container: #334155;
            --border-color: #334155;
            --text-dark: #f8fafc;
            --text-muted: #94a3b8;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--bg-page);
            color: var(--text-dark);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            transition: background-color 0.3s, color 0.3s;
        }

        /* --- Header Adjustments & Disable Mobile Overlay on Government Services --- */
        .mobile-menu-btn,
        #mobileMenuBtn {
            display: none !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        .mobile-overlay,
        #mobileOverlay {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            pointer-events: none !important;
        }

        /* Ensure horizontal navigation pills stay cleanly visible and scrollable */
        @media (max-width: 768px) {
            .nav-pills-wrapper,
            .nav-pills-wrapper:not(.mobile-open) {
                display: block !important;
                position: static !important;
                width: 100% !important;
                background: var(--nav-bg) !important;
                box-shadow: none !important;
                padding-top: 0 !important;
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
                scrollbar-width: none !important;
            }
            .nav-pills-wrapper::-webkit-scrollbar {
                display: none !important;
            }
            .nav-pills-container {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                align-items: center !important;
                justify-content: flex-start !important;
                width: max-content !important;
                padding: 0.45rem 1rem !important;
                gap: 0.35rem !important;
            }
            .nav-pill {
                width: auto !important;
                white-space: nowrap !important;
                text-align: center !important;
                flex: 0 0 auto !important;
            }
        }

        /* --- Main Layout --- */
        .app-container {
            max-width: 1540px;
            margin: 0 auto;
            padding: 24px;
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 24px;
            width: 100%;
            flex: 1; /* Drives footer to bottom */
        }

        /* --- Sidebar Navigation --- */
        aside.sidebar {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 20px 16px;
            height: fit-content;
            box-shadow: var(--shadow-sm);
        }

        .sidebar-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 12px;
            padding-left: 12px;
        }

        .sidebar-menu {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            border-radius: var(--radius-md);
            font-size: 0.92rem;
            font-weight: 600;
            color: var(--text-dark);
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }

        .menu-item svg {
            width: 20px;
            height: 20px;
            color: var(--text-muted);
            flex-shrink: 0;
            transition: color 0.2s ease;
        }

        .menu-item:hover {
            background-color: var(--primary-teal-light);
            color: var(--primary-teal);
        }

        .menu-item:hover svg {
            color: var(--primary-teal);
        }

        .menu-item.active {
            background-color: var(--primary-teal);
            color: #ffffff;
        }

        .menu-item.active svg {
            color: #ffffff;
        }

        /* --- Content Area --- */
        main.content-area {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .content-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 4px;
        }

        .header-icon-box {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .header-icon-box.has-svg {
            background-color: var(--primary-teal-light);
            color: var(--primary-teal);
            width: 48px;
            height: 48px;
            border-radius: 12px;
        }

        .header-icon-box.has-svg svg {
            width: 26px;
            height: 26px;
        }

        .header-icon-box img {
            height: 42px;
            width: auto;
            max-width: 180px;
            object-fit: contain;
            display: block;
        }

        .header-text h2 {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-dark);
            line-height: 1.2;
        }

        .header-text p {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* Services Grid */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        .service-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 16px 18px;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 95px;
            transition: all 0.2s ease;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
        }

        .service-card:hover {
            border-color: var(--primary-teal);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
        }

        .card-header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-logo {
            width: 28px;
            height: 28px;
            object-fit: contain;
            border-radius: 4px;
            flex-shrink: 0;
            background-color: #ffffff;
            padding: 2px;
            border: 1px solid var(--border-color);
        }

        .card-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-dark);
            line-height: 1.3;
        }

        .external-link-icon {
            color: var(--text-muted);
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            opacity: 0.7;
            transition: opacity 0.2s, color 0.2s;
            margin-top: 2px;
        }

        .service-card:hover .external-link-icon {
            opacity: 1;
            color: var(--primary-teal);
        }

        .card-desc {
            font-size: 0.82rem;
            color: var(--text-muted);
            margin-top: 8px;
            line-height: 1.4;
        }

        .empty-state {
            grid-column: 1 / -1;
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 48px;
            text-align: center;
            color: var(--text-muted);
        }

        .empty-state h3 {
            font-size: 1.2rem;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        @media (max-width: 1280px) {
            .services-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 992px) {
            .app-container {
                grid-template-columns: 1fr;
            }
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 576px) {
            .services-grid {
                grid-template-columns: 1fr;
            }
            .app-container {
                padding: 16px;
            }
        }
    