
/* ===== VISUAL UPGRADE v3.0 ===== */

/* ---- Hero Section ---- */
.spb-hero {
    background: linear-gradient(135deg, #0a1628 0%, #122848 30%, #1a3f6f 60%, #1e40af 100%);
    color: #fff;
    margin: -32px -20px 0;
    padding: 80px 40px 72px;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.spb-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 65%);
    pointer-events: none;
    animation: heroFloat 20s ease-in-out infinite;
}
.spb-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 65%);
    pointer-events: none;
    animation: heroFloat 25s ease-in-out infinite reverse;
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}
.spb-hero h1 {
    color: #fff;
    font-size: 52px;
    font-weight: 900;
    position: relative;
    z-index: 1;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.spb-hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 19px;
    position: relative;
    z-index: 1;
    font-weight: 400;
    margin-bottom: 36px;
}

/* ---- Hero Search ---- */
.spb-hero-search {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}
.spb-search-wrapper {
    position: relative;
}
.spb-search-input--hero,
.spb-hero-search .spb-search-input {
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    font-size: 17px;
    padding: 20px 24px 20px 52px;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    width: 100%;
    transition: all 0.3s ease;
}
.spb-search-input--hero::placeholder,
.spb-hero-search .spb-search-input::placeholder {
    color: rgba(255,255,255,0.5) !important;
}
.spb-search-input--hero:focus,
.spb-hero-search .spb-search-input:focus {
    background: rgba(255,255,255,0.18) !important;
    border-color: rgba(255,255,255,0.35) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 4px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
    outline: none;
}
/* Search icon */
.spb-hero-search .spb-search-wrapper::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    z-index: 2;
    pointer-events: none;
}

