#nkd-job-results {
    color: #2D3F4D;
}

#nkd-job-results .nkd-job-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#nkd-job-results .nkd-job-list__headline {
    font-size: 32px;
    font-weight: 500;
    margin-top: 80px;
    margin-bottom: 40px;
    line-height: 1.2em;

    strong {
        font-weight: 700;
    }
}

/* ── Empty state: no matching jobs ── */

#nkd-job-results .nkd-job-results__empty {
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
}

/* Link matches the surrounding text (size/weight/style), red and underlined.
   `font: inherit` is required because a global link rule otherwise forces 14px/300. */
#nkd-job-results .nkd-job-results__empty a {
    font: inherit;
    color: #e2001a;
    text-decoration: underline;
}

/* ── Job card: teal accent, two-column layout ── */

#nkd-job-results .nkd-job-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    gap: 0.5rem 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 1.75rem 1rem 2rem;
    background-color: #F1F2F3;
    border-radius: 8px;
}

#nkd-job-results .nkd-job-card__body {
    grid-column: 1;
    grid-row: 1;
}

#nkd-job-results .nkd-job-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2D3F4D;

    >a {
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
    }
}

#nkd-job-results .nkd-job-card__title a {
    color: inherit;
    text-decoration: none;
}

#nkd-job-results .nkd-job-card__title a:hover {
    text-decoration: underline;
}

#nkd-job-results .nkd-job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    font-size: 0.875rem;
    color: #555;
}

#nkd-job-results .nkd-job-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .03em;
}

#nkd-job-results .nkd-job-card__meta-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #555;
}

/* Hide old type/employment-type/location spans (replaced by meta row) */
#nkd-job-results .nkd-job-card__type,
#nkd-job-results .nkd-job-card__employment-type,
#nkd-job-results .nkd-job-card__location {
    display: none;
}

#nkd-job-results .nkd-job-card__actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
    align-self: center;
}

#nkd-job-results .nkd-job-card__btn {
    display: inline-block;
    padding: 0.3rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    white-space: nowrap;
}

#nkd-job-results .nkd-job-card__btn--apply {
    background-color: #e2001a;
    color: #fff;
}

#nkd-job-results .nkd-job-card__btn--apply:hover {
    background-color: #2D3F4D;
}

#nkd-job-results .nkd-job-card__btn--whatsapp {
    background-color: #075E54;
    color: #fff;
    display: flex;
    align-items: center;

    .whatsapp_icon>svg {
        width: 1.2em;
        height: auto;
        margin-right: .5em;
        margin-top: -0.05em;
    }
}

#nkd-job-results .nkd-job-card__btn--whatsapp:hover {
    background-color: #2D3F4D;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
    #nkd-job-results .nkd-job-card {
        grid-template-columns: 1fr;
    }

    #nkd-job-results .nkd-job-card__actions {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nkd-job-filter-bar {
        flex-direction: column;

        >div {
            width: 100%;
            max-width: unset;
        }
    }
}

/* ── Pagination: circular arrow buttons ── */
#nkd-job-results .nkd-job-pagination {
    margin-top: 2rem;
    text-align: center;
}

#nkd-job-results .nkd-job-pagination__counter {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

#nkd-job-results .nkd-job-pagination__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#nkd-job-results .nkd-job-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    background-color: #e21b24;
    color: #fff;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

#nkd-job-results .nkd-job-pagination__btn:hover:not(:disabled) {
    background-color: #e2001a;
}

#nkd-job-results .nkd-job-pagination__btn:disabled {
    background-color: #ccc;
    opacity: 0.6;
    cursor: default;
}

#nkd-job-results .nkd-job-pagination__btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

#nkd-job-results .nkd-job-pagination__page {
    font-size: 0.9rem;
    color: #555;
}

/* ── Filter bar: horizontal layout ── */

.nkd-job-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.nkd-job-filter-bar__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nkd-job-filter-bar__right {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nkd-job-filter-bar__left,
.nkd-job-filter-bar__right {
    max-width: calc(50% - 0.5rem);
}

.nkd-job-filter-bar__label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #2D3F4D;
    white-space: nowrap;
    align-self: flex-start;
}

/* Checkbox pills list (inline) */
.nkd-job-filters__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 16px;

    .nkd-job-filters__item>label {
        display: flex;
        gap: 8px;
        align-items: center;
        font-family: 'Open Sans', sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        color: #000000;
        cursor: pointer;

        input[type="checkbox"] {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background-color: #E5E8EA;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            outline: none;
            flex-shrink: 0;
            margin: 0;
            transition: background-color 0.2s, box-shadow 0.2s;

            &:checked {
                background-color: #DA001A;

                &::after {
                    content: "";
                    position: absolute;
                    left: 7px;
                    top: 3px;
                    width: 6px;
                    height: 11px;
                    border: solid #ffffff;
                    border-width: 0 2.5px 2.5px 0;
                    transform: rotate(45deg);
                }
            }

            &:not(:checked):hover {
                background-color: #2D3F4D;
            }

            &:checked:hover {
                background-color: #FF1430;
            }

            &:not(:checked):focus-visible {
                background-color: #FFFFFF;
                box-shadow: 0 0 0 2px #DA001A;
            }

            &:checked:focus-visible {
                background-color: #FF5266;
                box-shadow: 0 0 0 2px #000000;
            }
        }
    }
}

/* ── Active filter chips ── */

.nkd-job-chips__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nkd-job-chips__item {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.nkd-job-chips__label {
    line-height: 1.4;
}

.nkd-job-chips__dismiss {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    font-size: 14px;
    line-height: 1;
    color: inherit;
}

.nkd-job-chips__dismiss:hover {
    color: #e2001a;
}

.nkd-job-chips__clear-all {
    font-size: 14px;
    color: #e2001a;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}

.nkd-job-chips__clear-all:hover {
    text-decoration: underline;
}

/* Mobile screens: stack filter bar contents vertically as separate lines/rows */
@media (max-width: 480px) {
    .nkd-job-filter-bar__left {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .nkd-job-filter-bar__right {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}