/* =================================================================
   JOB LIST PAGE — /joblist
   ================================================================= */

/* ── Hero ─────────────────────────────────────────────────────── */
.jl-hero-wrap {
    position: relative;
    overflow: hidden;
    background: #0d1a2d;
}
.jl-hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(0.35);
}
.jl-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3rem;
}
.jl-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0 0.4rem;
    line-height: 1.15;
}
.jl-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.jl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
    color: rgba(255,255,255,0.6);
}
.jl-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.jl-breadcrumb a:hover { color: #fff; }
.jl-breadcrumb .bi-chevron-right { font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.jl-breadcrumb span { color: rgba(255,255,255,0.9); }

/* ── Page wrapper ─────────────────────────────────────────────── */
.jl-page-wrap {
    background: #f3f4f6;
    padding: 36px 0 60px;
}

/* ── Search bar ───────────────────────────────────────────────── */
.jl-search-bar {
    display: flex;
    gap: 10px;
    background: #312f45;
    padding: 18px 20px;
    border-radius: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.jl-search-field {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.jl-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}
.jl-search-input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #111;
    outline: none;
    box-sizing: border-box;
}
.jl-search-input:focus { box-shadow: 0 0 0 2px rgba(var(--dhs-red-rgb), 0.35); }
.jl-search-select {
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    min-width: 155px;
    color: #111;
    cursor: pointer;
    outline: none;
    background-color: #fff;
}
.jl-search-btn {
    background: var(--dhs-red);
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.jl-search-btn:hover { background: #b91c1c; }

/* ── Mobile filter toggle ─────────────────────────────────────── */
.jl-filter-mobile-btn {
    background: #312f45;
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.jl-filter-mobile-btn:hover { background: #1a1830; }
.jl-filter-badge {
    background: var(--dhs-red);
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: 2px;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.jl-sidebar {
    background: #312f45;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}
.jl-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.jl-sidebar-title { color: #fff; font-weight: 700; font-size: 1rem; }
.jl-clear-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.8);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.jl-clear-btn:hover { border-color: #fff; color: #fff; }

.jl-filter-section {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.jl-filter-title {
    color: rgba(255,255,255,0.85);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.jl-chevron { font-size: 0.7rem; color: rgba(255,255,255,0.45); }
.jl-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.72);
    font-size: 0.83rem;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.15s;
}
.jl-filter-label:hover { color: #fff; }
.jl-filter-label input[type=checkbox] {
    accent-color: var(--dhs-red);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}
.jl-filter-label span:first-of-type { flex: 1; }
.jl-filter-count { color: rgba(255,255,255,0.32); font-size: 0.74rem; margin-left: auto; }

.jl-sidebar-cta {
    padding: 18px;
    background: rgba(var(--dhs-red-rgb), 0.1);
    text-align: center;
}
.jl-sidebar-cta p { color: rgba(255,255,255,0.75); font-size: 0.8rem; margin-bottom: 12px; line-height: 1.55; }
.jl-sidebar-cta span { color: #fca5a5; font-weight: 700; }
.jl-sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--dhs-red);
    color: #fff;
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.jl-sidebar-cta-btn:hover { background: #b91c1c; color: #fff; }

/* ── Results header ───────────────────────────────────────────── */
.jl-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}
.jl-summary-main { font-size: 0.93rem; font-weight: 500; color: #374151; }
.jl-summary-detail { font-size: 0.8rem; color: #6b7280; margin-top: 3px; }
.jl-highlight { color: var(--dhs-red); font-weight: 700; }
.jl-sort-select {
    padding: 8px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
}

/* ── Active filter tags ───────────────────────────────────────── */
.jl-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.77rem;
    margin-right: 6px;
    margin-bottom: 6px;
}
.jl-tag-keyword { background: #f3f4f6; border-color: #d1d5db; color: #374151; }
.jl-tag-remove {
    color: var(--dhs-red);
    text-decoration: none;
    margin-left: 4px;
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 700;
}
.jl-tag-remove:hover { color: #991b1b; }
.jl-clear-all-tags {
    background: transparent;
    border: 1px solid var(--dhs-red);
    color: var(--dhs-red);
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 0.77rem;
    cursor: pointer;
    margin-left: 2px;
    margin-bottom: 6px;
    transition: all 0.2s;
}
.jl-clear-all-tags:hover { background: var(--dhs-red); color: #fff; }

/* ── Job Cards ────────────────────────────────────────────────── */
.jl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.jl-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    border-color: #fca5a5;
}
.jl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}
.jl-card-info { flex: 1; min-width: 0; }
.jl-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dhs-red);
    margin: 0 0 9px;
    line-height: 1.3;
}
.jl-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.81rem;
    color: #6b7280;
    margin-bottom: 9px;
}
.jl-card-meta span i { color: #9ca3af; margin-right: 3px; }
.jl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.jl-tag-item {
    background: #f3f4f6;
    color: #374151;
    font-size: 0.74rem;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
}
.jl-tag-item i { color: #9ca3af; margin-right: 3px; }
.jl-card-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
}
.jl-more-btn {
    display: inline-block;
    border: 1.5px solid var(--dhs-red);
    color: var(--dhs-red);
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    transition: all 0.2s;
}
.jl-more-btn:hover { background: var(--dhs-red); color: #fff; }
.jl-apply-btn-sm {
    display: inline-block;
    background: var(--dhs-red);
    color: #fff;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    transition: background 0.2s;
}
.jl-apply-btn-sm:hover { background: #b91c1c; color: #fff; }

.jl-card-expand-row { margin-top: 11px; }
.jl-expand-link {
    color: #16a34a;
    font-size: 0.81rem;
    font-weight: 600;
    text-decoration: none;
}
.jl-expand-link:hover { text-decoration: underline; }
.jl-card-divider { border-color: #f3f4f6; margin: 14px 0; }

.jl-expand-section { margin-bottom: 13px; }
.jl-expand-label {
    color: var(--dhs-red);
    font-size: 0.82rem;
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.jl-expand-body {
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.7;
}
.jl-expand-body ul { padding-left: 1.2rem; margin: 4px 0; }
.jl-expand-body li { margin-bottom: 2px; }
.jl-expand-body p { margin: 0 0 6px; }

.jl-card-footer {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid #f3f4f6;
}
.jl-salary { font-size: 0.84rem; color: #6b7280; }
.jl-salary strong { color: #111827; font-weight: 700; }

/* ── Load More ────────────────────────────────────────────────── */
.jl-load-more-btn {
    background: transparent;
    border: 2px solid var(--dhs-red);
    color: var(--dhs-red);
    padding: 11px 36px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.jl-load-more-btn:hover { background: var(--dhs-red); color: #fff; }

/* ── Desktop Pagination ───────────────────────────────────────── */
.pagination .page-item.active .page-link { background: var(--dhs-red); border-color: var(--dhs-red); }
.pagination .page-link { color: var(--dhs-red); }
.pagination .page-link:hover { background: #fef2f2; border-color: #fca5a5; }
.pagination .page-item.disabled .page-link { color: #9ca3af; }

/* ── Mobile Filter Modal ──────────────────────────────────────── */
.jl-modal-content { background: #312f45; }
.jl-modal-header {
    background: #1a1830;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 14px 18px;
}
.jl-modal-header .modal-title { color: #fff; font-size: 1rem; font-weight: 700; }
.jl-modal-footer {
    background: #1a1830;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 18px;
}
.jl-modal-content .modal-body .jl-filter-title { color: rgba(255,255,255,0.9); }
.jl-modal-content .modal-body .jl-filter-label { color: rgba(255,255,255,0.75); }

/* ── Job Detail Page ──────────────────────────────────────────── */
.jl-layout { background: #f3f4f6; padding: 40px 0 60px; }
.jl-detail-wrap { max-width: 900px; margin: 0 auto; }
.jl-detail-card { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.jl-detail-header { padding: 28px 32px 22px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.jl-detail-title { font-size: 1.5rem; font-weight: 800; color: var(--dhs-red); margin: 0 0 12px; }
.jl-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.jl-meta-badge { display: inline-flex; align-items: center; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 20px; padding: 4px 13px; font-size: 0.83rem; color: #374151; font-weight: 500; }
.jl-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.jl-tag { display: inline-flex; align-items: center; background: #fef2f2; color: var(--dhs-red); border-radius: 6px; padding: 3px 11px; font-size: 0.8rem; font-weight: 600; }
.jl-apply-btn { display: inline-flex; align-items: center; background: var(--dhs-red); color: #fff; padding: 12px 26px; border-radius: 999px; font-size: 0.9rem; font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: background 0.2s, transform 0.2s; box-shadow: 0 4px 14px rgba(var(--dhs-red-rgb), 0.3); }
.jl-apply-btn:hover { background: #b91c1c; color: #fff; transform: translateY(-1px); }
.jl-back-btn { display: inline-flex; align-items: center; background: transparent; color: #374151; padding: 12px 22px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; text-decoration: none; border: 1.5px solid #d1d5db; transition: all 0.2s; }
.jl-back-btn:hover { border-color: var(--dhs-red); color: var(--dhs-red); }
.jl-detail-body { padding: 28px 32px; }
.jl-section { margin-bottom: 26px; }
.jl-section:last-child { margin-bottom: 0; }
.jl-section-title { font-size: 0.98rem; font-weight: 700; color: var(--dhs-red); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid #fef2f2; }
.jl-section-body { font-size: 0.92rem; color: #4b5563; line-height: 1.8; }
.jl-section-body ul, .jl-section-body ol { padding-left: 1.25rem; margin: 0.5rem 0; }
.jl-section-body li { margin-bottom: 3px; }
.jl-section-body p { margin: 0 0 8px; }
.jl-detail-footer { padding: 18px 32px; background: #f9fafb; border-top: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.jl-salary-info { font-size: 0.98rem; color: #374151; }
.jl-salary-info strong { color: #1a1a2e; font-size: 1.08rem; }
.jl-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.jl-empty-state { text-align: center; padding: 80px 0; }
.jl-empty-icon { font-size: 4rem; color: #e5e7eb; display: block; margin-bottom: 20px; }
.jl-empty-state h3 { font-size: 1.3rem; font-weight: 700; color: #374151; margin: 0 0 8px; }
.jl-empty-state p { font-size: 0.93rem; color: #9ca3af; margin: 0 0 22px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .jl-hero-img { height: 260px; }
    .jl-page-wrap { padding: 24px 0 40px; }
    .jl-search-bar { flex-direction: column; gap: 8px; }
    .jl-search-field, .jl-search-select, .jl-search-btn { width: 100%; }
    .jl-card-top { flex-direction: column; }
    .jl-card-actions { flex-direction: row; }
    .jl-results-header { flex-direction: column; }
    .jl-detail-header { flex-direction: column; padding: 20px; }
    .jl-detail-body, .jl-detail-footer { padding: 18px 20px; }
}
@media (max-width: 480px) {
    .jl-card { padding: 16px 16px 12px; }
}
