/* ==========================================
   FIND JOBS - SEARCH & LISTINGS
========================================== */

.find-jobs-listings-section {
    width: 100%;
}

.find-jobs-listings-container {
    width: 100%;
}


/* ==========================================
   SEARCH BAR
========================================== */

.find-jobs-search-form {
    width: 100%;
    display: flex;
    gap: 15px;
    margin-bottom: 28px;
}

.find-jobs-search-input-wrapper {
    flex: 1;
    position: relative;
}

.find-jobs-search-input {
    width: 100%;
    height: 56px;

    padding: 0 20px 0 48px;

    border: 1px solid #dce1e7;
    border-radius: 6px;

    font-size: 16px;
    color: var(--primary);

    background: #fff;

    box-sizing: border-box;
}

.find-jobs-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.find-jobs-search-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
}

.find-jobs-search-icon img {
    width: 22px;
    height: 22px;
}

.find-jobs-search-button {
    width: 160px;
    height: 56px;

    border: none;
    border-radius: 6px;

    background: var(--primary);
    color: #fff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}

.find-jobs-search-button:hover {
    background: #0b3558;
}


/* ==========================================
   LISTINGS HEADER
========================================== */

.find-jobs-listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.find-jobs-result-count {
    margin: 0;

    font-size: 15px;
    color: #333;
}

.find-jobs-result-count strong {
    color: var(--primary);
}

.find-jobs-sort-select {
    width: 170px;
    height: 48px;

    padding: 0 15px;

    border: 1px solid #dce1e7;
    border-radius: 6px;

    background: #fff;

    color: #333;
    font-size: 14px;

    cursor: pointer;
}

.find-jobs-sort-select:focus {
    outline: none;
    border-color: var(--primary);
}


/* ==========================================
   JOB CARD GRID
========================================== */

.find-jobs-cards-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;
}

/* ==========================================
   JOB LISTING PAGINATION
========================================== */

.job-pagination{

    display:flex;

    justify-content:center;
    align-items:center;

    gap:12px;

    margin-top:40px;
    margin-bottom:20px;

}


/* ==========================================
   PREVIOUS / NEXT BUTTONS
========================================== */

.job-pagination-button{

    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid #d9dfe7;

    border-radius:6px;

    background:#fff;

    color:var(--primary);

    font-size:20px;
    font-weight:500;

    text-decoration:none;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;

}


.job-pagination-button:hover{

    background:var(--primary);

    color:#fff;

    border-color:var(--primary);

    transform:translateY(-2px);

}


/* ==========================================
   PAGE NUMBERS
========================================== */

.job-pagination-pages{

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    text-decoration: none;

}


.job-pagination-page{

    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid #d9dfe7;

    border-radius:6px;

    background:#fff;

    color:#1d2733;

    font-size:15px;
    font-weight:500;

    text-decoration:none;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;

}


/* Hover */

.job-pagination-page:hover{

    border-color:var(--primary);

    color:var(--primary);

    transform:translateY(-2px);

}


/* Active Page */

.job-pagination-page.active{

    background:var(--primary);

    color:#fff;

    border-color:var(--primary);

    font-weight:600;

}


/* ==========================================
   THREE DOTS
========================================== */

.job-pagination-dots{

    width:35px;

    text-align:center;

    color:#667085;

    font-size:16px;

}


/* ==========================================
   MOBILE
========================================== */

@media(max-width:600px){

    .job-pagination{

        gap:6px;

    }


    .job-pagination-pages{

        gap:5px;

    }


    .job-pagination-button,
    .job-pagination-page{

        width:38px;
        height:38px;

        font-size:14px;

    }


    /* Hide some middle pages on small screens */

    .job-pagination-page:nth-child(4),
    .job-pagination-page:nth-child(5){

        display:none;

    }

}


/* ==========================================
   JOB CARD
========================================== */

.find-jobs-card {
    min-height: 300px;

    padding: 20px 18px;

    background: #fff;

    border: 1px solid #e2e6eb;
    border-radius: 8px;

    display: flex;
    flex-direction: column;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.find-jobs-card:hover {
    transform: translateY(-3px);

    border-color: #d5dce4;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.07);
}


/* ==========================================
   CARD TOP
========================================== */

.find-jobs-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 16px;
}