/* ---- Stats Banner ---- */
.spb-stats-banner {
    margin-top: -36px;
    position: relative;
    z-index: 2;
}
.spb-stats-item {
    background: var(--spb-card);
    border: none;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03);
    border-radius: var(--spb-radius) !important;
    transition: all 0.3s ease;
}
.spb-stats-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px -12px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
}
.spb-stats-number {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.spb-stats-label {
    font-size: 13px;
    color: var(--spb-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Section Headings ---- */
.spb-sectors h2,
.spb-top-beroepen h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.spb-sectors h2::before,
.spb-top-beroepen h2::before {
    content: '';
    width: 5px;
    height: 32px;
    background: linear-gradient(180deg, var(--spb-primary-lighter), var(--spb-accent-light));
    border-radius: 3px;
    flex-shrink: 0;
}

/* ---- Sector Cards ---- */
.spb-sector-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 24px;
    position: relative;
}
.spb-sector-card {
    border-radius: var(--spb-radius) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}
.spb-sector-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--spb-primary-lighter), var(--spb-accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.spb-sector-card:hover::after {
    transform: scaleX(1);
}
.spb-sector-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 36px -8px rgba(0,0,0,0.15) !important;
}
.spb-sector-card:hover .spb-sector-icon {
    transform: scale(1.1) rotate(-3deg);
}
.spb-sector-name {
    font-weight: 700 !important;
    font-size: 14px;
}

/* Sector icon colors */
.spb-sector-card:nth-child(1) .spb-sector-icon { background: #fef2f2; color: #ef4444; }
.spb-sector-card:nth-child(1):hover .spb-sector-icon { background: #ef4444; color: #fff; box-shadow: 0 4px 16px rgba(239,68,68,0.3); }
.spb-sector-card:nth-child(2) .spb-sector-icon { background: #fff7ed; color: #f97316; }
.spb-sector-card:nth-child(2):hover .spb-sector-icon { background: #f97316; color: #fff; box-shadow: 0 4px 16px rgba(249,115,22,0.3); }
.spb-sector-card:nth-child(3) .spb-sector-icon { background: #eff6ff; color: #3b82f6; }
.spb-sector-card:nth-child(3):hover .spb-sector-icon { background: #3b82f6; color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,0.3); }
.spb-sector-card:nth-child(4) .spb-sector-icon { background: #f0fdf4; color: #22c55e; }
.spb-sector-card:nth-child(4):hover .spb-sector-icon { background: #22c55e; color: #fff; box-shadow: 0 4px 16px rgba(34,197,94,0.3); }
.spb-sector-card:nth-child(5) .spb-sector-icon { background: #faf5ff; color: #a855f7; }
.spb-sector-card:nth-child(5):hover .spb-sector-icon { background: #a855f7; color: #fff; box-shadow: 0 4px 16px rgba(168,85,247,0.3); }
.spb-sector-card:nth-child(6) .spb-sector-icon { background: #fffbeb; color: #eab308; }
.spb-sector-card:nth-child(6):hover .spb-sector-icon { background: #eab308; color: #fff; box-shadow: 0 4px 16px rgba(234,179,8,0.3); }
.spb-sector-card:nth-child(7) .spb-sector-icon { background: #ecfdf5; color: #10b981; }
.spb-sector-card:nth-child(7):hover .spb-sector-icon { background: #10b981; color: #fff; box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.spb-sector-card:nth-child(8) .spb-sector-icon { background: #fef2f2; color: #f43f5e; }
.spb-sector-card:nth-child(8):hover .spb-sector-icon { background: #f43f5e; color: #fff; box-shadow: 0 4px 16px rgba(244,63,94,0.3); }
.spb-sector-card:nth-child(9) .spb-sector-icon { background: #f0f9ff; color: #0ea5e9; }
.spb-sector-card:nth-child(9):hover .spb-sector-icon { background: #0ea5e9; color: #fff; box-shadow: 0 4px 16px rgba(14,165,233,0.3); }
.spb-sector-card:nth-child(10) .spb-sector-icon { background: #fdf4ff; color: #d946ef; }
.spb-sector-card:nth-child(10):hover .spb-sector-icon { background: #d946ef; color: #fff; box-shadow: 0 4px 16px rgba(217,70,239,0.3); }
.spb-sector-card:nth-child(11) .spb-sector-icon { background: #fff1f2; color: #e11d48; }
.spb-sector-card:nth-child(11):hover .spb-sector-icon { background: #e11d48; color: #fff; box-shadow: 0 4px 16px rgba(225,29,72,0.3); }
.spb-sector-card:nth-child(12) .spb-sector-icon { background: #f0fdfa; color: #14b8a6; }
.spb-sector-card:nth-child(12):hover .spb-sector-icon { background: #14b8a6; color: #fff; box-shadow: 0 4px 16px rgba(20,184,166,0.3); }
.spb-sector-card:nth-child(n+13) .spb-sector-icon { background: #f8fafc; color: #64748b; }
.spb-sector-card:nth-child(n+13):hover .spb-sector-icon { background: #64748b; color: #fff; box-shadow: 0 4px 16px rgba(100,116,139,0.3); }

/* ---- Beroep Cards ---- */
.spb-beroep-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--spb-radius) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--spb-border) !important;
    background: var(--spb-card) !important;
}
.spb-beroep-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--spb-primary-lighter), var(--spb-accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.spb-beroep-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 36px -8px rgba(0,0,0,0.12) !important;
    border-color: var(--spb-primary-lighter) !important;
}
.spb-beroep-card:hover::before {
    opacity: 1;
}
.spb-beroep-title {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--spb-text) !important;
}
.spb-beroep-salary {
    font-weight: 700 !important;
    color: var(--spb-primary-lighter) !important;
    font-size: 14px !important;
}
.spb-beroep-sector {
    font-size: 12px !important;
    color: var(--spb-muted) !important;
}

/* ---- CTA Button ---- */
.spb-btn {
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%) !important;
    box-shadow: 0 4px 16px rgba(30,58,95,0.3);
    padding: 16px 36px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: -0.2px;
}
.spb-btn:hover {
    background: linear-gradient(135deg, #0f2640 0%, #1d4ed8 100%) !important;
    box-shadow: 0 8px 28px rgba(30,58,95,0.4);
    transform: translateY(-3px);
}

/* ---- Salary Overview (Beroep Page) ---- */
.spb-salary-overview {
    background: var(--spb-card);
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}
.spb-salary-card {
    border-radius: var(--spb-radius) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.spb-salary-card--starter {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24 !important;
}
.spb-salary-card--mediaan {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6 !important;
    transform: scale(1.04);
    box-shadow: 0 8px 28px -6px rgba(59,130,246,0.2);
}
.spb-salary-card--ervaren {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981 !important;
}
.spb-salary-amount {
    font-size: 32px !important;
    font-weight: 900 !important;
    letter-spacing: -1px;
}
.spb-salary-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px !important;
    font-weight: 700 !important;
}
.spb-salary-card--starter .spb-salary-amount { color: #b45309; }
.spb-salary-card--mediaan .spb-salary-amount { color: #1d4ed8; }
.spb-salary-card--ervaren .spb-salary-amount { color: #047857; }

/* Salary range bar */
.spb-salary-range {
    position: relative;
    margin: 24px 0 16px;
}
.spb-salary-range-bar {
    height: 8px !important;
    border-radius: 4px;
    background: linear-gradient(90deg, #fbbf24 0%, #3b82f6 50%, #10b981 100%) !important;
}
.spb-salary-range-marker {
    width: 20px !important;
    height: 20px !important;
    border: 3px solid var(--spb-card) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ---- Uurloon Highlight ---- */
.spb-uurloon {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--spb-radius) !important;
    padding: 16px 24px;
}

/* ---- Content Sections ---- */
.spb-content,
.spb-regio,
.spb-cao,
.spb-community {
    background: var(--spb-card);
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
    border-radius: var(--spb-radius) !important;
}

/* ---- Community Section ---- */
.spb-community {
    border-top: none !important;
    position: relative;
    overflow: hidden;
}
.spb-community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--spb-primary-lighter), var(--spb-accent-light));
}
.spb-community-stats-card {
    border-radius: var(--spb-radius-sm) !important;
    transition: all 0.3s ease;
}
.spb-community-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--spb-shadow-md);
}
.spb-community-stats-value {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

/* ---- Province Table ---- */
.spb-regio table {
    border-collapse: separate;
    border-spacing: 0;
}
.spb-regio th {
    background: #f8fafc !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--spb-muted);
}
.spb-regio tr {
    transition: background 0.2s ease;
}
.spb-regio tbody tr:hover {
    background: #f8fafc;
}
.spb-regio .spb-positive {
    color: #16a34a;
    font-weight: 700;
}
.spb-regio .spb-negative {
    color: #dc2626;
    font-weight: 700;
}

/* ---- Related Cards ---- */
.spb-related-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--spb-radius) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.spb-related-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--spb-primary-lighter), var(--spb-accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.spb-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.12);
}
.spb-related-card:hover::before { opacity: 1; }

/* ---- Source / Footer ---- */
.spb-source {
    background: var(--spb-card);
    border-radius: var(--spb-radius);
    padding: 20px 28px;
    border: 1px solid var(--spb-border-light);
}

/* ---- Nav CTA ---- */
.spb-nav-cta {
    background: linear-gradient(135deg, var(--spb-primary-lighter), #1d4ed8) !important;
    box-shadow: 0 2px 12px rgba(37,99,235,0.35);
    transition: all 0.3s ease !important;
}
.spb-nav-cta:hover {
    box-shadow: 0 4px 16px rgba(37,99,235,0.45) !important;
    transform: translateY(-1px);
}

/* ---- Logo ---- */
.spb-logo-icon {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

/* ---- Submission Form Improvements ---- */
.spb-submission-form input,
.spb-submission-form select,
.spb-submission-form textarea {
    border-radius: var(--spb-radius-sm) !important;
    transition: all 0.2s ease;
}
.spb-submission-form input:focus,
.spb-submission-form select:focus,
.spb-submission-form textarea:focus {
    border-color: var(--spb-primary-lighter) !important;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1) !important;
}
.spb-submit-btn {
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(30,58,95,0.25);
    transition: all 0.3s ease !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
}
.spb-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30,58,95,0.35) !important;
}

/* ---- Submissions Table ---- */
.spb-submissions-table {
    border-collapse: separate;
    border-spacing: 0;
}
.spb-submissions-table th {
    background: #f8fafc !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--spb-muted);
    border-bottom: 2px solid var(--spb-border) !important;
}
.spb-submissions-table tbody tr {
    transition: background 0.2s ease;
}
.spb-submissions-table tbody tr:hover {
    background: #f8fafc;
}

/* ---- About Section (Homepage) ---- */
.spb-content h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.spb-content ul {
    list-style: none;
    padding: 0;
}
.spb-content ul li {
    padding: 8px 0 8px 28px;
    position: relative;
}
.spb-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--spb-primary-lighter), var(--spb-accent-light));
}

/* ---- Archive Page Improvements ---- */
.spb-search-input {
    border-radius: var(--spb-radius-sm) !important;
    border: 2px solid var(--spb-border) !important;
    transition: all 0.2s ease;
}
.spb-search-input:focus {
    border-color: var(--spb-primary-lighter) !important;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1) !important;
    outline: none;
}

/* ---- Page Header (Beroep) ---- */
.spb-header h1 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.8px;
}
.spb-badge {
    transition: all 0.2s ease;
}
.spb-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--spb-shadow);
}

/* ---- Footer Enhancement ---- */
.spb-site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #0a1122 100%);
}
.spb-footer-inner {
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- Smooth Scrolling ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Selection Color ---- */
::selection {
    background: rgba(59,130,246,0.15);
    color: var(--spb-text);
}

/* ---- Mobile Responsive ---- */
@media (max-width: 640px) {
    .spb-hero {
        margin: -20px -16px 0;
        padding: 52px 24px 48px;
        border-radius: 0 0 28px 28px;
    }
    .spb-hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }
    .spb-hero-sub { font-size: 16px; }
    .spb-stats-banner { margin-top: -24px; }
    .spb-stats-number { font-size: 24px; }
    .spb-salary-card--mediaan { transform: scale(1); }
    .spb-salary-amount { font-size: 26px !important; }
}

/* ===== SECTOR TAXONOMY PAGE ===== */

/* ---- Sector Header ---- */
.spb-sector-header {
    text-align: center;
    margin-bottom: 32px;
}
.spb-sector-header h1 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.spb-sector-subtitle {
    font-size: 18px;
    color: var(--spb-muted);
    font-weight: 500;
    margin-bottom: 8px;
}
.spb-sector-desc {
    font-size: 15px;
    color: var(--spb-text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Sector Salary Stats ---- */
.spb-sector-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.spb-sector-stat {
    background: var(--spb-card);
    border: 1px solid var(--spb-border);
    border-radius: var(--spb-radius);
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}
.spb-sector-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--spb-shadow-md);
}
.spb-sector-stat--primary {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    transform: scale(1.03);
    box-shadow: 0 6px 24px -6px rgba(59,130,246,0.2);
}
.spb-sector-stat--primary:hover {
    transform: scale(1.03) translateY(-2px);
}
.spb-sector-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--spb-muted);
}
.spb-sector-stat-value {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--spb-primary);
}
.spb-sector-stat--primary .spb-sector-stat-value {
    color: #1d4ed8;
}
.spb-sector-stat-value--low {
    color: #b45309;
}
.spb-sector-stat-value--high {
    color: #047857;
}
.spb-sector-stat-period {
    font-size: 12px;
    color: var(--spb-muted-light);
    font-weight: 500;
}

/* ---- Filter Pills ---- */
.spb-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding: 16px;
    background: var(--spb-card);
    border: 1px solid var(--spb-border-light);
    border-radius: var(--spb-radius);
}
.spb-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--spb-text-secondary);
    background: var(--spb-bg);
    border: 1px solid var(--spb-border);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.spb-pill:hover {
    background: var(--spb-primary-bg);
    border-color: var(--spb-primary-lighter);
    color: var(--spb-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}
.spb-pill--active {
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(30,58,95,0.25);
}
.spb-pill--active:hover {
    background: linear-gradient(135deg, #0f2640 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(30,58,95,0.35);
}
.spb-pill-count {
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}
.spb-pill--active .spb-pill-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ---- Sub-sectors ---- */
.spb-subsectors {
    margin-bottom: 32px;
}
.spb-subsectors h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.spb-subsectors h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--spb-primary-lighter), var(--spb-accent-light));
    border-radius: 2px;
    flex-shrink: 0;
}
.spb-subsector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.spb-subsector-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--spb-card);
    border: 1px solid var(--spb-border);
    border-radius: var(--spb-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}
.spb-subsector-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--spb-shadow-md);
    border-color: var(--spb-primary-lighter);
}
.spb-subsector-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--spb-text);
}
.spb-subsector-count {
    font-size: 12px;
    color: var(--spb-muted);
}

