/* ==========================================================
   CAREERS PAGE

   All classes prefixed cxc- so nothing collides with the
   header, partners, challenges or mountain components.

   Sections, in page order:
     .cxc-hero    hero with image
     .cxc-jobs    open positions + country tabs
     .cxc-adv     why top talent chooses connexr
     .cxc-life    photo grid
     .cxc-perks   benefits and perks
========================================================== */

:root {
    --cxc-navy:     #16265E;
    --cxc-blue:     #1B3A7A;
    --cxc-orange:   #F49A2D;
    --cxc-orange-d: #e07f10;
    --cxc-body:     #46516B;
    --cxc-line:     #E6EAF2;
    --cxc-panel:    #F6F8FC;
    --cxc-radius:   4px;
}


/* ---------- shared ---------- */

.cxc-hero,
.cxc-jobs,
.cxc-adv,
.cxc-life,
.cxc-perks {
    position: relative;
    font-family: "Poppins", sans-serif;
    background:
        linear-gradient(120deg, #FFFFFF 0%, #FDF6EF 55%, #FDEEDD 100%);
}

.cxc-hero *,
.cxc-jobs *,
.cxc-adv *,
.cxc-life *,
.cxc-perks * {
    box-sizing: border-box;
}

.cxc-wrap {
    width: calc(100% - 180px);
    max-width: 1660px;
    margin: 0 auto;
}

.cxc-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cxc-orange);
}

.cxc-title {
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--cxc-navy);
}

.cxc-title--stack {
    max-width: 480px;
}

.cxc-lede {
    margin: 0 0 44px;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--cxc-blue);
}

.cxc-lede p {
    margin: 0;
}


/* ---------- buttons ---------- */

.cxc-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: var(--cxc-radius);
    background: var(--cxc-orange);
    color: var(--cxc-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .3s ease, transform .3s ease;
}

.cxc-btn:hover {
    background: var(--cxc-orange-d);
    color: #fff;
}

.cxc-btn svg {
    transition: transform .3s ease;
}

.cxc-btn:hover svg {
    transform: translateX(3px);
}

.cxc-btn--sm {
    padding: 9px 16px;
    font-size: 12.5px;
}


/* ==========================================================
   HERO
========================================================== */

.cxc-hero {
    padding: 60px 0 110px;
}

.cxc-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 440px;
}

.cxc-hero__title {
    margin: 0 0 24px;
    font-size: 60px;
    line-height: 1.12;
    font-weight: 700;
    color: var(--cxc-navy);
    max-width: 620px;
}

.cxc-hero__title span {
    color: var(--cxc-orange);
}

.cxc-hero__text {
    margin: 0 0 36px;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--cxc-body);
}

.cxc-hero__text p {
    margin: 0;
}

.cxc-hero__media {
    position: relative;
    height: 100%;
    min-height: 430px;
    overflow: hidden;
    background: var(--cxc-panel);
}

.cxc-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==========================================================
   OPEN POSITIONS
========================================================== */

.cxc-jobs {
    padding: 40px 0 100px;
}

.cxc-jobs__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 40px;
}

.cxc-jobs__head .cxc-lede {
    margin-bottom: 0;
}


/* ---------- country tabs ---------- */

.cxc-tabs {
    display: flex;
    gap: 6px;
    flex: none;
}

.cxc-tab {
    padding: 11px 24px;
    border: 0;
    border-radius: var(--cxc-radius);
    background: transparent;
    color: #A9B2C6;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
}

.cxc-tab:hover {
    color: var(--cxc-navy);
}

.cxc-tab.is-active {
    background: var(--cxc-orange);
    color: #fff;
}


/* ---------- job grid ---------- */

.cxc-jobs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.cxc-job {
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
    background: #fff;
    border: 1px solid var(--cxc-line);
    transition: transform .3s ease, box-shadow .3s ease;
}

.cxc-job:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(22, 38, 94, .10);
}

.cxc-job.is-hidden {
    display: none;
}

.cxc-job__title {
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #10182F;
}

.cxc-job__meta {
    margin: 0 0 30px;
    display: grid;
    gap: 11px;
}

.cxc-job__meta > div {
    display: flex;
    gap: 6px;
    font-size: 13.5px;
    line-height: 1.4;
}

.cxc-job__meta dt {
    margin: 0;
    color: #10182F;
    font-weight: 500;
    flex: none;
}

.cxc-job__meta dd {
    margin: 0;
    color: var(--cxc-body);
}

.cxc-job .cxc-btn {
    margin-top: auto;
    align-self: flex-start;
}

.cxc-jobs__empty {
    margin: 40px 0 0;
    font-size: 15px;
    color: var(--cxc-body);
}


/* ==========================================================
   ADVANTAGE CARDS
========================================================== */

.cxc-adv {
    padding: 60px 0 100px;
}

.cxc-adv__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.cxc-adv__card {
    padding: 30px 28px 34px;
    background: var(--cxc-panel);
    border: 1px solid var(--cxc-line);
    transition: transform .3s ease, box-shadow .3s ease;
}

.cxc-adv__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(22, 38, 94, .08);
}

.cxc-adv__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 26px;
    border-radius: 8px;
    background: rgba(244, 154, 45, .14);
}

