/**
 * Single career template.
 * BEM: block .career-detail, elements .career-detail__element, modifiers .career-detail--modifier
 */

/* Header overrides (theme .base-header, not part of career-detail block) */
body.single-career .base-header {
    box-shadow: none;
    border-bottom: 1px solid #e8ecf1;
}

body.single-career .base-header .top-bar {
    display: none;
}

body.single-career .base-header .wrap {
    max-width: 1440px;
    padding: 18px 20px;
}

body.single-career .base-header .wrap .action-button-wrap .callus-details p {
    color: #6a6a6a;
    font-weight: 500;
}

body.single-career .base-header .wrap .action-button-wrap .callus-details a {
    text-decoration: none;
    font-weight: 700;
    color: #000;
}

body.single-career .base-header .wrap .action-button-wrap .callus-details a:hover,
body.single-career .base-header .wrap .action-button-wrap .callus-details a:focus {
    text-decoration: underline;
}

/* Block */
.career-detail {
    padding: 80px 13%;
    position: relative;
    z-index: 1;
}

.career-detail:before {
    content: '';
    width: 100%;
    height: 40%;
    background: #F2F5FA;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.career-detail .career-detail__container {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    gap: 50px;
}

/* Hero row */
.career-detail__hero {
    display: flex;
    flex-flow: column nowrap;
}

.career-detail__hero-inner {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    gap: 40px;
}

.career-detail__hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
}

.career-detail__title {
    margin: 0;
    color: #000;
    font-family: "Lato", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 64px;
    text-transform: none;
}

.career-detail__intro {
    margin-top: 16px;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #3a3a3b;
    max-width: 100%;
}

.career-detail__intro p {
    margin: 0 0 1em;
}

.career-detail__intro p:last-child {
    margin-bottom: 0;
}

.career-detail__intro ul,
.career-detail__intro ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.career-detail__intro a {
    color: #0e4c84;
    text-decoration: underline;
}

.career-detail__intro a:hover,
.career-detail__intro a:focus {
    color: #061957;
}

.career-detail__intro strong {
    font-weight: 700;
}

.career-detail__media {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.career-detail__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Main (white) row */
.career-detail__main {}

.career-detail__main-inner {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.career-detail__lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.career-detail__eyebrow {
    margin: 0;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 1.08px;
    text-transform: uppercase;
}

.career-detail__eyebrow-link {
    color: #4a88b5;
    text-decoration: none;
}

.career-detail__eyebrow-link:hover,
.career-detail__eyebrow-link:focus {
    text-decoration: underline;
}

.career-detail__meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 1.08px;
    text-transform: uppercase;
    color: #222;
}

.career-detail__meta-item {
    margin: 0;
}

.career-detail__summary {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #3a3a3b;
    max-width: 100%;
}

.career-detail__summary p {
    margin: 0 0 1em;
}

.career-detail__summary p:last-child {
    margin-bottom: 0;
}

.career-detail__summary a {
    color: #0e4c84;
    text-decoration: underline;
}

.career-detail__summary a:hover,
.career-detail__summary a:focus {
    color: #061957;
}

.career-detail__apply-wrap {
    margin: 0;
}

.career-detail__apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 22px 32px;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 18px;
    text-decoration: none;
    color: #fff;
    background: #041C4C;
    border-radius: 200px;
    border: 2px solid #041C4C;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.72px;
}

.career-detail__apply:hover,
.career-detail__apply:focus {
    background: #950304;
    border-color: #950304;
    color: #fff;
}

.career-detail__prose {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #3a3a3b;
}

.career-detail__prose p {
    margin: 0 0 1em;
}

.career-detail__prose ul,
.career-detail__prose ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.career-detail__prose li {
    margin-bottom: 0.35em;
}

.career-detail__prose a {
    color: #0e4c84;
    text-decoration: underline;
}

.career-detail__prose a:hover,
.career-detail__prose a:focus {
    color: #061957;
}

.career-detail__prose strong {
    font-weight: 700;
}

/* More openings — text-only career cards (Figma) */
.career-more {
    padding: 80px 8%;
    background: #F6F6F6;
}

.career-more__inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.career-more__header {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}

.career-more__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    color: #000;
    font-family: "Lato", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 50px;
    text-transform: capitalize;
}

.career-more__archive-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 200px;
    border: 1px solid #950304;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #950304 !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.career-more__archive-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.career-more__archive-link-icon svg {
    display: block;
}

.career-more__archive-link:hover,
.career-more__archive-link:focus {
    background: #950304;
    border-color: #950304;
    color: #fff !important;
}

.career-more__grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-flow: row wrap;
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.career-more__item {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.career-more__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.career-more__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px;
    flex: 1 1 auto;
}

.career-more__card-title {
    margin: 0;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    text-transform: capitalize;
}

.career-more__card-title-link {
    color: #950304 !important;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.career-more__card-title-link:hover,
.career-more__card-title-link:focus {
    color: #7a0303;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* .career-more__card-title-link:focus {
    outline: 2px solid #041C4C;
    outline-offset: 3px;
} */

.career-more__excerpt {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #58585a;
    flex: 1 1 auto;
    width: 100%;
}

.career-more__excerpt p {
    margin: 0 0 0.5em;
}

.career-more__excerpt p:last-child {
    margin-bottom: 0;
}

.career-more__excerpt a {
    color: #0e4c84;
    text-decoration: underline;
}

.career-more__excerpt a:hover,
.career-more__excerpt a:focus {
    color: #061957;
}

.career-more__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: 0.72px;
    text-transform: uppercase;
    color: #041C4C !important;
    margin-top: 32px;
    text-decoration: none;
    width: fit-content;
    transition: color 0.2s ease;
}

