/* ==========================================================
   APEX AGED CARE
   CAREERS PAGE
========================================================== */

.apex-careers-page,
.apex-careers-page * {
    box-sizing: border-box;
}

.apex-careers-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: #ffffff;
    color: #17314f;
    font-family: Arial, sans-serif;
}

.apex-careers-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.apex-careers-page a {
    text-decoration: none;
}

.apex-careers-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.apex-careers-section {
    padding: 82px 0;
}

.apex-careers-center {
    text-align: center;
}

.apex-careers-narrow {
    max-width: 850px;
}

.apex-careers-heading {
    max-width: 800px;
    margin: 0 auto 45px;
}

.apex-careers-label,
.apex-careers-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #c2964c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.apex-careers-page h1,
.apex-careers-page h2,
.apex-careers-page h3,
.apex-careers-page p {
    margin-top: 0;
}

.apex-careers-page h1,
.apex-careers-page h2,
.apex-careers-page h3 {
    color: #073766;
    font-weight: 800;
}

.apex-careers-page h1 {
    max-width: 630px;
    margin-bottom: 20px;
    font-size: clamp(44px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -1.4px;
}

.apex-careers-page h2 {
    margin-bottom: 16px;
    font-size: clamp(31px, 3.5vw, 43px);
    line-height: 1.13;
}

.apex-careers-page h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
}

.apex-careers-page p {
    color: #596777;
    font-size: 16px;
    line-height: 1.75;
}


/* ==========================================================
   BUTTONS
========================================================== */

.apex-careers-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 0 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}

.apex-careers-btn-orange {
    background: #f26100;
    color: #ffffff !important;
    box-shadow: 0 9px 22px rgba(242,97,0,.18);
}

.apex-careers-btn-orange:hover {
    background: #d95500;
    transform: translateY(-2px);
}

.apex-careers-btn-outline {
    border: 1px solid rgba(255,255,255,.55);
    background: transparent;
    color: #ffffff !important;
}

.apex-careers-btn-outline:hover {
    background: #ffffff;
    color: #073766 !important;
}


/* ==========================================================
   HERO
========================================================== */

.apex-careers-hero {
    background: #f4ecdd;
}

.apex-careers-hero-grid {
    min-height: 600px;
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: stretch;
    gap: 0;
}

.apex-careers-hero-content {
    align-self: center;
    padding: 65px 55px 65px 0;
    position: relative;
    z-index: 3;
}

.apex-careers-hero-content > p {
    max-width: 560px;
    margin-bottom: 24px;
    font-size: 17px;
}

.apex-careers-hero-points {
    display: grid;
    gap: 11px;
    margin-bottom: 29px;
}

.apex-careers-hero-points div {
    color: #17314f;
    font-size: 15px;
    font-weight: 700;
}

.apex-careers-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.apex-careers-email {
    color: #073766;
    font-size: 14px;
    font-weight: 700;
}

.apex-careers-email:hover {
    color: #f26100;
}

.apex-careers-hero-image {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.apex-careers-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.apex-careers-hero-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 90px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #f4ecdd 0%,
        rgba(244,236,221,.88) 28%,
        rgba(244,236,221,0) 100%
    );
}


/* ==========================================================
   INTRO
========================================================== */

.apex-careers-intro {
    background: #ffffff;
}

.apex-careers-intro p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   WHY JOIN APEX
========================================================== */

.apex-careers-why {
    background: #fbf7f0;
}

.apex-careers-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.apex-careers-benefit {
    padding: 30px 24px;
    text-align: center;
    border: 1px solid #eadfcf;
    border-radius: 17px;
    background: #ffffff;
    transition: all .25s ease;
}

.apex-careers-benefit:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(7,55,102,.07);
}

.apex-careers-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #073766;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.apex-careers-benefit p {
    margin-bottom: 0;
    font-size: 14px;
}


/* ==========================================================
   VALUES / WHO WE LOOK FOR
========================================================== */

.apex-careers-values {
    background: #ffffff;
}

.apex-careers-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.apex-careers-values-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(7,55,102,.09);
}

.apex-careers-values-content p {
    max-width: 530px;
}

.apex-careers-check-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    display: grid;
    gap: 12px;
}

.apex-careers-check-list li {
    color: #17314f;
    font-size: 15px;
    font-weight: 700;
}


/* ==========================================================
   CAREER ROLES
========================================================== */

.apex-careers-roles {
    background: #fbf7f0;
}

