/* ==========================================================================
   Steps section ("Η γνώση στον δικό σας χρόνο") — Figma node 67:724
   .steps-section     section spacing
   .steps             <ol> board: 4 steps in a row → 2×2 → 1 column
   .step              icon circle + title + text
   ========================================================================== */

.steps-section {
  padding-block: clamp(64px, 5vw, 96px) clamp(64px, 5.2vw, 100px);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px; /* minimum; space-between spreads it to 32px at 1920 */
  margin-top: 36px;
  padding: 40px 50px;
  background: var(--color-bg-board);
}

.step {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: flex-start;
  gap: 16px;
}

/* Text column widths from Figma (they set where the lines wrap).
   Steps shrink together when the board is narrower than 1920px. */
.step:nth-child(1),
.step:nth-child(2) {
  --step-body-width: 241px;
}

.step:nth-child(4) {
  --step-body-width: 273px;
}

.step__icon {
  display: grid;
  width: 60px;
  height: 60px;
  flex: none;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--color-icon-bg);
  place-items: center;
}

.step__body {
  display: flex;
  min-width: 0;
  flex: 0 1 var(--step-body-width, 265px);
  flex-direction: column;
  gap: 6px;
}

.step__title {
  color: var(--color-heading-strong);
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--leading-snug);
}

.step__text {
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
}

/* ---- 2 × 2 grid below 1860px ----------------------------------------------
   The single row needs ~1372px of board width (Figma text widths + minimum
   gaps), which the tapering page padding only leaves from ~1850px up. */
@media (max-width: 1860px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
  }

  .step__body {
    flex: 1;
  }
}

/* ---- Phone: single column ------------------------------------------------- */
@media (max-width: 700px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
    padding: 24px;
  }

  .step__icon {
    width: 52px;
    height: 52px;
  }

  .step__title {
    font-size: 18px;
    line-height: 26px;
  }
}
