/* ========================================
   CAREERS PAGE — Careers.css
   Pixel-accurate from Figma spec
   ======================================== */
.Hero_Title_Accent {
    display: unset !important;
}
.Hero_Title {
    font-size: 32px !important;
}
.Hero_Desc{
    font-weight: 300;
}
 
 
/* Teal-on-white variant (Why Join section header) */
.careers-badge--on-light {
    background: rgba(0, 196, 179, 0.08);
    padding: 10px 15px;
}
 
/* ─── SHARED BUTTONS ───────────────────── */
.careers-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Co Headline', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

/* Hero buttons — 243 × 64 */
.careers-btn--primary {
    padding: 0 16px;
    height: 64px;
    background: #8BDC64;
    border-radius: 9999px;
    color: #FFFFFF;
    border: none;
}

    .careers-btn--primary:hover {
        opacity: 0.85;
    }

.careers-btn--outline {
    padding: 16px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.6px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    color: #FFFFFF;
}

    .careers-btn--outline:hover {
        background: rgba(255, 255, 255, 0.18);
    }

/* Outline variant for a white/light background (NewCareers intro section) —
   teal border/text instead of .careers-btn--outline's white-on-dark */
.careers-btn--outline-teal {
    padding: 16px;
    height: 64px;
    background: transparent;
    border: 1.6px solid #8BDC64;
    border-radius: 9999px;
    color: #8BDC64;
}

   /* .careers-btn--outline-teal:hover {
        background: rgba(0, 196, 179, 0.08);
    }*/

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.careers-hero {
    margin-top: 80px;
    position: relative;
    width: 100%;
    height: 563px;
    overflow: hidden;
    background: #003B70;
}

.careers-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Left-to-right gradient — navy solid on left, transparent on right */
.careers-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90.3deg,
        #003B70 8.98%,
        rgba(0, 59, 112, 0) 99.74%
    );
    z-index: 1;
}

.careers-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  /*  padding: 0 32px;*/
    gap: 32px;
}

.careers-hero__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 939px;
    padding-top: 28px
}

.careers-hero__title {
    margin: 0;
    font-family: 'Co Headline', sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 120%;
    color: #FFFFFF;
}

.careers-hero__brand {
    color: #00C4B3;
}

.careers-hero__subtitle {
    margin: 0;
    font-family: 'Co Headline', sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 120%;
    color: #FFFFFF;
}

.careers-hero__actions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

/* ─── HERO STATS ────────────────────────── */
.careers-hero__stats {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    max-width: 999px;
    width: 100%;
}

.careers-stat {
    /* flex: 1; */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0px 24.8px 0.8px;
    background: rgba(255, 255, 255, 0.1);
    border: 0.8px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    min-width: 0;
    min-height: 109px;
}

/* Awards card is wider — give it more flex weight */
.careers-stat:last-child {
    flex: 1.4;
}

.careers-stat__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

/* Number value (e.g. "44", "2500+") */
.careers-stat__value {
    width:max-content;
    font-family: 'Co Headline', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 40px;
    color: #FFFFFF;
    display: block;
}

/* Label below value OR acts as title when value is absent */
.careers-stat__label {
    font-family: 'Co Headline', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #BEDBFF;
    display: block;
    white-space: nowrap;
}

/* When there is no value sibling, the label is the title → 24px white */
.careers-stat__label:first-child {
    font-size: 22px;
    line-height: 40px;
    color: #FFFFFF;
}

.careers-stat__link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-family: 'Co Headline', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #BEDBFF;
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.2s;
}

    .careers-stat__link:hover {
        color: #FFFFFF;
    }

    .careers-stat__link i {
        font-size: 10px;
    }

/* Icon square */
.careers-stat__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #00C4B3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #FFFFFF;
}