.apex-careers-role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.apex-careers-role-card {
    min-height: 255px;
    padding: 30px 26px;
    border: 1px solid #eadfcf;
    border-radius: 18px;
    background: #ffffff;
    transition: all .25s ease;
}

.apex-careers-role-card:hover {
    transform: translateY(-6px);
    border-color: #d8bd8d;
    box-shadow: 0 18px 40px rgba(7,55,102,.08);
}

.apex-careers-role-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f4ecdd;
    color: #073766;
    font-weight: 800;
}

.apex-careers-role-card p {
    margin-bottom: 0;
    font-size: 14px;
}


/* ==========================================================
   CURRENT OPPORTUNITIES
========================================================== */

.apex-careers-opportunities {
    background: #ffffff;
}

.apex-careers-jobs {
    max-width: 900px;
    margin: 0 auto;
}

.apex-careers-job-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 30px;
    border: 1px solid #eadfcf;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(7,55,102,.05);
}

.apex-careers-job-type {
    display: inline-block;
    margin-bottom: 8px;
    color: #c2964c;
    font-size: 13px;
    font-weight: 700;
}

.apex-careers-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}

.apex-careers-job-meta span {
    padding: 6px 10px;
    border-radius: 20px;
    background: #f4ecdd;
    color: #073766;
    font-size: 12px;
    font-weight: 700;
}

.apex-careers-job-content p {
    margin-bottom: 0;
    max-width: 620px;
    font-size: 14px;
}


/* ==========================================================
   APPLICATION PROCESS
========================================================== */

.apex-careers-process {
    background: #073766;
}

.apex-careers-process .apex-careers-label {
    color: #d9b66f;
}

.apex-careers-process h2 {
    color: #ffffff;
}

.apex-careers-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.apex-careers-process-grid article {
    padding: 30px 24px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(255,255,255,.07);
}

.apex-careers-process-grid article > span {
    width: 46px;
    height: 46px;
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f26100;
    color: #ffffff;
    font-weight: 800;
}

.apex-careers-process-grid h3 {
    color: #ffffff;
}

.apex-careers-process-grid p {
    margin-bottom: 0;
    color: rgba(255,255,255,.75);
    font-size: 14px;
}


/* ==========================================================
   APPLY SECTION
========================================================== */

.apex-careers-apply {
    background: #f4ecdd;
}

.apex-careers-apply-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 65px;
    align-items: start;
}

.apex-careers-apply-content {
    padding-top: 20px;
}

.apex-careers-apply-content > p {
    max-width: 480px;
}

.apex-careers-contact-box {
    margin-top: 30px;
    padding: 25px;
    border-radius: 16px;
    background: #073766;
}

.apex-careers-contact-box strong {
    display: block;
    margin-bottom: 13px;
    color: #d9b66f;
    font-size: 15px;
}

.apex-careers-contact-box a,
.apex-careers-contact-box span {
    display: block;
    margin-top: 9px;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    line-height: 1.55;
}

.apex-careers-contact-box a:hover {
    color: #ffffff;
}

.apex-careers-form-box {
    min-height: 400px;
    padding: 38px;
    border: 1px solid #e9dece;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(7,55,102,.08);
}


/* ==========================================================
   WPFORMS SUPPORT
========================================================== */

.apex-careers-form-box .wpforms-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.apex-careers-form-box .wpforms-field {
    padding: 0 0 18px !important;
}

