 .height-timeline{
  height: 900px;
}
 .card-position{
            top: 540px;
        }
.timeline-height {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

        /* Timeline container (horizontal) */
.main-timeline-2 {
    height: 180vh;
  display: flex;
  flex-direction: row;
  position: relative;
  justify-content: space-between;
  align-items: flex-start;
  overflow-x: auto;
  /* padding:0px; */
}

/* Horizontal line */
.main-timeline-2::after {
  content: "";
  position: absolute;
  height: 3px;
  background-color: #939283;
  left: 0;
  right: 0;
  top: 500px; /* Adjust as needed */
  z-index: 0;
}

/* Each timeline block */
.timeline-2 {
  position: relative;
  width: 16%;
  margin:0px;
  flex-shrink: 0;
}

/* Timeline circle */
.timeline-2::after {
  content: "";
  position: absolute;
  top: 490px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 1;
  border: 2px solid #939283;
}

/* Remove vertical layout logic */
.left-2, .right-2 {
  /* padding: 0; */
  left: auto;
}

/* Remove vertical arrows */
.left-2::before, .right-2::before {
  display: none;
}

/* Responsive (optional) */
@media screen and (max-width: 768px) {
      .main-timeline-2::after {
        left: 10% !important;
    }
    .card-position {
      top: 0px;
    }
    .height-timeline
    {
          /* height: 1080px; */
          height: 1060px;
    }
    .main-timeline-2 {
      flex-direction: column;
      align-items: center;
      height: 1090px;
    }

    .main-timeline-2::after {
      top: initial;
      height: 2665px;
      /* height: 2240px; */
      /* height: 100%; */
      width: 3px;
      left: 50%;
      transform: translateX(-50%);
    }

    .timeline-2 {
      width: 52%;
      margin-bottom: 40px;
    }

    .timeline-2::after {
      left: -27%;
      top: 180px;
    }
}
.card{
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  background-color: #fff;
  transition: transform 0.3s ease;
}