/* ==========================================================
   Sakireem Solutions — How It Works / Process Journey
   ========================================================== */
.how-it-works-area {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #fff;
}

.how-it-works-area .section-heading {
  margin-bottom: 55px;
}

.how-process-label {
  display: block;
  margin-bottom: 14px;
  color: #391a75 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.how-heading-line {
  display: block;
  width: 74px;
  height: 3px;
  margin: 24px auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #391a75 0%, #af52ed 100%);
}

.how-process-wrap {
  position: relative;
  min-height: 470px;
  margin: 0 auto;
}

.how-process-path {
  position: absolute;
  top: 35px;
  left: 2%;
  width: 96%;
  height: 225px;
  overflow: visible;
  pointer-events: none;
}

.how-process-path path {
  fill: none;
  stroke: rgba(57, 26, 117, 0.20);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
}

.how-process-step {
  position: absolute;
  width: 23%;
  text-align: center;
}

.how-process-step.step-1 { left: 0; top: 110px; }
.how-process-step.step-2 { left: 25.7%; top: 5px; }
.how-process-step.step-3 { left: 51.4%; top: 125px; }
.how-process-step.step-4 { right: 0; top: 28px; }

.how-visual {
  position: relative;
  width: 145px;
  height: 145px;
  margin: 0 auto 24px;
}

.how-icon-orbit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(57, 26, 117, 0.12);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 25%, #f6f1fc 100%);
  box-shadow: 0 14px 35px rgba(57, 26, 117, 0.10);
  color: #391a75;
  font-size: 44px;
  transition: transform .35s ease, box-shadow .35s ease, color .35s ease;
}

.how-icon-orbit::before {
  position: absolute;
  content: '';
  inset: 10px;
  border: 1px dashed rgba(175, 82, 237, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.how-step-badge {
  position: absolute;
  right: -10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(-45deg, #af52ed 0%, #391a75 100%);
  box-shadow: 0 8px 20px rgba(57, 26, 117, .20);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.how-process-step:hover .how-icon-orbit {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 20px 40px rgba(57, 26, 117, 0.16);
  color: #af52ed;
}

.how-step-copy {
  max-width: 270px;
  margin: 0 auto;
}

.how-step-copy h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.4px;
}

.how-step-copy p {
  color: #565656;
  font-size: 15px;
  line-height: 24px;
}

/* Individual process step accent colors */
.how-process-step.step-1 { --step-color: #007bff; --step-color-light: #4da3ff; --step-shadow: rgba(0, 123, 255, .22); }
.how-process-step.step-2 { --step-color: #7c4fe0; --step-color-light: #af52ed; --step-shadow: rgba(124, 79, 224, .22); }
.how-process-step.step-3 { --step-color: #28a744; --step-color-light: #62c979; --step-shadow: rgba(40, 167, 68, .22); }
.how-process-step.step-4 { --step-color: #ff9d45; --step-color-light: #ffba7d; --step-shadow: rgba(255, 157, 69, .24); }

.how-process-step .how-icon-orbit {
  color: var(--step-color);
}

.how-process-step .how-icon-orbit::before {
  border-color: color-mix(in srgb, var(--step-color) 24%, transparent);
}

.how-process-step .how-step-badge {
  background: linear-gradient(135deg, var(--step-color-light) 0%, var(--step-color) 100%);
  box-shadow: 0 8px 20px var(--step-shadow);
}

.how-process-step:hover .how-icon-orbit {
  color: var(--step-color);
  box-shadow: 0 20px 40px var(--step-shadow);
}

@media (max-width: 991px) {
  .how-process-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 35px;
    min-height: 0;
  }
  .how-process-path { display: none; }
  .how-process-step,
  .how-process-step.step-1,
  .how-process-step.step-2,
  .how-process-step.step-3,
  .how-process-step.step-4 {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
  }
}

@media (max-width: 575px) {
  .how-it-works-area .section-heading { margin-bottom: 45px; }
  .how-process-label { font-size: 13px; letter-spacing: 1.6px; }
  .how-process-wrap {
    display: block;
    padding-left: 28px;
  }
  .how-process-wrap::before {
    position: absolute;
    content: '';
    top: 60px;
    bottom: 60px;
    left: 11px;
    border-left: 2px dashed rgba(57, 26, 117, 0.20);
  }
  .how-process-step,
  .how-process-step.step-1,
  .how-process-step.step-2,
  .how-process-step.step-3,
  .how-process-step.step-4 {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 48px;
    text-align: left;
  }
  .how-process-step:last-child { margin-bottom: 0; }
  .how-visual {
    flex: 0 0 105px;
    width: 105px;
    height: 105px;
    margin: 0;
  }
  .how-icon-orbit { font-size: 31px; }
  .how-step-badge {
    right: -8px;
    bottom: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }
  .how-step-copy { max-width: none; margin: 0; }
  .how-step-copy h3 { font-size: 18px; }
  .how-step-copy p { font-size: 14px; line-height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .how-icon-orbit { transition: none; }
}
