/* ============================================================
   Job Listings — Single Post Page
   Extracted from hello-theme-child/single-job_listing.php
   ============================================================ */

/* ── Page wrapper ── */
.jls-page { min-height: 100vh; padding: 48px 0 80px; }
.jls-container {
    max-width: var(--max-width-container, 1140px);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (max-width: 767px) {
    .jls-container { padding: 0 16px; }
    .jls-page      { padding: 24px 0 60px; }
}

/* ════════════════════════════════════════
   Hero Card
   ════════════════════════════════════════ */
.jls-hero {
    background: #fff;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
    box-shadow: 0 4px 10px 0 rgba(0,0,0,.2), 0 4px 20px 0 rgba(0,0,0,.02);
}
.jls-hero__logo {
    border-right: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    min-height: 200px;
}
.jls-hero__logo-img { max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.jls-hero__logo-name {
    font-family: var(--font-family-secondary);
    font-weight: 300;
    font-size: 14px;
    color: #888;
    text-align: center;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.jls-hero__info { padding: 40px 48px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.jls-hero__title {
    font-family: var(--font-family-primary) !important;
    font-weight: 700 !important;
    font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -.01em !important;
    color: var(--clr-dark-grey, #333) !important;
    margin: 0 0 8px !important;
    text-transform: uppercase;
}
.jls-hero__firm {
    font-family: var(--font-family-secondary);
    font-weight: 700;
    font-size: 15px;
    color: var(--clr-dark-grey, #333);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.jls-hero__meta { font-family: var(--font-family-secondary); font-weight: 300; font-size: 14px; color: #666; margin: 0; }
.jls-hero__date { font-family: var(--font-family-secondary); font-weight: 300; font-size: 13px; font-style: italic; color: #888; margin: 4px 0 0; }

@media (max-width: 767px) {
    .jls-hero { grid-template-columns: 1fr; }
    .jls-hero__logo { border-right: none; border-bottom: 1px solid #e8e8e8; min-height: 120px; padding: 24px; }
    .jls-hero__info { padding: 24px 20px; }
}

/* ════════════════════════════════════════
   Tabbed Card
   ════════════════════════════════════════ */
.jls-tabs-card {
    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);
}

/* ── Tab Nav ── */
.jls-tabs__nav { display: flex; border-bottom: 1px solid #e0e0e0; }
.jls-tab {
    flex: 1;
    padding: 16px 28px;
    font-family: var(--font-family-secondary);
    font-size: 15px;
    font-weight: 500;
    color: #888;
    background: transparent;
    border: none;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background .2s, color .2s;
    text-align: center;
    line-height: 1.3;
}
.jls-tab:last-child { border-right: none; }
.jls-tab:hover:not(.jls-tab--active) { background: #f8f8f8; color: var(--clr-dark-grey, #333); }
.jls-tab--active { background: var(--clr-primary, #AB0635) !important; color: #fff !important; }

@media (max-width: 767px) {
    .jls-tabs__nav { flex-direction: column; }
    .jls-tab { border-right: none; border-bottom: 1px solid #e0e0e0; text-align: left; }
    .jls-tab:last-child { border-bottom: none; }
}

/* ── Tab Panels ── */
.jls-tab-panel { display: none; padding: 40px 48px 48px; }
.jls-tab-panel--active { display: block; }
@media (max-width: 767px) { .jls-tab-panel { padding: 24px 20px 32px; } }

/* Panel heading */
.jls-panel__heading {
    font-family: var(--font-family-primary) !important;
    font-weight: 700 !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    color: var(--clr-dark-grey, #333) !important;
    text-align: center;
    margin: 0 0 36px !important;
}

/* Panel body: sidebar | divider | content */
.jls-panel__body { display: grid; grid-template-columns: 180px 1px 1fr; gap: 0 32px; align-items: start; }
.jls-panel__body--single { grid-template-columns: 1fr; }
.jls-panel__sidebar { padding-top: 4px; }
.jls-sidebar__label {
    font-family: var(--font-family-primary) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: var(--clr-dark-grey, #333) !important;
    margin: 0 0 8px !important;
}
.jls-sidebar__value { font-family: var(--font-family-secondary); font-weight: 300; font-size: 15px; color: #555; margin: 0; }
.jls-panel__divider { background: #ddd; width: 1px; align-self: stretch; min-height: 120px; }

@media (max-width: 767px) {
    .jls-panel__body { grid-template-columns: 1fr; gap: 20px 0; }
    .jls-panel__divider { width: 100%; height: 1px; min-height: unset; }
}

/* Panel content */
.jls-content__heading {
    font-family: var(--font-family-primary) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: var(--clr-dark-grey, #333) !important;
    margin: 0 0 20px !important;
}
.jls-content__text h3 { font-size: 18px; margin-bottom: 0; }
.jls-content__text,
.jls-content__text p,
.jls-content__text ul li,
.jls-content__text ol li {
    font-family: var(--font-family-secondary);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}
.jls-content__text p { margin-bottom: 16px; color: #555; }
.jls-content__text p:last-child { margin-bottom: 0; }
.jls-content__text ul,
.jls-content__text ol { margin-bottom: 16px; padding-left: 20px; color: #555; }
.jls-content__text a { color: var(--clr-primary, #AB0635); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.jls-content__apply { margin-top: 32px; }

/* Apply button */
.jls-apply-btn {
    display: inline-block;
    padding: 13px 32px;
    background: var(--clr-primary, #AB0635);
    color: #fff;
    font-family: var(--font-family-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 3px;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    letter-spacing: .3px;
}
.jls-apply-btn:hover { background: #6e1424; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(171,6,53,.2); text-decoration: none; }

/* ════════════════════════════════════════
   About Company — 3-column layout
   ════════════════════════════════════════ */
.jls-company-grid { display: flex; flex-direction: row; align-items: stretch; }
.jls-company-col { flex: 1; display: flex; flex-direction: column; padding-right: 32px; }
.jls-company-col:last-child { padding-right: 0; }
.jls-company-divider { width: 1px; flex-shrink: 0; background: #ddd; margin-right: 32px; align-self: stretch; }

.jls-company__label { font-family: var(--font-family-secondary); font-weight: 700; font-size: 15px; color: var(--clr-dark-grey, #333); margin: 0 0 6px; }
.jls-company__value + .jls-company__label,
.jls-company__link  + .jls-company__label,
.jls-company__email + .jls-company__label { margin-top: 24px; }
.jls-company__value { font-family: var(--font-family-secondary); font-weight: 300; font-size: 15px; color: #555; margin: 0; line-height: 1.5; }
.jls-company__link { font-family: var(--font-family-secondary); font-weight: 300; font-size: 15px; color: #0066cc; text-decoration: underline; text-underline-offset: 3px; }
.jls-company__link:hover { color: var(--clr-primary, #AB0635); }
.jls-company__email { font-family: var(--font-family-secondary); font-weight: 300; font-size: 15px; color: var(--clr-primary, #AB0635); text-decoration: none; }
.jls-company__email:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
    .jls-company-grid { flex-direction: column; gap: 20px; }
    .jls-company-col { padding-right: 0; }
    .jls-company-divider { width: 100%; height: 1px; margin-right: 0; }
}

/* ── Other jobs list ── */
.jls-other-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.jls-other-job { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #eee; gap: 16px; }
.jls-other-job:last-child { border-bottom: none; }
.jls-other-job__info { display: flex; flex-direction: column; gap: 4px; }
.jls-other-job__title { font-family: var(--font-family-secondary); font-weight: 500; font-size: 15px; color: var(--clr-primary, #AB0635); text-decoration: none; }
.jls-other-job__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.jls-other-job__snippet {
    font-family: var(--font-family-secondary);
    font-weight: 300;
    font-size: 13px;
    color: #666;
    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;
}
.jls-other-job__date { font-family: var(--font-family-secondary); font-size: 13px; font-weight: 300; color: #888; font-style: italic; }

.jls-btn-sm {
    display: inline-block;
    padding: 8px 20px;
    background: var(--clr-primary, #AB0635);
    color: #fff !important;
    font-family: var(--font-family-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.jls-btn-sm:hover { background: #6e1424; color: #fff; text-decoration: none; }
.jls-btn-sm--inactive { background: #ccc; cursor: default; }

/* Empty state */
.jls-empty { font-family: var(--font-family-secondary); font-weight: 300; font-size: 15px; color: #999; padding: 16px 0; margin: 0; }
