:root {
    --job-navy: #0b3366;
    --job-teal: #0abab5;
    --job-gold: #f6e995;
    --job-text: #4c6b87;
    --job-line: #dceaf0;
    --job-surface: #ffffff;
}

.job-detail-page { font-family: Poppins, Arial, sans-serif; }

html {
    scroll-behavior: smooth;
}

body.inner-page {
    background: #f6fafc;
}

.job-detail-page,
.job-detail-page * {
    box-sizing: border-box;
}

.job-detail-page {
    padding: 94px 0 76px;
    color: var(--job-text);
}

.job-detail-shell {
    width: min(92%, 1320px);
    margin: 0 auto;
}

.job-detail-breadcrumb {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #5d7790;
    font-size: 12px;
}

.job-detail-breadcrumb a {
    color: #1d668e;
    text-decoration: none;
}

.job-detail-breadcrumb > i {
    color: #9cb0c1;
    font-size: 8px;
}

.job-detail-breadcrumb span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    align-items: start;
    gap: 22px;
}

.job-detail-main,
.job-detail-sidebar {
    min-width: 0;
}

.job-detail-hero {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    border: 1px solid #deebf0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(11, 51, 102, 0.07);
}

.job-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 47%;
    background-image: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.18) 28%, rgba(255, 255, 255, 0) 58%), var(--job-hero-image);
    background-repeat: no-repeat;
    background-position: center, center 35%;
    background-size: cover, cover;
}

.job-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 47%, rgba(255,255,255,.93) 57%, rgba(255,255,255,.08) 84%);
    pointer-events: none;
}

.job-detail-hero-copy {
    position: relative;
    z-index: 2;
    width: 72%;
    padding: 25px 28px 23px;
}

.job-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.job-featured-badge,
.job-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.job-featured-badge {
    background: #098f8a;
    color: #ffffff;
}

.job-status-badge.is-active {
    background: #dcf8e7;
    color: #087a43;
}

.job-status-badge.is-expired {
    background: #ffe3e3;
    color: #c42f3b;
}

.job-detail-hero h1 {
    max-width: 700px;
    margin: 0 0 6px;
    color: var(--job-navy);
    font-size: clamp(25px, 2.3vw, 36px);
    line-height: 1.16;
}

.job-detail-department {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #416887;
    font-size: 13px;
}

.job-detail-department i {
    color: var(--job-teal);
}

.job-detail-facts {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr .9fr;
    gap: 0;
    margin-top: 24px;
}

.job-detail-facts > span {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    padding: 0 11px;
    border-right: 1px solid #e7eef2;
    color: #4e6e89;
    font-size: 10px;
}

.job-detail-facts > span:first-child {
    padding-left: 0;
}

.job-detail-facts > span:last-child {
    border-right: 0;
}

.job-detail-facts i {
    grid-row: 1 / 3;
    color: var(--job-teal);
    font-size: 18px;
}

.job-detail-facts b,
.job-detail-facts small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.job-detail-facts b {
    color: #315573;
    font-size: 11px;
    font-weight: 600;
}

.job-detail-facts small {
    margin-top: 2px;
    color: #6c8498;
    font-size: 9px;
}

.job-detail-facts .deadline.is-active i,
.job-detail-facts .deadline.is-active small {
    color: #a98200;
}

.job-detail-facts .deadline.is-expired i,
.job-detail-facts .deadline.is-expired small {
    color: #c42f3b;
}

