/* ── Jobs Search Page ────────────────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────────────── */
.js-hero {
    background: linear-gradient(135deg, #0b1430 0%, #0f2550 60%, #0d1e40 100%);
    padding: 48px 0 40px;
    position: relative; overflow: hidden;
}
.js-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 85% 40%, rgba(182,50,62,.16) 0%, transparent 55%),
                radial-gradient(ellipse at 5% 70%, rgba(99,102,241,.1) 0%, transparent 50%);
    pointer-events: none;
}
.js-hero::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.js-hero-inner {
    position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto; padding: 0 20px;
    text-align: center;
}
.js-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(182,50,62,.18); border: 1px solid rgba(182,50,62,.3);
    color: #f87171; font-size: 11.5px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.js-hero h1 {
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 900; color: #fff;
    line-height: 1.1; letter-spacing: -.5px; margin: 0 0 10px;
}
.js-hero h1 span { color: #f87171; }
.js-hero-sub {
    font-size: 15.5px; color: rgba(255,255,255,.6);
    margin: 0 0 28px;
}
.js-search-box {
    display: flex; background: #fff;
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.js-search-field {
    flex: 1; display: flex; align-items: center;
    gap: 10px; padding: 0 16px;
    border-right: 1px solid #e8ecf4;
}
.js-search-field svg { color: #94a3b8; flex-shrink: 0; }
.js-search-field input {
    flex: 1; border: none; outline: none;
    padding: 15px 0; font-size: 14.5px;
    color: #1a2035; background: transparent;
    min-width: 0;
}
.js-search-field input::placeholder { color: #b0bac9; }
.js-search-btn {
    padding: 15px 28px;
    background: #b6323e; color: #fff;
    border: none; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: background .15s;
    white-space: nowrap;
}
.js-search-btn:hover { background: #8f2832; }

/* ── Stats bar ────────────────────────────────────────────────────── */
.js-stats-bar {
    background: #fff; border-bottom: 1px solid #e8ecf4;
    padding: 12px 20px;
}
.js-stats-inner {
    max-width: 1300px; margin: 0 auto;
    display: flex; align-items: center; gap: 20px;
    font-size: 13px; color: #64748b; flex-wrap: wrap;
}
.js-stats-inner strong { color: #1a2035; font-weight: 700; }
.js-active-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #eff3ff; color: #3b52cc;
    border: 1px solid #c8d0f0; border-radius: 999px;
    padding: 3px 10px 3px 12px; font-size: 12px; font-weight: 600;
}
.js-active-chip a { color: inherit; text-decoration: none; font-weight: 700; }
.js-active-chip a:hover { color: #b6323e; }

/* ── Layout ───────────────────────────────────────────────────────── */
.js-layout {
    max-width: 1300px; margin: 0 auto;
    padding: 28px 20px 60px;
    display: grid;
    grid-template-columns: 260px minmax(0,1fr);
    gap: 24px; align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.js-sidebar { position: sticky; top: 88px; }
.js-filter-panel {
    background: #fff; border: 1px solid #e4e8f0;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,29,70,.06);
}
.js-filter-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 14px; border-bottom: 1px solid #f0f4f8;
}
.js-filter-head-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 16px; font-weight: 800; color: #1a2035;
}
.js-panel-clear {
    font-size: 12.5px; font-weight: 600; color: #b6323e;
    text-decoration: none; transition: opacity .15s;
}
.js-panel-clear:hover { opacity: .75; }
.js-accordion { border-top: 1px solid #f0f4f8; }
.js-acc-head {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between;
    padding: 12px 18px; background: none; border: none;
    cursor: pointer; font-size: 14px; font-weight: 700;
    color: #1a2035; text-align: left; transition: background .12s;
}
.js-acc-head:hover { background: #f8fafc; }
.js-acc-arrow { flex-shrink: 0; transition: transform .2s; color: #94a3b8; }
.js-accordion.is-open .js-acc-arrow { transform: rotate(180deg); }
.js-acc-body { display: none; padding: 4px 0 10px; }
.js-accordion.is-open .js-acc-body { display: block; }
.js-radio-list, .js-check-list {
    display: flex; flex-direction: column;
    padding: 0 10px; max-height: 240px; overflow-y: auto;
}
.js-radio-list::-webkit-scrollbar, .js-check-list::-webkit-scrollbar { width: 3px; }
.js-radio-list::-webkit-scrollbar-thumb, .js-check-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
.js-filter-opt {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 8px; border-radius: 8px; cursor: pointer;
    font-size: 13px; color: #374151; font-weight: 500;
    transition: background .1s;
}
.js-filter-opt:hover { background: #f8fafc; }
.js-filter-opt.is-active { background: #eff3ff; color: #111b3f; font-weight: 700; }
.js-filter-opt input { accent-color: #111b3f; width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.js-opt-label { flex: 1; }
.js-opt-count { font-size: 11px; font-weight: 600; color: #94a3b8; background: #f1f5f9; border-radius: 999px; padding: 1px 6px; }
.js-clear-btn {
    display: block; margin: 12px 18px 16px; padding: 10px;
    text-align: center; background: #f1f5f9; color: #64748b;
    border-radius: 10px; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: background .15s, color .15s;
}
.js-clear-btn:hover { background: #fee2e2; color: #b6323e; }

/* Alert box */
.js-alert-box {
    margin-top: 14px; background: linear-gradient(135deg,#eff3ff,#f5f0ff);
    border: 1px solid #c8d0f0; border-radius: 14px; padding: 18px 16px;
}
.js-alert-box h4 { font-size: 13px; font-weight: 800; color: #111b3f; margin: 0 0 5px; }
.js-alert-box p  { font-size: 12px; color: #64748b; line-height: 1.5; margin: 0 0 10px; }
.js-alert-input {
    width: 100%; box-sizing: border-box; padding: 9px 12px;
    border: 1.5px solid #c8d0f0; border-radius: 8px;
    font-size: 13px; margin-bottom: 8px; outline: none;
    transition: border-color .15s;
}
.js-alert-input:focus { border-color: #111b3f; }
.js-alert-btn {
    width: 100%; padding: 9px; background: #111b3f; color: #fff;
    border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.js-alert-btn:hover { background: #b6323e; }
.js-alert-success { background: #f0fdf4; color: #15803d; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; font-weight: 600; }

/* ── Main content ─────────────────────────────────────────────────── */
.js-main {}
.js-result-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.js-result-count { font-size: 13.5px; color: #64748b; }
.js-result-count strong { color: #1a2035; font-weight: 700; }

/* ── Job Cards ────────────────────────────────────────────────────── */
.js-jobs-list { display: flex; flex-direction: column; gap: 12px; }

.js-job-card {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border: 1.5px solid #e8ecf4;
    border-radius: 16px; padding: 20px 22px;
    text-decoration: none;
    transition: box-shadow .18s, border-color .18s, transform .18s;
    position: relative;
}
.js-job-card:hover {
    box-shadow: 0 6px 24px rgba(15,29,70,.1);
    border-color: #b6c0e0; transform: translateY(-2px);
}
.js-job-card--feat { border-color: #fde68a; background: linear-gradient(to right,#fffbf0,#fff); }
.js-job-card--feat:hover { border-color: #fcd34d; }

/* Left: logo */
.js-job-logo {
    width: 56px; height: 56px; border-radius: 12px;
    background: linear-gradient(135deg, #111b3f, #1e3a8a);
    display: grid; place-items: center; flex-shrink: 0;
    overflow: hidden; border: 1px solid #e8ecf4;
}
.js-job-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.js-job-logo span { color: #fff; font-size: 18px; font-weight: 900; letter-spacing: -.5px; }

/* Center: info */
.js-job-info { flex: 1; min-width: 0; }
.js-job-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.js-job-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; font-weight: 700; padding: 2px 9px;
    border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.js-job-badge--feat { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.js-job-badge--urg  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.js-job-badge--new  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.js-job-title {
    font-size: 16px; font-weight: 800; color: #0f1d46;
    transition: color .12s; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.js-job-card:hover .js-job-title { color: #b6323e; }
.js-job-company {
    font-size: 13px; color: #6366f1; font-weight: 600;
    margin-bottom: 10px; display: block; transition: opacity .12s;
}
.js-job-company:hover { opacity: .8; }
.js-job-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    margin-bottom: 10px;
}
.js-job-meta-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12.5px; color: #64748b; font-weight: 500;
}
.js-job-meta-item svg { opacity: .65; }
.js-job-meta-pay { color: #059669; font-weight: 700; }
.js-job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.js-job-tag {
    font-size: 11.5px; font-weight: 600; padding: 3px 10px;
    border-radius: 999px; background: #eef2ff; color: #4338ca;
}
.js-job-tag--remote { background: #f0fdf4; color: #15803d; }

/* Right: date + apply */
.js-job-right {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 8px; flex-shrink: 0;
    padding-top: 2px;
}
.js-job-date {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; color: #94a3b8; white-space: nowrap;
}
.js-job-apply {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 18px;
    background: #0f1d46; color: #fff;
    border-radius: 9px; font-size: 13px; font-weight: 700;
    white-space: nowrap; transition: background .15s, transform .1s;
}
.js-job-card:hover .js-job-apply { background: #b6323e; transform: translateX(2px); }

/* ── Pagination ───────────────────────────────────────────────────── */
.js-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap; margin-top: 32px;
}
.js-pag-btn {
    min-width: 38px; height: 38px; display: grid; place-items: center;
    border: 1.5px solid #e8ecf4; border-radius: 9px;
    background: #fff; color: #475569; font-size: 13.5px; font-weight: 600;
    text-decoration: none; padding: 0 10px;
    transition: all .15s;
}
.js-pag-btn:hover { border-color: #111b3f; color: #111b3f; background: #f0f3ff; }
.js-pag-btn.is-active { background: #111b3f; border-color: #111b3f; color: #fff; }

/* ── Empty state ──────────────────────────────────────────────────── */
.js-empty {
    text-align: center; padding: 80px 20px; color: #64748b;
}
.js-empty-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: #f8fafc; border: 2px dashed #e2e8f0;
    display: grid; place-items: center;
    font-size: 28px; margin: 0 auto 18px;
}
.js-empty h2 { font-size: 18px; font-weight: 800; color: #1a2035; margin: 0 0 8px; }
.js-empty p  { font-size: 14px; margin: 0 0 20px; }
.js-empty a  {
    display: inline-flex; align-items: center;
    padding: 10px 22px; background: #111b3f; color: #fff;
    border-radius: 8px; font-size: 13.5px; font-weight: 700;
    text-decoration: none; transition: background .15s;
}
.js-empty a:hover { background: #b6323e; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .js-layout { grid-template-columns: 1fr; padding-top: 20px; }
    .js-sidebar { position: static; }
    .js-filter-panel { display: grid; grid-template-columns: 1fr 1fr; }
    .js-filter-head { grid-column: 1/-1; }
}
@media (max-width: 640px) {
    .js-hero { padding: 40px 0 32px; }
    .js-hero h1 { font-size: 24px; }
    .js-search-box { flex-direction: column; border-radius: 12px; }
    .js-search-field { border-right: none; border-bottom: 1px solid #e8ecf4; }
    .js-search-btn { padding: 13px; }
    .js-filter-panel { grid-template-columns: 1fr; }
    .js-job-card { flex-direction: column; gap: 12px; }
    .js-job-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; padding-top: 0; }
}
