.yearly {
  background: #1B2E5A;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.timeline-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  height: fit-content !important;
  margin-bottom: 0 !important;
  row-gap: 50px;

  width: 70%;
  margin: 0 auto;
}

.timeline-main:after {
  content: '';
  position: absolute;
  width: 6px;
  height: 100%;
  /* background-color: #1B2E5A; */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  /* background-image: linear-gradient(to bottom, #000000, #3b3b3b, #777777, #b9b9b9, #ffffff); */
  background-image: linear-gradient(to bottom, #154194, #636bae, #9a99c8, #cdcbe3, #ffffff);
}

.timeline-item {
  width: 50%;
  position: relative;
  padding-bottom: 20px;
}
.timeline-item-inner {
  /* width: 373px; */
  width: 80%;
}
.timeline-item.right {
  /* padding-top: 70px; */
  padding-top: 120px;
}
.timeline-item.right .timeline-item-inner {
  margin-left: auto;
}

.timeline-item .year {
  display: block;
  font-size: 48px;
  font-weight: 600;
  color: #154194;
  line-height: 1;
  font-family: 'Barlow Condensed', Helvetica, Arial, Lucida, sans-serif;
}

.timeline-item.left .year {
  text-align: left;
}
.timeline-item.right .year {
  text-align: right;
}

.time-img {
  width: 100%;
}

.time-img img {
  width: 100%;
}

.timeline-item .timeline-item-inner h4 {
  font-size: 36px;
  font-weight: bold;
  color: #000;
  margin: 20px 0 10px 0;
  line-height: 1.2em;
  font-family: 'Barlow Condensed', Helvetica, Arial, Lucida, sans-serif;
}

.timeline-item .timeline-item-inner p {
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 25px;
  margin-bottom: 15px;
}

.timeline-item.left.start-end:before {
  content: '';
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #154194;
  right: -22px;
  top: 0px;
  z-index: 10;
  border: 1px solid;
  padding: 10px;
  box-shadow: 0px 0px 0 12px inset #fff;
}

.timeline-item.right.start-end:before {
  content: '';
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #154194;
  left: -22px;
  /* top: 70px; */
  top: 120px;
  z-index: 10;
  border: 1px solid;
  padding: 10px;
  box-shadow: 0px 0px 0 12px inset #fff;
}

.timeline-item.left:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #154194;
  right: -10px;
  top: 10px;
}
.timeline-item.left:after {
  content: '';
  position: absolute;
  height: 2px;
  width: calc(100% - 100px);
  background-color: #154194;
  right: 0;
  top: 20px;
}

.timeline-item.right:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #154194;
  left: -10px;
  top: 80px;
}
.timeline-item.right:after {
  content: '';
  position: absolute;
  height: 2px;
  width: calc(100% - 100px);
  background-color: #154194;
  left: 0;
  /* top: 90px; */
  top: 140px;
}

@media (max-width: 1200px) {
  .timeline-item-inner {
    width: 300px;
  }
  .timeline-item.right:after,
  .timeline-item.left:after {
    width: calc(100% - 100px);
  }
}

@media (max-width: 1024px) {
  .timeline-item-inner {
    width: 330px;
  }
}

@media (max-width: 980px) {
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    height: fit-content;
  }
  .yearly {
    margin-left: 0;
    margin-right: auto;
  }
  .timeline-main:after {
    left: 57px;
    transform: none;
  }
  .timeline-item.left.start-end:before,
  .timeline-item.right.start-end:before {
    right: auto;
    left: 37px;
  }
  .timeline-item.left:before,
  .timeline-item.right:before {
    right: auto;
    left: 50px;
  }
  .timeline-item.right .year {
    text-align: left;
  }
  .timeline-item-inner {
    width: calc(100% - 100px);
    margin-left: auto;
  }
  .timeline-item.left .year {
    text-align: left;
  }
  .timeline-item.right:after,
  .timeline-item.left:after {
    width: 100px;
    left: 50px;
    right: auto;
  }
  .time-img img {
    width: auto;
    max-width: 300px;
  }
  .timeline-item.right {
    padding-top: 20px;
  }
  .timeline-item.right:before {
    top: 30px;
  }
  .timeline-item.right:after {
    top: 40px;
  }
  .timeline-item.right.start-end:before {
    top: 20px;
  }
}

@media (max-width: 767px) {
  .yearly {
    width: 70px;
    height: 70px;
    font-size: 14px;
  }
  .timeline-main:after {
    left: 32px;
  }
  .timeline-item {
    padding-left: 35px;
  }
  .timeline-item.left.start-end:before,
  .timeline-item.right.start-end:before {
    left: 13px;
  }
  .timeline-item.left:before, .timeline-item.right:before {
    left: 25px;
  }
  .timeline-item.right:after, .timeline-item.left:after {
    width: 70px;
    left: 37px;
  }
  .timeline-item-inner {
    width: calc(100% - 90px);
  }
}

@media (max-width: 500px) {
  .timeline-item.right:after,
  .timeline-item.left:after {
    width: 30px;
  }
  .timeline-item-inner {
    width: calc(100% - 50px);
  }
  .timeline-item .year {
    font-size: 25px;
  }
  .timeline-item .timeline-item-inner h4 {
    font-size: 16px;
    margin: 10px 0 5px 0;
  } 
  .timeline-item .timeline-item-inner p {
    font-size: 14px;
  }
  .timeline-item.right:before {
    top: 23px;
  }
  .timeline-item.right:after {
    top: 33px;
  }
  .timeline-item.left:before {
    top: 2px;
  }
  .timeline-item.left:after {
    top: 12px;
  }
  .timeline-item.left.start-end:before {
    top: -10px;
  }
  .timeline-item.right.start-end:before {
    top: 12px;
  }
  .time-img img {
    width: auto;
    max-width: 100%;
  }
}