.travel-assignment-badge {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 5px;
    background: rgba(9, 105, 157, 0.92);
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.job-detail-tabs {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    margin: 8px 0 12px;
    padding: 0 12px;
    overflow-x: auto;
    border: 1px solid var(--job-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(11, 51, 102, 0.04);
}

.job-detail-tabs a {
    position: relative;
    flex: 0 0 auto;
    padding: 15px 8px;
    color: #466985;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.job-detail-tabs a::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 0;
    left: 8px;
    height: 2px;
    transform: scaleX(0);
    background: var(--job-teal);
    transition: transform 180ms ease;
}

.job-detail-tabs a:hover,
.job-detail-tabs a.is-active {
    color: var(--job-navy);
}

.job-detail-tabs a:hover::after,
.job-detail-tabs a.is-active::after {
    transform: scaleX(1);
}

.job-detail-content-card,
.job-action-card,
.job-summary-card,
.job-map-card {
    border: 1px solid var(--job-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(11, 51, 102, 0.05);
}

.job-detail-content-card {
    padding: 25px 28px 28px;
}

.job-content-section {
    scroll-margin-top: 105px;
    padding: 19px 0;
    border-bottom: 1px solid #e8eff3;
}

.job-content-section:first-child {
    padding-top: 0;
}

.job-content-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.job-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.job-section-title > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f9fa;
    color: var(--job-teal);
    font-size: 14px;
}

.job-section-title h2,
.job-summary-card h2,
.job-map-card h2 {
    margin: 0;
    color: var(--job-navy);
    font-size: 17px;
    line-height: 1.25;
}

.job-content-section > p {
    margin: 0;
    color: #4d6c87;
    font-size: 12px;
    line-height: 1.75;
}

.job-value-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 4px;
    padding: 15px;
    border: 1px solid #e5eff3;
    border-radius: 7px;
    background: #f8fbfc;
}

.job-value-strip span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #446785;
    font-size: 10px;
    line-height: 1.35;
}

.job-value-strip i {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcf6f7;
    color: #08aaa5;
}

.job-check-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.job-check-list li {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 7px;
    color: #4d6c87;
    font-size: 11px;
    line-height: 1.45;
}

.job-check-list i {
    margin-top: 3px;
    color: #089d98;
    font-size: 11px;
}

.job-detail-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-detail-two-column .job-content-section {
    padding: 20px 22px 20px 0;
    border-bottom: 1px solid #e8eff3;
}

.job-detail-two-column .job-content-section + .job-content-section {
    padding-right: 0;
    padding-left: 22px;
    border-left: 1px solid #e8eff3;
}

.job-faq-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
}

.job-faq-wave {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff9d8;
    font-size: 21px;
    transform-origin: 70% 70%;
    animation: jobFaqWave 2.8s ease-in-out infinite;
}

.job-faq-heading h2 {
    margin: 0;
    color: var(--job-navy);
    font-size: 17px;
}

.job-faq-heading p {
    margin: 3px 0 0;
    color: #6c8498;
    font-size: 10px;
}

.job-faq-list {
    display: grid;
    gap: 9px;
}

.job-faq-item {
    overflow: hidden;
    border: 1px solid #dceaf0;
    border-radius: 7px;
    background: #fbfdfe;
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.job-faq-item[open] {
    border-color: rgba(10, 186, 181, 0.48);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(11, 51, 102, 0.07);
}

.job-faq-item summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    color: #234f73;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.job-faq-item summary::-webkit-details-marker {
    display: none;
}

.job-faq-item summary i {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f8f9;
    color: #079b96;
    font-size: 10px;
    transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.job-faq-item[open] summary i {
    transform: rotate(45deg);
    background: #079b96;
    color: #ffffff;
}

.job-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 260ms ease, opacity 220ms ease;
}

.job-faq-answer > div {
    overflow: hidden;
}

.job-faq-item[open] .job-faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.job-faq-answer p {
    margin: 0;
    padding: 0 14px 14px;
    color: #5e7890;
    font-size: 11px;
    line-height: 1.65;
}

@keyframes jobFaqWave {
    0%, 55%, 100% { transform: rotate(0deg); }
    62% { transform: rotate(13deg); }
    69% { transform: rotate(-8deg); }
    76% { transform: rotate(10deg); }
    83% { transform: rotate(-5deg); }
}

.job-detail-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
}

.job-action-card,
.job-summary-card,
.job-map-card {
    padding: 14px;
}

