.acf-layout-five-steps-section {
  background-color: var(--color-1);
  color: var(--color-white);
  padding: 90px 0 70px 0;
  height: 800px;
}
.five-steps-section-heading {
  line-height: 120%;
  color: var(--color-2);
}
.five-steps-section-heading::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 100px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
  margin-left: 20px;
}

.five-steps-section-number {
  font-family: var(--font-clash-display);
  font-weight: 500;
  font-size: 82.91px;
  line-height: 100%;
  letter-spacing: 0%;
  color: var(--color-6);
}

.five-steps-section-content {
  font-family: var(--font-clash-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 160%;
  letter-spacing: 0%;
  padding-top: 24px;
  margin: 0;
}

.five-steps-row-one {
  display: grid;
  grid-template-columns: 40% 60%;
}

.step-1,
.step-3,
.step-2,
.step-4,
.step-5 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  position: relative;
}
.step-4 {
  justify-content: flex-start;
  left: 5%;
}

.step-1 .five-steps-section-content {
  max-width: 50%;
}

.five-steps-section-number {
  position: relative;
  top: -36%;
}

.step-1 .five-steps-section-content {
  max-width: 50%;
  position: relative;
  border-top: 1px solid #fff;
}

.step-5 .five-steps-section-content {
  position: relative;
  border-top: 1px solid #fff;
  width: 100%;
}

.step-1 .five-steps-section-content::after,
.step-5 .five-steps-section-content::after {
  content: "";
  position: absolute;
  right: 0px;
  top: 130%;
  transform: translateY(-50%);
  width: 1px;
  height: 229px;
  background-color: var(--color-white);
}

.step-5 .five-steps-section-content::after {
  height: 132px;
  top: 117%;
}

.step-1 .five-steps-section-content::before,
.step-5 .five-steps-section-content::before {
  content: "";
  position: absolute;
  right: -9.5px;
  top: auto;
  bottom: -183%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.step-5 .five-steps-section-content::before {
  bottom: -169%;
}

.five-steps-row-two {
  display: grid;
  grid-template-columns: 40% 60%;
  padding-top: 120px;
}

.step-3 .five-steps-section-content {
  max-width: 74%;
  border-top: 1px solid #ffffff;
  padding-left: 24px;
  position: relative;
  text-align: right;
}

.step-3 .five-steps-section-content::after {
  content: "";
  position: absolute;
  left: 0px;
  top: 118%;
  transform: translateY(-50%);
  width: 1px;
  height: 208px;
  background-color: var(--color-white);
}

.step-3 .five-steps-section-content::before {
  content: "";
  position: absolute;
  left: -9.5px;
  top: auto;
  bottom: -161%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.step-2 {
  left: -8%;
}

.step-2 .five-steps-section-content {
  border-top: 1px solid #fff;
  max-width: 53%;
  text-align: right;
  position: relative;
}

.step-2 .five-steps-section-content::before {
  content: "";
  position: absolute;
  left: -20px;
  top: -10%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.five-steps-row-three {
  display: grid;
  grid-template-columns: 50% 50%;
  padding-top: 120px;
}

.step-4 .five-steps-section-content {
  border-top: 1px solid #fff;
  padding-right: 54px;
  position: relative;
}

.step-4 .five-steps-section-content::before {
  content: "";
  position: absolute;
  top: -15%;
  right: -4%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.step-5 {
  justify-content: flex-start;
}

.acf-layout-five-steps-section {
  position: relative;
  overflow: hidden;
}

.acf-layout-five-steps-section-gradient {
  position: absolute;
  bottom: -50%;
  right: -25%;
  background: #e65125;
  opacity: 10%;
  /* backdrop-filter: blur(200px); */
  filter: blur(200px);
  opacity: 10%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
}

/* Visibility control classes */
.five-steps-desktop-layout {
  display: block;
}
.five-steps-mobile-layout {
  display: none;
}

@media (max-width: 1023px) {
  .five-steps-desktop-layout {
    display: none;
  }
  .five-steps-mobile-layout {
    display: block;
  }
  .acf-layout-five-steps-section {
    padding: 60px 0;
    height: auto;
  }
  .five-steps-mobile-layout .mobile-heading-row {
    margin-bottom: 40px;
  }
  .five-steps-mobile-layout .five-steps-section-heading {
    line-height: 120%;
  }
  .five-steps-mobile-layout .five-steps-section-heading::after {
    width: 60px;
    margin-left: 15px;
  }
  .mobile-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .mobile-step {
    position: relative;
    padding-bottom: 50px;
  }
  .mobile-step:last-child {
    padding-bottom: 40px;
  }
  .mobile-step .five-steps-section-number {
    font-family: var(--font-clash-display);
    font-weight: 500;
    font-size: 48px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--color-6);
    position: relative;
    top: 0;
  }
  .mobile-step .five-steps-section-content {
    font-family: var(--font-archivo);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    padding-top: 10px;
    margin: 0;
  }
  .mobile-step-odd .mobile-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
  }
  .mobile-step-even .mobile-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
  }

  .mobile-step-line-horizontal {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
  }

  /* Vertical lines and bullets for mobile steps */
  .mobile-step-odd::after {
    content: "";
    position: absolute;
    right: 0;
    top: 24px;
    bottom: 20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.4);
  }
  .mobile-step-odd::before {
    content: "";
    position: absolute;
    right: -4px;
    bottom: 20px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background-color: var(--color-1);
    z-index: 2;
  }
  .mobile-step-even::after {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.4);
  }
  .mobile-step-even::before {
    content: "";
    position: absolute;
    left: -4px;
    bottom: 20px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background-color: var(--color-1);
    z-index: 2;
  }

  .mobile-step-odd .mobile-step-content-wrapper {
    text-align: left;
    padding-left: 0;
    /* padding-right: 25px; */
  }
  .mobile-step-even .mobile-step-content-wrapper {
    text-align: right;
    padding-right: 0;
    /* padding-left: 25px; */
  }

  .five-steps-section-content-1,
  .five-steps-section-content-2 {
    text-align: right !important;
  }
  .five-steps-section-content-1 {
    padding: 0 30px 0 50px;
  }
  .five-steps-section-content-2 {
    padding-right: 50px;
  }
  .five-steps-section-content-3 {
    padding: 0 50px 0 60px;
  }
  .five-steps-section-content-4 {
    text-align: left;
    padding-left: 50px;
  }
  .five-steps-section-content-5 {
    padding-left: 50px;
  }
  .acf-layout-five-steps-section-gradient {
    display: none;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .five-steps-section-content{
        font-size: 18px;
        padding-top: 30px;
    }
    .five-steps-section-number{
        font-size: 78px;
    }
}

@media (max-width: 767px) {
    .five-steps-mobile-layout .five-steps-section-heading{
        font-size: 40px;
    }
}
