/* Careers page custom styles. Keep this file with Careers1.HTML/careers.html when migrating. */
.careers1-page {
    background: #ffffff;
}

.careers1-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 72px;
    background:
        linear-gradient(120deg, rgba(19, 115, 186, 0.95) 0%, rgba(19, 20, 35, 0.95) 68%),
        url("../images/careers.png") center/cover no-repeat;
    color: #ffffff;
}

.careers1-hero:after {
    content: "";
    position: absolute;
    inset: auto -8% -42% 42%;
    height: 260px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(-8deg);
}

.careers1-hero .container {
    position: relative;
    z-index: 1;
}

.careers1-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.careers1-eyebrow:before {
    content: "";
    width: 34px;
    height: 2px;
    background: #ffffff;
}

.careers1-hero h2 {
    max-width: 780px;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 54px;
    line-height: 1.06;
}

.careers1-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.7;
}

.careers1-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.careers1-primary-btn,
.careers1-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
}

.careers1-primary-btn {
    background: #ffffff;
    color: var(--base-skin);
}

.careers1-secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.careers1-intro {
    padding: 62px 0 18px;
}

.careers1-stat {
    height: 100%;
    padding: 28px 26px;
    border-left: 4px solid var(--base-skin);
    background: #eff3fa;
}

.careers1-stat strong {
    display: block;
    color: var(--base-dark);
    font-size: 34px;
    line-height: 1;
}

.careers1-stat span {
    display: block;
    margin-top: 8px;
    color: #566e7c;
    font-weight: 600;
}

.careers1-copy h2 {
    margin-bottom: 14px;
    color: var(--base-dark);
    font-size: 38px;
    line-height: 1.16;
}

.careers1-copy p {
    color: #566e7c;
    line-height: 1.75;
}

.careers1-openings {
    padding: 46px 0 96px;
}

.careers1-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.careers1-section-heading h2 {
    margin-bottom: 0;
    color: var(--base-dark);
    font-size: 40px;
}

.careers1-section-heading p {
    max-width: 440px;
    margin-bottom: 0;
    color: #566e7c;
    line-height: 1.6;
}

.career-search-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto auto;
    gap: 12px;
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid rgba(19, 20, 35, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(19, 20, 35, 0.06);
}

.career-search-panel input,
.career-search-panel select {
    height: 48px;
    padding: 10px 16px;
    border: 1px solid rgba(19, 20, 35, 0.12);
    border-radius: 8px;
    color: var(--base-dark);
    background: #eff3fa;
}

.career-search-panel button {
    position: static !important;
    inset: auto !important;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
}

.career-search-btn {
    background: var(--base-skin);
    color: #ffffff;
}

.career-clear-btn {
    background: var(--base-dark);
    color: #ffffff;
}

.career-no-results {
    display: none;
    padding: 24px;
    border-radius: 8px;
    background: #eff3fa;
    color: var(--base-dark);
    font-weight: 700;
}

.career-group {
    padding: 30px 0;
    border-top: 1px solid rgba(19, 20, 35, 0.1);
}

.career-group:last-child {
    border-bottom: 1px solid rgba(19, 20, 35, 0.1);
}

.career-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.career-group-title h3 {
    margin-bottom: 0;
    color: var(--base-dark);
    font-size: 26px;
}

.career-count {
    flex: 0 0 auto;
    padding: 7px 13px;
    border-radius: 20px;
    background: rgba(19, 115, 186, 0.1);
    color: var(--base-skin);
    font-size: 14px;
    font-weight: 700;
}

.career-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.career-role {
    position: relative;
    min-height: 100%;
    padding: 26px 24px 24px;
    border: 1px solid rgba(19, 20, 35, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(19, 20, 35, 0.07);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.career-role:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 115, 186, 0.45);
}

.career-role-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-right: 178px;
    margin-bottom: 14px;
}

.career-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--base-skin);
    color: #ffffff;
    font-size: 16px;
}

.career-role h4 {
    margin-bottom: 5px;
    color: var(--base-dark);
    font-size: 21px;
    line-height: 1.28;
}

.career-role small {
    color: #566e7c;
    font-weight: 700;
    text-transform: uppercase;
}

.career-role-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.career-role-meta div {
    padding: 12px;
    border-radius: 8px;
    background: #eff3fa;
}