/* ═══════════════════════════════════════
   TABS NAV
═══════════════════════════════════════ */
.careers-tabs {
    position: relative;
    z-index: 15;
    background: #fff;
    border-bottom: 2px solid #e0e8ef;
    box-shadow: 0 2px 8px rgba(0, 30, 60, 0.05);
    display: flex;
    align-items: stretch;
    padding: 0 30px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.careers-tabs::-webkit-scrollbar {
    display: none;
}

.careers-tabs--fixed {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 900 !important;
    display: none;
}

.careers-tabs--fixed.is-visible {
    display: flex !important;
}

.careers-tabs__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 22px 14px;
    font-family: 'Co Headline', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(0, 59, 112, 0.82);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.careers-tabs__item:hover {
    color: #00C4B3;
}

.careers-tabs__item--active {
    color: #00C4B3;
    border-bottom-color: #00C4B3;
    font-weight: 500;
}

/* ═══════════════════════════════════════
   WHY JOIN EGBANK
═══════════════════════════════════════ */
.careers-why {
   /* padding: 40px 32px;*/
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.careers-why__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    width: 100%;
}

.careers-why__title {
    margin: 0;
    font-family: 'Co Headline', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 120%;
    text-transform: capitalize;
    color: #003B70;
}

.careers-why__body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 23px;
    width: 100%;
  /*  min-height: 645px;*/
}

/* ─── FEATURES PANEL (teal left column) ── */
.careers-features {
    flex: 530;
    background: #00C4B3;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-evenly; */
    gap: 16px;
}

.careers-feature {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 0.8px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
}

.careers-feature__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.21);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 18px;
}

.careers-feature__text {
    margin: 0;
    font-family: 'Co Headline', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #FFFFFF;
    flex: 1;
}

/* ─── WHY JOIN IMAGE (right column) ─────── */
.careers-why__img {
    flex: 663;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

    /* Navy overlay on image */
    .careers-why__img::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 59, 112, 0.3);
        pointer-events: none;
    }

    .careers-why__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ═══════════════════════════════════════
   EXPLORE CURRENT OPPORTUNITIES
