:root {
        --vi-primary: #4f46e5;
        --vi-primary-light: #6366f1;
        --vi-primary-glow: rgba(79, 70, 229, 0.25);
        --vi-teal: #0d9488;
        --vi-teal-light: #14b8a6;
        --vi-teal-bg: #f0fdfa;
        --vi-amber: #f59e0b;
        --vi-red: #ef4444;
        --vi-green: #22c55e;
        --header-bg: rgba(255, 255, 255, 0.82);
        --header-border: rgba(226, 232, 240, 0.6);
        --ticker-bg: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        --ticker-text: #ffffff;
        --nav-bg: rgba(248, 250, 252, 0.85);
        --search-bg: #f1f5f9;
        --search-focus-ring: rgba(79, 70, 229, 0.12);
        --text-main: #0f172a;
        --text-muted: #64748b;
        --text-light: #94a3b8;
        --border-color: #e2e8f0;
        --pill-hover-bg: #eef2ff;
        --pill-hover-text: #4f46e5;
        --pill-active-bg: #4f46e5;
        --pill-active-text: #ffffff;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
        --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
        --radius-sm: 8px;
        --radius-md: 10px;
        --radius-lg: 14px;
        --radius-xl: 20px;
        --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

        /* ---- Page variables (dashboard + footer, follows header palette) ---- */
        --page-bg: #f4f5fb;
        --card-bg: #ffffff;
        --card-border: #e2e8f0;
        --text-strong: #0f172a;
        --row-hover: rgba(79, 70, 229, 0.06);
        --row-stripe: rgba(15, 23, 42, 0.025);
        --cell-highlight: rgba(79, 70, 229, 0.15);
    }

    [data-theme="dark"] {
        --header-bg: rgba(15, 23, 42, 0.88);
        --header-border: rgba(51, 65, 85, 0.5);
        --nav-bg: rgba(30, 41, 59, 0.85);
        --search-bg: #1e293b;
        --search-focus-ring: rgba(99, 102, 241, 0.2);
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --text-light: #64748b;
        --border-color: #334155;
        --pill-hover-bg: #1e293b;
        --pill-hover-text: #818cf8;
        --pill-active-bg: #6366f1;
        --pill-active-text: #ffffff;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
        /* Page variables — dark */
        --page-bg: #0b1120;
        --card-bg: #111b31;
        --card-border: #233155;
        --text-strong: #f1f5f9;
        --row-hover: rgba(99, 102, 241, 0.12);
        --row-stripe: rgba(148, 163, 184, 0.045);
        --cell-highlight: rgba(99, 102, 241, 0.26);
    }

    /* ---------- Career Ticker Bar ---------- */
.career-ticker { background: linear-gradient(135deg, #5e58de 0%, #7c3aed 100%); color: #fff; overflow: hidden; position: relative; height: 36px; display: flex; align-items: center; font-family: var(--font-family); z-index: 1001; }
.ticker-label { background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); padding: 0 14px; height: 100%; display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; flex-shrink: 0; z-index: 2; }
.ticker-label svg { width: 14px; height: 14px; flex-shrink: 0; animation: pulse-glow 2s ease-in-out infinite; }
.ticker-track-wrapper { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; animation: ticker-scroll 18s linear infinite; width: max-content; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; white-space: nowrap; font-size: .78rem; font-weight: 500; }
.ticker-separator { color: rgba(255, 255, 255, .3); font-size: .7rem; }
.ticker-badge { background: rgba(255, 255, 255, .22); padding: 1px 7px; border-radius: 4px; font-size: .65rem; font-weight: 700; letter-spacing: .03em; }
.ticker-badge.urgent { background: #fbbf24; color: #78350f; }
.ticker-badge.new { background: rgba(255, 255, 255, .25); }
@keyframes pulse-glow { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-30%); } }

/* Ticker Badge Styles */
.ticker-badge.new {
    background-color: #3b82f6; /* Blue for standard updates */
    color: white;
}
.ticker-badge.available {
    background-color: #10b981; /* Green for available */
    color: white;
}
.ticker-badge.closing {
    background-color: #ef4444; /* Red for closing soon */
    color: white;
    animation: pulse 1.5s infinite; /* Optional: adds a warning blink */
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}


