/* timeline.css */

.timeline-container {
  background-color: #007bff; /* Blue background */
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.timeline {
  position: relative;
  margin: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50px; /* Align line with circles */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #000;
}

.timeline.horizontal {
  display: flex;
  align-items: center;
}

.timeline.horizontal::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
}

.timeline-item {
  position: relative;
  margin: 20px 0 20px 80px; /* Space for circles */
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50px; /* Align with main line */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #000;
}

.timeline-item:first-child::before {
  top: 50%; /* Remove line above first item */
}

.timeline-item:last-child::before {
  bottom: 50%; /* Remove line below last item */
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
}

.timeline-item.horizontal {
  margin: 0 20px;
}

.timeline-item.horizontal::before {
  left: 0;
  right: 0;
  top: 50px; /* Adjust for horizontal */
  height: 2px;
  width: 100%;
}

.timeline-item.horizontal::after {
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item:first-child.horizontal::before {
  left: 50%;
  width: 50%;
}

.timeline-item:last-child.horizontal::before {
  left: 0;
  right: 50%;
}

.timeline-item .card {
  border: none; /* Remove border from cards */
  background-color: transparent; /* Transparent background */
}

.timeline-item .card-body {
  padding: 0;
}

.timeline-item .icon {
  cursor: pointer;
}

