/* ─────────────────────────────────────────────────────────
   FOR CANDIDATES PAGE - STENZO
   Cinematic Editorial Experience
───────────────────────────────────────────────────────── */

.candidates-page {
    background-color: #ebeff5;
    /* Requested background */
    min-height: 100vh;
}

/* ── Section 01: Hero ── */
.candidates-hero {
    padding: 180px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.candidates-hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Eyebrow Pill */
.candidates-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-peach, #fcece3);
    border: 1px solid rgba(232, 98, 42, 0.15);
    color: var(--color-dark, #14142d);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}

.candidates-hero-title {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    font-weight: var(--text-title-weight);
    letter-spacing: -0.02em;
    color: var(--color-dark, #14142d);
    margin: 0;
}

.candidates-hero-desc {
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.6;
    color: rgba(33, 34, 47, 0.75);
    max-width: 650px;
    margin: 0;
}

/* ── Cinematic Story Sections ── */
.candidate-story-section {
    padding: 0 24px 120px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    scroll-margin-top: 100px;
    /* Offset for sticky nav */
}

/* Giant Video */
.candidate-story-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 120px;
    background-color: #000;
}

.candidate-story-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Gradient Overlay for Text Readability */
.candidate-story-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.candidate-story-title-wrap {
    position: absolute;
    bottom: 48px;
    left: max(24px, calc(50vw - 676px));
    /* Align with 1400px container */
    right: 24px;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
}

.candidate-story-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.9;
}

.candidate-story-title {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    color: #ffffff;
    margin: 0;
    font-weight: var(--text-title-weight) !important;
}

/* Description Text below giant video */
.candidate-story-desc {
    max-width: 800px;
    margin: 0 auto 160px;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.5;
    color: var(--color-dark, #14142d);
    font-weight: 400;
    text-align: center;
}

/* Horizontal Carousel */
.candidate-carousel-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.candidate-cards-carousel {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 calc(50vw - min(325px, 42.5vw));
    /* Center the first card */
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.candidate-cards-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.candidate-card {
    display: flex;
    flex-direction: column;
    background: none;
    flex: 0 0 min(650px, 85vw);
    scroll-snap-align: center;
}

.candidate-card-visual {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 24px;
}

.candidate-card-visual video,
.candidate-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.candidate-card-content {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.candidate-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 32px max(24px, calc(50vw - 676px)) 0;
    max-width: 100vw;
}

.candidate-carousel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: var(--color-dark, #14142d);
}

@media (hover: hover) {
    .candidate-carousel-btn:hover {
        background-color: rgba(0, 0, 0, 0.1);
        transform: scale(1.05);
    }
}

.candidate-carousel-btn:active {
    background-color: rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
}

.candidate-carousel-btn svg {
    width: 24px;
    height: 24px;
}

.candidate-card-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--color-dark, #14142d);
    margin: 0 0 16px;
}

.candidate-card-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(33, 34, 47, 0.75);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {

    .candidate-story-title-wrap {
        bottom: 32px;
        left: 32px;
        right: 32px;
    }

    .candidate-cards-carousel {
        gap: 24px;
    }
}

@media (max-width: 767px) {

    .candidate-story-title-wrap {
        bottom: 24px;
        left: 24px;
        right: 24px;
    }

    .candidate-story-title {
        font-size: 28px;
    }

    .candidate-story-hero {
        margin-bottom: 80px;
    }

    .candidate-story-desc {
        font-size: 18px;
        margin-bottom: 100px;
        text-align: left;
    }

    .candidate-card {
        flex: 0 0 min(500px, 85vw);
    }

    .candidate-carousel-btn {
        width: 48px;
        height: 48px;
    }

    .candidate-card-visual {
        aspect-ratio: 16/9;
    }

    .candidate-story-section {
        padding: 0 16px 80px;
    }
}