.find-jobs-company-logo {
    width: 42px;
    height: 42px;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #15191d;
    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

.find-jobs-logo-mep {
    background: #f4f8fb;
    color: #07558c;

    border: 1px solid #dce8f1;
}

.find-jobs-logo-buildhub {
    background: #fff;
    color: #f0b400;

    border: 1px solid #ddd;
}

.find-jobs-logo-engineering {
    background: #0e5182;
    color: #fff;
}

.find-jobs-save-button {
    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    font-size: 24px;

    color: #263442;

    cursor: pointer;

    line-height: 1;
}

.find-jobs-save-button:hover {
    color: var(--primary);
}


/* ==========================================
   COMPANY
========================================== */

.find-jobs-company-name {
    font-size: 14px;
    color: #333;

    margin-bottom: 10px;
}


/* ==========================================
   JOB TITLE
========================================== */

.find-jobs-job-title {
    margin: 0 0 18px;

    font-size: 18px;
    line-height: 1.3;

    font-weight: 700;

    color: #111;
}


/* ==========================================
   JOB META
========================================== */

.find-jobs-job-meta {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-bottom: 20px;
}

.find-jobs-meta-item {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 14px;
    color: #333;
}

.find-jobs-meta-icon {
    width: 18px;

    display: inline-flex;
    justify-content: center;

    color: #263442;
    font-size: 15px;
}


/* ==========================================
   CARD FOOTER
========================================== */

.find-jobs-card-footer {
    margin-top: auto;

    padding-top: 16px;

    border-top: 1px solid #e8ebef;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.find-jobs-posted-date {
    font-size: 13px;
    color: #555;
}

.find-jobs-view-link {
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition: 0.2s ease;
}

.find-jobs-view-link:hover {
    color: #c69225;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

    .find-jobs-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .find-jobs-search-form {
        flex-direction: column;
    }

    .find-jobs-search-button {
        width: 100%;
    }

    .find-jobs-listings-header {
        flex-direction: column;
        align-items: flex-start;

        gap: 15px;
    }

    .find-jobs-sort-select {
        width: 100%;
    }

    .find-jobs-cards-grid {
        grid-template-columns: 1fr;
    }

}

/* ==========================================
   FIND JOBS - FILTER SIDEBAR
========================================== */

.find-jobs-filter-sidebar {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e3e7ec;
    border-radius: 8px;

    overflow: visible;

    position: relative;
}


/* ==========================================
   FILTER HEADER
========================================== */

.find-jobs-filter-header {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 20px;

    border-bottom: 1px solid #e8ebef;
}

.find-jobs-filter-header h2 {
    margin: 0;

    font-size: 17px;
    font-weight: 700;

    color: var(--primary);
}

.find-jobs-filter-header-icon {
    color: var(--primary);

    font-size: 20px;
}


/* ==========================================
   FILTER FORM
========================================== */

.find-jobs-filter-form {
    padding: 20px;
}

.find-jobs-filter-group {
    padding-bottom: 24px;

    margin-bottom: 24px;

    border-bottom: 1px solid #eeeeee;

    position: relative;
}

.find-jobs-filter-group:last-of-type {
    border-bottom: none;
}

.find-jobs-filter-group-title {
    margin: 0 0 15px;

    color: #111827;

    font-size: 15px;
    font-weight: 700;
}


/* ==========================================
   CHECKBOXES
========================================== */

.find-jobs-filter-checkbox-list {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.find-jobs-filter-checkbox {
    display: flex;
    align-items: center;

    gap: 10px;

    cursor: pointer;

    font-size: 14px;
    color: #414141;

    position: relative;
}

.find-jobs-filter-checkbox input {
    position: absolute;

    opacity: 0;

    width: 0;
    height: 0;
}

.find-jobs-filter-checkbox-box {
    width: 17px;
    height: 17px;

    border: 1px solid #bfc7d0;

    border-radius: 3px;

    background: #fff;

    flex-shrink: 0;

    position: relative;

    transition: 0.2s ease;
}

.find-jobs-filter-checkbox input:checked
+ .find-jobs-filter-checkbox-box {

    background: var(--primary);

    border-color: var(--primary);
}

.find-jobs-filter-checkbox input:checked
+ .find-jobs-filter-checkbox-box::after {

    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border: solid #fff;

    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}

.find-jobs-filter-checkbox-label {
    line-height: 1.4;
}

.find-jobs-filter-checkbox:hover
.find-jobs-filter-checkbox-label {

    color: var(--primary);
}


/* ==========================================
   EXPERIENCE SLIDER
========================================== */

.find-jobs-experience-values {
    display: flex;
    justify-content: space-between;

    margin-bottom: 20px;

    font-size: 13px;

    color: #555;
}

.find-jobs-experience-values strong {
    color: var(--primary);

    font-size: 14px;
}


/* Slider wrapper */

.find-jobs-experience-slider {
    height: 24px;

    position: relative;

    display: flex;
    align-items: center;
}


/* Background */

.find-jobs-experience-track {
    position: absolute;

    left: 0;
    right: 0;

    height: 5px;

    background: #dce3eb;

    border-radius: 10px;
}


/* Selected range */

.find-jobs-experience-range {
    position: absolute;

    height: 5px;

    background: var(--primary);

    border-radius: 10px;
}


/* Range inputs */

.find-jobs-experience-input {
    position: absolute;

    left: 0;

    width: 100%;
    height: 5px;

    margin: 0;

    pointer-events: none;

    appearance: none;

    background: transparent;
}


/* Golden slider balls */

.find-jobs-experience-input::-webkit-slider-thumb {

    appearance: none;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #c8952e;

    border: 3px solid #fff;

    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);

    cursor: pointer;

    pointer-events: auto;
}

.find-jobs-experience-input::-moz-range-thumb {

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #c8952e;

    border: 3px solid #fff;

    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);

    cursor: pointer;

    pointer-events: auto;
}


