/* ===== Why Work With Us — page-specific styles =====
   Reuses the color variables and font already defined in index.css
   (--obx-mid-blue, --obx-red, --text-dark, --text-medium, --bg-light, --white).
   Only new layout/typography rules for this page live here. */

.hero-careers {
    height: 18vh;
    background: linear-gradient(135deg, #006c8dc0 0%, #0058af7a 100%), url('../assets/Careers_img.jpg');
    background-size: cover;
    background-position: 75% center;
}

.hero-careers .hero-title {
    font-size: clamp(60px, 2.4vw, 26px);
    margin-bottom: 0;
}

/* ----- page banner (photo background + title, like the site's other page headers) ----- */

.careers-page-banner {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.careers-page-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.careers-page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.65) 32%, rgba(255, 255, 255, 0.1) 40%);
    z-index: 2;
}

/* Soft localized patch to mask the embedded watermark text in the
   placeholder photo. Adjust left/width/top below to match wherever
   the text sits once you swap in the final photo — or delete this
   whole rule once the real image has no baked-in text. */
.careers-page-banner-patch {
    position: absolute;
    top: 0;
    left: 11%;
    width: 20%;
    height: 100%;
    background: #ffffff;
    box-shadow: 30px 0 40px -10px #ffffff, -30px 0 40px -10px #ffffff;
    z-index: 2;
    pointer-events: none;
}

.careers-page-banner-title {
    position: relative;
    z-index: 3;
}

.careers-page-banner-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-left: 140px;
    margin: 0;
}

.careers-hero,
.careers-split,
.careers-legal {
    padding: 100px 60px;
}

.careers-hero {
    background: var(--white);
    text-align: left;
}

.careers-hero-container {
    max-width: 1280px;
    margin: 0 auto;
}

.careers-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
}

.careers-hero-media img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .careers-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .careers-hero-media {
        order: -1;
    }
    .careers-hero-media img {
        aspect-ratio: 16 / 10;
    }
}

.careers-hero-title,
.careers-hero-lede,
.careers-body-text,
.careers-hero-container > .careers-cta {
    max-width: 700px;
}

.careers-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--obx-red);
    margin-bottom: 16px;
}

.careers-hero-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.careers-hero-lede,
.careers-section-lede {
    font-size: clamp(18px, 1.6vw, 22px);
    color: var(--obx-mid-blue);
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
}

.careers-body-text p {
    font-size: 16px;
    color: var(--text-medium, #4a4a4a);
    line-height: 1.7;
    margin-bottom: 16px;
}

.careers-body-text p:last-child {
    margin-bottom: 32px;
}

/* ----- dedicated CTA button for this page -----
   Same look as the site's red CTA buttons, but WITHOUT the
   translateY(50%) seam-straddling trick used only on the homepage hero. */
.careers-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--obx-red);
    color: var(--white);
    padding: 18px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.careers-cta:hover {
    background: #c11530;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ----- two-column split sections (image/video + text) ----- */

.careers-split {
    background: var(--bg-light);
}

.careers-split-alt {
    background: var(--white);
}

.careers-split-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Reverse visual order safely with `order`, not `direction: rtl`
   (rtl can cause unrelated layout/scroll quirks on the whole page). */
.careers-split-reverse .careers-split-media {
    order: -1;
}

.careers-section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 16px;
}

/* ----- media framing: match the site's existing card treatment ----- */

.careers-split-media {
    position: relative;
}

.careers-split-media img,
.careers-video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid #e0e0e0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.careers-video {
    background: #000;
}

.careers-video-caption {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 18px;
    letter-spacing: 0.3px;
}

.careers-brochure-link {
    font-size: 14px;
    color: var(--text-medium, #4a4a4a);
    margin-top: 20px;
}

.careers-brochure-link a {
    color: var(--obx-mid-blue);
    font-weight: 600;
    text-decoration: underline;
}

/* ----- standalone video block (Why We Love Our Jobs) ----- */

.careers-video-block {
    background: var(--white);
    padding: 0 60px 100px;
}

.careers-video-block-container {
    max-width: 700px;
    margin: 0 auto;
}

.careers-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.careers-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ----- legal / EEO footnote block ----- */

.careers-legal {
    background: var(--white);
    padding-top: 40px;
    padding-bottom: 60px;
}

.careers-legal-container {
    max-width: 1100px;
    margin: 0 auto;
}

.careers-legal-container p {
    font-size: 14px;
    color: var(--text-medium, #4a4a4a);
    line-height: 1.6;
    margin-bottom: 12px;
}

.careers-legal-container a {
    color: var(--obx-mid-blue);
}

/* ----- responsive: stack columns on smaller screens ----- */

@media (max-width: 900px) {
    .careers-page-banner {
        height: 200px;
    }

    .careers-page-banner-title {
        padding-left: 24px;
    }

    .careers-video-block {
        padding: 0 24px 64px;
    }

    .careers-hero,
    .careers-split,
    .careers-legal {
        padding: 64px 24px;
    }

    .careers-split-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .careers-split-reverse .careers-split-media {
        order: -1;
    }

    .careers-split-media img,
    .careers-video {
        aspect-ratio: 16 / 10;
    }
}