/* =========================
   HCS TIMELINE
========================= */

.hcs-timeline {
    width: 100%;
}

/* --- Years strip --- */

.hcs-timeline__years {
    margin-bottom: 32px;
    margin-right: calc(-1 * (100vw - var(--container-max-width) / 2));
    clip-path: inset(0 -100vw 0 0);
}

.hcs-timeline__years-track {
    display: flex;
    align-items: baseline;
    gap: 40px;
    will-change: transform;
}

.hcs-timeline__year {
    /* button reset */
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer!important;
    /* original styles */
    font-size: clamp(80px, 14vw, 160px)!important;
    font-weight: 700!important;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--e-global-color-primary)!important;
    opacity: 0.25;
    transition: opacity 0.4s ease;
    user-select: none;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif!important;
}

.hcs-timeline__year.is-active {
    opacity: 1;
}

/* --- Ruler --- */

.hcs-timeline__ruler {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 40px;
}

.hcs-timeline__line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1.5px;
    background-color: var(--e-global-color-primary);
    pointer-events: none;
}

.hcs-timeline__dot {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%!important;
    background: white!important;
    border: 2px solid var(--e-global-color-primary)!important;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transition: background-color 0.3s ease;
}

.hcs-timeline__dot.is-active {
    background-color: var(--e-global-color-primary)!important;
}

/* --- Content slides --- */

.hcs-timeline__content {
    position: relative;
}

.hcs-timeline__slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
}

.hcs-timeline__slide.is-active {
    display: grid;
}

.hcs-timeline__slide-image img {
    width: 85%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px !important;
    max-height: 380px;
    margin-left: auto;
}


/* --- Navigation --- */

.hcs-timeline__nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.hcs-timeline__prev,
.hcs-timeline__next {
    width: 48px;
    height: 48px;
    border-radius: 50%!important;
    background-color: #1a1a1a!important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white!important;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.hcs-timeline__prev:hover,
.hcs-timeline__next:hover {
    opacity: 0.75;
}

.hcs-timeline__prev:disabled,
.hcs-timeline__next:disabled {
    opacity: 0.3;
    cursor: default;
}

/* --- Tablet (769px – 1024px) --- */
@media (max-width: 1024px) {
    .hcs-timeline__slide {
        gap: 32px;
    }

    .hcs-timeline__slide-image img {
        width: 100%;
    }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
    .hcs-timeline__years {
        margin-right: calc(-1* var(--padding-right));
        clip-path: none;
        overflow: hidden;
        margin-bottom: 16px;
    }

    .hcs-timeline__year {
        padding-left: 0!important;
    }

    .hcs-timeline__years-track {
        gap: 20px;
    }

    .hcs-timeline__ruler {
        margin-bottom: 24px;
        overflow: hidden;
    }

    .hcs-timeline__dot {
        width: 18px !important;
        height: 18px !important;
        padding: 0!important;
    }

    .hcs-timeline__slide {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hcs-timeline__slide-image img {
        width: 100%;
        margin-left: 0;
        max-height: 260px;
    }

    .hcs-timeline__nav {
        margin-top: 12px;
    }
}
