.timeline_heading {
  margin-top: 25px;
  margin-bottom: 10px;
}
.timeline {
  counter-reset: test 0;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
}
.timeline li {
  list-style: none;
  width: 25%;
  position: relative;
}

.primary-timeline {
  counter-reset: test 0;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
}
.primary-timeline li {
  list-style: none;
  position: relative;
}
.enroll-w-25{
  width:25%;
}
.enroll-w-33{
  width:33%;
}
.timeline li:before {
  counter-increment: test;
  content: counter(test);
  width: 50px;
  height: 50px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: block;
  text-align: center;
  line-height: 50px;
  background: transparent;
  color: #ffffff;
  transition: all ease-in-out .3s;
  cursor: pointer;
}
.primary-timeline li:before {
  counter-increment: test;
  content: counter(test);
  width: 50px;
  height: 50px;
  border: 2px solid #381f57;
  border-radius: 50%;
  display: block;
  text-align: center;
  line-height: 50px;
  background: #ffffff;
  color: #381f57;
  transition: all ease-in-out .3s;
  cursor: pointer;
}

.timeline li:after {
  content: "";
  position: absolute;
  width: 78%;
  height: 1px;
  background-color: #ffffff;
  top: 25px;
  left: -78%;
  transition: all ease-in-out .3s;
}
.primary-timeline li:after {
  content: "";
  position: absolute;
  width: 84%;
  height: 1px;
  background-color: #381f57;
  top: 25px;
  left: -84%;
  transition: all ease-in-out .3s;
}
.timeline li:first-child:after {
  content: none;
}
.primary-timeline li:first-child:after {
  content: none;
}
@keyframes slidein-left {
  0% {
    transform: translateX(-20%);
  }
  100% {
    transform: translateX(0);
  }
}
.timeline li:nth-child(1) {
  animation: slidein-left;
  animation-delay: 0s;
}
.timeline li:nth-child(2) {
  animation: slidein-left 0.2s;
}
.timeline li:nth-child(3) {
  animation: slidein-left 0.5s;
}
.timeline li:nth-child(4) {
  animation: slidein-left 0.7s;
}
.left-and-right {
  position: relative;
}
.primary-left-and-right {
  position: relative;
}
.left-and-right::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  width: 2px;
  height: 70%;
  bottom: 20%;
  right: 40px;
}
.primary-left-and-right::after {
  content: '';
  position: absolute;
  background: rgba(125, 107, 222, 0.61);
  border-radius: 9px;
  width: 2px;
  height: 70%;
  bottom: 20%;
  right: 40px;
}

li:last-child .left-and-right:after {
  content: none;
}
li:last-child .primary-left-and-right:after {
  content: none;
}
.timeline_content {
  padding-right: 45px;
}
@media screen and (max-width: 600px) {
  .list_flex {
    display: flex;
  }
  .timeline_heading {
    margin: 10px;
  }
  .timeline-para {
    margin-left: 10px;
  }
  .timeline_content {
    padding-left: 10px;
    padding-bottom: 10px;
    height: 100%;
    flex-direction: column;
    flex: 1;
    display: flex;
  }
  .timeline li {
    width: 100%
  }
  .primary-timeline li {
    width: 100%
  }
  .timeline li:after {
    content: '';
    position: absolute;
    top: -99px;
    left: 0;
    margin-left: 25px;
    width: 1px;
    height: 100%;
    background: #ffffff;
    z-index: 1
  }
  .primary-timeline li:after {
    content: "";
    position: absolute;
    border-left: 1px solid #381f57;
    left: 6%;
    top: -71%;
    height: 71%;
    background-color: transparent;
    z-index:1; 

  }
  .timeline li:before {
    width: 40px;
    height: 40px;
    line-height:2;
    border-radius: 50%;
    border: 1px solid #ffffff;
    background: #4A4D95;
    margin-top: 10px;
    z-index: 99;
    text-align: center;
    position: relative;
    left: 4px;
  }
  .primary-timeline li:before {
    margin: 0;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 37px 

  }
  .timeline li {
    text-align: left;
  }
  .primary-timeline li {
    text-align: left;
  }
  .left-and-right::after {
    content: none;
  }
  .primary-left-and-right::after {
    content: none;
  }
  .p-heading{
    font-size:18px;
  }
  .timeline-para{
    font-size:16px;
  }
}
