/* =============================================================
   feat-steps-block.css — Bluworks v2
   "How it works." — 4 columns with vertical dividers.
   Matches prototype: no cards, white bg, top/bottom borders.
   ============================================================= */

.feat-steps-section {
  background: var(--surface, #FFFFFF);
  border-top: 1px solid var(--line, #E4E8F3);
  border-bottom: 1px solid var(--line, #E4E8F3);
  padding-bottom:80px;
}

.feat-steps-section .container {
  width: 100%;
  max-width: var(--maxw, 1240px);
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
  box-sizing: border-box;
}

/* ── Centered heading ── */
.feat-steps-head {
  text-align: center;
  padding: clamp(52px, 7vw, 80px) 0 clamp(40px, 5vw, 56px);
}

.feat-steps-head h2 {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink, #0A0F1E);
  margin: 0;
}

html[dir="rtl"] .feat-steps-head h2 {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
  letter-spacing: 0;
}

/* ── 4-column row with dividers ── */
.feat-steps-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers the last row when step count isn't a multiple of 4 */
}

/* Each step */
.feat-step {
  flex: 0 0 25%;
  max-width: 25%;
  box-sizing: border-box;
  padding: 32px 28px 40px;
  border-right: 1px solid var(--line, #E4E8F3);
}

.feat-step:last-child {
  border-right: 0;
}

/* Step number */
.feat-step-num {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blu-primary, #1E50E5);
  margin-bottom: 16px;
  display: block;
}

/* Step title */
.feat-step h3 {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink, #0A0F1E);
  margin: 0 0 10px;
}

html[dir="rtl"] .feat-step h3 {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

/* Step body */
.feat-step p {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mid, #4B5068);
  line-height: 1.65;
  margin: 0;
}

html[dir="rtl"] .feat-step p {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .feat-step {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .feat-step {
    border-bottom: 1px solid var(--line, #E4E8F3);
  }

  /* Right column items: no right border */
  .feat-step:nth-child(2n) {
    border-right: 0;
  }

  /* Keep right border on left-column items */
  .feat-step:nth-child(2n+1) {
    border-right: 1px solid var(--line, #E4E8F3);
  }

  /* Last row: no bottom border */
  .feat-step:last-child,
  .feat-step:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}

@media (max-width: 540px) {
  .feat-step {
    flex: 0 0 100%;
    max-width: 100%;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line, #E4E8F3);
  }

  .feat-step:last-child {
    border-bottom: 0;
  }
}

/* ── Reveal ── */
.feat-steps-section .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feat-steps-section .reveal.in { opacity: 1; transform: none; }
.feat-steps-section .reveal-d1 { transition-delay: 80ms; }
.feat-steps-section .reveal-d2 { transition-delay: 160ms; }
.feat-steps-section .reveal-d3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .feat-steps-section .reveal,
  .feat-steps-section .reveal.in {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}
/* ── Arabic RTL font override (auto) ────────────────────────────── */
html[dir="rtl"] .feat-step-num {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif !important;
}