/* ---- Sector Beroepen Section ---- */
.spb-sector-beroepen h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.spb-sector-beroepen h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--spb-primary-lighter), var(--spb-accent-light));
    border-radius: 2px;
    flex-shrink: 0;
}

/* ---- Sector Beroep Card ---- */
.spb-beroep-card--sector {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px !important;
    min-height: 110px;
}
.spb-beroep-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.spb-beroep-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.spb-badge--small {
    font-size: 10px !important;
    padding: 3px 8px !important;
    white-space: nowrap;
}
.spb-beroep-salary--unknown {
    color: var(--spb-muted-light) !important;
    font-weight: 500 !important;
    font-style: italic;
}

/* Trend badges */
.spb-beroep-trend {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}
.spb-beroep-trend--growing {
    background: #ecfdf5;
    color: #047857;
}
.spb-beroep-trend--stable {
    background: #eff6ff;
    color: #1d4ed8;
}
.spb-beroep-trend--declining {
    background: #fef2f2;
    color: #dc2626;
}

/* Grid for sector page (3 columns) */
.spb-beroep-grid--sector {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* ===== ARCHIVE TABLE STYLING ===== */

/* ---- Archive Header ---- */
.tax-sector .spb-header h1,
.post-type-archive-beroep .spb-header h1 {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Striped Archive Table ---- */
.spb-regio-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: var(--spb-radius);
    overflow: hidden;
    border: 1px solid var(--spb-border);
}
.spb-regio-table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    color: var(--spb-muted);
    padding: 14px 16px;
    border-bottom: 2px solid var(--spb-border);
    text-align: left;
    white-space: nowrap;
}
.spb-regio-table tbody tr {
    transition: all 0.2s ease;
}
.spb-regio-table tbody tr:nth-child(even) {
    background: var(--spb-bg-warm);
}
.spb-regio-table tbody tr:hover {
    background: var(--spb-primary-bg) !important;
}
.spb-regio-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--spb-border-light);
    font-size: 14px;
}
.spb-regio-table tbody tr:last-child td {
    border-bottom: none;
}
.spb-regio-table tbody td a {
    color: var(--spb-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.spb-regio-table tbody td a:hover {
    color: var(--spb-primary-lighter);
    text-decoration: underline;
}
.spb-regio-table tbody td strong {
    color: var(--spb-primary);
}

/* ---- Pagination Styling ---- */
.spb-pagination {
    margin: 32px 0;
    display: flex;
    justify-content: center;
}
.spb-pagination ul.page-numbers {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.spb-pagination ul.page-numbers li {
    margin: 0;
}
.spb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--spb-text-secondary);
    background: var(--spb-card);
    border: 1px solid var(--spb-border);
    border-radius: var(--spb-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}
.spb-pagination .page-numbers:hover {
    background: var(--spb-primary-bg);
    border-color: var(--spb-primary-lighter);
    color: var(--spb-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}
.spb-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(30,58,95,0.25);
}
.spb-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: var(--spb-muted-light);
}
.spb-pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}
.spb-pagination .next.page-numbers,
.spb-pagination .prev.page-numbers {
    padding: 0 16px;
    font-weight: 700;
}

