.timeline {
  position: relative;
}

.timeline::after {
  content: '';
  display: block;
  background-image: url('/wp-content/uploads/2025/07/bg.png');
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
}

.milestones {
  width: 8px;
  margin: 150px auto;
  position: relative;
}

@media (max-width: 768px) {
  .milestones {
    width: 100%;
    margin: 50px auto;
  }
}

.milestone-trail {
  position: absolute;
  top: -90px;
  left: 4px;
  width: 3px;
  height: 0;
  background-color: var(--ccs-color-main-blue);
}

.single-milestone {
  width: 12px;
  height: 12px;
  border-radius: 100%;
  position: relative;
  left: -8px;
  margin-bottom: 120px;
}

.single-milestone[inview="1"]::after {
  top: 7px;
  left: 1px;
  width: 12px;
  height: 12px;
  -webkit-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  -ms-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  -o-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
}

.single-milestone-container {
  position: absolute;
  top: 0;
  width: 45vw;
}

.single-milestone:nth-child(2n + 1) .single-milestone-container {
  left: 0;
}

.single-milestone:nth-child(2n + 2) .single-milestone-container {
  right: 0;
}

.milestone-line {
  width: 0;
  height: 1px;
  position: absolute;
  border-top: 2px dashed var(--ccs-color-light-grey);
  top: 0;
  -webkit-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  -ms-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  -o-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
}

.single-milestone[inview="1"] .milestone-line {
  width: calc(27% - 20px);
  -webkit-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.3s;
  -ms-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.3s;
  -o-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.3s;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.3s;
}

.single-milestone:nth-child(2n + 1) .milestone-line {
  left: 8px;
}

.single-milestone:nth-child(2n + 2) .milestone-line {
  right: 8px;
}

.milestone-content {
  position: absolute;
  top: 50%;
  max-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-transition: all 0.5s ease 0s;
  -ms-transition: all 0.5s ease 0s;
  -o-transition: all 0.5s ease 0s;
  transition: all 0.5s ease 0s;
  transform: translateY(-50%);
}

.milestone-content .content {
  font-size: 16px;
  font-weight: 400;
  line-height: 125%;
  margin-bottom: 23px;
  margin-top: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .milestone-content .content {
    margin-bottom: 5px;
  }
}

.milestone-content .year {
  color: var(--ccs-color-main-blue);
  margin-top: 0;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 125%;
  margin-bottom: 0;
}

.milestone-content ul {
  margin: 0;
  padding: 0 10px 0 25px;
  max-width: 225px;
}

.milestone-content ul li {
  font-size: 13px;
}

.milestone-wrap p {
  text-align: center;
  font-size: 13px;
  margin: 0;
}

.milestone-wrap {
  box-shadow: 1px 1px 9px rgba(0,0,0,0.1);
  border-radius: 20px;
  overflow: hidden;
  margin-left: 20px;
  margin-right: 10px;
  padding: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.milestone-wrap .logo {
  display: block;
  max-height: 160px;
  max-width: 220px;
  margin: 0 auto;
}

.single-milestone[inview="1"] .milestone-content {
  display: flex;
  align-items: center;
  max-height: 300px;
  -webkit-transition: all 0.5s ease-in 0.7s;
  -ms-transition: all 0.5s ease-in 0.7s;
  -o-transition: all 0.5s ease-in 0.7s;
  transition: all 0.5s ease-in 0.7s;
}

.single-milestone:nth-child(2n+1) .milestone-content {
  left: 28%;
}

.single-milestone:nth-child(2n + 2) .milestone-content {
  right: 28%;
}

.single-milestone:nth-child(2n + 2) .milestone-content .year,
.single-milestone:nth-child(2n + 2) .milestone-content .logo,
.single-milestone:nth-child(2n + 2) .milestone-content .content {
  text-align: right !important;
}

.single-milestone:nth-child(2n + 2) .milestone-content .year {
  order: 2;
}

.single-milestone:nth-child(2n+2) .milestone-wrap {
  margin-left: 10px;
  margin-right: 20px;
}

@media (max-width: 1024px) {
  .single-milestone[inview="1"] .milestone-line {
    width: calc(40% - 20px);
  }
  .single-milestone:nth-child(2n + 1) .milestone-content {
    left: 40%;
  }
  .single-milestone:nth-child(2n + 2) .milestone-content {
    right: 40%;
  }
  .milestones {
    width: 100%;
    margin: 60px 0 0;
  }
  .single-milestone {
    width: 100%;
    height: auto;
    border-radius: 0;
    position: static;
    margin-bottom: 20px;
  }
  .milestone-line,
  .milestone-trail,
  .single-milestone::after {
    display: none;
  }
  .single-milestone-container {
    position: static;
    width: 100%;
  }
  .milestone-content {
    position: static;
    width: 100%;
    top: auto;
    transform: none;
  }
  .single-milestone[inview="1"] .milestone-content {
    padding: 0 30px;
    display: block;
    max-width: 350px;
    text-align: center;
    margin: 0 auto;
    max-height: unset;
  }
  .single-milestone:nth-child(2n+2) .milestone-content .year {
    order: unset;
  }
  .milestone-wrap {
    margin-left: 10px;
  }
  .single-milestone:nth-child(2n+2) .milestone-wrap {
    margin-right: 10px;
  }
  .single-milestone:nth-child(2n+2) .milestone-content .year, 
  .single-milestone:nth-child(2n+2) .milestone-content .logo, 
  .single-milestone:nth-child(2n+2) .milestone-content .content {
    text-align: center !important;
  }
}