/* Apply this to the wrapper holding your ticker items */
.ticker-track {
    display: inline-flex;
    /* Increase the time (e.g., 60s, 80s) to make the scrolling SLOWER */
    animation: ticker-scroll 60s linear infinite; 
}

/* Pauses the scrolling when the user hovers over it to click a link */
.ticker-track:hover {
    animation-play-state: paused;
}

/* Ticker Item Styling */
.ticker-item { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 0 24px; 
    white-space: nowrap; 
    font-size: 0.78rem; 
    font-weight: 500; 
    cursor: pointer; 
    transition: opacity var(--transition-fast, 0.2s ease); 
}

.ticker-item:hover { 
    opacity: 0.8; 
}

.ticker-separator { 
    color: rgba(255, 255, 255, 0.3); 
    font-size: 0.7rem; 
}

/* Base Badge Styling */
.ticker-badge { 
    padding: 1px 7px; 
    border-radius: 4px; 
    font-size: 0.65rem; 
    font-weight: 700; 
    letter-spacing: 0.03em; 
}

/* ----------------------------------
   BADGE COLOR VARIATIONS
----------------------------------- */
.ticker-badge.new { 
    background: rgba(255, 255, 255, 0.25); 
    color: inherit; /* Inherits text color based on dark/light theme */
}

.ticker-badge.urgent { 
    background: #fbbf24; /* Amber/Yellow */
    color: #78350f; /* Dark Brown */
}

.ticker-badge.available { 
    background: #10b981; /* Emerald Green (> 5 days left) */
    color: #ffffff; 
}

.ticker-badge.closing { 
    background: #ef4444; /* Red (5 days or less left) */
    color: #ffffff;
    animation: ticker-pulse 1.5s infinite; /* Adds a gentle warning blink */
}

