.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.year {
  text-align: right;
  font-size: 1.5rem;
  font-weight: 700;
  padding-top: 0.5rem;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.line {
  background-color: #e5e5e5;
  position: relative;
}

.dot {
  width: 12px;
  background-color: #000040;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  left: -5px;
  transition: all 0.4s ease;
}

.content {
  padding: 0 0 4rem 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}

.content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.content p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.75;
}

.visible .year,
.visible .dot,
.visible .content {
  opacity: 1;
  transform: translate(0);
}

.visible .dot {
  transform: scale(1);
}

@media (max-width: 768px) {
  .timeline-grid {
    grid-template-columns: 80px 2px 1fr;
    gap: 1rem;
    padding: 2rem 1rem;
  }

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