/* ═══════════════════════════════════════════════════
   CAREER SUPPORT & TRAINING PAGE STYLES
═══════════════════════════════════════════════════ */

/* Page-specific dark overrides */
body.career-support-page {
    background-color: #1a1a1c;
    color: #ffffff;
    /* Prevent default main padding if any */
    padding-top: 0 !important;
    overflow-x: clip;
}

/* Transparent Navbar over video chapter */
body.career-support-page:not(.is-dark-chapter) .snav:not(.has-open-menu),
body.career-support-page:not(.is-dark-chapter) .snav.is-scrolled:not(.has-open-menu) {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid transparent !important;
    backdrop-filter: none !important;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}

/* ── Dark Footer overrides ────────────────────────────────── */
body.career-support-page footer {
    background: rgba(53, 54, 59, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.career-support-page .sfooter-copyright {
    box-shadow: none !important;
}

body.career-support-page .sfooter-heading {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.career-support-page .sfooter-list a {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.career-support-page .sfooter-list a:hover,
body.career-support-page .sfooter-list a.is-active {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.career-support-page .sfooter-big-text {
    color: rgb(219, 74, 43) !important;
}

body.career-support-page .sfooter-logo svg rect {
    stroke: rgba(255, 255, 255, 0.9) !important;
    fill: transparent !important;
}

body.career-support-page .sfooter-logo svg circle {
    fill: rgba(255, 255, 255, 0.9) !important;
    stroke: transparent !important;
}

/* Fix Mega Menu active item pill in dark theme */
body.career-support-page.theme-dark .snav__mega-item.is-active {
    background: rgba(255, 255, 255, 0.08) !important;
}


/* Cinematic Container */
.cst-cinematic-container {
    position: relative;
    width: 100%;
    clip-path: inset(0);
    overflow-x: clip;
}

.cst-cinematic-mask {
    position: sticky;
    top: 24px;
    margin: 0 auto;
    margin-bottom: calc(-100vh + 48px);
    width: calc(100% - 48px);
    height: calc(100vh - 48px);
    border-radius: 32px;
    box-shadow: 0 0 0 100vmax #1a1a1c;
    pointer-events: none;
    z-index: 5;
}

.cst-video-wrapper {
    position: sticky;
    top: 24px;
    width: calc(100% - 48px);
    margin: 0 auto;
    height: calc(100vh - 48px);
    border-radius: 32px;
    z-index: 0;
    overflow: hidden;
}

.cst-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cst-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* Hero Content */
.cst-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    padding: 0 24px;
}

.cst-eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cst-title {
    font-size: 72px;
    font-weight: var(--text-title-weight);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cst-desc {
    font-size: 22px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
}

/* Story Scrolling */
.cst-story-scroll-container {
    position: relative;
    z-index: 3;
    padding-top: 800px;
    /* Wait for hero to fade out */
    padding-bottom: 100vh;
    /* gives room for final cta before footer */
}

.cst-story-item {
    height: 120vh;
    /* Scrolling distance per item */
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.cst-story-content {
    max-width: 540px;
    /* Managed by GSAP */
    opacity: 0;
    transform: translateY(40px);
}

.cst-story-content h2 {
    font-size: 44px;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.cst-story-content p {
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cst-large-desc {
    font-size: 32px !important;
    line-height: 1.3 !important;
    font-weight: 400;
    color: #ffffff !important;
    letter-spacing: -0.01em;
}

/* =========================================================================
   CHAPTER 2 — DARK CAREER JOURNEY
========================================================================= */
.cst-dark-chapter {
    /* background-color: #35363b; */
    position: relative;
    padding: 160px 0 80px 0;
    z-index: 4;
    overflow-x: clip;
}

.cst-timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: clip;
}

/* Central vertical line */
.cst-timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
    z-index: 1;
}

/* Timeline Layout */
.cst-timeline-item {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    /* Center horizontally connected */
    position: relative;
    z-index: 2;
    margin-bottom: 240px;
}

.cst-timeline-item:last-child {
    margin-bottom: 120px;
}

.cst-timeline-center {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.cst-timeline-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.cst-timeline-node.is-active {
    background: #ff6b2c;
    box-shadow: 0 0 16px rgba(255, 107, 44, 0.4);
}

.cst-timeline-connector-left,
.cst-timeline-connector-right {
    height: 1px;
    background: rgba(255, 255, 255, 0.20);
    position: absolute;
    top: 50%;
    width: 50%;
    transition: background 0.4s ease;
}

.cst-timeline-connector-left {
    left: 0;
}

.cst-timeline-connector-right {
    right: 0;
}

.cst-timeline-left .cst-timeline-connector-right {
    display: none;
}

.cst-timeline-left .cst-timeline-connector-left.is-active {
    background: rgba(255, 255, 255, 0.5);
}

.cst-timeline-right .cst-timeline-connector-left {
    display: none;
}

.cst-timeline-right .cst-timeline-connector-right.is-active {
    background: rgba(255, 255, 255, 0.5);
}

.cst-timeline-left .cst-timeline-content-wrapper {
    padding-right: 40px;
    display: flex;
    justify-content: flex-end;
}

.cst-timeline-right .cst-timeline-content-wrapper {
    padding-left: 40px;
    display: flex;
    justify-content: flex-start;
}

.cst-timeline-content {
    max-width: 520px;
    /* Will be animated by JS */
    opacity: 0;
    transform: translateY(30px);
}

.cst-timeline-content .cst-eyebrow {
    background: rgba(255, 255, 255, 0.08);
}

.cst-timeline-content h2 {
    font-size: 40px;
    font-weight: var(--text-title-weight);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.cst-timeline-title--mobile,
.cst-eyebrow--mobile {
    display: none;
}

.cst-timeline-empty h2 {
    font-size: 40px;
    font-weight: var(--text-title-weight);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 0;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.cst-timeline-content p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.cst-timeline-content .cst-subpoints {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.cst-timeline-content .cst-subpoint h4 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
}

.cst-timeline-content .cst-subpoint p {
    font-size: 16px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================================================
   FINAL CTA
========================================================================= */
.cst-final-cta {
    padding: 120px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* background-color: #35363b; */
}

.cst-final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cst-final-cta-content h2 {
    font-size: 64px;
    color: #ffffff;
    font-weight: var(--text-title-weight);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cst-final-cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.cst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1a1a1c;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 16px;
}

.cst-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
    color: #1a1a1c;
}

@media (max-width: 1100px) {
    .cst-title {
        font-size: 56px;
    }

    .cst-story-content h2 {
        font-size: 36px;
    }

    .cst-large-desc {
        font-size: 26px !important;
    }
}

@media (max-width: 900px) {
    .cst-timeline-line {
        left: 32px;
        transform: none;
    }

    .cst-timeline-item {
        grid-template-columns: 64px 1fr;
        margin-bottom: 120px;
    }

    .cst-timeline-center {
        grid-column: 1;
        justify-content: flex-start;
    }

    .cst-timeline-node {
        margin-left: 26px;
        /* 32px (line position) - 6px (half node) */
    }

    .cst-timeline-connector-left,
    .cst-timeline-connector-right {
        display: none !important;
        /* Hide horizontal connectors on mobile */
    }

    .cst-timeline-empty {
        display: none;
    }

    .cst-timeline-title--mobile {
        display: block;
    }

    .cst-eyebrow--mobile {
        display: inline-block;
    }

    .cst-timeline-left .cst-timeline-content-wrapper,
    .cst-timeline-right .cst-timeline-content-wrapper {
        grid-column: 2;
        padding: 0;
        justify-content: flex-start;
        overflow: hidden;
    }

    .cst-timeline-content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .cst-title {
        font-size: 40px;
    }

    .cst-desc {
        font-size: 18px;
    }

    .cst-story-item {
        padding: 0 24px;
        align-items: flex-end;
        padding-bottom: 20vh;
    }

    .cst-story-content h2 {
        font-size: 32px;
    }

    .cst-large-desc {
        font-size: 24px !important;
    }

    .cst-timeline-content h2 {
        font-size: 32px;
    }

    .cst-final-cta-content h2 {
        font-size: 44px;
    }

    .cst-subpoints {
        gap: 24px;
        margin-top: 24px;
    }
}