.how-it-works-section {
  background-color: var(--dark-blue-1);
  padding-top: 50px;
  padding-bottom: 100px;
  width: 100vw;
  overflow: hidden;
  position: relative;

  .h3,
  .caption-2,
  .body-1,
  .h5,
  .body-3 {
    color: var(--white);
  }
  .how-it-works-main {
    max-width: 800px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .how-it-works-main .h3 {
    padding-bottom: 16px;
  }

  .steps-container {
    display: flex;
    flex-direction: column;
    text-align: start;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }

  .steps-container .step {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .step-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    border: 1px solid var(--white);
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    background-color: #ffffff08;

    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

  .number {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers horizontally */
    text-align: center; /* Ensures text is centered */
    gap: 16px;
    width: 112px;
    margin-right: 30px;
  }

  .number .line {
    height: 120px;
    width: 2px;
    /* background-color: var(--white); */
    background: linear-gradient(to bottom, var(--blue-1) 0%, var(--white) 100%);
    transition: background 0.3s ease-out;
  }
  .number .line.line5 {
    visibility: hidden;
  }

  .how-it-works-main .caption-2 {
    background-color: var(--blue-1);
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    border-radius: 30px;
    padding: 8px 16px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }

  .how-it-works-main .body-1 {
    margin-bottom: 50px;
  }

  /* bg image */
  .image-wrapper-how {
    width: 1294px;
    height: 1338px;
    position: absolute;
    top: 150px;
    left: -500px;
    transition: width 0.4s ease, height 0.4s ease;
  }
  .image-wrapper-how .bg-image {
    width: 100%;
    height: 100%;
  }
}

@media screen and (max-width: 767px) {
  .how-it-works-section {
    padding-top: 50px;
    padding-bottom: 50px;

    .number {
      margin-right: 16px !important;
      gap: 12px;
      width: 40px;
    }

    .step-text {
      display: flex;
      padding: 16px !important;
    }
  }
}

@media screen and (max-width: 550px) {
  .how-it-works-section {
    /* bg image */
    .image-wrapper-how {
      width: 1013px;
      height: 1004px;
      position: absolute;
      bottom: 0;
      left: -650px;
      top: 100px;
    }

    .how-it-works-main .caption-2 {
      padding: 8px 12px;
    }

    .how-it-works-main .h3 {
      margin-bottom: 0px;
    }
  }
}
