/* V15 — corrected homepage AI panel and page-specific hero imagery */
:root{
  --v15-hero-overlay:linear-gradient(90deg,rgba(247,251,255,.99) 0%,rgba(247,251,255,.95) 42%,rgba(247,251,255,.5) 68%,rgba(247,251,255,.08) 100%);
}

/* Keep the homepage AI feature centered with safe content padding. */
.page-index .ai-home-section{
  padding:72px 0!important;
  background:linear-gradient(135deg,#eef7ff 0%,#e7f2ff 52%,#effaff 100%)!important;
  overflow:hidden;
}
.page-index .ai-home-shell{
  width:min(1180px,calc(100% - 40px))!important;
  margin-inline:auto!important;
  padding:48px!important;
  overflow:hidden;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
  gap:52px!important;
  align-items:center!important;
}
.page-index .ai-home-copy,.page-index .ai-prompt-preview{min-width:0}
.page-index .ai-home-copy h2{
  max-width:560px;
  margin:12px 0 18px!important;
  font-size:clamp(2.25rem,4vw,3.65rem)!important;
  line-height:1.04!important;
  overflow-wrap:normal;
  word-break:normal;
}
.page-index .ai-home-copy p,.page-index .ai-home-copy>small{max-width:560px}

/* Each major destination now has its own visual rather than sharing one image. */
.brokers-hero{
  background-image:var(--v15-hero-overlay),url('../images/ftb-brokers-hero-v15.webp')!important;
}
.compare-hero,.market-page-head,.page-reviews .page-hero,.review-hero{
  background-image:var(--v15-hero-overlay),url('../images/ftb-trading-hero-v14.webp')!important;
}
.tools-hero{
  background-image:var(--v15-hero-overlay),url('../images/ftb-tools-hero-v15.webp')!important;
}
.crypto-hero{
  background-image:var(--v15-hero-overlay),url('../images/ftb-crypto-hero-v15.webp')!important;
}
.learn-hero,.directory-hero,.country-hero,.page-country-guides .page-hero{
  background-image:var(--v15-hero-overlay),url('../images/ftb-learning-hero-v15.webp')!important;
}
.blog-hero,.blog-page-hero,.guide-article>header,.article-hero,.page-daily .page-hero{
  background-image:var(--v15-hero-overlay),url('../images/ftb-editorial-hero-v15.webp')!important;
}
.prompt-hero,.page-ai-prompts .page-hero,.page-forex-ai-prompts .page-hero,.page-crypto-ai-prompts .page-hero,.page-stocks-ai-prompts .page-hero{
  background-image:var(--v15-hero-overlay),url('../images/ftb-ai-editorial-hero-v14.webp')!important;
}
.about-hero,.legal-hero,.page-contact .contact-section{
  background-image:var(--v15-hero-overlay),url('../images/ftb-learning-resources-hero-v14.webp')!important;
}

.brokers-hero,.compare-hero,.market-page-head,.review-hero,.tools-hero,.crypto-hero,.learn-hero,.directory-hero,.country-hero,.blog-hero,.blog-page-hero,.guide-article>header,.article-hero,.prompt-hero,.about-hero,.legal-hero{
  background-size:cover!important;
  background-position:center right!important;
  background-repeat:no-repeat!important;
}

@media(max-width:900px){
  :root{--v15-hero-overlay:linear-gradient(90deg,rgba(247,251,255,.99) 0%,rgba(247,251,255,.94) 62%,rgba(247,251,255,.66) 100%)}
  .page-index .ai-home-shell{grid-template-columns:1fr!important;padding:38px!important;gap:34px!important}
  .page-index .ai-home-copy h2{max-width:720px}
}
@media(max-width:640px){
  :root{--v15-hero-overlay:linear-gradient(180deg,rgba(247,251,255,.97),rgba(247,251,255,.88))}
  .page-index .ai-home-section{padding:48px 0!important}
  .page-index .ai-home-shell{width:min(100% - 28px,1180px)!important;padding:26px 20px!important;border-radius:16px!important}
  .page-index .ai-home-copy h2{font-size:2.35rem!important}
  .page-index .ai-home-actions{flex-direction:column!important;align-items:stretch!important}
  .page-index .ai-mini-cards{grid-template-columns:1fr!important}
}
