/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;

    background: #08090b;

    color: #ffffff;

    font-family: "Inter", Arial, Helvetica, sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   PAGE
========================================================= */

.careers-page {
    width: 100%;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 190, 0, 0.025),
            transparent 35%
        ),
        #08090b;

    animation: pageFadeIn 0.8s ease-out both;
}


/* =========================================================
   PAGE ENTRANCE ANIMATION
========================================================= */

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   TOP PAGE LABEL
========================================================= */

.page-label {
    width: 100%;
    height: 62px;

    padding-left: 32px;

    display: flex;
    align-items: center;

    gap: 7px;

    position: relative;

    border-bottom: 1px solid #292a2c;

    color: #f4c62b;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 0.4px;

    text-transform: uppercase;
}

.page-number {
    color: #f5c928;
}


/* =========================================================
   PAGE LABEL YELLOW LINE
========================================================= */

.page-label::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 0;
    height: 1px;

    background: #f4c62b;

    animation: labelLine 1s ease-out 0.3s forwards;
}

@keyframes labelLine {
    from {
        width: 0;
    }

    to {
        width: 115px;
    }
}


/* =========================================================
   MAIN SECTION
========================================================= */

.careers-section {
    width: 100%;

    padding: 32px 0 45px;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.careers-container {
    width: min(1120px, calc(100% - 64px));

    margin: 0 auto;
}


/* =========================================================
   CAREERS HEADING
========================================================= */

.careers-heading {
    width: 100%;

    animation: headingReveal 0.8s ease-out 0.1s both;
}

@keyframes headingReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   BRAND
========================================================= */

.brand-mark {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 5px;
}

.brand-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color: #f4c321;

    font-size: 31px;

    line-height: 1;

    transform: rotate(-8deg);

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.brand-mark:hover .brand-icon {
    transform: rotate(5deg) scale(1.08);

    color: #ffd43c;
}

.brand-name {
    color: #e9b91d;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.7px;
}


/* =========================================================
   PAGE TITLE
========================================================= */

.careers-heading h1 {
    margin-top: 2px;

    color: #ffffff;

    font-size: clamp(30px, 3vw, 42px);

    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -1.2px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 10px;

    font-size: 10px;

    font-weight: 500;

    color: #77797e;
}

.breadcrumb-arrow {
    color: #67686d;

    font-size: 14px;

    line-height: 1;

    transition: transform 0.25s ease;
}

.breadcrumb:hover .breadcrumb-arrow {
    transform: translateX(3px);

    color: #e9b91d;
}

.breadcrumb .active {
    color: #e9b91d;
}


/* =========================================================
   INTRO
========================================================= */

.career-intro {
    width: 390px;

    max-width: 100%;

    margin-top: 48px;

    animation: introReveal 0.8s ease-out 0.25s both;
}

@keyframes introReveal {
    from {
        opacity: 0;

        transform: translateY(15px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

.career-intro p {
    color: #8b8d92;

    font-size: 16px;

    line-height: 1.65;

    font-weight: 400;
}


/* =========================================================
   CAREER CONTENT
========================================================= */

.career-content {
    width: 100%;

    margin-top: 34px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 470px);

    align-items: center;

    column-gap: 70px;
}


/* =========================================================
   BENEFITS
========================================================= */

.career-benefits {
    display: flex;

    flex-direction: column;

    gap: 28px;
}


/* =========================================================
   BENEFIT ITEM
========================================================= */

.benefit-item {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    min-height: 60px;

    opacity: 0;

    animation:
        benefitSlideIn
        0.7s
        ease-out
        forwards;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.benefit-item:nth-child(1) {
    animation-delay: 0.35s;
}

.benefit-item:nth-child(2) {
    animation-delay: 0.5s;
}

.benefit-item:nth-child(3) {
    animation-delay: 0.65s;
}

@keyframes benefitSlideIn {
    from {
        opacity: 0;

        transform: translateX(-25px);
    }

    to {
        opacity: 1;

        transform: translateX(0);
    }
}

.benefit-item:hover {
    transform: translateX(6px);
}


/* =========================================================
   BENEFIT ICON
========================================================= */

.benefit-icon {
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(226, 181, 28, 0.65);

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #e8bd22;

    font-size: 19px;

    background:
        radial-gradient(
            circle,
            rgba(234, 189, 30, 0.08),
            rgba(234, 189, 30, 0.01)
        );

    box-shadow:
        0 0 12px rgba(232, 189, 34, 0.05);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.08) rotate(5deg);

    border-color: #e8bd22;

    background:
        radial-gradient(
            circle,
            rgba(234, 189, 30, 0.14),
            rgba(234, 189, 30, 0.03)
        );

    box-shadow:
        0 0 18px rgba(232, 189, 34, 0.18);
}


/* =========================================================
   BENEFIT TEXT
========================================================= */

.benefit-text {
    padding-top: 1px;
}

.benefit-text h3 {
    color: #f4f4f4;

    font-size: 16px;

    line-height: 1.3;

    font-weight: 700;

    margin-bottom: 5px;

    transition: color 0.25s ease;
}

.benefit-item:hover .benefit-text h3 {
    color: #f4c62b;
}

.benefit-text p {
    max-width: 275px;

    color: #777a80;

    font-size: 13px;

    line-height: 1.55;

    font-weight: 400;
}


/* =========================================================
   CAREER IMAGE
========================================================= */

.career-image {
    width: 100%;

    height: 260px;

    overflow: hidden;

    position: relative;

    border-radius: 3px;

    background: #141518;

    opacity: 0;

    animation:
        imageReveal
        0.9s
        ease-out
        0.4s
        forwards;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.22);
}

@keyframes imageReveal {
    from {
        opacity: 0;

        transform:
            translateX(25px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.career-image::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(8, 9, 11, 0.08),
            transparent 20%,
            transparent 80%,
            rgba(8, 9, 11, 0.08)
        );
}


/* =========================================================
   IMAGE
========================================================= */

.career-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    filter:
        brightness(0.9)
        contrast(1.03);

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.career-image:hover img {
    transform: scale(1.035);

    filter:
        brightness(0.96)
        contrast(1.05);
}


/* =========================================================
   OPEN POSITIONS
========================================================= */

.positions-section {
    width: 100%;

    margin-top: 68px;

    animation:
        positionsReveal
        0.8s
        ease-out
        0.75s
        both;
}

@keyframes positionsReveal {
    from {
        opacity: 0;

        transform: translateY(20px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

.positions-section h2 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 18px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.2px;
}


/* =========================================================
   POSITIONS TABLE
========================================================= */

.positions-table {
    width: 100%;

    border: 1px solid #15171a;

    background: #0a0c0e;

    overflow: hidden;

    border-radius: 5px;

    padding-bottom: 1px;
}


/* =========================================================
   POSITION ROW
========================================================= */

.position-row {
    width: calc(100% - 16px);

    min-height: 58px;

    margin:
        0 8px 8px;

    display: grid;

    grid-template-columns:
        minmax(210px, 1.5fr)
        minmax(120px, 0.75fr)
        minmax(100px, 0.65fr)
        130px;

    align-items: center;

    border: 1px solid #191b1e;

    border-radius: 5px;

    padding:
        0 18px 0 22px;

    background: #0e1012;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   ROW HOVER
========================================================= */

.position-row:not(.position-header):hover {
    transform: translateY(-2px);

    background: #121416;

    border-color:
        rgba(228, 183, 28, 0.22);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   LAST ROW
========================================================= */

.position-row:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TABLE HEADER
========================================================= */

.position-header {
    width: 100%;

    min-height: 42px;

    margin: 0;

    padding:
        0 18px 0 22px;

    display: grid;

    grid-template-columns:
        minmax(210px, 1.5fr)
        minmax(120px, 0.75fr)
        minmax(100px, 0.65fr)
        130px;

    align-items: center;

    background: #101214;

    border: none;

    border-bottom: 1px solid #202226;

    border-radius: 0;

    color: #66696f;

    font-size: 15px;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    font-weight: 600;

    box-shadow: none;

    transform: none !important;

    animation: none !important;
}


/* =========================================================
   TABLE CELLS
========================================================= */

.position-cell {
    color: #8d8f94;

    font-size: 13px;

    line-height: 1.3;

    font-weight: 500;
}

.position-name {
    color: #d2d3d5;

    font-weight: 600;

    transition: color 0.25s ease;
}

.position-row:hover .position-name {
    color: #f0f0f0;
}


/* =========================================================
   ACTION CELL
========================================================= */

.action-cell {
    display: flex;

    justify-content: flex-end;

    align-items: center;
}


/* =========================================================
   APPLY BUTTON
========================================================= */

.apply-btn {
    min-width: 82px;

    height: 27px;

    padding: 0 12px;

    border:
        1px solid
        rgba(228, 183, 28, 0.38);

    border-radius: 4px;

    background:
        linear-gradient(
            180deg,
            rgba(238, 194, 35, 0.12),
            rgba(238, 194, 35, 0.04)
        );

    color: #e6bb20;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.apply-btn:hover {
    background:
        linear-gradient(
            180deg,
            rgba(238, 194, 35, 0.2),
            rgba(238, 194, 35, 0.08)
        );

    border-color: #e6bb20;

    transform: translateY(-2px);

    box-shadow:
        0 5px 15px rgba(238, 194, 35, 0.12);
}

.apply-btn:active {
    transform: translateY(0);
}


/* =========================================================
   JOB ROW STAGGER ANIMATION
========================================================= */

.positions-table
.position-row:not(.position-header) {
    opacity: 0;

    animation:
        rowReveal
        0.6s
        ease-out
        forwards;
}

.positions-table
.position-row:nth-child(2) {
    animation-delay: 0.9s;
}

.positions-table
.position-row:nth-child(3) {
    animation-delay: 1.05s;
}

.positions-table
.position-row:nth-child(4) {
    animation-delay: 1.2s;
}

@keyframes rowReveal {
    from {
        opacity: 0;

        transform: translateY(12px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================================================
   VIEW ALL BUTTON CONTAINER
========================================================= */

.all-positions {
    display: flex;

    justify-content: center;

    margin-top: 28px;

    opacity: 0;

    animation:
        buttonReveal
        0.7s
        ease-out
        1.35s
        forwards;
}

@keyframes buttonReveal {
    from {
        opacity: 0;

        transform: translateY(12px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================================================
   VIEW ALL BUTTON
========================================================= */

.view-btn {
    min-width: 138px;

    height: 38px;

    padding: 0 20px;

    border: none;

    border-radius: 5px;

    background: #f1c42a;

    color: #090a0c;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 20px rgba(241, 196, 42, 0.08);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.view-btn:hover {
    background: #ffd43c;

    transform: translateY(-3px);

    box-shadow:
        0 10px 28px rgba(241, 196, 42, 0.18);
}

.view-btn:active {
    transform: translateY(-1px);
}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media (min-width: 1200px) {

    .careers-container {
        width:
            min(
                1120px,
                calc(100% - 100px)
            );
    }

    .career-content {
        grid-template-columns:
            minmax(0, 1fr)
            470px;

        column-gap: 85px;
    }

    .career-image {
        height: 260px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .page-label {
        height: 56px;

        padding-left: 24px;
    }

    .careers-section {
        padding-top: 28px;
    }

    .careers-container {
        width:
            calc(100% - 48px);
    }

    .career-content {
        grid-template-columns: 1fr;

        row-gap: 35px;

        column-gap: 0;
    }

    .career-image {
        width:
            min(
                100%,
                520px
            );

        height: 290px;

        justify-self: center;
    }

    .career-benefits {
        max-width: 500px;
    }

    .positions-section {
        margin-top: 55px;
    }

    .position-row {
        grid-template-columns:
            1.5fr
            0.8fr
            0.8fr
            110px;
    }

    .position-header {
        grid-template-columns:
            1.5fr
            0.8fr
            0.8fr
            110px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .page-label {
        height: 50px;

        padding-left: 18px;

        font-size: 10px;
    }

    .careers-section {
        padding:
            25px 0 35px;
    }

    .careers-container {
        width:
            calc(100% - 36px);
    }

    .brand-mark {
        margin-bottom: 6px;
    }

    .brand-icon {
        width: 23px;
        height: 23px;

        font-size: 23px;
    }

    .brand-name {
        font-size: 9px;
    }

    .careers-heading h1 {
        font-size: 29px;

        letter-spacing: -0.8px;
    }

    .breadcrumb {
        margin-top: 8px;

        font-size: 9px;
    }

    .career-intro {
        margin-top: 34px;
    }

    .career-intro p {
        font-size: 11px;

        line-height: 1.65;
    }

    .career-content {
        margin-top: 28px;

        row-gap: 28px;
    }

    .career-benefits {
        gap: 22px;
    }

    .benefit-item {
        gap: 12px;
    }

    .benefit-icon {
        width: 34px;
        height: 34px;

        font-size: 14px;
    }

    .benefit-text h3 {
        font-size: 12px;
    }

    .benefit-text p {
        font-size: 9px;

        max-width: 245px;
    }

    .career-image {
        height: 220px;

        width: 100%;
    }


    /* -----------------------------------------
       MOBILE TABLE
    ----------------------------------------- */

    .positions-section {
        margin-top: 48px;
    }

    .positions-section h2 {
        font-size: 14px;

        margin-bottom: 15px;
    }

    .positions-table {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .position-row {
        min-width: 620px;

        grid-template-columns:
            1.6fr
            1fr
            1fr
            110px;

        min-height: 53px;

        margin:
            0 5px 6px;

        padding-left: 15px;

        padding-right: 15px;
    }

    .position-header {
        min-width: 620px;

        grid-template-columns:
            1.6fr
            1fr
            1fr
            110px;

        margin: 0;

        padding-left: 15px;

        padding-right: 15px;
    }

    .position-cell {
        font-size: 9px;
    }

    .position-header {
        font-size: 8px;
    }

    .apply-btn {
        min-width: 76px;

        height: 25px;

        font-size: 8px;
    }

    .all-positions {
        margin-top: 23px;
    }

    .view-btn {
        min-width: 132px;

        height: 36px;

        font-size: 9px;
    }


    /* -----------------------------------------
       MOBILE HOVER CONTROL
    ----------------------------------------- */

    .position-row:not(.position-header):hover {
        transform: none;
    }

    .career-image:hover img {
        transform: none;
    }

    .benefit-item:hover {
        transform: translateX(3px);
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .page-label {
        padding-left: 15px;
    }

    .careers-container {
        width:
            calc(100% - 30px);
    }

    .careers-heading h1 {
        font-size: 27px;
    }

    .career-image {
        height: 190px;
    }

    .career-intro {
        margin-top: 29px;
    }

    .positions-section {
        margin-top: 42px;
    }

    .career-benefits {
        gap: 19px;
    }
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
    }
}