/* WorldIDP how-to-apply page refinements.
   The page reuses the existing wi- explainer system from what-is-idp.css.
   Only hta- classes below are page-specific. */

.hta-page {
  overflow-x: clip;
}

.hta-page .wi-hero {
  padding-bottom: clamp(44px, 6vw, 78px);
}

.hta-page .wi-hero-grid {
  grid-template-columns: 1fr 0.88fr;
}

.hta-hero-visual {
  aspect-ratio: auto;
}

.hta-hero-figure {
  background: linear-gradient(160deg, #ffffff, #eef4ff);
  padding: 14px;
}

.hta-hero-figure::after {
  display: none;
}

.hta-hero-figure img,
.hta-frame-contain img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #f8fbff;
}

.hta-requirements .wi-step::before {
  color: rgba(79, 134, 255, 0.12);
}

.hta-flow {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hta-flow article,
.hta-two-col article {
  position: relative;
  padding: 24px;
  border-radius: var(--wi-radius);
  background: var(--wi-card);
  border: 1px solid var(--wi-line);
  box-shadow: var(--wi-shadow-sm);
}

.hta-flow article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  box-shadow: 0 10px 22px rgba(7, 88, 216, 0.22);
  font-size: 0.86rem;
  font-weight: 900;
}

.hta-flow h3,
.hta-two-col h3 {
  margin: 0 0 9px;
  color: var(--blue-950);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.25;
}

.hta-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.58;
}

.hta-mistakes .wi-need-card {
  min-height: 100%;
}

.hta-two-col {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hta-two-col article:nth-child(2) .wi-flist svg {
  color: #d24b4b;
}

.hta-links a,
.hta-page .wi-cta-note a {
  color: var(--blue-700);
  font-weight: 850;
  text-decoration: none;
}

.hta-links a:hover,
.hta-page .wi-cta-note a:hover {
  text-decoration: underline;
}

.hta-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hta-page .wi-cta .wi-btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24);
}

@media (max-width: 1180px) {
  .hta-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hta-page .wi-hero-grid,
  .hta-two-col {
    grid-template-columns: 1fr;
  }

  .hta-hero-visual {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .hta-flow {
    grid-template-columns: 1fr;
  }

  .hta-flow article,
  .hta-two-col article {
    padding: 21px;
    border-radius: 20px;
  }

  .hta-page .wi-hero h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }

  .hta-page .wi-hero-trust {
    gap: 10px;
  }

  .hta-page .wi-hero-trust span {
    width: 100%;
  }
}
