/* ---- Frame + carousel -------------------------------------------------- */
.ja-carousel {
    position: relative;
    /* background: #0b1f3b; */
    /* padding: 36px 44px;
    border-radius: 4px; */
    overflow-x: clip;
}

.ja-carousel::before {
    content: "";
    position: absolute;
    inset: 14px;
    /*border: 1px solid rgba(198, 166, 100, 0.5);*/
    border-radius: 2px;
    pointer-events: none;
}

.ja-carousel__loading {
    text-align: center;
    color: #FFFFFF;
    opacity: 0.7;
}

.swiper-pointer-events {
    overflow: visible;
}

/* JobAdder renders here, off-screen but still laid out so clicks work. */
.ja-carousel__staging {
    position: fixed;
    left: -99999px;
    top: 0;
    width: 1000px;
    height: auto;
    overflow: hidden;
    opacity: 0;
}

/* .ja-carousel .swiper {
    padding: 8px 4px 40px;
} */

.ja-carousel .swiper-slide {
    height: auto;
    display: flex;
    border: 1px solid #DCB276;
    padding: 10px;
}

.ja-carousel__empty p {
    font-family: "Inter", Sans-serif;
    font-size: 20px;
    color: #fff;
}

/* ---- Card (title + location) ------------------------------------------- */
.ja-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 451px;
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFEED3 100%);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-family: "Didot Font", Sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ja-card:hover,
.ja-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    outline: none;
}

.ja-card__title {
    white-space: break-spaces;
    font-family: "Didot Font", Sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #031D3E;
}

.ja-card__location {
    font-size: 24px;
    font-weight: 400;
    font-family: "lato", serif;
    color: #111419;
}

/* ---- Nav / pagination (gold on navy) ---------------------------------- */
.ja-carousel .swiper-button-next,
.ja-carousel .swiper-button-prev {
    color: #c6a664;
}

.ja-carousel .swiper-pagination-bullet {
    background: #c6a664;
    opacity: 0.5;
}

.ja-carousel .swiper-pagination-bullet-active {
    background: #c6a664;
    opacity: 1;
}

/* ---- Modal ------------------------------------------------------------- */
body.ja-modal-open {
    overflow: hidden;
}

.ja-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 16px;
}

.ja-modal[hidden] {
    display: none;
}

.ja-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 59, 0.6);
}

.ja-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ja-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #0b1f3b;
    cursor: pointer;
}

.ja-modal__body {
    padding: 32px;
}

.ja-modal__body #ja-jobs-widget {
    width: 100%;
}

/* Hide JobAdder branding inside the popup. */
.ja-modal .powered-by-jobadder,
.ja-modal #powered-by-jobAdder,
.ja-modal [class*="powered"] {
    display: none !important;
}

@media (max-width: 1024px) {
    .ja-card__title {
        font-size: 24px;
    }

    .ja-card__location {
        font-size: 18px;
    }

    .ja-carousel .swiper-wrapper {
        display: flex !important;
        justify-content: center !important;
        transform: none !important; /* Stops Swiper from miscalculating offset translation */
    }

    .ja-carousel .swiper-slide {
        width: 370px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .swiper-slide .ja-card,
    .ja-card {
        width: 315px !important;
        max-width: 100%;
        min-height: 250px;
    }

    .ja-carousel__swiper {
        margin: 20px;
    }
}