/* ==========================================
   INDUSTRY VIEW MORE
========================================== */

.find-jobs-filter-view-more-button {

    margin-top: 15px;

    padding: 0;

    border: none;

    background: transparent;

    color: var(--primary);

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.find-jobs-filter-view-more-button:hover {
    color: #c8952e;
}


/* ==========================================
   INDUSTRY POPUP
========================================== */

.find-jobs-industry-popup {

    position: absolute;

    left: calc(100% + 12px);
    top: 0;

    width: 330px;
    max-height: 500px;

    background: #fff;

    border: 1px solid #dfe4e9;

    border-radius: 8px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.14);

    z-index: 100;

    display: none;

    overflow: hidden;
}

.find-jobs-industry-popup.is-open {
    display: block;
}

.find-jobs-industry-popup-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    border-bottom: 1px solid #e7e9ec;
}

.find-jobs-industry-popup-header h3 {

    margin: 0;

    color: var(--primary);

    font-size: 15px;
}

.find-jobs-industry-popup-close {

    width: 28px;
    height: 28px;

    border: none;

    background: transparent;

    font-size: 23px;

    color: #555;

    cursor: pointer;
}

.find-jobs-industry-popup-list {

    max-height: 440px;

    overflow-y: auto;

    padding: 18px;
}


/* ==========================================
   SALARY
========================================== */

.find-jobs-salary-inputs {

    display: flex;

    align-items: flex-end;

    gap: 8px;
}

.find-jobs-salary-field {
    flex: 1;
}

.find-jobs-salary-field label {

    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    color: #666;
}

.find-jobs-salary-field input {

    width: 100%;

    height: 42px;

    padding: 0 10px;

    border: 1px solid #d8dee5;

    border-radius: 5px;

    font-size: 13px;

    box-sizing: border-box;
}

.find-jobs-salary-field input:focus {

    outline: none;

    border-color: var(--primary);
}

.find-jobs-salary-separator {

    padding-bottom: 12px;

    color: #777;
}


