.timeline-nav {
    border-top: 1px solid var(--bs-dark);
    position: relative;
    padding-top: 24px;
}

.nav-years {
    position: relative;
}

.timeline-year-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.timeline-year-btn .year-text {
    transition: all 0.3s ease;
    color: var(--bs-dark);
    font-family: var(--font-secondary);
    font-size: 32px;
    font-style: normal;
    font-weight: 800;
    line-height: 40px;
    text-transform: uppercase;
}

.timeline-year-btn .inner-circle {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.timeline-year-btn.active .year-text {
    color: var(--bs-main-500);
    font-family: var(--font-secondary);
    font-size: 32px;
    font-style: normal;
    font-weight: 800;
    line-height: 40px;
    text-transform: uppercase;
}

/* Timeline Slider */
.timeline-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.slider-container {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent; 
}

.time-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.timeline-image {
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.animate {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.slide-up {
    transform: translateY(30px);
}

.animate.slide-left {
    transform: translateX(30px);
}

.animate.fade-in {
    transform: scale(0.95);
}

.title-desc-timeline {
    color: var(--bs-darkness);
    font-family: var(--font-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 20px;
}

.desc-timeline {
    color: var(--bs-darkness);
    font-family: var(--font-primary);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 0;
}

.tl-desc-wrapper {
    margin-bottom: 80px;
}

.tl-mask-image {
    margin-top: -200px;
}

.history-timeline-description {
    font-size: 16px;
    line-height: 24px;
}

.hl-wrapper {
    gap: 20px;
}

.hl-upper-tl {
    width: 90%;
}

.sub-nav-tl-wrapper {
    height: 46%;
}

/* Absolute Variation */

.absolute-variation {
    padding-top: 120px;
}

.absolute-variation .sub-nav-tl-wrapper {
    position: absolute;
    bottom: 30%;
    z-index: 2;
}

.absolute-variation .title-carousel-years {
    font-size: 20px;
    line-height: 24px;
}

.absolute-variation .desc-timeline {
    font-size: 16px;
    line-height: 24px;
}

.absolute-variation .timeline-nav {
    padding-bottom: 24px;
}

.absolute-variation .nav-years {
    justify-content: left !important;
    gap: 160px;
}

.absolute-variation .hl-upper-tl {
    width: 100%;
    height: 100%;
    display: flex;
    align-self: flex-end;
}

.absolute-variation .hl-upper-tl strong {
    color: var(--bs-black);
    font-family: var(--font-secondary);
    font-size: 28px;
    font-style: normal;
    font-weight: 800;
    line-height: 32px;
    text-transform: uppercase;
}

.absolute-variation .hl-upper-tl p {
    color: var(--bs-darkness);
    font-family: var(--font-secondary);
    font-size: 28px;
    font-style: normal;
    font-weight: 800;
    line-height: 32px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.absolute-variation .hl-wrapper {
    margin-bottom: 0 !important;
}

/* End Absolute Variation */

@media screen and (max-width: 1400px) and (min-width: 1200px) {
        .sub-nav-tl-wrapper {
        height: 51%;
        }
}

@media screen and (max-width: 1400px) and (min-width: 992px) {
    .sub-nav-tl-wrapper {
        height: 58%;
    }
}

/* Mobile Responsive */

@media (max-width: 768px) {
        .nav-years {
        flex-wrap: wrap;
        }

        .time-divider {
        display: none;
        }

        .timeline-year-btn {
        flex: 0 0 auto;
        }
}

@media screen and (max-width: 992px) {
        .absolute-variation {
        padding-top: 40px;
        }

        .absolute-variation .sub-nav-tl-wrapper {
        position: relative;
        }

        .absolute-variation .nav-years {
        justify-content: space-between !important;
        gap: 0;
        }

        .absolute-variation .sub-nav-tl-wrapper {
        border-top: 1px solid var(--bs-neutral);
        padding-top: 24px;
        bottom: 0;
        }

        .absolute-variation .title-carousel-years {
        font-size: 16px;
        line-height: 20px;
        }

        .absolute-variation .desc-timeline {
        font-size: 14px;
        line-height: 20px;
        }

        .absolute-variation .tl-image-wrapper {
        margin-bottom: 0;
        }

        .absolute-variation .tl-desc-wrapper {
        margin-bottom: 40px !important;
        }

        .absolute-variation .hl-upper-tl p,
        .absolute-variation .hl-upper-tl strong {
        font-size: 18px;
        line-height: 20px;
        }

        .sub-nav-tl-wrapper {
        height: fit-content;
        }

        .timeline-image img {
        height: 220px;
        object-fit: contain;
        }

        .tl-desc-wrapper {
        width: 100% !important;
        margin-bottom: 16px !important;
        }

        .timeline-year-btn.active .year-text {
        font-size: 22px !important;
        line-height: 24px !important;
        }

        .timeline-year-btn .year-text {
        font-size: 22px !important;
        line-height: 24px !important;
        }

        .carousel-years {
        flex-direction: column-reverse !important;
        }

        .timeline-nav {
        margin-bottom: 16px !important;
        }

        .title-carousel-years {
        color: var(--bs-black);
        font-family: var(--font-secondary);
        font-size: 22px;
        font-style: normal;
        font-weight: 800;
        line-height: 24px;
        text-transform: uppercase;
        }

        .title-desc-timeline {
        color: var(--bs-darkness);
        font-family: var(--font-primary);
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
        }

        .desc-timeline {
        color: var(--bs-darkness);
        font-family: var(--font-primary);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        }

        .tl-image-wrapper {
        margin-bottom: 16px;
        }
}
