/* BHA V9: fixes evidenced in 2026-11-15 V8 homepage screenshot.
   No slideshow, gallery, or page-builder plugin JS changed. */
body.bha-v5-home .bha-v5-hero {
  position:relative!important;
  z-index:2!important;
  margin-bottom:0!important;
  padding-bottom:22px!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
}
body.bha-v5-home .bha-v5-hero .bha-v5-hero-row {
  position:relative!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  align-items:stretch!important;
  grid-auto-rows:auto!important;
}
body.bha-v5-home .bha-v5-hero .bha-v5-hero-row>.bha-v5-hero-col {
  height:auto!important;
  min-height:0!important;
  padding-bottom:25px!important;
  overflow:visible!important;
  align-self:stretch!important;
}
/* Direct SP Page Builder widgets are allowed to contribute their real height. */
body.bha-v5-home .bha-v5-hero-col .sppb-addon-wrapper,
body.bha-v5-home .bha-v5-hero-col .sppb-addon,
body.bha-v5-home .bha-v5-hero-col .sppb-addon-content {
  max-width:100%!important;
}
body.bha-v5-home .bha-v5-hero-col .sppb-btn-group,
body.bha-v5-home .bha-v5-hero-col .sppb-button-wrapper,
body.bha-v5-home .bha-v5-hero-col .sppb-addon-button-group {
  position:relative!important;
  transform:none!important;
  margin-top:10px!important;
  z-index:3!important;
}
/* SP Page Builder JS Slider has an original -70px addon margin.
   Remove that offset without changing its image/background/slide internals. */
body.bha-v5-home .bha-v5-slideshow {
  position:relative!important;
  z-index:1!important;
  clear:both!important;
  margin-top:0!important;
  padding-top:14px!important;
  overflow:visible!important;
  transform:none!important;
}
body.bha-v5-home .bha-v5-slideshow #sppb-addon-wrapper-1697806227163,
body.bha-v5-home #sppb-addon-wrapper-1697806227163 {
  margin-top:0!important;
  margin-bottom:0!important;
  top:auto!important;
  transform:none!important;
  position:relative!important;
}
body.bha-v5-home .bha-v5-slideshow .sp-slider {
  margin-top:0!important;
  position:relative!important;
  isolation:isolate!important;
}
/* Welcome: preserve existing video addon, give it visible space and prevent crop. */
body.bha-v5-home .bha-v5-welcome,
body.bha-v5-home .bha-v5-welcome .sppb-container,
body.bha-v5-home .bha-v5-welcome .sppb-row {
  height:auto!important;
  overflow:visible!important;
}
body.bha-v5-home .bha-v5-welcome .sppb-row {
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
}
body.bha-v5-home .bha-v5-welcome .sppb-addon-video,
body.bha-v5-home .bha-v5-welcome .sppb-video-block,
body.bha-v5-home .bha-v5-welcome .sppb-embed-responsive,
body.bha-v5-home .bha-v5-welcome .sppb-addon-video .sppb-addon-content {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-height:0!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
}
body.bha-v5-home .bha-v5-welcome iframe {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  aspect-ratio:16/9!important;
  height:auto!important;
  min-height:185px!important;
  opacity:1!important;
  visibility:visible!important;
  border-radius:12px!important;
}
/* Readability and proportions from approved desktop mockup. */
body.bha-v5-home .bha-v5-articles .sppb-addon-title{font-size:clamp(24px,2.8vw,32px)!important}
body.bha-v5-home .bha-v5-articles li a{font-size:clamp(14px,1.45vw,17px)!important;line-height:1.5!important}
body.bha-v5-home .bha-v5-mission p,
body.bha-v5-home .bha-v5-mission li{font-size:clamp(14px,1.25vw,16px)!important;line-height:1.6!important}
/* Logo: respect intrinsic aspect ratio; do not stretch the actual image. */
body.bha-v6-ready #sp-header #sp-logo img,
body.bha-v6-ready #sp-header #sp-logo .logo-image {
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:88px!important;
  object-fit:contain!important;
}
body.bha-v6-ready #sp-header #sp-logo .logo,
body.bha-v6-ready #sp-header #sp-logo .logo a{width:110px!important;max-width:100%!important}
/* Footer: restore comfortable internal breathing room without hiding links. */
@media(min-width:600px){
 body.bha-v8-ready #sp-bottom .bha-v6-footer-panels{padding-block:28px 34px!important}
 body.bha-v8-ready #sp-bottom .bha-v6-footer-panels .row{row-gap:22px!important}
}
@media(max-width:991px){
 body.bha-v5-home .bha-v5-hero{padding-bottom:24px!important}
 body.bha-v6-ready #sp-header #sp-logo .logo,
 body.bha-v6-ready #sp-header #sp-logo .logo a{width:85px!important}
 body.bha-v6-ready #sp-header #sp-logo img{max-height:75px!important}
}
@media(max-width:599px){
 body.bha-v5-home .bha-v5-hero .bha-v5-hero-row>.bha-v5-hero-col{padding-bottom:19px!important}
 body.bha-v5-home .bha-v5-slideshow{padding-top:12px!important}
 body.bha-v5-home .bha-v5-welcome .sppb-row>[class*="sppb-col"]{flex:0 0 100%!important;width:100%!important;max-width:100%!important}
 body.bha-v5-home .bha-v5-welcome iframe{min-height:160px!important}
 body.bha-v6-ready #sp-header #sp-logo .logo,
 body.bha-v6-ready #sp-header #sp-logo .logo a{width:75px!important}
 body.bha-v6-ready #sp-header #sp-logo img{max-height:69px!important}
}
