/* Moved from template-parts/sections/timeline.php */
.timeline-horizontal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin: 40px 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #ccc;
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 23%;
  text-align: center;
  z-index: 2;
  margin-bottom: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background-color: #fff;
  border: 4px solid #3498db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  padding: 10px;
}

.timeline-icon img {
  max-width: 100%;
  height: auto;
}

.timeline-item h3 {
  margin-top: 5px;
  color: #3498db;
  font-size: 1.2em;
  font-weight: 600;
}

.timeline-item .year {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 10px;
  display: block;
}

.timeline-item p {
  margin-top: 10px;
  font-size: 1em;
  color: #444;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-horizontal {
    flex-direction: column;
    align-items: center;
  }

  .timeline-item {
    width: 85%;
    margin-bottom: 60px;
  }

  .timeline-horizontal::before {
    top: auto;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
  }
}
