/* Main Container: allows horizontal drag/scroll if items exceed screen width */
.ect-horizontal-timeline {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; 
}

/* Custom minimal scrollbar */
.ect-horizontal-timeline::-webkit-scrollbar {
    height: 6px;
}
.ect-horizontal-timeline::-webkit-scrollbar-track {
    background: #f9f9f9; 
    border-radius: 10px;
}
.ect-horizontal-timeline::-webkit-scrollbar-thumb {
    background: #dddddd; 
    border-radius: 10px;
}
.ect-horizontal-timeline::-webkit-scrollbar-thumb:hover {
    background: #bbbbbb; 
}

/* Track holding the items together */
.ect-timeline-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
}

/* Individual Event Block */
.ect-timeline-item {
    display: flex;
    flex-direction: column;
    position: relative;
    /* Defaults - overridden by Elementor controls */
    padding-right: 30px; 
    flex: 0 0 280px; 
}

/* Node Area (Houses the line and the dot) */
.ect-timeline-node {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* The horizontal line that connects elements */
.ect-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%; 
    height: 2px;
    background-color: #ddd;
    z-index: 1;
    transform: translateY(-50%);
}

/* Hide the connecting line on the very last item so it doesn't overshoot into empty space */
.ect-timeline-item:last-child .ect-timeline-line {
    width: 0; 
}

/* The Dot */
.ect-timeline-dot {
    position: relative;
    width: 14px;
    height: 14px;
    background-color: #007bff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 5px #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effect */
.ect-timeline-item:hover .ect-timeline-dot {
    transform: scale(1.3);
}

.ect-timeline-year {
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.ect-timeline-title {
    margin: 0 0 10px 0;
}

.ect-timeline-desc {
    margin: 0;
    line-height: 1.6;
}