/**
 * Timeline Years Block Styles
 */

.timeline-years-block {
    width: 100%;
    padding-bottom: 60px;
    background-color: #29a9e1;
    
    overflow: hidden;
}

.timeline-years-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Timeline Navigation */
.timeline-years-nav-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.timeline-years-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.timeline-years-nav {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    min-width: max-content;
}

.timeline-year-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 150px;
    text-align: center;
}

.timeline-year-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: transparent;
    border: 5px solid #00578D;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-year-item.active .timeline-year-circle {
    background-color: #fff;
    border: 8px solid #00578D;
}

.timeline-year-number {
    font-size: 20px;
    font-weight: bold;
    
}

.timeline-year-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-year-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.timeline-year-item {
    color: #ffffffad;
}

.timeline-year-item.active {
    color: #fff;  
}

/* Timeline Content */
.timeline-content-wrapper {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.timeline-content-item {
    display: none;
    padding: 30px;
}

.timeline-content-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.timeline-content-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

.timeline-content-image {
    flex: 0 0 40%;
}

.timeline-content-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}



.timeline-content-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.timeline-content-body {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
}

.timeline-content-body p {
    margin-bottom: 15px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .timeline-content-row {
        flex-direction: column;
    }
    
    .timeline-content-image,
    .timeline-content-text {
        flex: 0 0 100%;
    }
}

@media (max-width: 767px) {
    .timeline-years-nav-wrapper
     {
        overflow-x: auto;
        overflow-y: hidden;        
        width: 100%;
        -webkit-overflow-scrolling: touch;
        /* Temporarily show scrollbar to confirm it works */
        scrollbar-width: thin;
        -ms-overflow-style: auto;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    /* Horizontal scrollbar styles */
    .timeline-years-nav-wrapper::-webkit-scrollbar {
        height: 12px;
        background-color: #F5F5F5;
    }
    
    .timeline-years-nav-wrapper::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
        border-radius: 10px;
        background-color: #F5F5F5;
    }
    
    .timeline-years-nav-wrapper::-webkit-scrollbar-thumb {
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
        background-color: #D62929;
    }
    
    .timeline-years-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        margin-bottom: 0px;
        width: max-content;
        padding-bottom: 10px;
    }
    
    .timeline-years-nav::after {
        display: none;
    }
    
    .timeline-year-item {
        flex: 0 0 auto;
        min-width: 200px;
        width: 200px;
        margin-bottom: 20px;
        white-space: nowrap;
        /* Force content to be wide enough */
        text-align: center;
    }
    .timeline-year-title {
       
    }
    .timeline-year-subtitle {
       
    }
}

@media (max-width: 480px) {
    
}
