/* ── Career page (layout aligned with about-us / .page-width) ── */

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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: "Product-Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.career-page {
    overflow-x: hidden;
}

.career-hero {
    background: #2e2e2e;
    margin-top: 72px;
    padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 6vw, 4rem);
    min-height: calc(100vh - 72px - 160px);
}

.career-hero-inner {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.career-page-title {
    color: #ffffff;
    font-family: "Product-Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    letter-spacing: 0.02em;
    line-height: 1.35;
    margin: clamp(0.35rem, 1.5vw, 0.75rem) 0 clamp(0.75rem, 2vw, 1.25rem);
}

.career-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}

@media (min-width: 900px) {
    .career-layout {
        grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    }
}

.career-board {
    background: #ffffff;
    border-radius: 14px;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    color: #111111;
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.8vw, 1.1rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.career-media {
    display: none;
    opacity: 0.3 !important;
}

@media (min-width: 900px) {
    .career-media {
        display: block;
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        background: #111;
        min-height: 100%;
    }

    .career-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
}

/* ── Job card (accordion) ── */
.career-job {
    position: relative;
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: visible;
    transition: box-shadow 0.25s ease;
}

.career-job:hover .career-job-head {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.career-job.is-open .career-job-head {
    /*border-radius: 12px 12px 0 0;*/
}

.career-job:not(.is-open) .career-job-head {
    border-radius: 12px;
}

.career-job-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    padding: clamp(0.9rem, 1.9vw, 1.2rem) clamp(1rem, 2vw, 1.4rem) clamp(0.9rem, 1.9vw, 1.2rem)
        clamp(1.15rem, 2.2vw, 1.5rem);
    background: #4d4d4d;
    color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: border-radius 0.25s ease, box-shadow 0.25s ease;
}

/* Bright accent stripe */
.career-job-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    /*background: #c5e60a;*/
    border-radius: 12px 0 0 12px;
}

.career-job.is-open .career-job-head::before {
    /*border-radius: 12px 0 0 0;*/
}

.career-job-headline {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    flex: 1 1 auto;
}

.career-job-title {
    font-family: "Product-Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

.career-job-salary {
    font-family: "Product-Sans", sans-serif;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.15vw, 0.95rem);
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.career-job-toggle {
    /* Fixed width: label text swaps without resizing the control */
    flex: 0 0 8rem;
    width: 8rem;
    min-width: 8rem;
    max-width: 8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    color: #111111;
    border: none;
    border-radius: 3px;
    font-family: "Product-Sans", sans-serif;
    font-size: clamp(0.8rem, 1.05vw, 1rem);
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.career-job-toggle:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.career-job-toggle:active {
    transform: scale(0.97);
}

.career-job-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.career-job-chevron {
    display: block;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.career-job-chevron--up {
    display: none;
}

.career-job.is-open .career-job-chevron--down {
    display: none;
}

.career-job.is-open .career-job-chevron--up {
    display: block;
}

.career-job-body {
    overflow: hidden;
    /* Narrower than .career-board inner area — inset from job column edges */
    width: calc(100% - 2 * clamp(0.65rem, 2.5vw, 1.15rem));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #f2f2f2;
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
}

.career-job-body[hidden] {
    display: block;
    height: 0;
}

.career-job-body-inner {
    padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.1rem, 2.2vw, 1.4rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.8rem, 1.5vw, 1.1rem);
    color: #1a1a1a;
}

.career-job-section h3 {
    font-family: "Product-Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    line-height: 1.4;
    color: #222222;
    margin: 0 0 0.4rem;
}

.career-job-section ul {
    list-style: disc;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #2a2a2a;
    font-size: clamp(0.82rem, 1.05vw, 0.92rem);
    line-height: 1.55;
    font-weight: 400;
}

.career-job-section ul li {
    padding-left: 0.15rem;
}

/* reveal-on-scroll */
.career-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
}

/* ── responsive ── */
@media (max-width: 768px) {
    .career-hero {
        margin-top: 64px;
        min-height: calc(100vh - 64px - 160px);
    }
}

@media (max-width: 540px) {
    .career-hero {
        margin-top: 56px;
        min-height: calc(100vh - 56px - 160px);
    }

    .career-job-head {
        gap: 0.75rem;
    }

    .career-job-toggle {
        padding: 0.45rem 0.8rem;
    }

    .career-job-body {
        width: calc(100% - 2 * 0.5rem);
    }
}

@media (min-width: 1920px) {
    .career-hero {
        margin-top: 80px;
        min-height: calc(100vh - 80px - 180px);
    }
}
