.job-listing {
    max-width: min(1340px, 100%);
    margin: 50px auto;
    padding: 0 20px;
}

/* ── Sort toolbar ──────────────────────────────────────────── */
.job-listing__sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.job-listing__sort-toggle {
    display: inline-flex;
    align-items: center;
}

.job-listing__sort-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Pill container */
.job-listing__toggle-switch {
    display: inline-flex;
    background: #ffffff;
    box-shadow: 0px 1px 3px #00000015;
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    cursor: pointer;
    margin: 0;
}

.job-listing__toggle-opt {
    padding: 10px 20px;
    font-size: 16px;
    line-height: 22px;
    color: #414141;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
}

.job-listing__sort-toggle .job-listing__toggle-switch .job-listing__toggle-opt:first-child {
    border-radius: 12px 0 0 12px;
}

.job-listing__sort-toggle .job-listing__toggle-switch .job-listing__toggle-opt:last-child {
    border-radius: 0 12px 12px 0;
}

.job-listing__sort-toggle input:not(:checked)+.job-listing__toggle-switch .job-listing__toggle-opt:first-child,
.job-listing__sort-toggle input:checked+.job-listing__toggle-switch .job-listing__toggle-opt:last-child {
    background: #1CA0AF;
    color: #ffffff;
    font-weight: normal;
}

@media only screen and (max-width: 768px) {
    .job-listing__sort {
        justify-content: center;
    }
}

/* ── Job Listing ──────────────────────────────────────────────────── */
.job-listing__list {
    padding-bottom: 30px;
}

/* ── Card ──────────────────────────────────────────────────── */
.job-listing__card {
    display: grid;
    grid-template-columns: 25fr 20fr 20fr 35fr;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0px 1px 3px #00000015;
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    padding: 10px 20px;
    align-items: center;
    gap: 10px;
}

@media only screen and (max-width: 991px) {
    .job-listing__card {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }

    .job-listing__title {
        grid-column: span 3;
    }
}

@media only screen and (max-width: 768px) {
    .job-listing__card {
        display: block;
    }
}

/* ── Header ────────────────────────────────────────────────── */

.job-listing__title {
    font-size: 15px !important;
    font-weight: 600;
    line-height: 20px;
    margin: 0;
}

@media only screen and (max-width: 991px) {
    .job-listing__title {
        text-align: center;
        margin-bottom: 10px;
    }
}


/* ── Meta pills ────────────────────────────────────────────── */

.job-listing__location,
.job-listing__type {
    font-size: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-left: 1px solid #A7A6A5;
    justify-content: center;
    line-height: 20px;
}

@media only screen and (max-width: 991px) {

    .job-listing__location,
    .job-listing__type {
        border-left: none;
    }
}

@media only screen and (max-width: 768px) {

    .job-listing__location,
    .job-listing__type {
        margin-bottom: 10px;
    }
}

/* ── Apply button ─────────────────────────────────── */
.job-listing__apply {
    text-align: right;
}

.job-listing__apply-btn {
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .job-listing__apply {
        margin-top: 30px;
        text-align: center;
    }
}

/* ── Count label ───────────────────────────────────────────── */
.job-listing__count,
.job-listing__spacer {
    flex: 1;
}

.job-listing__count {
    font-size: 16px !important;
    line-height: 22px;
    font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────── */

.job-listing__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media only screen and (max-width: 768px) {
    .job-listing__footer {
        display: block;
        text-align: center;
    }

    .job-listing__pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ── Pagination ────────────────────────────────────────────── */
.job-listing__pagination {
    display: flex;
    gap: 8px;
}

.job-listing__page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 22px;
    font-weight: normal;
    color: #414141 !important;
}

.job-listing__page-ellipsis {
    font-size: 16px;
    line-height: 22px;
    color: #414141;
    padding: 0 2px;
    user-select: none;
}

.job-listing__page-link--active {
    font-weight: 600;
    cursor: default;
}

/* ── Prev / Next nav buttons ───────────────────────────────── */
.job-listing__page-nav {
    border: 1px solid #D7D7D7;
    border-radius: 6px;
    padding: 8px 12px;
    color: #414141 !important;
    font-weight: normal;
    display: flex;
    justify-content: center;
}

.job-listing__page-nav--disabled {
    cursor: default;
    pointer-events: none;
}

/* ── Error / empty states ──────────────────────────────────── */
.job-listing__error,
.job-listing__empty {
    padding: 48px 0;
    text-align: center;
}