:root {
    --portal-primary: #06283d;
    --portal-emerald: #059669;
    --portal-emerald-dark: #047857;
    --portal-blue: #2563eb;
    --portal-violet: #7c3aed;
    --portal-amber: #f59e0b;
    --portal-cyan: #0891b2;
    --portal-surface: #ffffff;
    --portal-border: #e2e8f0;
}

body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
}

.bg-primary-dark {
    background: linear-gradient(90deg, #06283d 0%, #064e3b 100%) !important;
}

.navbar-nav .nav-link,
.navbar .btn {
    white-space: nowrap;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.site-brand-logo {
    max-height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    border-radius: 6px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.32) 0%, transparent 45%),
                radial-gradient(circle at 85% 25%, rgba(59, 130, 246, 0.28) 0%, transparent 45%),
                linear-gradient(135deg, #064e3b 0%, #0a2e46 52%, #1e1b4b 100%);
    color: #fff;
    padding: 3.5rem 0 3.25rem;
}

.hero-search-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.32);
    border: 2px solid rgba(16, 185, 129, 0.25);
    color: #1e293b;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    border: none;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #0f766e 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.stat-pill {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.15s ease;
}

.stat-pill:hover {
    transform: translateY(-2px);
}

.stat-pill-emerald { background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.14)); }
.stat-pill-amber   { background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.14)); }
.stat-pill-cyan    { background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(8, 145, 178, 0.14)); }
.stat-pill-violet  { background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(109, 40, 217, 0.14)); }

.quick-filter-pill {
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
}

.quick-filter-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.job-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-left: 5px solid #2563eb;
    border-radius: 14px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 41, 66, 0.09);
}

.job-card-government    { border-left-color: #059669; }
.job-card-private       { border-left-color: #2563eb; }
.job-card-remote        { border-left-color: #7c3aed; }
.job-card-international { border-left-color: #0891b2; }
.job-card-featured {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb 0%, #ffffff 18%);
}

.company-avatar {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px;
    flex-shrink: 0;
}

.company-monogram {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.mono-0 { background: linear-gradient(135deg, #059669, #10b981); }
.mono-1 { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.mono-2 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.mono-3 { background: linear-gradient(135deg, #d97706, #f59e0b); }
.mono-4 { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.mono-5 { background: linear-gradient(135deg, #e11d48, #f43f5e); }

.category-tile {
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    transition: all 0.16s ease;
    text-decoration: none;
    color: inherit;
}

.category-tile:hover {
    border-color: #059669;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.12);
    transform: translateY(-2px);
}

.category-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.cat-tone-0 { background: #ecfdf5; color: #059669; }
.cat-tone-1 { background: #eff6ff; color: #2563eb; }
.cat-tone-2 { background: #f5f3ff; color: #7c3aed; }
.cat-tone-3 { background: #fffbeb; color: #d97706; }
.cat-tone-4 { background: #ecfeff; color: #0891b2; }
.cat-tone-5 { background: #fff1f2; color: #e11d48; }

.ad-slot .ad-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.ad-banner-img,
.ad-banner-landscape {
    max-height: 150px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.ad-banner-sidebar {
    max-height: 900px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 992px) {
    .sidebar-sticky-ad {
        position: sticky;
        top: 84px;
        z-index: 10;
    }
}

.job-description-body {
    line-height: 1.75;
    font-size: 1rem;
}

.job-description-body h3,
.job-description-body h4,
.job-description-body h5 {
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.search-suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    max-height: 280px;
    overflow-y: auto;
}
