.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: "DM Sans";
    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: "DM Sans";
    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;    
    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;
}

/* Animations */
.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: "Work Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 20px;
}

.desc-timeline {
    color: var(--bs-darkness);
    font-family: "Work Sans";
    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;

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

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

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

    .timeline-nav {
        padding-bottom: 24px;
    }
    .nav-years {
        justify-content: left !important;
        gap: 160px;
    }

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

        strong {
            color: var(--bs-black);
            font-family: "DM Sans";
            font-size: 28px;
            font-style: normal;
            font-weight: 800;
            line-height: 32px;
            text-transform: uppercase;
        }
    }

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

    .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;
        
        .sub-nav-tl-wrapper {
            position: relative;
        }

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

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

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

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

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

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

        .hl-upper-tl p, .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: "DM Sans";
        font-size: 22px;
        font-style: normal;
        font-weight: 800;
        line-height: 24px;
        text-transform: uppercase;
    }

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

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

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