═══════════════════════════════════════ */
.careers-opps {
    background: linear-gradient(270deg, #003B70 0%, #00C4B3 100%);
    padding: 40px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 381px;*/
}

.careers-opps__inner {
    width: 100%;
    max-width: 708px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.careers-opps__title {
    margin: 0;
    margin-top: 16px; /* combined with gap: 16px = 32px from badge */
    font-family: 'Co Headline', sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 60px;
    text-align: center;
    color: #FFFFFF;
}

.careers-opps__desc {
    margin: 0;
    font-family: 'Co Headline', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    max-width: 663px;
}

.careers-opps__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px; /* combined with gap: 16px = 32px from desc */
}

/* Opportunities buttons are 210×60 with rounder radius */
.careers-opps .careers-btn--primary,
.careers-opps .careers-btn--outline {
    width: 210px;
    height: 60px;
    border-radius: 100px;
    padding: 16px;
}

/* ═══════════════════════════════════════
   RTL OVERRIDES
   All scoped under .careers-page[dir="rtl"]

   flex-column containers: align-items: flex-start
   is correct for both LTR and RTL (flex-start = right
   side when direction: rtl is active).

   flex-row containers: set direction: rtl to
   visually reverse item order.
═══════════════════════════════════════ */

/* Hero overlay: flip gradient direction for RTL */
.careers-page[dir="rtl"] .careers-hero__overlay {
    background: linear-gradient(0deg, rgba(0, 59, 112, 0.6), rgba(0, 59, 112, 0.6)), linear-gradient(90.3deg, #003B70 8.98%, rgba(0, 59, 112, 0) 99.74%);
}

.careers-page[dir="rtl"] .careers-badge {
    direction: rtl;
}

.careers-page[dir="rtl"] .careers-hero__actions {
    direction: rtl;
}

.careers-page[dir="rtl"] .careers-hero__stats {
    direction: rtl;
}

.careers-page[dir="rtl"] .careers-stat {
    direction: rtl;
}

.careers-page[dir="rtl"] .careers-tabs {
    direction: rtl;
}

.careers-page[dir="rtl"] .careers-tabs__toggle {
    direction: rtl;
}

/* Grid columns reverse: Features ↔ Image */
.careers-page[dir="rtl"] .careers-why__body {
    direction: rtl;
}

.careers-page[dir="rtl"] .careers-feature {
    direction: rtl;
}

.careers-page[dir="rtl"] .careers-opps__actions {
    direction: rtl;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

@media (max-width: 1024px) {
    .careers-hero {
        height: auto;
        min-height: 500px;
    }

    .careers-hero__title {
        font-size: 38px;
    }

    .careers-hero__subtitle {
        font-size: 20px;
    }

    .careers-opps {
        padding: 40px 48px;
    }
}

@media (max-width: 768px) {

    /* ─── Hero ───────────────────────────── */
    .careers-hero {
        height: 667px;
        min-height: unset;
    }

    /* Dark solid tint layered over the directional gradient */
    .careers-hero__overlay {
        background: linear-gradient(0deg, rgba(0, 59, 112, 0.6), rgba(0, 59, 112, 0.6)), linear-gradient(90.3deg, #003B70 8.98%, rgba(0, 59, 112, 0) 99.74%);
    }

    .careers-hero__content {
        padding: 0 16px;
        gap: 16px;
        justify-content: center;
    }

    .careers-hero__top {
        max-width: 343px;
        gap: 16px;
    }

    .careers-hero__title {
        font-size: 24px;
        font-weight: 400;
        line-height: 120%;
    }

    .careers-hero__subtitle {
        font-size: 18px;
        font-weight: 300;
        line-height: 130%;
    }

    /* ─── Hero Buttons ───────────────────── */
    /* Stack vertically, 217 × 38 */
    .careers-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 217px;
    }

    .careers-btn--primary {
        width: 217px;
        height: 38px;
        padding: 2px 16px;
        border-radius: 23px;
        font-size: 14px;
        line-height: 24px;
    }

    .careers-btn--outline,
    .careers-btn--outline-teal {
        width: 217px;
        height: 38px;
        padding: 16px;
        border-radius: 9999px;
        font-size: 14px;
        line-height: 24px;
    }

    /* ─── Hero Stats ─────────────────────── */
    /* First two cards side-by-side (~167.5px each),
       Awards card spans full width on its own row  */
    .careers-hero__stats {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        align-self: stretch;
    }

    .careers-stat {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 136px;
        padding: 8px 16px;
        gap: 16px;
        border-radius: 16px;
    }

    .careers-stat:nth-child(1),
    .careers-stat:nth-child(2) {
        flex: 1 1 calc(50% - 4px);
        max-width: calc(50% - 4px);
    }

    /* Awards / last card — full width */
    .careers-stat:last-child {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .careers-stat__body {
        align-items: center;
        text-align: center;
    }

    .careers-stat__label:first-child {
        font-size: 20px;
        line-height: 40px;
    }

    /* Icon: 44 × 44, border-radius 11px on mobile */
    .careers-stat__icon {
        width: 44px;
        height: 44px;
        border-radius: 11px;
        padding: 0 11px;
    }

    /* ─── Tabs: hide desktop, show mobile accordion ── */
    .careers-tabs,
    .careers-tabs--fixed,
    .careers-tabs--fixed.is-visible {
        display: none !important;
    }

    .careers-mob {
        display: block;
        position: sticky !important;
        top: 70px;
        z-index: 900;
    }

    .careers-mob--fixed {
        display: none !important;
    }

    /* ─── Why Join ───────────────────────── */
    .careers-why {
       /* padding: 40px 16px;*/
        gap: 0px;
    }

    .careers-why__title {
        font-size: 24px;
        font-weight: 400;
        line-height: 115%;
        text-align: center;
    }

    /* Stack vertically, image first */
    .careers-why__body {
        flex-direction: column;
        min-height: unset;
        gap: 16px;
        border-radius: 16px;
        overflow: hidden;
    }

    /* Image: 409px tall, no border-radius (clipped by parent) */
    .careers-why__img {
        flex: unset;
        height: 409px;
        order: 1;
    }

    /* Features panel below image */
    .careers-features {
        flex: unset;
        padding: 24px 16px;
        gap: 24px;
        order: 2;
    }

    /* Feature cards: 24px padding, 1px border */
    .careers-feature {
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;

        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    /* Feature icon: border-radius 10px on mobile */
    .careers-feature__icon {
        border-radius: 10px;
    }

    /* Feature text: 130% line-height on mobile */
    .careers-feature__text {
        line-height: 1.5;
        font-weight: 300;
    }
    html[dir="rtl"] .careers-feature__text {
       text-align:right;
    }
    /* ─── Opportunities ──────────────────── */
    .careers-opps {
        padding: 40px 16px;
        /*min-height: 416px;*/
        align-items: flex-start;
    }

    .careers-opps__inner {
        gap: 24px;
    }

    .careers-opps__title {
        font-size: 24px;
        line-height: 130%;
        margin-top: 0;
    }

    .careers-opps__desc {
        font-size: 14px;
        line-height: 1.5;
    }

    .careers-opps__actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 0;
    }

    /* Mobile button sizes: 147 × 38 primary, 90 × 38 outline */
    .careers-opps .careers-btn--primary {
        width: 147px;
        height: 38px;
        border-radius: 23px;
        padding: 2px 16px;
        font-size: 14px;
        line-height: 24px;
    }

    .careers-opps .careers-btn--outline {
        width: 90px;
        height: 38px;
        border-radius: 9999px;
        padding: 16px;
        font-size: 14px;
        line-height: 24px;
    }
}

/* ═══════════════════════════════════════
   CAREERS — MOBILE ACCORDION NAV
   Hidden on desktop (≥901px), shown on mobile (≤900px)
═══════════════════════════════════════ */
.careers-mob {
    background: #fff;
    border-bottom: 2px solid #e0e8ef;
    box-shadow: 0 2px 8px rgba(13, 31, 45, 0.05);
    position: relative;
    z-index: 10;
}

.careers-mob--fixed {
    display: none !important;
}

@media (min-width: 901px) {
    .careers-mob {
        display: none !important;
    }
}

.careers-mob__trigger {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
}

.careers-mob__label {
    font-family: 'Co Headline', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #00C4B3;
}

.careers-mob__chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #e0e8ef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
    flex-shrink: 0;
}

.careers-mob[data-open="true"] .careers-mob__chevron {
    transform: rotate(180deg);
}

.careers-mob__dropdown {
    display: none;
    border-top: 0.5px solid #e0e8ef;
}

.careers-mob[data-open="true"] .careers-mob__dropdown {
    display: block;
}

.careers-mob__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    font-family: 'Co Headline', sans-serif;
    font-size: 14px;
    color: #003B70;
    text-decoration: none;
    border-bottom: 0.5px solid #f0f5f9;
    transition: background 0.15s;
}

.careers-mob__item:last-child {
    border-bottom: none;
}

.careers-mob__item:hover {
    background: #f5fbf9;
}

.careers-mob__item--active {
    color: #00C4B3;
    font-weight: 500;
}

.careers-mob__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00C4B3;
    flex-shrink: 0;
    display:none !important;
}

/* RTL support */
.careers-page[dir="rtl"] .careers-mob__trigger {
    flex-direction: row-reverse;
}

.careers-page[dir="rtl"] .careers-mob__item {
    flex-direction: row;
}
@media (max-width: 768px) {
    .careers-stat__value{
        width:unset;
    }
    .Hero_Section {
        height: auto !important;
    }
}
