
@font-face {
    font-family: 'DM Sans';
    src: url('../../../fonts/DMSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../../../fonts/DMSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../../../fonts/DMSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

.sb-careers-wrap,
.sb-careers-wrap * {
    font-family: 'DM Sans', sans-serif;
}

.sb-careers-wrap {
    width: 100%;
}

.sb-careers-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sb-careers-filter,
.sb-careers-search {
    min-height: 42px;
    border: 1px solid #e2e2e2;
    background: #EEEEEE;
    font-size: 14px;
    color: #000;
}

.sb-careers-filter {
    padding: 10px 14px;
}

input.sb-careers-search {
    position: relative;
    padding: 10px 45px 10px 15px;
}

.sb-careers-search-wrap{
    position: relative;   
}

.sb-careers-search-wrap:after {
    content: '';
    position: absolute;
    right: 15px;
    top: 13px;
    height: 18px;
    width: 18px;
    background: url('/wp-content/themes/hub/Starbright/icons/search-icon.png');
    background-position: center;
    background-size: contain;
}

.sb-careers-search-wrap {
    margin-left: auto;
}

.sb-careers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sb-career-card {
    position: relative;
    background: #f0f0f0;
    padding: 25px 25px 40px;
    min-height: 185px;
    border-bottom: 7px solid #c7a600;
    border-radius: 8px;
}

.sb-career-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
    color: #282660;
}

.sb-career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.sb-career-tags span,
.sb-career-modal__taxonomies span {
    display: inline-block;
    background: #1f2a78;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 10px 15px 10px 30px;
    border-radius: 4px;
}

.sb-career-card p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.45;
    color: #3C3C3C;
}

.sb-career-location {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #3C3C3C;
}

.sb-career-view {
    position: absolute;
    left: 22px;
    bottom: 13px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #1f2a78;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sb-careers-results.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.sb-careers-empty {
    padding: 20px;
    background: #EEEEEE;
}

.sb-career-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.sb-career-modal.is-open {
    display: block;
}

.sb-career-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.sb-career-modal__box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(760px, calc(100% - 32px));
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    padding: 34px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.sb-career-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 34px !important;
    line-height: 1;
    cursor: pointer;
}

.sb-career-modal__content h2 {
    margin-top: 0;
    color: #1f2340;
}

.sb-career-modal__taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 20px;
}

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

.career-tag-job-type,
.career-tag-job-category,
.career-tag-location,
.career-tag-job-duration {
    position: relative;
}

.career-tag-location:before {
    content: '';
    position: absolute;
    top: 6px;
    left: 10px;
    height: 18px;
    width: 18px;
    background: url('/wp-content/themes/hub/Starbright/icons/map-pin.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.career-tag-job-duration:before {
    content: '';
    position: absolute;
    top: 6px;
    left: 10px;
    height: 18px;
    width: 18px;
    background: url('/wp-content/themes/hub/Starbright/icons/clock.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.career-tag-job-type:before {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    height: 15px;
    width: 15px;
    background: url('/wp-content/themes/hub/Starbright/icons/price-tag-category.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.career-tag-job-category:before {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    height: 15px;
    width: 15px;
    background: url('/wp-content/themes/hub/Starbright/icons/briefcase-job.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

@media (max-width: 980px) {
    .sb-careers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-careers-search-wrap,
    .sb-careers-filter,
    .sb-careers-search {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .sb-careers-grid {
        grid-template-columns: 1fr;
    }

    .sb-career-modal__box {
        padding: 28px 20px;
    }
}


.sb-career-modal__actions {
    margin-top: 24px;
}

.sb-career-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    background: #1f2a78;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 4px;
}

.sb-career-contact-button:hover,
.sb-career-contact-button:focus {
    background: #c7a600;
    color: #fff !important;
}

/* Responsive modal fixes */
.sb-career-modal__box {
    max-width: 760px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 80px);
    border-radius: 8px;
}

@media (max-width: 1366px) {
    .sb-career-modal__box {
        width: min(720px, calc(100% - 48px));
        max-height: calc(100vh - 50vh);
        padding: 30px 28px;
    }
}

@media (max-width: 768px) {
    .sb-career-modal__box {
        width: calc(100% - 24px);
        max-height: calc(100vh - 40px);
        padding: 28px 20px;
    }

    .sb-career-modal__content h2 {
        font-size: 26px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .sb-career-modal__box {
        width: calc(100% - 16px);
        max-height: calc(100vh - 24px);
        padding: 24px 16px;
    }

    .sb-career-modal__content h2 {
        font-size: 22px;
    }
}
/* Career application form */
.sb-career-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    background: #1f2a78;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 4px;
    cursor: pointer;
}

.sb-career-apply-button:hover,
.sb-career-apply-button:focus {
    background: #c7a600;
    color: #fff !important;
}

.sb-career-application-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e6e6e6;
}

.sb-career-application-form[hidden] {
    display: none !important;
}

.sb-career-form-note {
    margin-bottom: 12px;
    background: #f0f0f0;
    padding: 12px 14px;
    border-radius: 4px;
}

/* Same-popup application view */
.sb-career-modal__form-view h2 {
    margin-top: 12px;
}

.sb-career-back-button {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: #1f2a78;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    margin: 0 0 12px;
    cursor: pointer;
}

.sb-career-back-button:hover,
.sb-career-back-button:focus {
    color: #c7a600;
}

.sb-career-application-form {
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
}

/* Career form styling - match Manna Programmes popup */
.sb-career-modal__form-view .gform_wrapper,
.sb-career-modal__form-view .gform_wrapper.gravity-theme {
    margin-top: 24px !important;
}

.sb-career-modal__form-view .gform_wrapper form,
.sb-career-modal__form-view .gform_wrapper.gravity-theme form {
    width: 100% !important;
}

.sb-career-modal__form-view .gform_wrapper .gform_fields,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 16px !important;
}

.sb-career-modal__form-view .gform_wrapper .gfield,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gfield {
    margin: 0 !important;
    padding: 0 !important;
}

.sb-career-modal__form-view .gform_wrapper .gfield_label,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gfield_label {
    display: none !important;
}

.sb-career-modal__form-view .gform_wrapper #field_3_6,
.sb-career-modal__form-view .gform_wrapper #field_3_7,
.sb-career-modal__form-view .gform_wrapper #field_3_8,
.sb-career-modal__form-view .gform_wrapper.gravity-theme #field_3_6,
.sb-career-modal__form-view .gform_wrapper.gravity-theme #field_3_7,
.sb-career-modal__form-view .gform_wrapper.gravity-theme #field_3_8 {
    grid-column: 1 / -1 !important;
}

.sb-career-modal__form-view .gform_wrapper #field_3_8 .gfield_label,
.sb-career-modal__form-view .gform_wrapper.gravity-theme #field_3_8 .gfield_label {
    display: block !important;
    margin: 0 0 8px !important;
    color: #151846 !important;
    font-weight: 700 !important;
}