/* ==========================================
   FILTER ACTIONS
========================================== */

.find-jobs-filter-actions {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    margin-top: 5px;
}

.find-jobs-filter-apply-button {

    width: 100%;

    height: 45px;

    border: none;

    border-radius: 5px;

    background: var(--primary);

    color: #fff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.find-jobs-filter-apply-button:hover {

    background: #0b3558;
}

.find-jobs-filter-clear-button {

    color: var(--primary);

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;
}

.find-jobs-filter-clear-button:hover {

    color: #c8952e;
}


/* ==========================================
   POPUP RESPONSIVE
========================================== */

@media (max-width: 1100px) {

    .find-jobs-industry-popup {

        left: auto;
        right: 0;

        width: 300px;
    }

}


@media (max-width: 700px) {

    .find-jobs-industry-popup {

        position: fixed;

        left: 20px;
        right: 20px;

        top: 50%;

        width: auto;
        max-height: 70vh;

        transform: translateY(-50%);
    }

}

.find-jobs-page-layout {
    width: 94%;
    max-width: 1450px;

    margin: 30px auto 60px;

    display: grid;

    grid-template-columns: 300px 1fr;

    gap: 25px;

    align-items: start;
}

.find-jobs-sidebar-column {
    min-width: 0;
}

.find-jobs-results-column {
    min-width: 0;
}


@media (max-width: 900px) {

    .find-jobs-page-layout {
        grid-template-columns: 1fr;
    }

}


/* ==========================================
   FIND JOB CTA
========================================== */
.job-cta-container{
    display: flex;
    justify-content: center;
}

.job-cta-box{
    margin-top: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #eeeeee;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    padding: 20px;
    gap: 20px;
}

.job-cta-content{
    display: flex;
    gap: 15px;
    flex-direction: column;
    justify-items: center;
    align-items:center;
    padding: 15px;
}

.job-cta-image{
    background-color: #0d3c62;
    padding: 12px;
    border-radius: 50%;
}

.job-cta-image img{
    width: 30px;
}

.job-cta-text h2{
    text-align: center;
    font-size: 24px;
    color: #0d3c62;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 600;
}

