.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: linear-gradient(to bottom, #8b5a2b, #d4a762);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12px;
  background: linear-gradient(to right, #8b5a2b, #a67c52);
  border: 4px solid #f8f4e8;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-item:hover::after {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(139, 90, 43, 0.5);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -12px;
}

.timeline-content {
  padding: 20px;
  position: relative;
  background: rgba(255, 248, 220, 0.9);
  border: 2px solid #d4a762;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-content:hover {
  background: rgba(255, 248, 220, 1);
  box-shadow: 0 5px 15px rgba(139, 90, 43, 0.2);
  transform: translateY(-3px);
}

.timeline-content h5 {
  color: #8b5a2b;
  transition: all 0.3s ease;
}

.timeline-content:hover h5 {
  color: #5a3e1b;
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 18px;
  }

  .left::after, .right::after {
    left: 18px;
  }

  .right {
    left: 0%;
  }

  .timeline-content {
    padding: 15px;
  }
}

@media screen and (max-width: 576px) {
  .timeline-item {
    padding-left: 50px;
    padding-right: 15px;
  }

  .timeline-item::after {
    width: 20px;
    height: 20px;
    left: 15px;
  }

  .timeline-content {
    padding: 12px;
  }
}