/* JBA v16.14.0 - mobile footer repair, carousel heading font, hero controls and header gap */

/* Exact legacy selector override: all carousel/panel titles use the locally hosted IranSans face. */
html body #main .panel-title,
html body #main h1.panel-title,
html body #main h2.panel-title,
html body #main h3.panel-title,
html body #main h4.panel-title,
html body #main .panel-heading .panel-title{
  font-family:'JBAIRANSans','JBAIRANSansMedium','IRANSans','IranSans',Tahoma,Arial,sans-serif!important;
  font-weight:900!important;
  font-style:normal!important;
  letter-spacing:0!important;
}

@media(max-width:767px){
  /* Home starts directly below the compact logo header. The old top-module slot was reserving an empty strip. */
  html body.jba-page-home #menu-indo{
    margin-bottom:0!important;
  }
  html body.jba-page-home #content,
  html body.jba-page-home #content.row,
  html body.jba-page-home #main{
    margin-top:0!important;
    padding-top:0!important;
  }
  html body.jba-page-home #module-top,
  html body.jba-page-home #module-top.jba-v1614-home-topmodule{
    display:none!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
  html body.jba-page-home .jba-v147-showcase-shell,
  html body.jba-page-home .jba-v1570-showcase-shell{
    margin-top:0!important;
    padding-top:0!important;
  }

  /* First hero on mobile: arrows remain; dot/pill buttons are removed. */
  html body.jba-page-home .jba-v147-dots,
  html body.jba-page-home #jba-v147-dots{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  /* Footer headings occupy the complete card width and are truly centered. */
  html body #footer.jba-v1613-footer .jba-v1613-footer-slogan,
  html body #footer.jba-v1613-footer #services h4,
  html body #footer.jba-v1613-footer #copyright1 h4{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin-right:0!important;
    margin-left:0!important;
    text-align:center!important;
  }

  /* Neutralize legacy 25px list-item heights that clipped and stacked footer links. */
  html body #footer.jba-v1613-footer #services,
  html body #footer.jba-v1613-footer #services ul{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html body #footer.jba-v1613-footer #services ul>li,
  html body #footer.jba-v1613-footer #services ul>li:first-child,
  html body #footer.jba-v1613-footer #services ul>li:not(:first-child){
    position:relative!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    background-image:none!important;
  }
  html body #footer.jba-v1613-footer #services ul>li:first-child{
    grid-column:1/-1!important;
  }
  html body #footer.jba-v1613-footer #services li:not(:first-child) a{
    box-sizing:border-box!important;
    width:100%!important;
    height:auto!important;
    min-height:48px!important;
    max-height:none!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
  }
}

@media(max-width:420px){
  html body #footer.jba-v1613-footer #services ul>li:first-child{
    grid-column:auto!important;
  }
}
