body {
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
}

/* <!-- Dummy section just for test scroll --> */
section{
  padding: 420px 120px
}
/* <!-- Dummy section just for test scroll --> */

.timeline-container{
  display: flex;
  justify-content: center; 
}
@media (max-width: 1024px) {
  .timeline-container{
    padding-left: 30px;
  } 
}


.timeline {
  position: relative;
  border-radius: 4px;
  padding: 10px 0;
  overflow: hidden;
  width: 100%;
  max-width: 1135px;
}

@media (max-width: 1325px) {
  .timeline {
    padding: 60px 30px;
    overflow: visible;
  }
}
@media (max-width: 1024px) {
  .timeline {
    padding: 0px 10px 0px 65px;
  }
}
@media (max-width: 480px) {
  .timeline {
    padding: 0px 10px 0px 50px;
  }
}
.timeline:after {
  content: "";
  position: absolute;
  top: 115px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 75%;
  background-color: #a9a9a9;
  z-index: 1;
}
@media (max-width: 1325px) {
  .timeline:after{
    content: "";
    position: absolute;
    top: 125px;
    height: 70%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background-color: #a9a9a9;
    z-index: 1;
    
  }
}
@media (max-width: 1024px) {
  .timeline:after{
    left: 0;
    top: 95px;
    height: 80%;
  }
}
@media (max-width: 480px) {
  .timeline:after{
    left: 0;
    top: 90px;
    height: 80%;
  }
}

.timeline-fill {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0; 
  background-color: #272e48;
  z-index: 2;
}
@media (max-width: 1325px) {
  .timeline-fill{
    top: 120px;
    height: 70%;
  }
}

@media (max-width: 1024px) {
  .timeline-fill {
  position: absolute;
  top: 100px;
  left: 0%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  background-color: #272e48;
  z-index: 2;
}
}

@media (max-width: 480px) {
  .timeline-fill {
  top: 95px;
}
}


.timeline-row {
  padding-right: 55%;
  position: relative;
  margin-bottom: 30px;
}
@media (max-width: 1024px) {
  .timeline-row {
    padding-right: 0;
  }
}
.timeline-row .timeline-time {
  position: absolute;
  right: 42%;
  top: 56%;
  margin-left: 20px;
  color: #393c41;
  display: flex;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
}

.timeline-row .timeline-time .step2{
  position: absolute;
  right: 42%;
  top: 56%;
  margin-left: 20px;
  color: #393c41;
  display: flex;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
}



.timeline-time-mobile{
  display: none;
}


.timeline-row .timeline-content {
  position: relative;
  padding: 20px;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  flex-direction: column;
  z-index: 9;
}
@media (max-width: 480px) {
  .timeline-row .timeline-content {
    width: 100%;
    max-width: 220px;
  }
}


.timeline-row:nth-child(odd) .timeline-content:after {
  content: '';
  position: absolute;
  top: 50%;
  left: -19px; /* Відступ праворуч */
  transform: translateY(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 20px solid #f0f0f0; 
  z-index: 1;
}


.timeline-row:nth-child(even) .timeline-content:after {
  content: '';
  position: absolute;
  top: 62%;
  right: -19px; /* Відступ ліворуч */
  transform: translateY(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 20px solid #f0f0f0; 
  z-index: 1;
}

@media (max-width: 1025px) {
  .timeline-row:nth-child(odd) .timeline-content:after {
    transform: rotate(180deg);
    top: 30%;
  }
  .timeline-row:nth-child(even) .timeline-content:after{
    left: -19px;
    transform: rotate(0deg);
    top: 30%;
  }
}




.timeline-row .timeline-content:before {
  content: "\f00c"; /* Default icon (fa-check) */
  position: absolute;
  top: 60px;
  right: -60px;
  width: 44px;
  height: 44px;
  border-radius: 50%; 
  background-color: #272e48;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  z-index: 10;
}
@media (max-width: 1024px) {
  .timeline-row .timeline-content:before{
    left: -90px;
  }
}
@media (max-width: 480px) {
  .timeline-row .timeline-content:before{
    left: -35px;
    width: 30px;
    height: 30px;
  }
}

/* Font Awesome Icons */
.timeline-phone .timeline-content:before {
  content: "\f095"; /* fa-phone */
}

.timeline-book .timeline-content:before {
  content: "\f02d"; /* fa-book */
}
.timeline-clipboard .timeline-content:before {
  content: "\f46d"; /* fa-clipboard */ 
}
.timeline-check .timeline-content:before {
  content: "\f00c"; /* fa-check */
}
.timeline-check .timeline-content:before {
  content: "\f00c"; /* fa-check */
}

.timeline-row .timeline-content h4 {
  margin: 0 0 20px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 20px;
}

.timeline-row .timeline-content p {
  margin-bottom: 0;
  line-height: 150%;
}

.timeline-row:nth-child(even) .timeline-content {
  margin-left: 40px;
  text-align: left;
}
@media (max-width: 1024px) {
  
  .timeline-row:nth-child(even) .timeline-content{
    margin-left: 0;
  }
}

.timeline-row:nth-child(even) .timeline-content:before {
  right: -77px;
}
@media (max-width: 1100px) {
  .timeline-row:nth-child(even) .timeline-content:before {
    right: -72px;
  }
}
.timeline-row:nth-child(odd) .timeline-content:before {
  left: -77px;
}
@media (max-width: 1100px) {
  .timeline-row:nth-child(odd) .timeline-content:before {
    left: -72px;
  }
}
@media (max-width: 1024px) {
  .timeline-row:nth-child(even) .timeline-content:before {
    left: -86px;
  }
  .timeline-row:nth-child(odd) .timeline-content:before {
    left: -86px;
  }
}
@media (max-width: 480px) {

    .timeline-row:nth-child(even) .timeline-content:before {
      left: -65px;
    }
    .timeline-row:nth-child(odd) .timeline-content:before {
      left: -65px;
    }

  
}
.timeline-row:nth-child(odd) {
  padding-left: 55%;
  padding-right: 0%;
}
@media (max-width: 1024px) {
  .timeline-row:nth-child(odd) {
    padding-left: 0;
    padding-right: 0%;
  }
}

.timeline-row:nth-child(odd) .timeline-time {
  right: auto;
  left: 40%;
  text-align: left;
  margin-right: 0;
  margin-left: 20px;
}

.timeline-row:nth-child(odd) .timeline-content {
  margin-right: 40px;
}
@media (max-width: 1024px) {
  .timeline-row:nth-child(odd) .timeline-content {
    margin-right: 0;
  }
}

@media (max-width: 1024px) {
  .timeline-row .timeline-time{
    display: none;
  }
}
@media (max-width: 1024px) {
  .timeline-time-mobile{
    font-size: 17px;
    display: flex;
    color: #393c41;
    display: flex;
    text-align: center;
  }
}
.timeline-content .title {
  font-size: 20px;
  margin: 0px 0px 10px 0px;
  color: #170F3C;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}
.timeline-content p {
  color: #393c41;
  font-size: 17px;
  line-height: 1.6; 
  margin: 0;
  font-weight: 200;
}
@media (max-width: 480px) {
  .timeline-content .title {
    font-size: 16px;
  }
  .timeline-content p{

    font-size: 14px;
  }
}