/* Gentle blink for the "CLOSING SOON" badge */
@keyframes ticker-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
    


    /* ---------- Main Navbar ---------- */
    .navbar-wrapper { position: sticky; top: 0; z-index: 1000; background: var(--header-bg); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--header-border); box-shadow: var(--shadow-sm); font-family: var(--font-family); transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth); width: 100%; }
    .navbar-wrapper.scrolled { box-shadow: var(--shadow-md); }
    .navbar-container { max-width: 1340px; margin: 0 auto; padding: 0.6rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

    /* ---------- Brand Logo ---------- */
    .brand-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; min-width: max-content; flex-shrink: 0; }
    .logo-box { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); flex-shrink: 0; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
    .brand-logo:hover .logo-box { transform: scale(1.05); box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4); }
    .logo-box img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
    .brand-text h1 { font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin: 0; line-height: 1.2; letter-spacing: -0.01em; background: linear-gradient(135deg, #4f46e5, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    [data-theme="dark"] .brand-text h1 { background: linear-gradient(135deg, #818cf8, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .brand-text .tagline { font-size: 0.65rem; color: var(--text-muted); margin: 0; font-weight: 500; letter-spacing: 0.04em; }

    /* ---------- Search Box ---------- */
    .nav-search-box { position: relative; display: flex; align-items: center; background: var(--search-bg); border: 1.5px solid transparent; border-radius: var(--radius-xl); padding: 0.4rem 0.85rem; flex: 1; max-width: 420px; min-width: 140px; transition: all var(--transition-fast); }
    .nav-search-box:focus-within { background: var(--header-bg); border-color: var(--vi-primary); box-shadow: 0 0 0 4px var(--search-focus-ring), var(--shadow-md); }
    .search-icon { width: 16px; height: 16px; color: var(--text-light); margin-right: 0.5rem; flex-shrink: 0; transition: color var(--transition-fast); }
    .nav-search-box:focus-within .search-icon { color: var(--vi-primary); }
    .nav-search-box input { border: none; background: transparent; outline: none; font-size: 0.85rem; color: var(--text-main); width: 100%; font-family: var(--font-family); }
    .nav-search-box input::placeholder { color: var(--text-light); }
    .clear-btn { background: none; border: none; cursor: pointer; color: var(--text-light); display: none; padding: 2px; border-radius: 50%; flex-shrink: 0; transition: all var(--transition-fast); }
    .clear-btn.visible { display: flex; }
    .clear-btn:hover { color: var(--vi-red); background: rgba(239, 68, 68, 0.08); }

    /* ---------- Search Autocomplete Dropdown ---------- */
    .search-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--header-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--text-light) transparent; display: none; z-index: 1100; }
    .search-dropdown.active { display: block; animation: dropdown-in 0.2s ease-out; }
    @keyframes dropdown-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
    .search-dropdown::-webkit-scrollbar { width: 5px; }
    .search-dropdown::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 10px; }
    .search-category-label { padding: 8px 14px 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); }
    .search-result-item { padding: 9px 14px; cursor: pointer; transition: background var(--transition-fast); border-bottom: 1px solid rgba(0, 0, 0, 0.03); display: flex; align-items: center; gap: 10px; }
    .search-result-item:last-child { border-bottom: none; }
    .search-result-item:hover, .search-result-item.highlighted { background: var(--pill-hover-bg); }
    .search-result-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.7rem; font-weight: 700; color: white; }
    .search-result-icon.govt { background: linear-gradient(135deg, #4f46e5, #6366f1); }
    .search-result-icon.railway { background: linear-gradient(135deg, #0d9488, #14b8a6); }
    .search-result-icon.bank { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
    .search-result-icon.upsc { background: linear-gradient(135deg, #dc2626, #ef4444); }
    .search-result-icon.defense { background: linear-gradient(135deg, #059669, #10b981); }
    .search-result-icon.default { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
    .search-result-text { flex: 1; min-width: 0; }
    .search-result-title { font-size: 0.82rem; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .search-result-title mark { background: rgba(79, 70, 229, 0.15); color: inherit; border-radius: 2px; padding: 0 1px; }
    .search-result-meta { font-size: 0.68rem; color: var(--text-muted); margin-top: 1px; }
    .search-no-results { padding: 20px 14px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }
    .search-no-results svg { width: 32px; height: 32px; color: var(--text-light); margin-bottom: 6px; }

    /* ---------- Navbar Actions ---------- */
    .navbar-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
    .icon-btn { background: var(--search-bg); border: 1.5px solid transparent; width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: all var(--transition-fast); flex-shrink: 0; position: relative; }
    .icon-btn svg { width: 18px; height: 18px; transition: transform var(--transition-fast); }
    .icon-btn:hover { background: var(--pill-hover-bg); color: var(--vi-primary); border-color: var(--border-color); }
    .icon-btn:hover svg { transform: scale(1.1); }
    .icon-btn:active { transform: scale(0.95); }
    .icon-btn.theme-btn .icon-sun, .icon-btn.theme-btn .icon-moon { transition: transform 0.4s ease, opacity 0.3s ease; }
    .icon-btn.theme-btn .icon-sun { display: none; }
    [data-theme="dark"] .icon-btn.theme-btn .icon-sun { display: block; }
    [data-theme="dark"] .icon-btn.theme-btn .icon-moon { display: none; }
    .mobile-menu-btn { display: none; }
    .mobile-menu-btn .hamburger-line { transition: all var(--transition-fast); }
    .mobile-menu-btn.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* ---------- Navigation Pills ---------- */
    .nav-pills-wrapper { background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--header-border); overflow-x: auto; scrollbar-width: none; position: relative; }
    .nav-pills-wrapper::-webkit-scrollbar { display: none; }
    .nav-pills-container { max-width: 1340px; margin: 0 auto; padding: 0.45rem 1.25rem; display: flex; gap: 0.35rem; position: relative; }
    .nav-pill { padding: 0.42rem 0.9rem; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); background: transparent; border-radius: var(--radius-sm); text-decoration: none; white-space: nowrap; transition: all var(--transition-fast); display: inline-flex; align-items: center; gap: 5px; position: relative; }
    .nav-pill svg, .nav-pill .pill-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.7; transition: opacity var(--transition-fast); }
    .nav-pill:hover { background: var(--pill-hover-bg); color: var(--pill-hover-text); }
    .nav-pill:hover svg, .nav-pill:hover .pill-icon { opacity: 1; }
    .nav-pill:active { transform: scale(0.97); }
    .nav-pill.active { background: var(--pill-active-bg); color: var(--pill-active-text); box-shadow: 0 2px 8px var(--vi-primary-glow); font-weight: 600; }
    .nav-pill.active svg, .nav-pill.active .pill-icon { opacity: 1; }
    .nav-pill.home-pill { color: var(--vi-teal); background: var(--vi-teal-bg); border: 1px solid rgba(13, 148, 136, 0.15); font-weight: 600; }
    [data-theme="dark"] .nav-pill.home-pill { background: rgba(13, 148, 136, 0.12); border-color: rgba(13, 148, 136, 0.25); }
    .nav-pill.home-pill:hover { background: #ccfbf1; color: #0f766e; }
    [data-theme="dark"] .nav-pill.home-pill:hover { background: rgba(13, 148, 136, 0.2); color: #5eead4; }
    .nav-pill .pill-badge { background: var(--vi-red); color: white; font-size: 0.58rem; font-weight: 700; padding: 0.5px 5px; border-radius: 10px; line-height: 1.5; min-width: 18px; text-align: center; }
    .nav-pill.active .pill-badge { background: rgba(255, 255, 255, 0.3); }
    .nav-pill.ai-pill { background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08)); color: #7c3aed; border: 1px solid rgba(139, 92, 246, 0.12); }
    [data-theme="dark"] .nav-pill.ai-pill { color: #a78bfa; border-color: rgba(139, 92, 246, 0.2); }
    .nav-pill.ai-pill:hover { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15)); }

    /* ---------- Mobile Overlay ---------- */
    .mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(3px); z-index: 999; opacity: 0; transition: opacity var(--transition-smooth); }
    .mobile-overlay.active { display: block; opacity: 1; }

    /* ============================================================
       2. PAGE STYLES — Redesigned Career Dashboard
       ============================================================ */
    * { box-sizing: border-box; margin: 0; padding: 0; }
    button, input, select { font-family: inherit; }

    body {
        font-family: var(--font-family);
        background-color: var(--page-bg);
        background-image:
            radial-gradient(1100px 480px at 85% -5%, rgba(124, 58, 237, 0.08), transparent 60%),
            radial-gradient(900px 420px at -10% 5%, rgba(13, 148, 136, 0.07), transparent 55%);
        background-attachment: fixed;
        color: var(--text-main);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        -webkit-font-smoothing: antialiased;
    }

    .page-wrap { flex: 1; width: 100%; max-width: 1340px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; }

    /* ---------- Hero / Stats Band ---------- */
    .hero-card {
        position: relative; overflow: hidden;
        border-radius: var(--radius-xl);
        background: linear-gradient(135deg, #4338ca 0%, #4f46e5 45%, #7c3aed 100%);
        color: #fff;
        padding: 1.75rem 1.75rem 1.5rem;
        box-shadow: 0 10px 30px rgba(79, 70, 229, 0.25);
        margin-bottom: 1.4rem;
    }
    .hero-card::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,0.08); top: -190px; right: -70px; }
    .hero-card::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.05); bottom: -150px; left: 18%; }
    .hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; position: relative; z-index: 1; }
    .hero-eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; padding: 0.28rem 0.75rem; border-radius: 999px; margin-bottom: 0.7rem; }
    .hero-card h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.45rem; line-height: 1.15; }
    .hero-grad { background: linear-gradient(90deg, #fbbf24, #f472b6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
    .hero-card p { color: rgba(255,255,255,0.82); font-size: 0.9rem; max-width: 62ch; line-height: 1.55; }

    .btn-latest {
        background: #fff; color: #4f46e5; border: none;
        padding: 0.65rem 1.25rem; border-radius: 999px;
        font-weight: 700; font-size: 0.85rem; cursor: pointer;
        display: inline-flex; align-items: center; gap: 0.45rem;
        box-shadow: 0 4px 14px rgba(0,0,0,0.18);
        transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
        flex-shrink: 0;
    }
    .btn-latest:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.22); }
    .btn-latest:active { transform: scale(0.97); }
    .btn-latest.is-active { background: #f59e0b; color: #fff; }

    .hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin-top: 1.35rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.18); position: relative; z-index: 1; }
    .stat-item { display: flex; align-items: center; gap: 0.65rem; }
    .stat-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .stat-value { font-size: 1.3rem; font-weight: 800; line-height: 1.05; }
    .stat-label { font-size: 0.66rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 2px; }

    /* ---------- Layout ---------- */
    .main-layout { display: flex; gap: 1.25rem; align-items: flex-start; min-width: 0; }
    .content { min-width: 0; flex: 1; }
    @media (min-width: 1025px) {
        aside.sidebar { position: sticky; top: 142px; } /* sits below the sticky header */
    }

    /* ---------- Sidebar ---------- */
    aside.sidebar { width: 270px; flex-shrink: 0; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-md), var(--shadow-lg), 0 8px 28px rgba(79, 70, 229, 0.08); transition: box-shadow var(--transition-smooth); }
    aside.sidebar:hover { box-shadow: var(--shadow-lg), 0 4px 12px rgba(0, 0, 0, 0.07), 0 14px 40px rgba(79, 70, 229, 0.14); }
    .sidebar-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.15rem 0.3rem 0.65rem; border-bottom: 1px solid var(--border-color); margin-bottom: 0.65rem; color: var(--text-muted); }
    .sidebar-head h3 { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
    .category-list { list-style: none; display: flex; flex-direction: column; gap: 0.22rem; }
    .category-item { padding: 0.5rem 0.6rem; border-radius: var(--radius-sm); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; color: var(--text-muted); border: 1px solid transparent; transition: all 0.18s ease; }
    .category-item:hover { background: var(--pill-hover-bg); color: var(--pill-hover-text); }
    .category-item.active { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3); font-weight: 600; }
    .cat-left { display: flex; align-items: center; gap: 0.5rem; }
    .cat-emoji { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: var(--search-bg); border-radius: 7px; font-size: 0.78rem; flex-shrink: 0; }
    .category-item.active .cat-emoji { background: rgba(255,255,255,0.2); }
    .badge-count { background: var(--search-bg); color: var(--text-muted); padding: 0.08rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
    .category-item.active .badge-count { background: rgba(255,255,255,0.25); color: #fff; }

    /* ---------- Content ---------- */
    main.content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
    .content-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.9rem; flex-wrap: wrap; scroll-margin-top: 150px; }
    .breadcrumb { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
    .breadcrumb a { color: var(--text-muted); text-decoration: none; }
    .breadcrumb a:hover { color: var(--vi-primary); }
    .breadcrumb strong { color: var(--text-strong); }
    .toolbar-right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
    .result-count { font-size: 0.74rem; font-weight: 600; color: var(--text-muted); background: var(--card-bg); border: 1px solid var(--card-border); padding: 0.38rem 0.75rem; border-radius: 999px; }
    .sort-select {
        appearance: none; -webkit-appearance: none;
        background-color: var(--card-bg); color: var(--text-main);
        border: 1px solid var(--card-border); border-radius: 999px;
        padding: 0.42rem 2rem 0.42rem 0.95rem; font-size: 0.78rem; cursor: pointer;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 10px;
    }
    .sort-select:focus { outline: none; border-color: var(--vi-primary); box-shadow: 0 0 0 3px var(--search-focus-ring); }

    .tables-area { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; max-width: 100%; }

    /* ---------- Job Cards / Tables ---------- */
    .job-section-block { width: 100%; min-width: 0; max-width: 100%; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
    .section-title { display: flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.1rem; font-size: 0.92rem; font-weight: 700; color: var(--text-strong); border-bottom: 1px solid var(--border-color); }
    .section-title::before { content: ""; width: 4px; height: 17px; border-radius: 2px; background: linear-gradient(180deg, #4f46e5, #a855f7); flex-shrink: 0; }
    .title-count { margin-left: auto; font-size: 0.66rem; font-weight: 700; color: var(--pill-hover-text); background: var(--pill-hover-bg); padding: 0.18rem 0.6rem; border-radius: 999px; white-space: nowrap; }

    .table-responsive { display: block; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
    .table-responsive:focus { outline: 2px solid var(--vi-primary); outline-offset: -2px; }
    .table-responsive::-webkit-scrollbar { height: 7px; }
    .table-responsive::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 10px; }
    .table-responsive::-webkit-scrollbar-track { background: transparent; }

    .job-table { width: max-content; min-width: 900px; border-collapse: collapse; text-align: left; font-size: 0.84rem; white-space: nowrap; }
    .job-table th { background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%); color: #fff; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.72rem 0.85rem; text-align: left; }
    .job-table td { padding: 0.72rem 0.85rem; border-bottom: 1px solid var(--border-color); color: var(--text-main); transition: background-color 0.15s ease; }
    .job-table tbody tr:last-child td { border-bottom: none; }
    .job-table tbody tr:nth-child(even) td { background: var(--row-stripe); }
    .cell-muted { color: var(--text-muted); font-size: 0.8rem; }
    .cell-post { font-weight: 600; color: var(--text-strong); }

    /* Hover Highlighting: entire row + specific hovered cell (your original feature, re-skinned) */
    .job-table tr.highlight-row td { background-color: var(--row-hover) !important; }
    .job-table td.highlight-cell { background-color: var(--cell-highlight) !important; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--vi-primary); }

    .last-date-cell { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
    .last-date { color: var(--vi-red); font-weight: 700; font-size: 0.8rem; }
    .days-left { font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.02em; }
    .days-left.urgent { background: #fee2e2; color: #b91c1c; }
    .days-left.expired { background: #e2e8f0; color: #475569; }
    .days-left.upcoming { background: #dbeafe; color: #1d4ed8; }
    .days-left.soon { background: #fef3c7; color: #92400e; }
    .days-left.ok { background: #dcfce7; color: #15803d; }
    [data-theme="dark"] .days-left.urgent { background: rgba(239,68,68,0.16); color: #fca5a5; }
    [data-theme="dark"] .days-left.expired { background: rgba(148,163,184,0.16); color: #cbd5e1; }
    [data-theme="dark"] .days-left.upcoming { background: rgba(59,130,246,0.16); color: #93c5fd; }
    [data-theme="dark"] .days-left.soon { background: rgba(245,158,11,0.16); color: #fcd34d; }
    [data-theme="dark"] .days-left.ok { background: rgba(34,197,94,0.14); color: #86efac; }

    .cat-chip { display: inline-block; font-size: 0.66rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--pill-hover-bg); color: var(--pill-hover-text); }

    .details-link { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.34rem 0.85rem; border-radius: 999px; border: 1.5px solid var(--vi-primary); color: var(--vi-primary); font-size: 0.72rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
    .details-link:hover { background: var(--vi-primary); color: #fff; box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3); }

    .empty-state { text-align: center; padding: 2.8rem 1rem; color: var(--text-muted); }
    .empty-state svg { width: 42px; height: 42px; color: var(--text-light); margin-bottom: 0.6rem; }
    .empty-state p { font-size: 0.9rem; }
    .empty-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 0.3rem; }

    /* ---------- Responsive (page) ---------- */
    @media (max-width: 1024px) {
        .page-wrap { padding: 1.1rem 0.9rem 2rem; }
        aside.sidebar { width: 235px; }
        .hero-card { padding: 1.4rem 1.3rem 1.2rem; }
    }
    @media (max-width: 768px) {
        .main-layout { flex-direction: column; }
        .content { width: 100%; max-width: 100%; }
        aside.sidebar { width: 100%; max-height: 260px; overflow-y: auto; }
        .category-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.3rem; }
        .hero-card { border-radius: var(--radius-lg); }
        .hero-card h2 { font-size: 1.3rem; }
        .hero-top { flex-direction: column; }
        .content-toolbar { justify-content: flex-start; }
    }
    @media (max-width: 640px) {
        .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
        .stat-value { font-size: 1.1rem; }
    }

    /* ============================================================
       3. FOOTER STYLES — matches the premium header design
       ============================================================ */
    .vi-footer { margin-top: auto; }

    /* Newsletter CTA strip */
    .footer-cta { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%); position: relative; overflow: hidden; }
    .footer-cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,0.07); top: -220px; right: -60px; }
    .footer-cta::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,0.05); bottom: -180px; left: 12%; }
    .footer-cta-inner { max-width: 1340px; margin: 0 auto; padding: 1.7rem 1.25rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; position: relative; z-index: 1; }
    .footer-cta-text h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin: 0 0 0.25rem; }
    .footer-cta-text p { color: rgba(255,255,255,0.85); font-size: 0.83rem; margin: 0; }
    .footer-newsletter { display: flex; gap: 0.4rem; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); padding: 0.35rem; border-radius: 999px; backdrop-filter: blur(6px); width: min(400px, 100%); }
    .footer-newsletter input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: #fff; padding: 0.55rem 1rem; font-size: 0.85rem; border-radius: 999px; }
    .footer-newsletter input::placeholder { color: rgba(255,255,255,0.65); }
    .footer-newsletter button { border: none; cursor: pointer; background: #fff; color: #4f46e5; font-weight: 700; font-size: 0.82rem; padding: 0.55rem 1.3rem; border-radius: 999px; transition: all 0.2s; flex-shrink: 0; }
    .footer-newsletter button:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
    .nl-msg { position: relative; z-index: 1; text-align: center; color: #fff; font-size: 0.78rem; font-weight: 600; padding: 0 1.25rem 0.9rem; margin: 0; display: none; }

    /* Main footer columns */
    .footer-main { background: #0f172a; position: relative; }
    .footer-main::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #4f46e5, #7c3aed, #0d9488); }
    .footer-container { max-width: 1340px; margin: 0 auto; padding: 2.4rem 1.25rem 1.6rem; }
    .footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2rem; }
    .footer-brand-link { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
    .footer-brand .brand-text h1 { background: linear-gradient(135deg, #a5b4fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
    .footer-brand .brand-text .tagline { color: #94a3b8; }
    .footer-desc { color: #94a3b8; font-size: 0.83rem; line-height: 1.65; margin-top: 0.9rem; max-width: 36ch; }
    .footer-socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
    .social-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #cbd5e1; transition: all 0.2s; }
    .social-btn:hover { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; transform: translateY(-2px); border-color: transparent; box-shadow: 0 6px 16px rgba(124,58,237,0.35); }
    .social-btn svg { width: 16px; height: 16px; }

    .footer-col h4 { color: #fff; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; margin: 0.2rem 0 0.95rem; display: flex; align-items: center; gap: 0.45rem; }
    .footer-col h4::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #4f46e5, #a855f7); flex-shrink: 0; }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
    .footer-link { color: #94a3b8; text-decoration: none; font-size: 0.84rem; display: inline-flex; align-items: center; gap: 0.45rem; transition: all 0.18s; }
    .footer-link::before { content: "›"; color: #6366f1; font-weight: 700; }
    .footer-link:hover { color: #c7d2fe; transform: translateX(3px); }

    /* Bottom bar */
    .footer-bottom { background: #0b1222; border-top: 1px solid rgba(255,255,255,0.07); }
    .footer-bottom-inner { max-width: 1340px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; font-size: 0.78rem; color: #94a3b8; }
    .footer-legal a { color: #94a3b8; text-decoration: none; margin-left: 1.1rem; transition: color 0.18s; }
    .footer-legal a:first-child { margin-left: 0; }
    .footer-legal a:hover { color: #c7d2fe; }

    @media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 560px) {
        .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
        .footer-cta-inner { flex-direction: column; align-items: flex-start; }
    }

    /* Back to top */
    .back-to-top { position: fixed; bottom: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: none; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(79,70,229,0.4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; z-index: 900; }
    .back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
    .back-to-top:hover { transform: translateY(-3px); }

    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }