/* Stratedgy Careers - careers slider (scoped: .sg-careers). Same UI as the live slider. */
/* ---------- Careers slider (scoped: .sg-careers) ---------- */
.sg-careers {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.sg-careers *,
.sg-careers *::before,
.sg-careers *::after {
    box-sizing: border-box;
}

/* Yellow intro block (880px and below) */
.sg-careers .sg-careers__intro {
    display: none;
    flex-direction: column;
    width: 100%;
    min-height: 58vh;
    margin: 0 0 20px 0;
    padding: 10vw 5vw;
    background-color: #FFB000;
}
.sg-careers .sg-careers__intro-text,
.sg-careers .sg-careers__promo-text {
    margin: 0;
    padding: 0;
    font-family: "Tiempos Headline", Georgia, serif;
    font-size: 60px;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    color: #111111;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    -webkit-hyphens: manual;
    hyphens: manual;
}

/* Carousel frame */
.sg-careers .sg-careers__carousel {
    position: relative;
    width: 100%;
    padding: 0 40px;
}
.sg-careers .sg-careers__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    overflow-x: auto;                 /* no-JS fallback: swipeable row */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.sg-careers .sg-careers__viewport::-webkit-scrollbar { display: none; }
.sg-careers .sg-careers__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;            /* role cards sit on the baseline, yellow rises above */
    margin: 0;
    padding: 0;
}
.sg-careers .sg-careers__slide {
    flex: 0 0 auto;
    width: calc((100% - 60px) / 3);
    margin: 0 30px 0 0;
    scroll-snap-align: start;
}

/* JS enhanced: the script takes over positioning */
.sg-careers.sg-careers--ready .sg-careers__viewport {
    overflow: hidden;
    scroll-snap-type: none;
    cursor: grab;
    touch-action: pan-y;              /* vertical page scroll stays native and smooth */
    -ms-touch-action: pan-y;
}
.sg-careers.sg-careers--ready .sg-careers__track {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.sg-careers.sg-careers--dragging .sg-careers__viewport { cursor: grabbing; }
.sg-careers.sg-careers--dragging .sg-careers__track {
    -webkit-user-select: none;
    user-select: none;
}

/* Role card */
.sg-careers .sg-careers__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 70px;
    width: 100%;
    margin: 0;
    padding: 5vw;
    background-color: #FFFFFF;
    text-align: center;
}
.sg-careers .sg-careers__title {
    margin: 0;
    padding: 0;
    font-family: "Tiempos Headline", Georgia, serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 50px;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    color: #111111;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    -webkit-hyphens: manual;
    hyphens: manual;
}
.sg-careers .sg-careers__exp {
    margin: 0;
    padding: 0;
    font-family: "Tiempos Headline", Georgia, serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 40px;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    color: #111111;
}
.sg-careers .sg-careers__exp--empty { visibility: hidden; }   /* keeps the card height */
.sg-careers .sg-careers__btn-wrap {
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 0;
}
.sg-careers .sg-careers__btn,
.sg-careers .sg-careers__btn:visited {
    display: inline-block;
    margin: 0;
    padding: 12px 24px;
    border: 0;
    border-radius: 0;
    background-color: #1E2223;
    color: #ECFBFF;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    box-shadow: none;
    -webkit-user-drag: none;
}
.sg-careers .sg-careers__btn:hover,
.sg-careers .sg-careers__btn:focus {
    background-color: #1E2223;
    color: #ECFBFF;
    text-decoration: none;
}
.sg-careers .sg-careers__btn:focus-visible {
    outline: 2px solid #1E2223;
    outline-offset: 3px;
}

/* Long title (3 lines) keeps the same card height as the others */
@media (min-width: 881px) {
    .sg-careers .sg-careers__card--long { gap: 46px; padding: 5vw 4.8vw; }
}

/* Yellow message card */
.sg-careers .sg-careers__card--promo {
    justify-content: center;
    min-height: 58vh;
    padding: 7vw 3vw;
    background-color: #FFB000;
}

/* Arrows */
.sg-careers .sg-careers__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: -webkit-box;
    display: flex;
    align-items: center;
    width: 40px;
    height: 44px;
    margin: 0;
    margin-top: -22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(237, 237, 237, 0.9);
    line-height: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;       /* no double-tap zoom delay on mobile */
    transition: color 0.2s ease;
}
.sg-careers .sg-careers__arrow--prev { left: 0; justify-content: flex-start; }
.sg-careers .sg-careers__arrow--next { right: 0; justify-content: flex-end; }
.sg-careers .sg-careers__arrow:focus {
    background: transparent;
    color: rgba(237, 237, 237, 0.9);
}
.sg-careers .sg-careers__arrow:hover,
.sg-careers .sg-careers__arrow:focus-visible {
    background: transparent;
    color: #FFFFFF;
}
.sg-careers .sg-careers__arrow:focus-visible {
    outline: 2px solid #FFB000;
    outline-offset: 2px;
}
.sg-careers .sg-careers__arrow svg {
    display: block;
    width: 25px;
    height: 25px;
    pointer-events: none;
}
.sg-careers .sg-careers__arrow[hidden] { display: none; }

/* 2 cards per view */
@media (max-width: 1024px) {
    .sg-careers .sg-careers__slide { width: calc((100% - 30px) / 2); }
}

/* Tablet portrait / mobile: intro block on top, no yellow slides, arrows below */
@media (max-width: 880px) {
    .sg-careers .sg-careers__intro { display: flex; }
    .sg-careers .sg-careers__slide--promo { display: none; }
    .sg-careers .sg-careers__carousel { padding: 0 0 50px 0; }   /* bottom space holds the arrows */
    .sg-careers .sg-careers__arrow {
        top: auto;
        bottom: 3px;
        margin-top: 0;
        width: 44px;
        justify-content: center;
    }
    .sg-careers .sg-careers__arrow--prev { left: 50%; margin-left: -50px; }
    .sg-careers .sg-careers__arrow--next { right: 50%; margin-right: -50px; }
}

/* Mobile */
@media (max-width: 767px) {
    .sg-careers .sg-careers__intro {
        min-height: 25vh;
        justify-content: center;
    }
    .sg-careers .sg-careers__intro-text {
        font-size: 30px;
        line-height: 30px;
    }
    .sg-careers .sg-careers__carousel { padding: 0 20px 50px 20px; }
    .sg-careers .sg-careers__slide { width: 100%; }
    .sg-careers .sg-careers__card { padding: 10vw 5vw; }
    .sg-careers .sg-careers__card--long { gap: 45px; }
    .sg-careers .sg-careers__title { font-size: 37px; }
}