.job-detail-apply {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 6px;
    background: linear-gradient(180deg, #0dbeb9, #078f8b);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(10, 186, 181, 0.2);
}

.job-detail-apply:hover {
    background: linear-gradient(180deg, #0aaea9, #087d79);
    color: #ffffff;
}

.job-detail-apply.is-disabled,
.job-detail-apply.is-disabled:hover {
    background: #fff0f1;
    color: #b32632;
    box-shadow: none;
}

.job-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.job-secondary-actions button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #bcdde5;
    border-radius: 6px;
    background: #ffffff;
    color: #27708d;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.job-secondary-actions button:hover,
.job-secondary-actions button.is-saved {
    border-color: var(--job-teal);
    background: #effbfb;
    color: #087d79;
}

.job-summary-card h2,
.job-map-card h2 {
    margin: 0 0 10px;
}

.job-summary-card dl {
    margin: 0;
}

.job-summary-card dl > div {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    padding: 10px 0;
    border-bottom: 1px solid #e8eff3;
}

.job-summary-card dl > div:last-child {
    border-bottom: 0;
}

.job-summary-card dt,
.job-summary-card dd {
    margin: 0;
}

.job-summary-card dt {
    display: contents;
    color: #7890a5;
    font-size: 9px;
}

.job-summary-card dt i {
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f8f9;
    color: var(--job-teal);
    font-size: 12px;
}

.job-summary-card dd {
    grid-column: 2;
    margin-top: 2px;
    color: #315573;
    font-size: 10px;
    line-height: 1.45;
}

.job-summary-card dd small {
    display: block;
    margin-top: 2px;
    color: #71879a;
    font-size: 9px;
}

.summary-deadline.is-active {
    color: #8d7100;
}

.summary-deadline.is-expired {
    color: #c42f3b;
}

.job-map-card iframe {
    width: 100%;
    height: 152px;
    display: block;
    border: 0;
    border-radius: 6px;
    background: #eef5f7;
}

.job-map-card > a {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 6px;
    padding: 11px 3px 0;
    color: #078f8b;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.job-map-card > a i:last-child {
    justify-self: end;
    font-size: 8px;
}

.job-support-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 15px;
    border: 1px solid #d8edf0;
    border-radius: 8px;
    background: linear-gradient(135deg, #effbfb, #e6f7fa);
}

.job-support-card > span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #079b96;
    color: #ffffff;
}

.job-support-card strong {
    display: block;
    color: #0d6e73;
    font-size: 10px;
}

.job-support-card p {
    margin: 3px 0 10px;
    color: #4f758b;
    font-size: 9px;
    line-height: 1.5;
}

.job-support-card a {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid var(--job-teal);
    border-radius: 5px;
    color: #078f8b;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

.job-not-found {
    width: min(92%, 760px);
    margin: 90px auto;
    padding: 55px 30px;
    border: 1px solid var(--job-line);
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.job-not-found h1 {
    color: var(--job-navy);
}

.job-not-found a {
    display: inline-flex;
    margin-top: 15px;
    padding: 11px 18px;
    border-radius: 6px;
    background: var(--job-teal);
    color: #ffffff;
    text-decoration: none;
}

.apply-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 37, 58, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.apply-modal.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

body.job-modal-open {
    overflow: hidden;
}

.apply-modal-box {
    position: relative;
    width: min(100%, 430px);
    padding: 30px;
    border-radius: 8px;
    background: #ffffff;
    color: #526f88;
    text-align: center;
    box-shadow: 0 24px 70px rgba(2, 30, 50, 0.28);
    transform: translateY(16px) scale(0.96);
    opacity: 0;
}

.apply-modal.is-open .apply-modal-box {
    animation: jobModalIn 300ms cubic-bezier(.2,.8,.2,1) forwards;
}

.apply-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f6f8;
    color: #56758c;
    cursor: pointer;
}

.apply-modal-close:hover,
.apply-modal-close:focus-visible {
    background: #e5f4f5;
    color: #087d79;
}

.apply-modal-box .modal-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f8f9;
    color: var(--job-teal);
}

.apply-modal-box .modal-wave {
    font-size: 22px;
    animation: jobFaqWave 2.4s ease-in-out infinite;
}

.apply-modal-box .modal-icon.is-expired {
    background: #fff0f1;
    color: #c42f3b;
}

.apply-modal-box h3 {
    margin: 14px 0 8px;
    color: var(--job-navy);
    font-size: 21px;
}

.apply-modal-box p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
}

