.timeline {
    position: relative;
   
}

.timeline-container img {
background: #dfdbdb!important;
    border-radius: 50px!important;
    
  }


.timeline-container {
    position: relative;
    width: 50%;
    padding: 10px 50px;
    animation: movedown 1s linear forwards;
    opacity: 0;
}

.text-box h2 {
    font-size: 22px!important;
    font-weight: 600!important;
}

@keyframes movedown {
    0% {
        transform: translateY(-30px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.timeline-container:nth-child(1) {
    animation-delay: 0s;
}

.timeline-container:nth-child(2) {
    animation-delay: 1s;
}

.timeline-container:nth-child(3) {
    animation-delay: 2s;
}

.timeline-container:nth-child(4) {
    animation-delay: 3s;
}

.timeline-container:nth-child(5) {
    animation-delay: 4s;
}

.timeline-container:nth-child(6) {
    animation-delay: 5s;
}

.text-box {
    position: relative;
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 6px;
    font-size: 15px;
}

.left-container {
    left: 0;
}

.right-container {
    left: 50%;
}

.timeline-container img {
    position: absolute;
    top: 32px;
    width: 40px;
    border-radius: 50%!important;
    right: -20px;
    z-index: 10;
    background-color: #ebd4d4!important;
}

.right-container img {
    left: -20px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 100%;
    background-color: #fff!important;
    margin-left: -3px;
    z-index: 0;
    animation: moveline 6s linear forwards;
}

@keyframes moveline {
    0% {
        height: 0;
    }

    100% {
        height: 100%;
    }
}


.text-box small {
    display: inline-block;
    margin-bottom: 15px;
}

.left-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #fff;
    right: -15px;
}

.right-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #fff;
    left: -15px;
}

@media screen and (max-width: 767px) {
  .timeline {
    margin: 50px auto;
  }

  .timeline::before {
    left: 31px;
  }

  .timeline-container {
    width: 100%;
    padding-left: 80px;
    padding-right: 25px;
    margin-bottom: 30px;
  }

  .right-container,
  .left-container {
    left: 0 !important; /* Override positioning */
  }

  .timeline-container img {
    left: 10px !important;
    right: auto !important;
    background: #ebd4d4;
    border-radius: 50px;
    
  }

  .left-container-arrow,
  .right-container-arrow {
    left: -15px !important;
    right: auto !important;
    border-left: none !important;
    border-right: 15px solid #fff !important;
  }

  .text-box {
    font-size: 16px;
  }

  .text-box small {
    margin-bottom: 10px;
  }
}