.career-role-meta span {
    display: block;
    color: #566e7c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.career-role-meta strong {
    display: block;
    margin-top: 4px;
    color: var(--base-dark);
    font-size: 14px;
    line-height: 1.35;
}

.career-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.career-skill-list li {
    padding: 7px 11px;
    border-radius: 20px;
    background: #eff3fa;
    color: #34495e;
    font-size: 14px;
    font-weight: 600;
}

.career-job-details {
    margin-top: 18px;
    border-top: 1px solid rgba(19, 20, 35, 0.1);
}

.career-job-details summary {
    cursor: pointer;
    padding-top: 16px;
    color: var(--base-skin);
    font-weight: 800;
}

.career-job-details-body {
    padding-top: 16px;
}

.career-job-details-body h5 {
    margin: 18px 0 8px;
    color: var(--base-dark);
    font-size: 16px;
}

.career-job-details-body p {
    margin-bottom: 8px;
    color: #566e7c;
    line-height: 1.65;
}

.career-job-details-body ul {
    margin: 0 0 8px;
    padding-left: 20px;
}

.career-job-details-body li {
    color: #566e7c;
    line-height: 1.55;
}

.career-ref {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(19, 115, 186, 0.1);
    color: var(--base-skin);
    font-size: 13px;
    font-weight: 800;
}

.career-view-btn,
.career-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 18px;
    padding: 10px 18px;
    border: 0;
    border-radius: 30px;
    background: var(--base-skin);
    color: #ffffff;
    font-weight: 800;
}

.career-view-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    left: auto;
    width: 154px;
    margin-top: 0;
    text-align: center;
    line-height: 1.2;
}

.career-view-btn:hover,
.career-apply-btn:hover {
    background: var(--base-dark);
    color: #ffffff;
}

.career-modal {
    position: fixed;
    inset: 120px 0 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    background: rgba(19, 20, 35, 0.68);
}

.career-modal.is-open {
    display: flex;
}

.career-modal-dialog {
    width: min(980px, 100%);
    max-height: calc(100vh - 168px);
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.career-modal-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(19, 20, 35, 0.1);
    background: #ffffff;
}

.career-modal-header h3 {
    margin-bottom: 6px;
    color: var(--base-dark);
    font-size: 28px;
    line-height: 1.22;
}

.career-modal-header p {
    margin-bottom: 0;
    color: #566e7c;
}

.career-modal-close {
    position: static !important;
    inset: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 92px;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 30px;
    background: var(--base-dark);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.career-modal-body {
    max-height: calc(100vh - 284px);
    overflow-y: auto;
    padding: 8px 28px 28px;
}

.career-modal-body h5 {
    margin: 20px 0 8px;
    color: var(--base-dark);
    font-size: 16px;
}

.career-modal-body p {
    margin-bottom: 8px;
    color: #566e7c;
    line-height: 1.65;
}

.career-modal-body ul {
    margin: 0;
    padding-left: 20px;
}

.career-modal-body li {
    color: #566e7c;
    line-height: 1.55;
}

body.career-modal-open {
    overflow: hidden;
}

.careers1-apply-strip {
    margin-top: 36px;
    padding: 28px 30px;
    border-radius: 8px;
    background: var(--base-dark);
    color: rgba(255, 255, 255, 0.82);
}

.careers1-apply-strip h3 {
    margin-bottom: 8px;
    color: #ffffff;
}

.careers1-apply-strip p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.careers1-apply-strip a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .career-modal {
        inset: 82px 0 0;
    }

    .career-modal-dialog {
        max-height: calc(100vh - 118px);
    }

    .career-modal-body {
        max-height: calc(100vh - 234px);
    }

    .careers1-hero {
        padding: 64px 0 58px;
    }

    .careers1-hero h2 {
        font-size: 42px;
    }

    .careers1-section-heading {
        display: block;
    }

    .careers1-section-heading p {
        margin-top: 12px;
    }

    .career-role-grid {
        grid-template-columns: 1fr;
    }

    .career-role-meta {
        grid-template-columns: 1fr;
    }

    .career-search-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .careers1-hero h2,
    .careers1-section-heading h2 {
        font-size: 34px;
    }

    .careers1-copy h2 {
        font-size: 30px;
    }

    .career-group-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .career-role-top {
        padding-right: 0;
        padding-top: 58px;
    }

    .career-view-btn {
        left: 24px;
        right: auto;
        width: calc(100% - 48px);
    }
}
