/* ===================== SECTION 04 — Actually built for staff (1:1837) ===================== */
.s04 {
  height: 722px;
  background: #ffffff;
  padding: 80px 0;
  box-sizing: border-box;
}

/* Inner content column: 1056px wide with 24px horizontal padding (content = 1008px) */
.s04-inner {
  width: 1056px;
  height: 562px;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Heading 2 (1:1841) */
.s04-heading {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 46px;
  letter-spacing: -0.95px;
  color: #000000;
  text-align: center;
  white-space: nowrap;
}

/* Paragraph (1:1844) — sits inside an h36 box with pt-8 */
.s04-sub {
  margin: 0;
  padding-top: 8px;
  height: 36px;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #000000;
  text-align: center;
  white-space: nowrap;
}

/* Cards container (1:1846) — margin wrapper with pt-40 */
.s04-cards {
  position: relative;
  margin-top: 40px;
  height: 440px;
  width: 1008px;
}

/* Card (1:1847 / 1:1884 / 1:1912) */
.s04-card {
  position: absolute;
  top: 0;
  width: 322.664px;
  height: 440px;
  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.s04-card:nth-child(1) { left: 0; }
.s04-card:nth-child(2) { left: 342.66px; }
.s04-card:nth-child(3) { left: 685.33px; }

/* Image area (1:1848) — 380px tall, padding 16 top / 4 bottom / 4 sides, centered */
.s04-card-img {
  height: 380px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flattened illustration (314.664 wide, 326.656 tall) */
.s04-illu {
  width: 314.664px;
  height: 326.656px;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}
.s04-illu--mobile {
  height: 360px;
}

/* Card label (1:1882 / 1:1910 / 1:1916) — py-16 */
.s04-card-label {
  margin: 0;
  padding: 16px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: #000000;
  text-align: center;
  white-space: nowrap;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .s04 {
    height: auto;
    padding: 64px 0;
  }

  .s04-inner {
    width: 100%;
    height: auto;
    align-items: center;
  }

  .s04-heading {
    white-space: normal;
  }

  .s04-sub {
    height: auto;
    white-space: normal;
  }

  /* Convert the absolutely-positioned card row into a centered wrapping flex layout */
  .s04-cards {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .s04-card {
    position: static !important;
    left: auto !important;
    top: auto;
    width: 100%;
    max-width: 340px;
    height: auto;
  }
  .s04-card:nth-child(1),
  .s04-card:nth-child(2),
  .s04-card:nth-child(3) {
    left: auto;
  }

  /* Let the image area size with the card and avoid clipping illustrations */
  .s04-card-img {
    height: auto;
    aspect-ratio: 322 / 380;
  }

  .s04-illu {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .s04-illu--mobile {
    height: auto;
  }

  .s04-card-label {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .s04 {
    height: auto;
    padding: 64px 0;
  }

  .s04-heading {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.5px;
  }

  /* Stack the cards into a single centered column */
  .s04-cards {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
  }

  .s04-card {
    max-width: 360px;
  }
}
