/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: black;
}

:root {
    --yellow: #fbbf24;
}

/* Colors */
/* .bg-primary-blue {
    background: transparent;
    color: var(--green);
}

.heading-white h2,
.heading-white h6 {
    color: var(--green);
}

.heading-white h6 {
    color: var(--green);
}

.heading-white h2 span {
    color: var(--green);
}

.text-neutral-6 {
    color: black;
} */

/* Layout */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-section {
    position: relative;
    overflow: hidden;
}

.inner-wrapper {
    position: relative;
}

/* Heading styles */
.heading-area {
    text-align: left;
    margin-bottom: 60px;
    padding-left: 20px;
}

.heading-area h6 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    opacity: 1;
}

.heading-area h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

/* Embla carousel styles */
.embla {
    position: relative;
    width: 100%;
}

/* Timeline markers - Progress-based coloring */
.embla-thumbs__slide[data-progress="completed"]::after {
    background: var(--yellow);
    /* Orange for completed markers */
}

.embla-thumbs__slide[data-progress="current"]::after {
    background: var(--yellow);
    /* Orange for current marker */
}

.embla-thumbs__slide[data-progress="pending"]::after {
    background: var(--ivory);
    /* Light blue-grey for pending markers */
}

/* Thumbnails section - Horizontal timeline layout */
.embla-thumbs {
    margin-bottom: 40px;
    position: relative;
}

.embla-thumbs__viewport {
    overflow: visible;
}

.embla-thumbs__container {
    display: flex;
    gap: 0;
    transition: transform 0.3s ease;
    position: relative;
    align-items: flex-end;
    --timeline-progress: 0%;
    /* CSS custom property for timeline progress */
}

/* Timeline bar - Base inactive line */
.embla-thumbs__container::after {
    content: '';
    position: absolute;
    bottom: -16.9px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ivory);
    /* Light blue-grey for inactive segments */
    z-index: 1;
}

/* Timeline bar - Active progress line */
.embla-thumbs__container::before {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    height: 3px;
    background: var(--yellow);
    /* Orange for active segment */
    z-index: 2;
    transition: width 0.5s ease;
    width: var(--timeline-progress);
    /* Use CSS custom property */
}

.embla-thumbs__slide {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.embla-thumbs__slide:hover {
    background: transparent;
    transform: none;
}

.embla-thumbs__slide--selected {
    background: transparent;
    border: none;
    transform: none;
}

.embla-thumbs__slide h6 {
    font-size: calc(var(--wp--preset--font-size--x-large) * 1.1);
    font-family: "Cardo";
    color: var(--ivory);
    /* Muted grey for inactive years */
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
}

.embla-thumbs__slide--selected h6 {
    color: var(--yellow);
    /* Bright white for active year */
}

/* Timeline markers */
.embla-thumbs__slide::after {
    content: '';
    position: absolute;
    bottom: -23px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    /* Light blue-grey for inactive markers */
    z-index: 3;
}

.embla-thumbs__slide--selected::after {
    background: var(--yellow);
    /* Orange for active marker */
}

/* Main content slides - CRITICAL FIXES */
.embla__viewport {
    overflow: hidden;
    margin-bottom: 40px;
    width: 100%;
}

.embla__container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.embla__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    padding: 0 20px;
    display: block;
}

.embla__slide__content {
    background: transparent;
    padding: 40px 0;
    border: none;
    backdrop-filter: none;
    width: 100%;
}

.card-desc {
    font-size: 1.7em;
    font-family: var(--primary-ff);
    line-height: 1.3;
    text-align: left;
    text-wrap: balance;
    max-width: 800px;
    margin: 0;
    color: var(--ivory);
}

/* Navigation buttons */
.embla__controls {
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
}

.embla__buttons {
    display: flex;
    gap: 16px;
}

.embla__button {
    width: auto;
    height: 48px;
    border: 2px solid var(--ivory);
    background: transparent;
    border-radius: var(--bord);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: none;
}

.embla__button:hover:not(:disabled) {
    background: var(--yellow);
    border-color: var(--yellow);
    transform: scale(1.05);
}

.embla__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.embla__button__svg {
    fill: none;
    stroke: var(--ivory);
    stroke-width: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .heading-area h2 {
        font-size: 36px;
    }

    .embla-thumbs__container {
        gap: 0;
    }

    .embla-thumbs__slide {
        min-width: 100px;
    }

    .embla-thumbs__slide--selected h6 {
        font-size: 28px;
    }

    .embla__slide__content {
        padding: 30px 0;
    }

    .card-desc {
        font-size: 16px;
    }

    .embla__button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .timeline-section {
        padding: 60px 0;
    }

    .heading-area {
        margin-bottom: 40px;
    }

    .embla-thumbs__slide {
        min-width: 80px;
    }

    .embla-thumbs__slide--selected h6 {
        font-size: 24px;
    }

    .embla__slide__content {
        padding: 24px 0;
    }

    .card-desc {
        font-size: 15px;
    }
}