/* ============================================
   Job Listing – Single Post Styles
   ============================================ */

/* ============================================
   Job Listing – Archive / Card Styles
   ============================================ */

/* ── Archive Wrapper ────────────────────────── */
.jl-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    font-family: inherit;
    color: #1e293b;
}

.jl-archive-header {
    margin-bottom: 36px;
}

.jl-archive-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* ── Card Grid ──────────────────────────────── */
.jl-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Card ────────────────────────────────────── */
.jl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.jl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.jl-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.jl-card-img-el {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.jl-card:hover .jl-card-img-el {
    transform: scale(1.05);
}

.jl-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jl-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

.jl-card-deadline {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

/* ── Pagination ─────────────────────────────── */
.jl-pagination {
    margin-top: 48px;
    text-align: center;
}

.jl-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jl-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.jl-pagination .page-numbers:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.jl-pagination .page-numbers.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.jl-no-jobs {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    padding: 60px 0;
}

/* ── Archive Responsive ─────────────────────── */
@media (max-width: 960px) {
    .jl-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .jl-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jl-archive-wrap {
        padding: 40px 16px 60px;
    }

    .jl-archive-title {
        font-size: 1.6rem;
    }
}

/* ── Wrapper ────────────────────────────────── */
.jl-single-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: inherit;
    color: #1e293b;
}

/* ── Header / Title ─────────────────────────── */
.jl-header {
    margin-bottom: 24px;
}

.jl-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0;
}

/* ── Banner Image ───────────────────────────── */
.jl-banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ── Lightbox Overlay ───────────────────────── */
.jl-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.jl-lightbox--open {
    display: flex;
    opacity: 1;
}

.jl-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    padding: 4px 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.jl-lightbox-close:hover {
    opacity: 1;
}

.jl-lightbox-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    /* allow JS pinch-to-zoom */
}

.jl-lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.jl-banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 540px;
}

/* ── Two-Column Layout ──────────────────────── */
.jl-columns {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.jl-col--content {
    flex: 1 1 60%;
    min-width: 0;
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.jl-col--form {
    flex: 0 0 380px;
    max-width: 380px;
}

/* ── Content Body ───────────────────────────── */
.jl-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.jl-body h2,
.jl-body h3,
.jl-body h4 {
    color: #0f172a;
    /* margin-top: 1.6em; */
    margin-bottom: 0.6em;
}

.jl-body ul,
.jl-body ol {
    padding-left: 1.4em;
    margin-bottom: 1em;
}

.jl-body p {
    margin-bottom: 1em;
}

/* ── Dates ──────────────────────────────────── */
.jl-dates {
    display: flex;
    gap: 24px;
    /* margin-top: 20px; */
    /* padding-top: 20px; */
    border-bottom: 1px solid #e2e8f0;
}

.jl-date-item {
    display: flex;
    flex-direction: column;
}

.jl-date-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;

    margin-bottom: 4px;
}

.jl-date-value {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;

}

/* ── Form Card ──────────────────────────────── */
.jl-form-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    position: sticky;
    top: 100px;
}

.jl-form-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px;
}

/* Basic CF7 overrides inside the card */
.jl-form-card .wpcf7 input[type="text"],
.jl-form-card .wpcf7 input[type="email"],
.jl-form-card .wpcf7 input[type="tel"],
.jl-form-card .wpcf7 input[type="url"],
.jl-form-card .wpcf7 input[type="date"],
.jl-form-card .wpcf7 textarea,
.jl-form-card .wpcf7 select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.jl-form-card .wpcf7 input:focus,
.jl-form-card .wpcf7 textarea:focus,
.jl-form-card .wpcf7 select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.jl-form-card .wpcf7 input[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 10px 22px;
    background: #2563eb;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.jl-form-card .wpcf7 label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #0f172a;
}

.jl-form-card .wpcf7 input[type="submit"]:hover {
    background: #1d4ed8;
}

.jl-form-card .wpcf7 p {
    margin-bottom: 4px;
}

.jl-form-card .wpcf7-not-valid-tip {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.jl-body-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .jl-body-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .jl-columns {
        flex-direction: column;
    }

    .jl-col--content {
        flex: 1 1 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .jl-col--form {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .jl-title {
        font-size: 1.8rem;
    }

    .jl-banner-img {
        max-height: 480px;
    }

    .jl-form-card {
        position: static;
    }

    .jl-dates {
        flex-direction: column;
        gap: 12px;
    }
}