/* FIX66.75.94 — CORVA homepage hero spacing only.
   Does not affect CORVASEC Hybrid, shared components or internal pages. */

/* Keep the search, quick links and cards in separate vertical bands.
   Intrinsic height prevents wrapped links from spilling outside the hero. */
body.corva-theme .corva-homepage .corva-hero {
  height: auto;
  min-height: 307px;
}
body.corva-theme .corva-homepage .corva-hero-content {
  height: auto;
  min-height: 307px;
  padding-bottom: 31px;
}
body.corva-theme .corva-homepage .corva-popular {
  margin-top: 13px;
  row-gap: 7px;
}
body.corva-theme .corva-homepage .corva-jump {
  margin-top: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}
body.corva-theme .corva-homepage .corva-jump-card {
  height: 100%;
}

/* Laptop/tablet widths: allow longer hero text and wrapping quick links. */
@media (min-width:641px) and (max-width:960px) {
  body.corva-theme .corva-homepage .corva-hero { min-height: 330px; }
  body.corva-theme .corva-homepage .corva-hero-content {
    min-height: 330px;
    padding-bottom: 28px;
  }
}

/* Mobile already stacks the raven image over the copy. Preserve that
   behavior and separate the first card from the bottom of the hero. */
@media (max-width:640px) {
  body.corva-theme .corva-homepage .corva-hero {
    min-height: 0;
    height: auto;
  }
  body.corva-theme .corva-homepage .corva-hero-content {
    height: auto;
    min-height: 0;
    padding-bottom: 22px;
  }
  body.corva-theme .corva-homepage .corva-jump {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}
