.job-listing {
    scroll-margin-top: 100px;
}

.job-listing-filters {
    position: relative;
	margin-top: 15px;
    margin-bottom: 30px;
    z-index: 10;
}

.job-listing-filters .row {
	gap: 15px;
}

.job-listing-filters__title {
    display: block;
    color: var(--black);
    font-family: var(--font-family-heading);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    margin-bottom: 6px;
}

/* Native career dropdowns (FacetWP + FxChoices.js): mirror .choices__inner + filters-bar from components/choices.css and posts.css */
.job-listing-filters .facetwp-facet.facetwp-type-dropdown {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.job-listing-filters .facetwp-type-dropdown select.facetwp-dropdown {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 58px;
    height: 58px;
    padding: 17px 46px 17px 16px;
    margin: 0;
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    text-transform: capitalize;
    color: var(--light-grey);
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    appearance: none;
    cursor: pointer;
    background-image: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-listing-filters .facetwp-type-dropdown select.facetwp-dropdown:hover {
    border-color: #ddd;
}

.job-listing-filters .facetwp-type-dropdown select.facetwp-dropdown:focus {
    outline: none;
    border-color: #ddd;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Same chevron as Choices single-select (components/choices.css) */
.job-listing-filters .facetwp-type-dropdown::after {
    content: "\e90b";
    font-family: icomoon;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    pointer-events: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--primary);
}

@media (min-width: 768px) {
    .job-listing {
        scroll-margin-top: 122px;
    }
}

@media (min-width: 1025px) {
	.job-listing-filters .row {
		gap: 0;
	}
}

@media (min-width: 1200px) {   
    .job-listing {
        scroll-margin-top: 146px;
    }
    
	.job-listing-filters {
		margin-top: 15px;
        margin-bottom: 50px;
	}

    /* Match filters-bar / search-bar Choices max width on large screens (posts.css) */
    .job-listing-filters .facetwp-facet.facetwp-type-dropdown {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.facetwp-template .job-listing-container {
    display: flex;
    flex-direction: column;
    gap: 35px !important;
}

.job-listing-container .fwpl-result {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 2px solid #B7B7B7;
    padding-bottom: 35px;
}

.job-listing-container .fwpl-row.job-info {
    display: flex;
    flex-flow: row wrap;
    gap: 15px;
}

.job-title,
.job-location,
.job-type {
    color: var(--black);
    font-family: var(--font-family-heading);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.job-title {
    font-size: 24px;
    text-transform: uppercase;
}

.job-location .fwpl-item,
.job-type .fwpl-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.job-location .fwpl-item i,
.job-type .fwpl-item i {
	font-size: 14px;
	margin-top: -4px;
	color: var(--primary);
    width: 14px;
}

.job-location .fwpl-item i {
    font-size: 16px;
}

.job-button-col .job-post-url-btn,
.job-button-col:has(.is-empty) .job-application-url-btn {
    display: none !important;
    visibility: hidden !important;
}

.job-button-col:has(.is-empty) .job-post-url-btn {
    display: flex !important;
    visibility: visible !important;
}

@media (min-width: 768px) {
    .job-listing-container .fwpl-result {
        padding-bottom: 12px;
        flex-direction: row;
        gap: 0;
    }

    .job-listing-container .fwpl-row.job-info {
        width: calc(100% - 152px);
        justify-content: space-between;
        gap: 8px;
    }

    .job-title,
    .job-location,
    .job-type {
        justify-content: flex-start;
    }
}

@media (min-width: 1200px) {
    .job-listing-container .fwpl-row.job-info {
        gap: 0;
    }

    .job-title {
        max-width: 50%;
    }

    .job-location,
    .job-type {
        max-width: 25%;
        justify-content: flex-start;
        padding-left: 50px;
    }
}

.job-listing-pager {
    margin-top: 24px;
}

.job-listing-pager .facetwp-load-more {
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.job-listing-listings {
    height: 600px;
    overflow-y: auto;
}

.job-listing-listings::-webkit-scrollbar {
    width: 4px;
}

.job-listing-listings::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.job-listing-listings::-webkit-scrollbar-thumb {
    background: #888;
}