.job-cta-text p{
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.job-cta-box a{
    padding: 10px;
    background-color: #0d3c62;
    border-radius: 10px;
    text-align: center;
}

/* ==========================================
   JOB RESULTS LOADING
========================================== */

/* Results wrapper */
.find-jobs-results-wrapper {
    position: relative;
    min-height: 300px;
}


/* ==========================================
   FULL SCREEN LOADING OVERLAY
========================================== */

.find-jobs-loading-overlay {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(255, 255, 255, 0.88);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 999999;

}


/* Active loading state */
.find-jobs-loading-overlay.is-loading {
    display: flex;
}


/* ==========================================
   LOADER CONTENT
========================================== */

.find-jobs-loading-content {

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;

}


/* Loader icon */
.find-jobs-loading-icon {

    width: 50px;
    height: 50px;

    object-fit: contain;

}


/* Loading text */
.find-jobs-loading-content p {

    margin: 0;

    color: var(--primary);

    font-size: 15px;

    font-weight: 600;

}


/* ==========================================
   BUTTON LOADING
========================================== */

.find-jobs-search-button,
.find-jobs-filter-apply-button {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

}


/* Loading button */
.find-jobs-search-button.is-loading,
.find-jobs-filter-apply-button.is-loading {

    background: #8fa5b8;

    color: #fff;

    opacity: 0.75;

    cursor: not-allowed;

    pointer-events: none;

}


/* ==========================================
   BUTTON LOADER
========================================== */

.find-jobs-button-loader {

    width: 24px;
    height: 24px;

    object-fit: contain;

    display: block;

}


/* ==========================================================
   MOBILE JOB FILTER DRAWER
   <= 900px
========================================================== */

.find-jobs-mobile-filter-button,
.find-jobs-filter-close {
    display: none;
}


@media (max-width: 900px) {

    /*
     * The page becomes a single results column.
     * The filter itself is removed from normal flow and becomes
     * a full-screen drawer.
     */
    .find-jobs-page-layout {
        grid-template-columns: 1fr;
    }


    /*
     * FILTER + SEARCH
     *
     * Mobile layout:
     * [ Filter ] [ Search input................ ]
     */
    .find-jobs-search-form {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }


    .find-jobs-mobile-filter-button {
        display: inline-flex;

        flex: 0 0 105px;

        height: 56px;

        align-items: center;
        justify-content: center;

        gap: 7px;

        padding: 0 14px;

        border: 1px solid var(--primary);
        border-radius: 6px;

        background: var(--primary);
        color: #fff;

        font-family: inherit;
        font-size: 15px;
        font-weight: 600;

        cursor: pointer;

        transition:
            background .25s ease,
            transform .2s ease;
    }


    .find-jobs-mobile-filter-button:hover {
        background: #0b3558;
    }


    .find-jobs-mobile-filter-button:active {
        transform: scale(.98);
    }


    .find-jobs-mobile-filter-icon {
        font-size: 20px;
        line-height: 1;
    }


    .find-jobs-search-input-wrapper {
        flex: 1;
        min-width: 0;
    }


    .find-jobs-search-input {
        height: 56px;
    }


    /*
     * We already have a compact filter + search row,
     * so hide the large Search Jobs button.
     */
    .find-jobs-search-button {
        display: none;
    }


    /*
     * FILTER DRAWER
     *
     * It slides in from the right and occupies the entire
     * viewport, similar to the site's hamburger menu.
     */
    .find-jobs-filter-sidebar {
        position: fixed;

        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        height: 100dvh;

        margin: 0;

        border: none;
        border-radius: 0;

        background: #fff;

        overflow-x: hidden;
        overflow-y: auto;

        z-index: 100000;

        transform: translateX(100%);

        visibility: hidden;

        pointer-events: none;

        transition:
            transform .30s ease,
            visibility 0s linear .30s;
    }


    .find-jobs-filter-sidebar.is-mobile-open {
        transform: translateX(0);

        visibility: visible;

        pointer-events: auto;

        transition:
            transform .30s ease,
            visibility 0s linear 0s;
    }


    /*
     * Drawer header
     */
    .find-jobs-filter-header {
        position: sticky;

        top: 0;

        z-index: 10;

        min-height: 68px;

        padding: 14px 20px;

        background: #fff;

        box-shadow:
            0 2px 10px rgba(0, 0, 0, .08);
    }


    .find-jobs-filter-header h2 {
        font-size: 20px;
    }


    /*
     * X close button
     */
    .find-jobs-filter-close {
        display: flex;

        width: 38px;
        height: 38px;

        margin-left: auto;

        align-items: center;
        justify-content: center;

        padding: 0;

        border: none;
        border-radius: 50%;

        background: #f2f4f7;

        color: #333;

        font-family: Arial, sans-serif;
        font-size: 28px;
        font-weight: 400;
        line-height: 1;

        cursor: pointer;
    }


    .find-jobs-filter-close:hover {
        background: #e7ebef;
    }


    /*
     * Keep the existing filters comfortable inside the drawer.
     */
    .find-jobs-filter-form {
        padding-bottom: 30px;
    }


    /*
     * The Job CTA currently lives below the filter in the
     * left sidebar. Hide it at the same breakpoint so the
     * mobile page starts with Filter + Search, then results.
     */
    .find-jobs-sidebar-column .job-cta {
        display: none !important;
    }


    /*
     * Prevent the page behind the drawer from scrolling.
     */
    body.find-jobs-filter-drawer-open {
        overflow: hidden;
    }


    /*
     * Keep the results area directly below the search row.
     */
    .find-jobs-listings-header {
        margin-bottom: 20px;
    }

}


/* ==========================================================
   VERY SMALL SCREENS
   <= 420px
========================================================== */

@media (max-width: 420px) {

    .find-jobs-mobile-filter-button {
        flex: 0 0 92px;

        padding: 0 10px;

        font-size: 14px;
    }

    .find-jobs-mobile-filter-icon {
        font-size: 18px;
    }

}