.modal-divider {
    height: 1px;
    margin: 20px 0;
    background: #e7eef2;
}

.apply-modal-actions {
    display: grid;
    gap: 9px;
}

.apply-modal-actions .btn-main,
.apply-modal-actions .btn-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

@keyframes jobModalIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.apply-modal-actions .btn-main {
    border: 1px solid var(--job-teal);
    background: var(--job-teal);
    color: #ffffff;
    text-decoration: none;
}

.apply-modal-actions .btn-link {
    border: 1px solid #cfe1e8;
    background: #ffffff;
    color: #315573;
}

@media (max-width: 1080px) {
    .job-detail-shell {
        width: min(94%, 1020px);
    }

    .job-detail-layout {
        grid-template-columns: minmax(0, 1fr) 285px;
        gap: 16px;
    }

    .job-detail-hero-copy {
        width: 78%;
    }

    .job-detail-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 13px;
    }

    .job-detail-facts > span:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 850px) {
    .job-detail-layout {
        grid-template-columns: 1fr;
    }

    .job-detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .job-action-card,
    .job-support-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .job-detail-page {
        padding-top: 78px;
    }

    .job-detail-shell {
        width: 100%;
        padding: 0 13px;
    }

    .job-detail-breadcrumb {
        font-size: 10px;
    }

    .job-detail-hero {
        min-height: 0;
    }

    .job-detail-hero::before {
        inset: auto 0 0;
        height: 155px;
        background-position: center, center 30%;
    }

    .job-detail-hero::after {
        background: linear-gradient(180deg, #ffffff 0%, #ffffff 65%, rgba(255,255,255,.25) 100%);
    }

    .job-detail-hero-copy {
        width: 100%;
        padding: 20px 17px 170px;
    }

    .job-detail-hero h1 {
        padding-right: 0;
        font-size: 26px;
    }

    .travel-assignment-badge {
        top: auto;
        right: 12px;
        bottom: 12px;
    }

    .job-detail-facts {
        grid-template-columns: 1fr 1fr;
        margin-top: 18px;
    }

    .job-detail-facts > span {
        padding: 0 7px;
    }

    .job-detail-tabs {
        justify-content: flex-start;
    }

    .job-detail-content-card {
        padding: 20px 16px;
    }

    .job-value-strip,
    .job-detail-two-column,
    .job-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .job-detail-two-column .job-content-section,
    .job-detail-two-column .job-content-section + .job-content-section {
        padding: 18px 0;
        border-left: 0;
    }

    .job-action-card,
    .job-support-card {
        grid-column: auto;
    }
}

.apply-modal-box .apply-account-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    margin: 0 0 16px;
    border: 1px solid #a8d9dc;
    border-radius: 8px;
    background: #effafa;
    color: #086a76;
    text-decoration: none;
    text-align: left;
}
.apply-account-action span { flex: 1; min-width: 0; }
.apply-account-action small { display: block; font-size: 12px; color: #50697b; }
.apply-account-action strong { display: block; font-size: 16px; margin-top: 2px; }
.apply-modal-box .apply-account-action:hover { background: #ddf3f2; border-color: #008f99; }
.apply-account-action:focus-visible { outline: 3px solid #008f99; outline-offset: 3px; }

/* Raise supporting copy without enlarging the page headline. */
.job-content-section > p, .job-description { font-size: 15px; line-height: 1.75; }
.job-check-list li { font-size: 14px; line-height: 1.6; }
.job-value-strip span { font-size: 12px; }
.job-detail-tabs a, .job-detail-facts > span { font-size: 13px; }
.job-section-title h2, .job-summary-card h2, .job-map-card h2 { font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .job-faq-wave,
    .apply-modal-box .modal-wave,
    .apply-modal.is-open .apply-modal-box {
        animation: none;
    }

    .apply-modal.is-open .apply-modal-box {
        transform: none;
        opacity: 1;
    }
}