/* Also style the default paginate_links (non-list) output on archive */
.post-type-archive-beroep .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--spb-text-secondary);
    background: var(--spb-card);
    border: 1px solid var(--spb-border);
    border-radius: var(--spb-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 3px;
}
.post-type-archive-beroep .page-numbers:hover {
    background: var(--spb-primary-bg);
    border-color: var(--spb-primary-lighter);
    color: var(--spb-primary);
}
.post-type-archive-beroep .page-numbers.current {
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(30,58,95,0.25);
}

/* ---- Archive Sector Filter Badges ---- */
.post-type-archive-beroep .spb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--spb-text-secondary);
    background: var(--spb-bg);
    border: 1px solid var(--spb-border);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.post-type-archive-beroep .spb-badge:hover {
    background: var(--spb-primary-bg);
    border-color: var(--spb-primary-lighter);
    color: var(--spb-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}
.post-type-archive-beroep .spb-badge--sector,
.post-type-archive-beroep .spb-badge.spb-badge--sector {
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(30,58,95,0.25);
}

/* ===== MOBILE RESPONSIVE (Sector + Archive) ===== */
@media (max-width: 768px) {
    .spb-sector-header h1 {
        font-size: 28px;
    }
    .spb-sector-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .spb-sector-stat--primary {
        transform: none;
    }
    .spb-sector-stat--primary:hover {
        transform: translateY(-2px);
    }
    .spb-beroep-grid--sector {
        grid-template-columns: 1fr !important;
    }
    .spb-filter-pills {
        gap: 6px;
        padding: 12px;
    }
    .spb-pill {
        padding: 6px 12px;
        font-size: 12px;
    }
    .spb-subsector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spb-regio-table {
        overflow-x: auto;
    }
    .spb-sector-stat-value {
        font-size: 24px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .spb-beroep-grid--sector {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .spb-sector-header h1 {
        font-size: 34px;
    }
}

/* ---- Submit Button Fix ---- */
.spb-submit-btn,
button.spb-submit-btn,
.spb-community .spb-submit-btn {
    background: linear-gradient(135deg, var(--spb-primary) 0%, var(--spb-primary-lighter) 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 36px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: var(--spb-font) !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(30,58,95,0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: -0.2px;
    text-decoration: none !important;
}
.spb-submit-btn:hover,
button.spb-submit-btn:hover {
    background: linear-gradient(135deg, #0f2640 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30,58,95,0.35) !important;
    text-decoration: none !important;
}
.spb-submit-btn:active,
button.spb-submit-btn:active {
    transform: scale(0.98) !important;
}