.sb-career-modal__form-view .gform_wrapper input[type="text"],
.sb-career-modal__form-view .gform_wrapper input[type="email"],
.sb-career-modal__form-view .gform_wrapper input[type="tel"],
.sb-career-modal__form-view .gform_wrapper input[type="file"],
.sb-career-modal__form-view .gform_wrapper textarea,
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[type="text"],
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[type="email"],
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[type="tel"],
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[type="file"],
.sb-career-modal__form-view .gform_wrapper.gravity-theme textarea {
    width: 100% !important;
    border: 1px solid #d9d8e5 !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #151846 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

.sb-career-modal__form-view .gform_wrapper textarea,
.sb-career-modal__form-view .gform_wrapper.gravity-theme textarea {
    min-height: 118px !important;
    resize: vertical !important;
}

.sb-career-modal__form-view .gform_wrapper input::placeholder,
.sb-career-modal__form-view .gform_wrapper textarea::placeholder,
.sb-career-modal__form-view .gform_wrapper.gravity-theme input::placeholder,
.sb-career-modal__form-view .gform_wrapper.gravity-theme textarea::placeholder {
    color: #60677d !important;
    opacity: 1 !important;
}

.sb-career-modal__form-view .gform_wrapper .gform_footer,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_footer {
    margin: 24px 0 0 !important;
    padding: 0 !important;
}

.sb-career-modal__form-view .gform_wrapper .gform_button,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_button {
    background: #26245C !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 2px !important;
    padding: 13px 28px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

.sb-career-modal__form-view .gform_wrapper .gform_button:hover,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_button:hover {
    background: #d2b13d !important;
    color: #fff !important;
}

@media (max-width: 780px) {
    .sb-career-modal__form-view .gform_wrapper .gform_fields,
    .sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_fields {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}


/* Final career application popup polish - match Programmes form */
.sb-career-modal.is-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
}

.sb-career-modal__box,
.sb-career-modal__box.sb-career-modal__box--form {
    width: min(850px, calc(100vw - 48px)) !important;
    max-width: 850px !important;
    max-height: calc(100vh - 80px) !important;
    padding: 42px 48px !important;
    overflow-y: auto !important;
}

.sb-career-modal__form-view h2 {
    margin: 22px 0 24px !important;
    color: #151846 !important;
    font-size: clamp(30px, 4vw, 44px) !important;
    line-height: 1.1 !important;
}

.sb-career-back-button {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    color: #26245C !important;
    padding: 0 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.sb-career-modal__form-view .gform_wrapper,
.sb-career-modal__form-view .gform_wrapper.gravity-theme {
    margin: 0 !important;
}

.sb-career-modal__form-view .gform_wrapper .gform_fields,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 22px !important;
}

.sb-career-modal__form-view .gform_wrapper #field_3_6,
.sb-career-modal__form-view .gform_wrapper #field_3_7,
.sb-career-modal__form-view .gform_wrapper #field_3_8,
.sb-career-modal__form-view .gform_wrapper.gravity-theme #field_3_6,
.sb-career-modal__form-view .gform_wrapper.gravity-theme #field_3_7,
.sb-career-modal__form-view .gform_wrapper.gravity-theme #field_3_8 {
    grid-column: 1 / -1 !important;
}

.sb-career-modal__form-view .gform_wrapper .gfield_label,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gfield_label {
    display: none !important;
}

.sb-career-modal__form-view .gform_wrapper #field_3_8 .gfield_label,
.sb-career-modal__form-view .gform_wrapper.gravity-theme #field_3_8 .gfield_label {
    display: block !important;
    margin: 0 0 8px !important;
    color: #151846 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.sb-career-modal__form-view .gform_wrapper input[type="text"],
.sb-career-modal__form-view .gform_wrapper input[type="email"],
.sb-career-modal__form-view .gform_wrapper input[type="tel"],
.sb-career-modal__form-view .gform_wrapper input[type="file"],
.sb-career-modal__form-view .gform_wrapper textarea,
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[type="text"],
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[type="email"],
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[type="tel"],
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[type="file"],
.sb-career-modal__form-view .gform_wrapper.gravity-theme textarea {
    width: 100% !important;
    min-height: 44px !important;
    border: 1px solid #d9d8e5 !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #151846 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

.sb-career-modal__form-view .gform_wrapper input[readonly],
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[readonly] {
    background: #f8f8fb !important;
    cursor: not-allowed !important;
}

.sb-career-modal__form-view .gform_wrapper input[type="file"],
.sb-career-modal__form-view .gform_wrapper.gravity-theme input[type="file"] {
    padding: 8px 12px !important;
}

.sb-career-modal__form-view .gform_wrapper textarea,
.sb-career-modal__form-view .gform_wrapper.gravity-theme textarea {
    min-height: 118px !important;
    resize: vertical !important;
}

.sb-career-modal__form-view .gform_wrapper .gfield_description,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gfield_description {
    display: none !important;
}

.sb-career-modal__form-view .gform_wrapper .gform_footer,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_footer {
    margin: 24px 0 0 !important;
    padding: 0 !important;
}

.sb-career-modal__form-view .gform_wrapper .gform_button,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_button {
    min-height: 44px !important;
    background: #26245C !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 2px !important;
    padding: 13px 28px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: 300ms ease !important;
}

.sb-career-modal__form-view .gform_wrapper .gform_button:hover,
.sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_button:hover {
    background: #d2b13d !important;
    color: #fff !important;
}

@media (max-width: 780px) {
    .sb-career-modal.is-open {
        align-items: flex-start !important;
        padding: 12px !important;
    }

    .sb-career-modal__box,
    .sb-career-modal__box.sb-career-modal__box--form {
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        padding: 30px 22px !important;
    }

    .sb-career-modal__form-view .gform_wrapper .gform_fields,
    .sb-career-modal__form-view .gform_wrapper.gravity-theme .gform_fields {
        grid-template-columns: 1fr !important;
        row-gap: 16px !important;
    }
}

/* Strong Gravity Forms layout fix - match Programmes popup */
.sb-career-modal .sb-career-modal__box--form {
    width: min(900px, calc(100vw - 48px)) !important;
    max-width: 900px !important;
    padding: 44px !important;
}

.sb-career-modal__static-form .sb-career-form-title {
    margin: 22px 0 28px !important;
    color: #26245C !important;
    text-transform: none !important;
}

.sb-career-modal__static-form #gform_wrapper_3,
.sb-career-modal__static-form .gform_wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.sb-career-modal__static-form #gform_3,
.sb-career-modal__static-form .gform_wrapper form {
    width: 100% !important;
    max-width: none !important;
}

.sb-career-modal__static-form #gform_fields_3,
.sb-career-modal__static-form .gform_fields {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 22px !important;
    width: 100% !important;
}

.sb-career-modal__static-form #field_3_1,
.sb-career-modal__static-form #field_3_3,
.sb-career-modal__static-form #field_3_4,
.sb-career-modal__static-form #field_3_5 {
    grid-column: span 6 !important;
    width: 100% !important;
    max-width: none !important;
}

.sb-career-modal__static-form #field_3_6,
.sb-career-modal__static-form #field_3_7,
.sb-career-modal__static-form #field_3_8 {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

.sb-career-modal__static-form .gfield,
.sb-career-modal__static-form .ginput_container,
.sb-career-modal__static-form .ginput_container input,
.sb-career-modal__static-form .ginput_container textarea {
    width: 100% !important;
    max-width: none !important;
}

.sb-career-modal__static-form .gfield_label,
.sb-career-modal__static-form legend.gfield_label {
    display: none !important;
}

.sb-career-modal__static-form #field_3_8 .gfield_label {
    display: block !important;
    color: #26245C !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
}

