/*
  Home page section: How It Works.
  Edge-to-edge image on the right, responsive on mobile.
*/

.home-how {
  background: #ffffff;
  padding: clamp(46px, 6vw, 78px) 0 clamp(74px, 9vw, 110px);
}

.home-how-shell {
  max-width: none;
  width: 100%;
}

.home-how-grid {
  min-height: clamp(520px, 52vw, 860px);
}

.home-how-text-col {
  display: flex;
  align-items: stretch;
}

.home-how-copy-shell {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 64px) clamp(18px, 3.1vw, 56px);
}

.home-how-copy {
  width: min(100%, 700px);
}

.home-how-title {
  margin: 0;
  font-family: "kallisto", "Bai Jamjuree", system-ui, sans-serif;
  font-weight: 500;
  color: #0f2b4d;
  font-size: clamp(44px, 4.4vw, 70px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.home-how-title span {
  color: #1e67b3;
  font-style: italic;
}

.home-how-intro {
  margin: 0.5rem 0 1.1rem;
  max-width: 640px;
  color: #5d7697;
  font-size: clamp(16px, 1.5vw, 28px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-how-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.home-how-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.home-how-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #e1ebf8;
  color: #1f67b4;
  display: grid;
  place-items: center;
}

.home-how-step-icon i {
  font-size: 24px;
  line-height: 1;
}

.home-how-step-tag {
  margin: 0 0 0.12rem;
  color: #1f67b4;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: clamp(12px, 0.95vw, 16px);
  font-weight: 500;
}

.home-how-step-title {
  margin: 0;
  font-family: "kallisto", "Bai Jamjuree", system-ui, sans-serif;
  font-weight: 500;
  color: #0f2b4d;
  font-size: clamp(34px, 2.3vw, 42px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.home-how-step-copy {
  margin: 0.06rem 0 0;
  color: #5d7697;
  font-size: clamp(14px, 1.2vw, 21px);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.home-how-media-col {
  display: flex;
}

.home-how-media-wrap {
  width: 100%;
  min-height: clamp(380px, 52vw, 860px);
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-how-media-wrap::before,
.home-how-media-wrap::after {
  content: none;
}

.home-how-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 1199px) {
  .home-how-copy-shell {
    padding-right: clamp(16px, 2.6vw, 34px);
  }

  .home-how-copy {
    width: min(100%, 640px);
  }
}

@media (max-width: 991px) {
  .home-how-grid {
    min-height: 0;
  }

  .home-how-copy-shell {
    justify-content: flex-start;
    padding: 24px clamp(18px, 5vw, 36px) 20px;
  }

  .home-how-copy {
    width: 100%;
    max-width: none;
  }

  .home-how-media-wrap {
    min-height: clamp(280px, 64vw, 520px);
  }
}

@media (max-width: 640px) {
  .home-how {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .home-how-intro {
    margin-bottom: 1rem;
  }

  .home-how-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .home-how-step-icon {
    width: 42px;
    height: 42px;
  }

  .home-how-step-icon i {
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .home-how-title {
    font-size: clamp(31px, 11vw, 40px);
  }

  .home-how-intro {
    font-size: clamp(14px, 4.6vw, 17px);
  }

  .home-how-step-title {
    font-size: clamp(25px, 9.5vw, 33px);
  }

  .home-how-step-copy {
    font-size: clamp(13px, 4.2vw, 16px);
  }
}
