/*
 * Worxogo How It Works Widget CSS
 *
 * Elementor How It Works Widget Styles
 */

/* ===== HOW IT WORKS WIDGET ===== */
.how-it-works-section {
  padding: 0px 60px;
}

.how-it-works-container {
  margin: 0 auto;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 40px;
}

.how-it-works-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #290074;
  margin: 0 0 40px 0;
}

.how-it-works-steps {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-start;
  position: relative;
  padding-top: 80px;
}

/* Animated Separator */
.separator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
  gap: 4px;
}

.dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4000a9;
}

.line {
  flex: 1 1 auto;
  height: 1.5px;
  background-image: repeating-linear-gradient(
    to right,
    #4000a9 0,
    #4000a9 12px,
    transparent 12px,
    transparent 24px
  );
  margin-top: 2px;
  background-size: 24px 100%;
  /*animation: move-dash 1s linear infinite;*/
}

@keyframes move-dash {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 24px 0;
  }
}

/* Step Items */
.step-item {
  flex: 1;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  width: 32px;
  height: 32px;
  background: #4000a9;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 20px !important;
  font-weight: 700;
  color: #290074;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.step-description {
  font-family: "Albert Sans", sans-serif;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .how-it-works-section {
    padding: 0px 20px;
  }

  .how-it-works-steps {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    padding-top: 40px;
  }

  .separator {
    display: flex;
  }

  .step-item {
    text-align: left;
    max-width: 100%;
  }

  .how-it-works-title {
    font-size: 32px;
    margin-bottom: 0;
  }

  .how-it-works-header {
    margin-bottom: 20px;
  }

  .step-title {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .how-it-works-title {
    font-size: 28px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .step-title {
    font-size: 18px;
  }

  .step-description {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .line {
    height: 1px;
    background-image: repeating-linear-gradient(
      to right,
      #4000a9 0,
      #4000a9 4px,
      transparent 4px,
      transparent 12px
    );
    background-size: 12px 100%;
    animation: move-dash 0.8s linear infinite;
  }

  @keyframes move-dash {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 12px 0;
    }
  }
}
