.vertical-timeline-wrapper {
  position: relative;
  width: 100%;
  padding: 4rem 0;
  overflow: hidden;
}

.vertical-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--theme-palette-color-1);
}

.timeline-items {
  position: relative;
  z-index: 2;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item--left {
  flex-direction: row;
  justify-content: flex-start;
}

.timeline-item--left .timeline-content {
  margin-right: auto;
  margin-left: 0;
  margin-right: calc(50% + 3rem);
}

.timeline-item--left .timeline-content::after {
  content: '';
  position: absolute;
  right: -3rem;
  top: 50%;
  width: 3rem;
  height: 2px;
  background-color: #e0e0e0;
  transform: translateY(-50%);
  transition: background-color 0.4s ease-out;
}

.timeline-item--left.active .timeline-content::after {
  background-color: var(--theme-palette-color-1);
}

.timeline-item--left .timeline-dot {
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item--right {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.timeline-item--right .timeline-content {
  margin-left: auto;
  margin-right: 0;
  margin-left: calc(50% + 3rem);
}

.timeline-item--right .timeline-content::after {
  content: '';
  position: absolute;
  left: -3rem;
  top: 50%;
  width: 3rem;
  height: 2px;
  background-color: #e0e0e0;
  transform: translateY(-50%);
  transition: background-color 0.4s ease-out;
}

.timeline-item--right.active .timeline-content::after {
  background-color: var(--theme-palette-color-1);
}

.timeline-item--right .timeline-dot {
  right: 50%;
  transform: translateX(50%);
}

.timeline-content {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 3px solid #e0e0e0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  transition: border-color 0.4s ease-out, box-shadow 0.4s ease-out;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 12px;
  border: 3px solid var(--theme-palette-color-1);
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.timeline-item.active .timeline-content {
  border-color: var(--theme-palette-color-1);
}

.timeline-item.active .timeline-content::before {
  opacity: 1;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #e0e0e0;
  border: 4px solid white;
  border-radius: 50%;
  z-index: 3;
  transition: all 0.4s ease-out;
  box-shadow: 0 0 0 2px #e0e0e0;
}

.timeline-item.active .timeline-dot {
  background-color: var(--theme-palette-color-1);
  box-shadow: 0 0 0 4px var(--theme-palette-color-1);
  transform: translateX(-50%) scale(1.4);
}

.timeline-item--right.active .timeline-dot {
  transform: translateX(50%) scale(1.4);
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-palette-color-1);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.timeline-text {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.timeline-text p {
  margin: 0 0 1rem 0;
}

.timeline-text p:last-child {
  margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .vertical-timeline {
    padding: 0 1.5rem;
  }

  .timeline-line {
    left: 2rem;
  }

  .timeline-item--left,
  .timeline-item--right {
    flex-direction: row;
  }

  .timeline-item--left .timeline-content,
  .timeline-item--right .timeline-content {
    margin-left: 0;
    margin-right: 0;
    margin-left: 3rem;
    padding: 1.5rem;
    max-width: 100%;
  }

  .timeline-item--left .timeline-content::after,
  .timeline-item--right .timeline-content::after {
    left: -3rem;
    right: auto;
    width: 3rem;
  }

  .timeline-item--left .timeline-dot,
  .timeline-item--right .timeline-dot {
    left: 2rem;
    right: auto;
    transform: translateX(-175%);
  }

  .timeline-item.active .timeline-dot {
    transform: translateX(-175%) scale(1.3);
  }

  .timeline-content {
    padding: 1.5rem;
    padding-left: 3rem;
  }

  .timeline-year {
    font-size: 1.25rem;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-item {
    margin-bottom: 3rem;
  }
}