.sb-career-modal__static-form input[type="text"],
.sb-career-modal__static-form input[type="email"],
.sb-career-modal__static-form input[type="tel"],
.sb-career-modal__static-form input[type="file"],
.sb-career-modal__static-form textarea {
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    border: 1px solid #d9d8e5 !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #26245C !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.sb-career-modal__static-form input[readonly] {
    background: #f8f8fb !important;
}

.sb-career-modal__static-form input[type="file"] {
    padding: 9px 12px !important;
}

.sb-career-modal__static-form textarea {
    min-height: 118px !important;
    resize: vertical !important;
}

.sb-career-modal__static-form .gfield_description,
.sb-career-modal__static-form .gform_required_legend,
.sb-career-modal__static-form .gform_heading {
    display: none !important;
}

.sb-career-modal__static-form .gform_footer {
    margin: 24px 0 0 !important;
    padding: 0 !important;
}

.sb-career-modal__static-form .gform_button,
.sb-career-modal__static-form input[type="submit"] {
    background: #26245C !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 2px !important;
    padding: 13px 28px !important;
    min-height: 44px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: 300ms ease !important;
}

.sb-career-modal__static-form .gform_button:hover,
.sb-career-modal__static-form input[type="submit"]:hover {
    background: #D2B13D !important;
    color: #fff !important;
}

@media (max-width: 780px) {
    .sb-career-modal .sb-career-modal__box--form {
        width: calc(100vw - 24px) !important;
        padding: 30px 22px !important;
    }

    .sb-career-modal__static-form #gform_fields_3,
    .sb-career-modal__static-form .gform_fields {
        grid-template-columns: 1fr !important;
        row-gap: 16px !important;
    }

    .sb-career-modal__static-form #field_3_1,
    .sb-career-modal__static-form #field_3_3,
    .sb-career-modal__static-form #field_3_4,
    .sb-career-modal__static-form #field_3_5,
    .sb-career-modal__static-form #field_3_6,
    .sb-career-modal__static-form #field_3_7,
    .sb-career-modal__static-form #field_3_8 {
        grid-column: 1 / -1 !important;
    }
}
