.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.timeline-header {
  text-align: center;
  color: white;
  margin-bottom: 60px;
  animation: fadeInDown 1s ease;
}

.timeline-header h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.timeline-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, rgba(255,165,0,0.3), rgba(255,165,0,0.8), rgba(255,165,0,0.3));
  margin-left: -2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.8s ease forwards;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1s; }
.timeline-item:nth-child(6) { animation-delay: 1.2s; }

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 50%;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  padding-left: 40px;
}

.timeline-badge {
  position: absolute;
  left: 50%;
  top: 0;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
  border: 5px solid #222831;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222831;
  font-size: 1.5rem;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(255,165,0,0.5);
  transition: transform 0.3s ease;
}

.timeline-badge:hover {
  transform: scale(1.2) rotate(360deg);
}

.timeline-content {
  background: #ffa500;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(255,165,0,0.4);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255,165,0,0.6);
}

.timeline-year {
  display: inline-block;
  background: #222831;
  color: #ffa500;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222831;
  margin-bottom: 10px;
}

.timeline-description {
  color: #000000;
  line-height: 1.6;
  margin: 0;
}

@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .timeline:before {
      left: 30px;
  }

  .timeline-badge {
      left: 30px;
      margin-left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
      margin-left: 80px;
      margin-right: 0;
      padding-left: 20px;
      padding-right: 20px;
      text-align: left;
  }

  .timeline-header h1 {
      font-size: 2rem;
  }
}