.custom-timeline-container {
    position: relative;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 500px;
    padding: 100px 18vw;
    color: #fff;
    text-align: center;
    transition: background-image 0.5s ease-in-out;
    text-align: left;
}

.timeline-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.timeline-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    max-width: 900px;
    position: relative;    /* required for ::before */
    height: 40px;      
}

.timeline-year {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
}

.timeline-year.active {
    color: #0073e6;
    font-weight: 700;
}

.timeline-content {
    background: rgba(0,0,0,0.7);
    max-width: 700px;
    min-height: 150px;
    padding: 20px 30px;
    margin: 0 auto;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
    color: #fff;
    margin-left: 0;
}
.timeline-content p {
    margin-bottom: 0;
}
.timeline-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    max-width: 900px;
    position: relative;    /* required for ::before */
    height: 40px;          /* give it some height so ::before renders */
    margin-left: 0 !important;
}

/* Horizontal line */
.timeline-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #0073e6;
    transform: translateY(-50%);
    z-index: 1;
}

/* Year labels */
.timeline-year {
    position: relative;
    flex: 1;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Dots */
.timeline-year::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background-color: #0073e6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Active dot + year */
.timeline-year.active {
    color: #0073e6;
    font-weight: 700;
}

.timeline-year.active::before {
    background-color: #fff;
    border: 4px solid #0073e6;
}


.timeline-year {
    position: relative;
    flex: 1;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 2;
    padding-top: 44px;   /* push text below the dot */
}

/* Dot */
.timeline-year::before {
    content: "";
    position: absolute;
    top: 32px;              /* dot sits above text */
    left: 50%;
    width: 14px;
    height: 14px;
    background-color: #0073e6;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Active dot + text */
.timeline-year.active {
    color: #0073e6;
    font-weight: 700;
}

.timeline-year.active::before {
    background-color: #fff;
    border: 4px solid #0073e6;
}
