/* BHA V8 / visual layout from supplied desktop + mobile mockups.
   Scoped to native Helix header and actual SP Page Builder sections.
   No changes to the original Joomla/SP Page Builder plugins or gallery contents. */
body.bha-v5-home{--bha-blue:#003cc8;--bha-pink:#ff025a;--bha-yellow:#efc823;--bha-purple:#8925a6;--bha-sky:#0991de;background:#f9fbff!important}
body.bha-v5-home .body-innerwrapper{overflow:clip}
/* Atmospheric background: decorative, not a replacement for historical imagery. */
body.bha-v5-home #sp-main-body{background-image:linear-gradient(180deg,rgba(255,255,255,.72),rgba(248,250,255,.88)),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22960%22%20height%3D%22240%22%20viewBox%3D%220%200%20960%20240%22%3E%3Cg%20fill%3D%22%237895d0%22%20fill-opacity%3D%22.22%22%3E%3Cpath%20d%3D%22M0%20220h960v20H0z%22%2F%3E%3Cpath%20d%3D%22M20%20220V130h20V90l19-26%2019%2026v40h20v90zM29%2090h58M52%2064V35M15%20155h90%22%2F%3E%3Cpath%20d%3D%22M590%20220v-80h22v-35l15-17%2015%2017v35h22v80zM603%20138h48M627%2089V65%22%2F%3E%3Cpath%20d%3D%22M140%20220l8-55%2010%2055%2011-82%2012%2082%209-60%2012%2060%2010-38%209%2038zM695%20220l20-100%2021%20100%2016-71%2015%2071%2021-88%2018%2088z%22%2F%3E%3Cpath%20d%3D%22M320%20220v-95h9v95zM269%20158q35-95%2060-64%2030-49%2065%2016%2035-2%2033%2031-8%2027-67%2022-38%2024-91-5z%22%2F%3E%3Cpath%20d%3D%22M817%20220v-100h9v100zM777%20143q22-85%2044-48%2028-55%2058%208%2033-9%2038%2029-8%2026-54%2026-41%2019-86-15z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat-y;background-position:top center,center top;background-size:auto,100% auto}
/* HEADER: fix flex columns and logo without distortion. */
body.bha-v6-ready #sp-header{height:94px!important;min-height:94px!important;position:relative!important;background:#fff!important;border:0!important;box-shadow:none!important}
body.bha-v6-ready #sp-header .container,body.bha-v6-ready #sp-header .container-fluid{max-width:1200px!important;height:100%!important;padding-inline:26px!important}
body.bha-v6-ready #sp-header .row{height:100%;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important}
body.bha-v6-ready #sp-header #sp-logo{flex:0 0 125px!important;width:125px!important;max-width:125px!important;min-width:125px!important;padding:0!important}
body.bha-v6-ready #sp-header #sp-logo .sp-column{display:flex!important;align-items:center!important;height:100%!important}
body.bha-v6-ready #sp-header #sp-logo .logo,body.bha-v6-ready #sp-header #sp-logo .logo a{display:flex!important;width:105px!important;height:86px!important;justify-content:center!important;align-items:center!important;overflow:visible!important;padding:0!important}
body.bha-v6-ready #sp-header #sp-logo img{width:104px!important;height:86px!important;max-width:104px!important;max-height:86px!important;object-fit:contain!important;object-position:center!important;flex-shrink:0!important}
body.bha-v6-ready #sp-header #sp-menu{flex:1 1 auto!important;width:auto!important;max-width:none!important;min-width:0!important;padding:0!important}
body.bha-v6-ready #sp-header #sp-menu>.sp-column{min-height:92px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important}
body.bha-v6-ready #sp-header .sp-megamenu-parent{display:flex!important;gap:clamp(1px,.35vw,8px)!important;justify-content:flex-end!important;align-items:center!important}
body.bha-v6-ready #sp-header .sp-megamenu-parent>li>a{font:700 clamp(13px,1.15vw,16px)/1.2 Arial,sans-serif!important;color:#003cc8!important;padding:12px clamp(7px,.9vw,15px)!important;min-height:44px!important;text-decoration:none!important;white-space:nowrap!important;position:relative!important}
body.bha-v6-ready #sp-header .sp-megamenu-parent>li.active>a,body.bha-v6-ready #sp-header .sp-megamenu-parent>li.current-item>a{color:#ff025a!important}
body.bha-v6-ready #sp-header .sp-megamenu-parent>li.active>a:after,body.bha-v6-ready #sp-header .sp-megamenu-parent>li.current-item>a:after{content:""!important;position:absolute!important;bottom:4px;left:10px;right:10px;height:3px;background:#ff025a}
body.bha-v6-ready #sp-header .bha-v6-home-link>a:before{content:none!important}
body.bha-v6-ready #sp-header .bha-v6-home-link>.sp-dropdown{display:none!important}
/* Thin artistic brand wave, CSS-generated; remains responsive. */
body.bha-v6-ready #sp-header:after{height:7px!important;bottom:-5px!important;background:linear-gradient(95deg,#ff025a 2%,#ff025a 17%,#efc823 28%,#ff025a 52%,#003cc8 71%,#0991de 94%)!important;clip-path:polygon(0 10%,15% 46%,30% 24%,48% 76%,62% 37%,82% 69%,100% 20%,100% 100%,0 100%);z-index:10}
/* HERO / cards. Actual section tagged by existing V5 JS. */
body.bha-v5-home .bha-v5-hero{padding-block:29px 18px!important}
body.bha-v5-home .bha-v5-hero .bha-v5-hero-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important}
body.bha-v5-home .bha-v5-hero .bha-v5-hero-row>.bha-v5-hero-col{padding:18px 16px 16px!important;border:1px solid #ebeff8!important;border-radius:18px!important;box-shadow:0 5px 17px rgba(22,48,108,.13)!important;min-height:0!important;background:#fff!important}
body.bha-v5-home .bha-v5-hero-col:before{height:3px!important;left:20px!important;right:20px!important;background:linear-gradient(90deg,#efc823,#ff025a,#003cc8)!important}
body.bha-v5-home .bha-v5-hero-col .sppb-addon-title,body.bha-v5-home .bha-v5-hero-col h2,body.bha-v5-home .bha-v5-hero-col h3{color:#003cc8!important;font-weight:800!important;font-size:clamp(19px,1.85vw,26px)!important;line-height:1.14!important;text-align:center!important;margin:2px 0 12px!important}
body.bha-v5-home .bha-v5-hero-col:nth-child(1) .sppb-addon-title:before{content:"";display:block;margin:0 auto 5px;width:40px;height:33px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2040%22%3E%3Cpath%20fill%3D%22%23EFC823%22%20d%3D%22M4%2011l10%209%2010-15%2010%2015%2010-9-5%2022H9z%22%2F%3E%3Cpath%20fill%3D%22%23EFC823%22%20d%3D%22M9%2035h30v4H9z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
body.bha-v5-home .bha-v5-hero-col:nth-child(2) .sppb-addon-title:before{content:"";display:block;margin:0 auto 5px;width:40px;height:33px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2040%22%3E%3Cg%20fill%3D%22%23003CC8%22%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%229%22%20r%3D%227%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%2214%22%20r%3D%225%22%2F%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2214%22%20r%3D%225%22%2F%3E%3Cpath%20d%3D%22M12%2036V26c0-8%205-11%2012-11s12%203%2012%2011v10zM0%2036V26c0-6%204-8%2010-8l4%202-4%206v10zM38%2036V26l-4-6%204-2c6%200%2010%202%2010%208v10z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat}
body.bha-v5-home .bha-v5-hero-col:nth-child(3) .sppb-addon-title:before{content:"";display:block;margin:0 auto 5px;width:40px;height:33px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2040%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23003CC8%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2013l9-8%209%206%207-2%208%204%209-5M4%2024l7%208%204-3%204%205%204-3%205%203%204-3%205%201%207-9M13%2014l8%201%205-4M12%2018l14%2013M18%2015l16%2013%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat}
body.bha-v5-home .bha-v5-hero-col img{display:block!important;width:100%!important;max-height:245px!important;object-fit:contain!important;border-radius:12px!important}
body.bha-v5-home .bha-v5-hero-col .sppb-btn{border-radius:999px!important;font-size:15px!important;line-height:1.25!important;min-height:38px!important;padding:9px 20px!important}
body.bha-v5-home .bha-v5-hero-col .sppb-btn:first-child:not(.sppb-btn-primary){background:#003cc8!important;color:#fff!important}
body.bha-v5-home .bha-v5-hero-col .sppb-btn-primary{background:#ff025a!important;border-color:#ff025a!important}
body.bha-v5-home .bha-v5-hero-col iframe{aspect-ratio:16/9!important;width:100%!important;height:auto!important;border-radius:12px!important}
/* Slider: original 5 backgrounds and native controls remain authoritative. */
body.bha-v5-home .bha-v5-slideshow{padding-block:4px 25px!important}
body.bha-v5-home .bha-v5-slideshow .sp-slider{border-radius:17px!important;background:#eef1f6!important;box-shadow:0 6px 18px rgba(17,42,87,.12)!important}
body.bha-v5-home .bha-v5-slideshow .sp-slider .sp-item{isolation:isolate!important}
body.bha-v5-home .bha-v5-slideshow .sp-slider .sp-item .sp-background{z-index:0!important;background-size:cover!important;background-position:center!important}
body.bha-v5-home .bha-v5-slideshow .sp-slider .sp-item [data-layer=true]{position:relative;z-index:2!important}
body.bha-v5-home .bha-v5-slideshow .sp-slider .sp-item .item-mask{background-color:transparent!important}
body.bha-v5-home .bha-v5-slideshow .sp-slider .sp-nav-control{z-index:8!important}
/* Galleries: the existing three Joomla modules, four columns at desktop. */
body.bha-v5-home .bha-v5-gallery{padding-block:14px!important;background:#f3f5fa!important}
body.bha-v5-home .bha-v5-gallery .sppb-addon-module{background:#f0f0f2!important;padding:18px!important;border-radius:17px!important;box-shadow:0 4px 15px rgba(14,40,88,.09)!important}
body.bha-v5-home .bha-v5-gallery .sppb-addon-title{font-size:clamp(21px,2.2vw,28px)!important;color:#003cc8!important;font-weight:800!important;border-left:5px solid #ff025a!important;padding-left:14px!important}
body.bha-v5-home .bha-v5-gallery .sppb-addon-module img{border-radius:7px!important;object-fit:cover!important}
body.bha-v5-home .bha-v5-gallery .bha-v6-gallery-cta{background:#ff025a!important;color:#fff!important;border-radius:99px!important;padding:10px 22px!important;font-size:15px!important}
/* Featured articles / welcome / mission */
body.bha-v5-home .bha-v5-articles{background:transparent!important;padding-block:24px!important}
body.bha-v5-home .bha-v5-articles .sppb-addon-title{font-size:clamp(24px,2.8vw,32px)!important;font-weight:800!important;color:#003cc8!important}
body.bha-v5-home .bha-v5-articles li a{color:#003cc8!important;font-size:clamp(14px,1.5vw,17px)!important}
body.bha-v5-home .bha-v5-articles li a:before{color:#efc823!important}
body.bha-v5-home .bha-v5-welcome{background:#f1f0f8!important;padding:14px 0!important;border-radius:17px!important}
body.bha-v5-home .bha-v5-welcome .sppb-addon-title{color:#8925a6!important;font-size:clamp(23px,2.7vw,32px)!important;font-weight:750!important}
body.bha-v5-home .bha-v5-mission{background:white!important;padding-block:22px!important}
body.bha-v5-home .bha-v5-mission .sppb-addon-title{color:#003cc8!important;font-size:24px!important;font-weight:800!important}
body.bha-v5-home .bha-v5-mission p,body.bha-v5-home .bha-v5-mission li{font-size:15px!important;line-height:1.65!important}
/* Footer: REPLACE V6's tab bar with full open columns and original link lists. */
body.bha-v8-ready #sp-bottom{background:linear-gradient(105deg,#003cc8,#063cdb 58%,#0352d9)!important;padding:28px 0 38px!important;position:relative!important;overflow:hidden!important;color:#fff!important}
body.bha-v8-ready #sp-bottom:before{content:"";position:absolute;inset:0 0 auto 0;height:7px;background:linear-gradient(90deg,#ff025a 0%,#efc823 27%,#003cc8 58%,#efc823 87%,#ff025a);clip-path:polygon(0 0,28% 70%,49% 15%,74% 85%,100% 10%,100% 100%,0 100%)}
body.bha-v8-ready #sp-bottom:after{content:"";background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%20150%22%3E%3Cpath%20fill%3D%22%23051c75%22%20d%3D%22M0%20150V107h33V71l22-38%2022%2038v36h29V79h55v28h25V62h22V23h17v39h22v45h40V89h28V49h16v40h25v18h39V67l32-34%2030%2034v40h42V76h36v31h31V45h18v62h24V82h30v25h31V61h19v46h20V89h36v18h26V70l22-34%2022%2034v37h30v43z%22%2F%3E%3Cpath%20fill%3D%22%23071446%22%20d%3D%22M0%20149V124h1000v25H0z%22%2F%3E%3C%2Fsvg%3E");background-position:right bottom;background-size:auto 130px;background-repeat:no-repeat;opacity:.88;position:absolute;inset:0;pointer-events:none}
body.bha-v8-ready #sp-bottom .bha-v6-footerbar{display:none!important}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels,body.bha-v8-ready #sp-bottom .bha-v6-footer-panels:not(.bha-v6-panel-open){display:block!important;max-width:1200px!important;margin:auto!important;padding:0 26px!important;border:0!important;position:relative;z-index:2}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels .row{display:grid!important;grid-template-columns:1fr 1fr 1.15fr!important;gap:0!important;align-items:start!important;margin:0!important}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels .row>[class*="col-"]{width:auto!important;max-width:none!important;flex:none!important;min-width:0!important;margin:0!important;padding:0 24px!important;border-right:2px solid rgba(255,255,255,.68)!important}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels .row>[class*="col-"]:first-child{padding-left:0!important}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels .row>[class*="col-"]:last-child{border:0!important}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels .bha-v6-module-hidden{display:block!important}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels .sp-module-title{font:700 19px/1.3 Arial,sans-serif!important;color:white!important;margin-bottom:12px!important}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels .sp-module-title:before{content:"";display:none}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels a{color:white!important;font-size:15px!important;line-height:1.75!important;text-decoration:none!important}
body.bha-v8-ready #sp-bottom .bha-v6-footer-panels a:hover{text-decoration:underline!important}
body.bha-v8-ready #sp-bottom .bha-v8-contact{padding:0 20px!important;color:white!important}
body.bha-v8-ready #sp-bottom .bha-v8-contact h3{font:700 19px/1.3 Arial,sans-serif!important;color:white!important;margin:0 0 12px!important}
body.bha-v8-ready #sp-bottom .bha-v8-contact p{font:400 15px/1.55 Arial,sans-serif;margin:0 0 8px!important}
body.bha-v8-ready #sp-footer{background:#050505!important;min-height:67px!important;padding:15px 0!important;color:#fff!important}
body.bha-v8-ready #sp-footer .sp-copyright{font-size:14px!important}
body.bha-v8-ready #sp-footer .social-icons a{background:transparent!important;color:#fff!important;border:2px solid #fff!important;width:37px!important;height:37px!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
@media(min-width:992px) and (max-width:1160px){body.bha-v6-ready #sp-header .sp-megamenu-parent>li>a{font-size:13px!important;padding-inline:7px!important}}
@media(max-width:991px){
 body.bha-v6-ready #sp-header{height:84px!important;min-height:84px!important}
 body.bha-v6-ready #sp-header #sp-logo{flex:0 0 95px!important;width:95px!important;min-width:95px!important;max-width:95px!important}
 body.bha-v6-ready #sp-header #sp-logo .logo,body.bha-v6-ready #sp-header #sp-logo .logo a{width:88px!important;height:78px!important}
 body.bha-v6-ready #sp-header #sp-logo img{width:87px!important;height:78px!important;max-width:87px!important;max-height:78px!important;object-fit:contain!important}
 body.bha-v6-ready #sp-header .sp-megamenu-parent{display:none!important}
 body.bha-v6-ready #sp-header #offcanvas-toggler{display:flex!important;color:#0991de!important;font-size:29px!important}
 body.bha-v8-ready #sp-bottom .bha-v6-footer-panels .row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.bha-v5-home .bha-v5-hero .bha-v5-hero-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.bha-v5-home .bha-v5-hero .bha-v5-hero-row>.bha-v5-hero-col:nth-child(3){grid-column:1 / -1!important}
}
@media(max-width:599px){
 body.bha-v6-ready #sp-header{height:82px!important;min-height:82px!important}
 body.bha-v6-ready #sp-header .container,body.bha-v6-ready #sp-header .container-fluid{padding-inline:14px!important}
 body.bha-v6-ready #sp-header #sp-logo{flex:0 0 86px!important;width:86px!important;min-width:86px!important;max-width:86px!important}
 body.bha-v6-ready #sp-header #sp-logo .logo,body.bha-v6-ready #sp-header #sp-logo .logo a{width:78px!important;height:73px!important}
 body.bha-v6-ready #sp-header #sp-logo img{width:77px!important;height:73px!important;max-width:77px!important;max-height:73px!important}
 body.bha-v5-home .bha-v5-hero .bha-v5-hero-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.bha-v5-home .bha-v5-hero .bha-v5-hero-row>.bha-v5-hero-col{grid-column:auto!important;padding:12px 8px!important;border-radius:16px!important}
 body.bha-v5-home .bha-v5-hero .bha-v5-hero-row>.bha-v5-hero-col:nth-child(3){grid-column:1 / -1!important;display:grid!important;grid-template-columns:1fr 1.15fr!important;gap:12px!important;align-items:center!important}
 body.bha-v5-home .bha-v5-hero-col .sppb-addon-title,body.bha-v5-home .bha-v5-hero-col h2,body.bha-v5-home .bha-v5-hero-col h3{font-size:clamp(15px,3.6vw,20px)!important;line-height:1.14!important}
 body.bha-v5-home .bha-v5-hero-col img{max-height:175px!important}
 body.bha-v5-home .bha-v5-hero-col p{font-size:14px!important;line-height:1.38!important}
 body.bha-v5-home .bha-v5-hero-col:nth-child(3) .sppb-addon-title:before{display:none}
 body.bha-v5-home .bha-v5-slideshow .sp-slider{min-height:215px!important}
 body.bha-v5-home .bha-v5-gallery .sppb-addon-module{padding:12px!important}
 body.bha-v5-home .bha-v5-articles .sppb-container>.sppb-row{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:16px!important}
 body.bha-v5-home .bha-v5-articles .sppb-container>.sppb-row> :first-child,body.bha-v5-home .bha-v5-articles .sppb-container>.sppb-row> :nth-child(2){flex:0 0 100%!important;width:100%!important;max-width:100%!important}
 body.bha-v5-home .bha-v5-articles .sppb-container>.sppb-row> :first-child{order:2!important}
 body.bha-v5-home .bha-v5-articles .sppb-container>.sppb-row> :nth-child(2){order:1!important}
 body.bha-v8-ready #sp-bottom{padding:0!important;background:#0991de!important}
 body.bha-v8-ready #sp-bottom:after{display:none!important}
 body.bha-v8-ready #sp-bottom .bha-v6-footer-panels{display:none!important}
 body.bha-v8-ready #sp-bottom .bha-v8-mobile-bar{position:relative;z-index:3;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0!important;align-items:center;min-height:76px}
 body.bha-v8-ready #sp-bottom .bha-v8-mobile-bar>a{display:flex!important;align-items:center!important;gap:7px!important;justify-content:center!important;flex-direction:row!important;font-size:13px!important;line-height:1.2!important;padding:10px 4px!important;color:white!important;font-weight:700!important;text-align:center;text-decoration:none!important;min-width:0!important}
 body.bha-v8-ready #sp-bottom .bha-v8-mobile-bar>a+a{border-left:2px solid rgba(255,255,255,.65)}
 body.bha-v8-ready #sp-bottom .bha-v8-mobile-bar svg{flex:0 0 23px;width:23px;height:23px;fill:none;stroke:white;stroke-width:1.8}
 body.bha-v8-ready #sp-footer{padding:14px 8px!important}
 body.bha-v8-ready #sp-footer .sp-copyright{font-size:12px!important}
}
@media(min-width:600px){body.bha-v8-ready #sp-bottom .bha-v8-mobile-bar{display:none!important}}

