/* ============================================
   HOW IT WORKS SECTION
   Height: 956px | Padding: 80px top/bottom
   ============================================ */

.hiw-section {
  min-height: 956px;
  background-color: #F6F1EF;           /* white background */
  padding: 80px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

/* Max-width container */
.hiw-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* ── Top header: tag + heading ── */
.hiw-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* "HOW IT WORKS" label — same style as hero-tag */
.hiw-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 1px;
  color: #E29F29;
  text-transform: uppercase;
  display: block;
}

/* Heading — Plus Jakarta Sans SemiBold 45px LH55 LS0 */
.hiw-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 45px;
  line-height: 55px;
  letter-spacing: 0px;
  color: #1A1A1A;
  margin: 0;
  text-align: center;
}

.hiw-highlight {
  color: var(--primary);
}

/* ── Body: image left + steps right ── */
.hiw-body {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* LEFT: image column */
.hiw-img-col {
  flex: 0 0 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
}

/* RIGHT: steps column */
.hiw-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Connector SVG between cards ── */
.hiw-connector {
    display: block;
    width: 6px;
    height: 93px;
    margin-left: 75px;
    margin-top: -35px;
    margin-bottom: -35px;
    flex-shrink: 0;
    z-index: 1;
}

/* ── Step card ── */
/* Figma: 510×188 | radius 50 | gradient #F7F2EF→#F2EDE6 | stroke #F4EADF 1px */
.hiw-card {
  width: 100%;
  max-width: 510px;
  min-height: 188px;
  background: #F7F2EF;
  background: linear-gradient(135deg, #F7F2EF 0%, #EDE5DA 100%);
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 25px;
  box-sizing: border-box;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.hiw-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #EDE5DA 0%, #F7F2EF 100%);
}

/* ── Icon box: 101×101 circle ──
   Fill: #F8F1E9 | Stroke: #F4EADF 1px inside
   Drop shadow: X0 Y0 Blur4 #E4DAD0
*/
.hiw-icon-box {
  position: relative;
  width: 101px;
  height: 101px;
  flex-shrink: 0;
  border-radius: 50%;                  /* circle */
  background: #F8F1E9;
  border: 1px solid #F4EADF;
  box-shadow: 0 0 4px 0 #E4DAD0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Number badge (01, 02, 03) — top-RIGHT of icon circle */
.hiw-badge {
  position: absolute;
  top: -8px;
  right: -8px;                 /* top-right corner (Figma layout) */
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* Icon image — 50px, keep original SVG color */
.hiw-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

/* ── Card text ── */
.hiw-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Card title — Plus Jakarta Sans Bold 22px LH32 LS0 */
.hiw-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 0px;
  color: #000000;
  margin: 0;
  transition: color 0.2s ease;
}

.hiw-card:hover .hiw-card-title {
  color: var(--primary);
}

/* Card desc — Inter Regular 16px LH28 LS0 #343434 */
.hiw-card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0px;
  color: #343434;
  margin: 0;
}

/* ══════════════════════════════════════════════
   HOW IT WORKS — RESPONSIVE
══════════════════════════════════════════════ */

/* ≤ 1200px */
@media (max-width: 1200px) {
  .hiw-inner { padding: 0 32px; }
}

/* ≤ 1100px */
@media (max-width: 1100px) {
  .hiw-body { gap: 40px; }
  .hiw-card { max-width: 100%; }
  .hiw-img-col { flex: 0 0 340px; }
  .hiw-img { max-width: 340px; }
}

/* ≤ 900px: stack vertically — image on top, cards below */
@media (max-width: 900px) {
  .hiw-section { min-height: unset; padding: 64px 0; }
  .hiw-inner   { padding: 0 24px; gap: 40px; }
  .hiw-heading { font-size: 36px; line-height: 46px; }

  .hiw-body {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .hiw-img-col {
    width: auto;
  }

  .hiw-steps {
    width: 100%;
    max-width: 560px;
    align-self: center;
    gap: 20px;
  }

  .hiw-card {
    max-width: 100%;
    min-height: unset;
    padding: 22px 24px;
  }

  .hiw-connector { margin-left: 47px; }
}

/* ≤ 768px: tablet */
@media (max-width: 768px) {
  .hiw-heading { font-size: 32px; line-height: 42px; }
  .hiw-card    { border-radius: 40px; }
  .hiw-icon-box { width: 90px; height: 90px; }
  .hiw-icon     { width: 44px; height: 44px; }
}

/* ≤ 600px: mobile */
@media (max-width: 600px) {
  .hiw-section { padding: 48px 0; }
  .hiw-inner   { padding: 0 16px; gap: 32px; }
  .hiw-heading { font-size: 26px; line-height: 36px; }
  .hiw-tag     { font-size: 12px; }

  .hiw-img-col { width: auto; }

  .hiw-card {
    border-radius: 28px;
    padding: 20px 18px;
    gap: 16px;
  }

  .hiw-card-title { font-size: 18px; line-height: 26px; }
  .hiw-card-desc  { font-size: 14px; line-height: 22px; }

  .hiw-connector {
    margin-left: 41px;
    height: 70px;
  }
}

/* ≤ 430px */
@media (max-width: 430px) {
  .hiw-inner   { padding: 0 12px; }
  .hiw-heading { font-size: 30px; line-height: 40px; }

  .hiw-card {
    border-radius: 24px;
    padding: 18px 16px;
    gap: 14px;
  }

  @media (max-width: 767px) {

    img.hiw-img{
        margin-top: -30px !important;
    }

}

  .hiw-icon-box { width: 76px; height: 76px; }
  .hiw-icon     { width: 36px; height: 36px; }

  .hiw-badge {
    width: 24px;
    height: 24px;
    font-size: 10px;
    top: -6px;
    right: -6px;
  }

  .hiw-connector {
    margin-left: 50px;
    height: 60px;
  }
}
