/* Home sections (non-hero) — linked from templates/home/index.html.twig */
/* Source of truth: assets/styles/home.css (also bundled via webpack → public/build/app.css) */

/* Prevent horizontal overflow in sections */
.page-home .home-section {
  max-width: 100%;
  overflow-x: clip;
}

.page-home .home-section .container {
  max-width: 100%;
  min-width: 0;
}

.page-home .home-section__title,
.page-home .home-section__lead {
  overflow-wrap: anywhere;
}

/* Template cards (niches) */
.page-home .home-niches__grid {
  min-width: 0;
}

.page-home .home-niches__grid > [class*="col-"] {
  min-width: 0;
}

.page-home .home-template-card {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-home .home-template-card__title,
.page-home .home-template-card__desc,
.page-home .home-template-card__meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-home .home-template-card__meta li {
  min-width: 0;
}

.page-home .home-template-card__cta {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media (max-width: 575.98px) {
  .page-home .home-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-home .home-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-home .home-template-card {
    padding: 1.15rem;
  }
}

/* How it works (3 steps) */
.page-home .home-section--how {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.page-home .home-section--how .home-section__title {
  margin-bottom: 1.5rem;
}

.page-home .home-how-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  column-gap: 0.5rem;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

.page-home .home-how-steps__item {
  min-width: 0;
}

.page-home .home-how-steps__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0 0.15rem;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 300;
  color: #cbd5e1;
  user-select: none;
}

.page-home .home-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 1.35rem 1.15rem 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8ecf1;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.page-home .home-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 0.85rem;
}

.page-home .home-step-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.45rem;
  color: #0f172a;
}

.page-home .home-step-card__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

@media (max-width: 767.98px) {
  .page-home .home-section--how {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .page-home .home-how-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 400px;
  }

  .page-home .home-how-steps__arrow {
    display: none;
  }
}
