.timeline {
  position: relative;
  margin: 50px auto;
  width: 90%;
  max-width: 800px;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  background: #0a6847;
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 30px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: left;
}

.timeline-item.right {
  left: 50%;
  text-align: right;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 4px solid #0a6847;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left::before {
  right: -10px;
}

.timeline-item.right::before {
  left: -10px;
}

.year {
  font-weight: bold;
  color: #E6666E;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.content {
  background: #d2f4ec;
  padding: 20px 40px;
  border-radius: 8px;
  text-align: justify;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.content:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
  .timeline::before {
    left: 8px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 20px;
  }
  .timeline-item.right,
  .timeline-item.left {
    left: 0;
    text-align: left;
  }
  .timeline-item::before {
    top: 20px;
    left: 0;
    right: auto;
  }
}
