/* Section — Wusul methodology */

.ws-method {
  background: var(--ws-bg-page);
  padding: 5rem 0 4.5rem;
  overflow-x: clip;
}

.ws-method__header {
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.ws-method__title {
  margin: 0 0 1rem;
  font-family: var(--ws-font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ws-primary);
}

.ws-method__sub {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--ws-font-body);
  font-size: clamp(1rem, 2.2vw, 1.375rem);
  line-height: 1.55;
  color: var(--ws-text-body);
}

/* Desktop: 3 columns + horizontal arrows */
.ws-method__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 11rem;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
  overflow: visible;
}

.ws-mwrap {
  position: relative;
  width: 100%;
  max-width: 17.625rem;
  min-height: 16.25rem;
  margin: 0 auto;
  overflow: visible;
}

.ws-mnum {
  position: absolute;
  top: -0.75rem;
  right: 0.875rem;
  z-index: 1;
  font-family: var(--ws-font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: #5c6b73;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.ws-mcard {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 16.25rem;
  height: 100%;
  padding: 1.5rem;
  overflow: hidden;
  text-align: left;
  background: #ffffff;
  clip-path: url(#ws-card-shape);
  -webkit-clip-path: url(#ws-card-shape);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: var(--ws-ease);
}

.ws-mcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.ws-micon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.125rem;
  height: 3.125rem;
  margin-bottom: 1.5rem;
  color: var(--ws-primary);
}

.ws-micon img,
.ws-micon svg {
  width: 2.125rem;
  height: 2.125rem;
  object-fit: contain;
}

.ws-mcard__title {
  margin: 0 0 0.25rem;
  font-family: var(--ws-font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.375rem);
  line-height: 1.35;
  color: var(--ws-text-dark);
}

.ws-mcard__body {
  margin: 0;
  font-family: var(--ws-font-body);
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  line-height: 1.45;
  color: var(--ws-text-body);
}

.ws-marrow {
  position: absolute;
  top: 62%;
  left: 100%;
  z-index: 3;
  display: block;
  width: 11rem;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Large desktop only — arrows need room between columns */
@media (min-width: 1200px) {
  .ws-method__grid {
    grid-template-columns: repeat(3, 17.625rem);
    justify-content: center;
    gap: 1.5rem 11rem;
  }
}

/* Tablet: 2 columns, no arrows */
@media (max-width: 1199px) {
  .ws-method__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 40rem;
  }

  .ws-mwrap {
    max-width: 100%;
  }

  .ws-marrow {
    display: none;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .ws-method {
    padding: 3rem 0 2.5rem;
  }

  .ws-method__header {
    margin-bottom: 2rem;
  }

  .ws-method__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 22rem;
  }

  .ws-mwrap {
    min-height: auto;
  }

  .ws-mcard {
    min-height: auto;
  }

  .ws-micon {
    margin-bottom: 1rem;
  }
}
