/* ============================================================
   Job Listings — Archive Page
   Extracted from hello-theme-child/archive-job_listing.php
   ============================================================ */

/* ── Reset & page wrapper ── */
.jl-archive-page { min-height: 100vh; padding: 48px 0 80px; }
.jl-container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }

/* ── Two-column layout ── */
.jl-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }

/* ════════════════════════════════
   Filter Sidebar
   ════════════════════════════════ */
.jl-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px 32px;
    top: 100px;
    box-shadow: 0 4px 10px 0 rgba(0,0,0,.2), 0 4px 20px 0 rgba(0,0,0,.02);
}
.jl-sidebar__title {
    font-family: var(--font-family-primary, 'Libre Baskerville', serif) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: #333 !important;
    margin: 0 0 20px !important;
}
.jl-filter-form { display: flex; flex-direction: column; gap: 10px; }
.jl-filter-field { display: flex; flex-direction: column; }

/* Text input */
.jl-filter-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 10px 32px 10px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 0 0 4px 4px !important;
    font-family: var(--font-family-secondary) !important;
    color: #555 !important;
    background: #fff !important;
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
    height: 55px !important;
    font-size: 12px !important;
}
.jl-filter-input::placeholder { color: #aaa; }
.jl-filter-input:focus { border-color: #AB0635; }

/* Label above select */
.jl-filter-label {
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    color: #888;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: #fff;
    margin: 0;
    display: block;
}

/* Select wrapper + chevron */
.jl-select-wrap { position: relative; }
.jl-select-wrap::after {
    content: '';
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 6px;
    background: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 14 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23555' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='M12.85 2L6.668 8 .85 2'/%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;
}
.jl-filter-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 0 32px 10px 12px;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 13px;
    color: #555;
    background: #fff;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}
.jl-filter-select:focus { border-color: #AB0635; }

/* Job Type pills */
.jl-filter-group-label {
    font-family: var(--font-family-primary, 'Libre Baskerville', serif);
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin: 8px 0 10px;
}
.jl-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.jl-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid #ccc;
    border-radius: 999px;
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    user-select: none;
    line-height: 1;
}
.jl-pill:hover { border-color: #AB0635; color: #AB0635; }
.jl-pill--active { background: #AB0635; border-color: #AB0635; color: #fff; }
.jl-pill-checkbox { display: none; }

/* Search button */
.jl-search-btn {
    margin-top: 8px;
    width: 100%;
    padding: 14px;
    background: #AB0635;
    color: #fff;
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: .5px;
}
.jl-search-btn:hover { background: #6e1424; }

/* ════════════════════════════════
   Results Panel
   ════════════════════════════════ */
.jl-results { display: flex; flex-direction: column; gap: 0; }

/* Cards container */
.jl-listings {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px 0 rgba(0,0,0,.2), 0 4px 20px 0 rgba(0,0,0,.02);
}

.jl-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-bottom: 1px solid #eee;
    background: #fff;
}
.jl-card:last-child { border-bottom: none; }

/* Left col */
.jl-card__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 20px 14px;
    border-right: 1px solid #eee;
    text-align: center;
}
.jl-card__firm-col {
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 15px;
    font-weight: 300;
    color: #888;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}
.jl-card__badge {
    display: inline-block;
    background: #1F3550;
    color: #fff;
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.3;
}

/* Right col */
.jl-card__right { padding: 18px 22px; display: flex; flex-direction: column; gap: 3px; }
.jl-card__title {
    font-family: var(--font-family-secondary, 'Outfit', sans-serif) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 2px !important;
    line-height: 1.3 !important;
    text-transform: uppercase;
}
.jl-card__title a {
    font-family: var(--font-family-primary) !important;
    font-weight: 700 !important;
    color: inherit;
    text-decoration: underline;
    font-size: 18px;
}
.jl-card__title a:hover { color: #AB0635; }
.jl-card__firm {
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0;
    text-transform: uppercase;
}
.jl-card__meta {
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 15px;
    font-weight: 300;
    color: #666;
    margin: 0;
}
.jl-card__excerpt {
    font-size: 13px;
    font-weight: 300;
    color: #555;
    line-height: 1.5;
    margin: 4px 0 0;
    /* Hard cap at 2 lines — belt-and-suspenders alongside the PHP truncation */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jl-card__excerpt p { margin: 0; color: #555; font-size: 13px; }
.jl-card__date { font-size: 12px; font-weight: 300; color: #888; font-style: italic; margin: 4px 0 0; }

/* Featured image in card left col */
.jl-card__logo {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* No results */
.jl-no-results {
    background: #fff;
    border-radius: 8px;
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 15px;
    color: #888;
    text-align: center;
    padding: 48px;
}

/* Pagination */
.jl-pagination { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jl-pagination .page-numbers {
    font-family: var(--font-family-secondary, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #1F3550;
    text-decoration: none;
    border-radius: 3px;
    transition: background .2s, color .2s;
}
.jl-pagination .page-numbers:hover { background: #AB0635; border-color: #AB0635; color: #fff; }
.jl-pagination .page-numbers.current { background: #1F3550; border-color: #1F3550; color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .jl-layout { grid-template-columns: 1fr; }
    .jl-sidebar { position: static; }
}
@media (max-width: 767px) {
    .jl-container { padding: 0 16px; }
    .jl-archive-page { padding: 24px 0 60px; }
}
@media (max-width: 580px) {
    .jl-card { grid-template-columns: 1fr; }
    .jl-card__left {
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 14px 16px;
    }
}