.apex-careers-form-box .wpforms-field-label {
    margin-bottom: 8px !important;
    color: #073766 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.apex-careers-form-box input[type="text"],
.apex-careers-form-box input[type="email"],
.apex-careers-form-box input[type="tel"],
.apex-careers-form-box input[type="url"],
.apex-careers-form-box input[type="file"],
.apex-careers-form-box select,
.apex-careers-form-box textarea {
    width: 100% !important;
    max-width: none !important;
    min-height: 49px !important;
    padding: 11px 14px !important;
    border: 1px solid #dadada !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #17314f !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.apex-careers-form-box textarea {
    min-height: 130px !important;
}

.apex-careers-form-box input:focus,
.apex-careers-form-box select:focus,
.apex-careers-form-box textarea:focus {
    border-color: #c2964c !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(194,150,76,.12) !important;
}

.apex-careers-form-box button[type="submit"],
.apex-careers-form-box .wpforms-submit {
    min-height: 49px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 30px !important;
    background: #f26100 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.apex-careers-form-box button[type="submit"]:hover,
.apex-careers-form-box .wpforms-submit:hover {
    background: #d95500 !important;
}


/* ==========================================================
   FAQ
========================================================== */

.apex-careers-faq {
    background: #ffffff;
}

.apex-careers-faq-list {
    max-width: 850px;
    margin: 0 auto;
    display: grid;
    gap: 13px;
}

.apex-careers-faq-item {
    overflow: hidden;
    border: 1px solid #e8dece;
    border-radius: 14px;
    background: #ffffff;
}

.apex-careers-faq-item summary {
    position: relative;
    padding: 21px 58px 21px 23px;
    list-style: none;
    cursor: pointer;
    color: #073766;
    font-size: 16px;
    font-weight: 700;
}

.apex-careers-faq-item summary::-webkit-details-marker {
    display: none;
}

.apex-careers-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #f4ecdd;
    color: #073766;
    font-size: 21px;
}

.apex-careers-faq-item[open] summary::after {
    content: "−";
    background: #073766;
    color: #ffffff;
}

.apex-careers-faq-item p {
    padding: 0 23px 22px;
    margin: 0;
    font-size: 15px;
}


/* ==========================================================
   FINAL CTA
========================================================== */

.apex-careers-final-cta {
    padding: 68px 0;
    background: #073766;
}

.apex-careers-final-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: center;
}

.apex-careers-final-cta .apex-careers-label {
    color: #d9b66f;
}

.apex-careers-final-cta h2 {
    color: #ffffff;
}

.apex-careers-final-cta p {
    max-width: 650px;
    margin-bottom: 0;
    color: rgba(255,255,255,.78);
}

.apex-careers-final-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ==========================================================
   SCROLL REVEAL
========================================================== */

.apex-careers-page .apex-careers-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.apex-careers-page .apex-careers-reveal.apex-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 980px) {

    .apex-careers-hero-grid {
        grid-template-columns: 48% 52%;
        min-height: 550px;
    }

    .apex-careers-hero-content {
        padding-right: 30px;
    }

    .apex-careers-hero-image,
    .apex-careers-hero-image img {
        min-height: 550px;
    }

    .apex-careers-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apex-careers-role-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apex-careers-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apex-careers-two-column {
        gap: 38px;
    }

    .apex-careers-apply-grid {
        gap: 38px;
    }

    .apex-careers-final-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .apex-careers-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .apex-careers-section {
        padding: 56px 0;
    }

    .apex-careers-page h1 {
        font-size: 40px;
    }

    .apex-careers-page h2 {
        font-size: 30px;
    }

    .apex-careers-hero-grid,
    .apex-careers-two-column,
    .apex-careers-apply-grid {
        grid-template-columns: 1fr;
    }

    .apex-careers-hero-grid {
        min-height: 0;
    }

    .apex-careers-hero-content {
        padding: 55px 0 38px;
        text-align: center;
    }

    .apex-careers-hero-content h1,
    .apex-careers-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .apex-careers-hero-points {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .apex-careers-hero-actions {
        justify-content: center;
    }

    .apex-careers-hero-image {
        min-height: 390px;
        height: 390px;
    }

    .apex-careers-hero-image img {
        min-height: 390px;
        height: 100%;
    }

    .apex-careers-hero-image::before {
        display: none;
    }

    .apex-careers-benefits-grid,
    .apex-careers-role-grid,
    .apex-careers-process-grid {
        grid-template-columns: 1fr;
    }

    .apex-careers-values-image img {
        height: 350px;
    }

    .apex-careers-job-card {
        grid-template-columns: 1fr;
    }

    .apex-careers-job-action {
        justify-self: start;
    }

    .apex-careers-apply-content {
        text-align: center;
    }

    .apex-careers-contact-box {
        text-align: left;
    }

    .apex-careers-final-cta {
        text-align: center;
    }

    .apex-careers-final-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 520px) {

    .apex-careers-page h1 {
        font-size: 35px;
    }

    .apex-careers-page h2 {
        font-size: 28px;
    }

    .apex-careers-hero-actions {
        flex-direction: column;
    }

    .apex-careers-hero-actions .apex-careers-btn {
        width: 100%;
    }

    .apex-careers-role-card,
    .apex-careers-benefit {
        padding: 25px 20px;
    }

    .apex-careers-job-card {
        padding: 24px 20px;
    }

    .apex-careers-form-box {
        padding: 25px 18px;
    }

    .apex-careers-final-actions {
        flex-direction: column;
    }

    .apex-careers-final-actions .apex-careers-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .apex-careers-page .apex-careers-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}