/* ── Find Jobseekers Page — matches find-employers design ─────────────── */

/* ── Hero ──────────────────────────────────────────────────────────────── */
.fj-hero {
    background: linear-gradient(135deg, #0b1430 0%, #0f2550 60%, #0d1e40 100%);
    padding: 56px 0 44px;
    position: relative;
    overflow: hidden;
}
.fj-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(182,50,62,.16) 0%, transparent 55%),
        radial-gradient(ellipse at 5% 80%, rgba(99,102,241,.1) 0%, transparent 50%);
    pointer-events: none;
}
.fj-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;
}
.fj-hero-inner {
    position: relative; z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.fj-hero-kicker {
    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: 18px;
}
.fj-hero h1 {
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 900; color: #fff;
    line-height: 1.1; letter-spacing: -.5px;
    margin: 0 0 12px;
}
.fj-hl { color: #f87171; }
.fj-hero p {
    font-size: 16px; color: rgba(255,255,255,.65);
    line-height: 1.6; margin: 0 0 28px;
}

/* Hero search bar */
.fj-hero-search {
    display: flex; gap: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    max-width: 640px;
    margin: 0 auto 28px;
}
.fj-hero-search-kw {
    display: flex; align-items: center; gap: 10px;
    flex: 1; padding: 0 16px;
    border-right: 1px solid #e8ecf4;
}
.fj-hero-search-kw svg { color: #94a3b8; flex-shrink: 0; }
.fj-hero-search-kw input {
    flex: 1; border: none; outline: none;
    padding: 14px 0;
    font-size: 15px; color: #1a2035;
    background: transparent;
}
.fj-hero-search-kw input::placeholder { color: #94a3b8; }
.fj-hero-search-loc {
    display: flex; align-items: center; gap: 8px;
    padding: 0 14px; min-width: 150px;
}
.fj-hero-search-loc svg { color: #94a3b8; flex-shrink: 0; }
.fj-hero-search-loc select {
    border: none; outline: none;
    font-size: 14px; color: #1a2035;
    background: transparent; cursor: pointer;
    width: 100%;
}
.fj-hero-search button {
    padding: 14px 28px;
    background: #b6323e; color: #fff;
    border: none; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: background .15s;
    white-space: nowrap;
}
.fj-hero-search button:hover { background: #8f2832; }

/* Hero stats */
.fj-hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; flex-wrap: wrap;
}
.fj-hero-stat { text-align: center; }
.fj-hero-stat strong {
    display: block; font-size: 26px; font-weight: 900;
    color: #fff; line-height: 1; margin-bottom: 4px;
}
.fj-hero-stat span { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 500; }
.fj-hero-stat-divider {
    width: 1px; height: 36px;
    background: rgba(255,255,255,.15);
}

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

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.fj-layout aside {
    position: sticky;
    top: 88px;
}
.fj-sidebar-card {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,29,70,.06);
}
.fj-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 14px;
    border-bottom: 1px solid #f0f4f8;
}
.fj-sidebar-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 16px; font-weight: 800; color: #1a2035;
    margin: 0;
}
.fj-sidebar-count {
    font-size: 11.5px; font-weight: 700;
    background: #b6323e; color: #fff;
    border-radius: 999px; padding: 2px 8px;
}

/* Guarantee border-box everywhere in the sidebar so inputs never overflow */
.fj-layout aside,
.fj-layout aside * { box-sizing: border-box; }
.fj-layout aside input { max-width: 100%; }

/* Keyword search in sidebar */
.fj-kw-wrap {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 18px;
    padding: 9px 12px;
    border: 1.5px solid #e4e8f0;
    border-radius: 10px;
    transition: border-color .15s;
    box-sizing: border-box;
}
.fj-kw-wrap:focus-within { border-color: #111b3f; }
.fj-kw-wrap svg { color: #94a3b8; flex-shrink: 0; }
.fj-kw-input {
    flex: 1 1 auto; min-width: 0; width: auto;
    border: none; outline: none;
    font-size: 13.5px; color: #1a2035; background: transparent;
}
.fj-kw-input::placeholder { color: #b0bac9; }

/* Filter group accordion */
.fj-filter-group {
    border-top: 1px solid #f0f4f8;
}
.fj-filter-toggle {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 18px;
    background: none; border: none; cursor: pointer;
    font-size: 14.5px; font-weight: 700; color: #1a2035;
    text-align: left; transition: background .12s;
}
.fj-filter-toggle:hover { background: #f8fafc; }
.fj-filter-toggle-left { display: flex; align-items: center; gap: 6px; }
.fj-filter-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #b6323e; color: #fff;
    font-size: 10.5px; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
}
.fj-filter-arrow { color: #94a3b8; font-size: 14px; transition: transform .2s; }
.fj-filter-toggle.is-collapsed .fj-filter-arrow { transform: rotate(-90deg); }

.fj-filter-body { padding: 4px 0 12px; }
.fj-filter-body.is-hidden { display: none; }

/* Search within filter */
.fj-filter-search {
    display: block;
    margin: 0 18px 8px;
    padding: 7px 10px;
    border: 1.5px solid #e4e8f0;
    border-radius: 8px;
    width: calc(100% - 36px);
    font-size: 12.5px; color: #1a2035;
    outline: none; box-sizing: border-box;
}
.fj-filter-search::placeholder { color: #b0bac9; }

/* Filter options */
.fj-opt {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 18px;
    cursor: pointer; transition: background .1s;
    font-size: 13.5px; color: #374151; font-weight: 500;
}
.fj-opt:hover { background: #f8fafc; }
.fj-opt input[type="radio"],
.fj-opt input[type="checkbox"] {
    accent-color: #111b3f;
    width: 16px; height: 16px;
    flex-shrink: 0; cursor: pointer;
}
.fj-opt-count {
    font-size: 11.5px; font-weight: 600; color: #94a3b8;
    background: #f1f5f9; border-radius: 999px;
    padding: 1px 7px; margin-left: auto;
}
.fj-opt.is-child { padding-left: 34px; }

/* Stars */
.fj-stars { display: flex; align-items: center; gap: 1px; }
.star-filled { color: #f59e0b; font-size: 14px; }
.star-empty  { color: #d1d5db; font-size: 14px; }

/* Clear all button */
.fj-clear-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 14px 18px 18px;
    padding: 10px 0;
    background: #f1f5f9; color: #64748b;
    border-radius: 10px;
    font-size: 13.5px; font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.fj-clear-btn:hover { background: #fee2e2; color: #b6323e; }

/* ── Main area ──────────────────────────────────────────────────────────── */
.fj-active-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
}
.fj-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #eff3ff; color: #3b52cc;
    border: 1px solid #c8d0f0;
    border-radius: 999px; padding: 4px 12px;
    font-size: 12.5px; font-weight: 600;
    text-decoration: none; transition: background .12s;
}
.fj-chip:hover { background: #fee2e2; color: #b6323e; border-color: #fca5a5; }
.fj-chip-x { font-size: 15px; font-weight: 700; }

.fj-results-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.fj-results-bar h2 {
    font-size: 18px; font-weight: 800; color: #1a2035;
    margin: 0 0 2px;
}
.fj-results-bar p { font-size: 13px; color: #64748b; margin: 0; }
.fj-sort-select {
    padding: 8px 14px;
    border: 1.5px solid #e4e8f0;
    border-radius: 9px;
    font-size: 13.5px; color: #374151;
    background: #fff; cursor: pointer; outline: none;
}
.fj-sort-select:focus { border-color: #111b3f; }

/* ── Candidate Cards ──────────────────────────────────────────────────── */
.fj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}
.fj-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1.5px solid #e8ecf4;
    border-radius: 16px;
    padding: 24px 20px 18px;
    text-decoration: none;
    transition: box-shadow .18s, border-color .18s, transform .18s;
    position: relative; overflow: hidden;
    text-align: center;
}
.fj-card:hover {
    box-shadow: 0 8px 28px rgba(15,29,70,.11);
    border-color: #b6c0e0;
    transform: translateY(-3px);
}
.fj-open-badge {
    position: absolute; top: 14px; left: 14px;
    background: #ecfdf5; color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 10.5px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
}
.fj-card-fav {
    position: absolute; top: 14px; right: 14px;
    background: none; border: none;
    font-size: 18px; color: #94a3b8;
    cursor: pointer; line-height: 1; padding: 0;
    transition: color .15s, transform .1s;
}
.fj-card-fav:hover { color: #b6323e; transform: scale(1.2); }
.fj-card-fav.is-faved { color: #b6323e; }

.fj-avatar-wrap { position: relative; display: inline-block; margin: 0 auto 12px; }
.fj-avatar {
    width: 76px; height: 76px; border-radius: 50%;
    background: linear-gradient(135deg, #111b3f 0%, #b6323e 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; color: #fff;
    overflow: hidden; border: 3px solid #e8ecf4; margin: 0 auto;
}
.fj-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fj-verified {
    position: absolute; bottom: 2px; right: -2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #2563eb;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.fj-name { font-size: 16px; font-weight: 800; color: #1a2035; margin: 0 0 4px; }
.fj-position { font-size: 13px; color: #b6323e; font-weight: 600; margin: 0 0 10px; }
.fj-meta {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.fj-meta-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12.5px; color: #64748b; font-weight: 500;
}
.fj-skills {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px; margin-bottom: 14px;
}
.fj-skill-tag {
    padding: 3px 10px;
    background: #f1f5f9; color: #475569;
    border-radius: 999px; font-size: 11.5px; font-weight: 600;
    border: 1px solid #e2e8f0;
}
.fj-skill-more {
    padding: 3px 10px;
    background: #eff3ff; color: #3b52cc;
    border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.fj-divider { border: none; border-top: 1px solid #f0f4f8; margin: 0 0 12px; }
.fj-rating {
    display: flex; align-items: center; justify-content: center;
    gap: 5px; margin-bottom: 14px;
    font-size: 13px; color: #64748b;
}
.fj-star { color: #f59e0b; font-size: 15px; }
.fj-rating strong { color: #1a2035; font-weight: 800; }
.fj-rating-sep { color: #e2e8f0; }
.fj-view-btn {
    display: block; margin-top: auto;
    padding: 10px 0;
    background: #0b1430; color: #fff;
    border-radius: 10px; font-size: 13.5px; font-weight: 700;
    text-align: center; transition: background .15s;
}
.fj-card:hover .fj-view-btn { background: #b6323e; }

/* Empty state */
.fj-empty {
    grid-column: 1/-1; text-align: center; padding: 60px 20px;
    background: #fff; border: 1.5px dashed #e4e8f0; border-radius: 16px;
}
.fj-empty-icon { font-size: 48px; margin-bottom: 16px; }
.fj-empty h3 { font-size: 20px; font-weight: 800; color: #1a2035; margin: 0 0 8px; }
.fj-empty p { font-size: 14px; color: #64748b; margin: 0 0 20px; }
.fj-empty-cta {
    display: inline-flex; padding: 10px 24px;
    background: #b6323e; color: #fff;
    border-radius: 9px; font-weight: 700; font-size: 14px;
    text-decoration: none; transition: background .15s;
}
.fj-empty-cta:hover { background: #8f2832; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.jobs-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap; margin-top: 32px; padding-bottom: 20px;
}
.jpag-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1.5px solid #e4e8f0; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: #374151;
    text-decoration: none; background: #fff; transition: all .15s;
}
.jpag-btn:hover { background: #f1f5f9; border-color: #b6c0e0; color: #1a2035; }
.jpag-btn.is-current { background: #0b1430; color: #fff; border-color: #0b1430; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .fj-layout { grid-template-columns: 1fr; }
    .fj-layout aside { position: static; }
    .fj-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
    .fj-hero-search { flex-wrap: wrap; }
    .fj-hero-search-kw { border-right: none; border-bottom: 1px solid #e8ecf4; }
    .fj-hero-search-loc { min-width: auto; }
    .fj-grid { grid-template-columns: 1fr; }
    .fj-hero-stats { gap: 20px; }
}
