.timeline-container {
    position: relative;
    max-width: 960px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline-road {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #2185d0;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-segment {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 3rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    z-index: 10;
}

.timeline-segment.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-segment.left {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.2rem;
    height: 2.2rem;
    background-color: white;
    border: 3px solid #2185d0;
    border-radius: 50%;
    z-index: 1;
}

.highway-sign {
    background-color: #2e7d32; /* Dark green */
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    color: white;
    box-shadow: inset 0 0 0 4px white;
    width: 45%;
    text-align: left;
}

/* Year heading inside sign */
.highway-sign .sign-year {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
}

/* Decorative bolts */
.highway-sign::before,
  .highway-sign::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.highway-sign::before {
    top: 10px;
    left: 14px;
}

.highway-sign::after {
    top: 10px;
    right: 14px;
}

@media (max-width: 768px) {
    .timeline-segment {
      flex-direction: column !important;
      align-items: center;
}

.timeline-dot {
      left: 50%;
    }
}