.career-more__card-cta:hover,
.career-more__card-cta:focus {
    color: #061957;
}

/* .career-more__card-cta:focus {
    outline: 2px solid #041C4C;
    outline-offset: 3px;
} */

.career-more__card-cta-icon {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #041C4C;
    background: #041C4C;
    color: #fff;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.career-more__card-cta-icon svg {
    display: block;
}

/* .career-more__card-cta:hover .career-more__card-cta-icon,
.career-more__card-cta:focus .career-more__card-cta-icon {
    transform: translateX(2px);
} */

@media (min-width: 768px) and (max-width: 1023px) {
    .career-detail__hero {
        padding: 48px 20px;
    }

    .career-detail__title {
        font-size: 48px;
        line-height: 56px;
    }
}

@media (min-width: 1024px) {
    .career-more__item {
        max-width: calc(33.333% - (35px * 2 / 3));
    }

    .career-more__card-title {
        font-size: 24px;
        line-height: 32px;
    }

    .career-more__excerpt {
        font-size: 18px;
        line-height: 28px;
    }

    .career-detail__hero-inner {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .career-detail__media {
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: 30px;
        overflow: hidden;
    }

    .career-detail__hero-text {
        width: 100%;
    }

    .career-detail__media .career-detail__image {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }
}

@media (max-width: 1023px) {
    .career-detail__media .career-detail__image {
        position: static;
        inset: auto;
        object-fit: contain;
        max-height: 70vh;
        margin: 0 auto;
    }

    .career-detail__hero-text {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {

    /* More openings — align with career-grid block mobile (Figma) */
    .career-more {
        padding: 40px 20px;
    }

    .career-more__inner {
        gap: 32px;
    }

    .career-more__title {
        font-size: 30px;
        font-weight: 700;
        line-height: 40px;
        color: #041c4c;
        text-align: center;
    }

    .career-more__header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .career-more__archive-link {
        width: 100%;
        justify-content: center;
    }

    .career-more__grid {
        gap: 20px;
    }

    .career-more__body {
        padding: 20px 24px;
        gap: 16px;
    }

    .career-more__card-title {
        font-size: 20px;
        font-weight: 700;
        line-height: 28px;
    }

    .career-more__excerpt {
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        color: #58585a;
    }

    .career-more__card-cta {
        font-size: 18px;
        font-weight: 700;
        line-height: 18px;
        letter-spacing: 0.72px;
        gap: 12px;
        margin-top: auto;
        padding-top: 8px;
        color: #041c4c !important;
    }

    .career-more__card-cta-icon {
        width: 28px;
        height: 28px;
    }

    .career-more__card-cta-icon svg {
        width: 14px;
        height: 14px;
    }

    .career-detail__hero {
        padding: 32px 20px 36px;
    }

    .career-detail__title {
        font-size: 32px;
        line-height: 40px;
        letter-spacing: 0;
    }

    .career-detail__eyebrow,
    .career-detail__meta {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0.96px;
    }

    .career-detail__summary,
    .career-detail__prose,
    .career-detail__intro {
        font-size: 16px;
        line-height: 26px;
    }

}

@media (max-width: 767px) {
    .career-detail {
        padding: 0;
    }

    .career-detail:before {
        display: none;
    }

    .career-detail .career-detail__hero {
        padding: 0;
    }

    .career-detail .career-detail__hero .career-detail__hero-inner {
        gap: 0;
        flex-flow: column-reverse nowrap;
    }

    .career-detail .career-detail__hero .career-detail__hero-inner .career-detail__media {
        border-radius: 0;
    }

    .career-detail .career-detail__hero .career-detail__hero-inner .career-detail__media .career-detail__image {
        max-height: unset;
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: unset;
    }

    .career-detail .career-detail__hero .career-detail__hero-inner .career-detail__hero-text {
        padding: 40px 20px 20px;
        background: #F2F5FA;
        gap: 24px;
    }

    .career-detail .career-detail__hero .career-detail__hero-inner .career-detail__hero-text .career-detail__title {
        font-size: 28px;
        line-height: 36px;
    }

    .career-detail .career-detail__hero .career-detail__hero-inner .career-detail__hero-text .career-detail__intro {
        margin-top: 0;
    }

    .career-detail .career-detail__container {
        gap: 0;
    }

    .career-detail .career-detail__container .career-detail__main {
        padding: 20px 20px 40px;
    }

    .career-detail .career-detail__container .career-detail__main .career-detail__main-inner {
        gap: 24px;
    }

    .career-detail .career-detail__container .career-detail__main .career-detail__main-inner .career-detail__apply-wrap .career-detail__apply {
        width: 100%;
        padding: 22px 32px;
        font-size: 18px;
        line-height: 18px;
        letter-spacing: 0.72px;
    }
}

.section-contact-form .section-inner .column-form .wpcf7 form .form__body .fields .field.position--field p input:not([type="file"]) {
    background-color: #0B2354;
    outline: 0;
    color: #FFFFFF;
    border-color: #C8C8CA;
}