.cxc-adv__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.cxc-adv__card h3 {
    margin: 0 0 14px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--cxc-navy);
}

.cxc-adv__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--cxc-blue);
}

.cxc-adv__text p {
    margin: 0;
}


/* ==========================================================
   LIFE AT STUDIO — photo grid

   Two rows, three columns:

     big   tall   note
     s1    s2     note

   The note panel spans both rows on the right.
========================================================== */
/* ==========================================================
   LIFE AT STUDIO — photo grid

     big   big   tall
     s1    s2    tall

   The tall photo spans both rows and the navy note
   overlays its bottom edge. Row gap is 0 so the two
   small images sit flush under the big one.
========================================================== */

.cxc-life {
    padding: 60px 0 100px;
}

.cxc-life__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.05fr;
    gap: 0 20px;

    grid-template-areas:
        "big  big   tall"
        "s1   s2    tall";
}

.cxc-life__grid figure {
    margin: 0;
    overflow: hidden;
    background: var(--cxc-panel);
}

.cxc-life__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s ease;
}

.cxc-life__grid figure:hover img {
    transform: scale(1.05);
}


/* ---------- placement + heights ---------- */

.cxc-life__a {
    grid-area: big;
    height: 500px;
}

/* tall photo spans both rows, so no fixed height */
.cxc-life__b {
    grid-area: tall;
    position: relative;
}

.cxc-life__c {
    grid-area: s1;
    height: 280px;
}

.cxc-life__d {
    grid-area: s2;
    height: 280px;
}


/* ---------- note overlays the tall photo ---------- */

.cxc-life__note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;

    padding: 20px 22px;
    background: var(--cxc-navy);
    color: #fff;
    font-size: 13.5px;
    line-height: 1.6;
}

.cxc-life__note p {
    margin: 0;
}

/* ==========================================================
   BENEFITS AND PERKS
========================================================== */

.cxc-perks {
    padding: 60px 0 120px;
}

.cxc-perks__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cxc-perk {
    padding: 28px 30px 32px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
}

.cxc-perk:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(22, 38, 94, .08);
}

.cxc-perk__check {
    display: block;
    margin-bottom: 22px;
    color: var(--cxc-orange);
}

.cxc-perk h3 {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--cxc-navy);
}

.cxc-perk__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--cxc-blue);
}

.cxc-perk__text p {
    margin: 0;
}


/* ==========================================================
   RESPONSIVE
========================================================== */
/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1500px) {

    .cxc-wrap {
        width: calc(100% - 110px);
    }

    .cxc-hero__title {
        font-size: 50px;
    }

    .cxc-title {
        font-size: 38px;
    }

    .cxc-life__a { height: 440px; }
    .cxc-life__c,
    .cxc-life__d { height: 245px; }
}


@media (max-width: 1200px) {

    .cxc-wrap {
        width: calc(100% - 70px);
    }

    .cxc-hero {
        padding: 40px 0 80px;
    }

    .cxc-hero__grid {
        gap: 50px;
    }

    .cxc-hero__title {
        font-size: 42px;
    }

    .cxc-title {
        font-size: 34px;
    }

    .cxc-jobs__grid,
    .cxc-adv__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cxc-perks__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cxc-life__a { height: 380px; }
    .cxc-life__c,
    .cxc-life__d { height: 210px; }

    .cxc-life__note {
        padding: 16px 18px;
        font-size: 12.5px;
    }
}


@media (max-width: 900px) {

    .cxc-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cxc-hero__media {
        min-height: 300px;
    }

    .cxc-jobs__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .cxc-tabs {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .cxc-tabs::-webkit-scrollbar {
        display: none;
    }

    /* two columns: big spans the top, tall runs down the right */
    .cxc-life__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "big  big"
            "s1   tall"
            "s2   tall";
    }

    .cxc-life__a { height: 300px; }
    .cxc-life__c { height: 150px; }
    .cxc-life__d { height: 150px; }
}


@media (max-width: 640px) {

    .cxc-wrap {
        width: calc(100% - 40px);
    }

    .cxc-hero {
        padding: 30px 0 60px;
    }

    .cxc-hero__title {
        font-size: 34px;
    }

    .cxc-title {
        font-size: 28px;
    }

    .cxc-jobs,
    .cxc-adv,
    .cxc-life {
        padding: 40px 0 60px;
    }

    .cxc-perks {
        padding: 40px 0 70px;
    }

    .cxc-jobs__grid,
    .cxc-adv__grid,
    .cxc-perks__grid {
        grid-template-columns: 1fr;
    }

    /* everything stacks, row gap returns */
    .cxc-life__grid {
        grid-template-columns: 1fr;
        gap: 14px;
        grid-template-areas:
            "big"
            "tall"
            "s1"
            "s2";
    }

    .cxc-life__a,
    .cxc-life__c,
    .cxc-life__d {
        height: 220px;
    }

    .cxc-life__b {
        height: 320px;
    }

    .cxc-life__note {
        padding: 16px 18px;
        font-size: 13px;
    }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .cxc-job,
    .cxc-adv__card,
    .cxc-perk,
    .cxc-life__grid img,
    .cxc-btn,
    .cxc-btn svg,
    .cxc-tab {
        transition: none !important;
    }
}