/* Mobile off‑canvas base */


.bhfb-row-wrapper.bhfb-main_header_row,.bhfb.bhfb-header.bhfb-mobile{
    z-index: 9999;
    position: relative;
}

/* Prevent page scroll when mobile menu is open */
body.g9-disable-scroll {
  overflow: hidden !important;
}

.g9-mobile-menu {
  position: relative;
}
.g9-mobile-toggle,
.g9-mobile-close {
  font-size: 1.2em;
  padding: 0.5em;
  background: none;
  border: none;
  cursor: pointer;
}

/* Panels share these */
.g9-mobile-panel {
  position: fixed;
  top: 133px;
  left: -100%;
  width: 100%;
  max-width: 300px;
  /* height: 100%; */
  height: calc(100% - 133px);
  background-color: #F8F6F2;
  transition: left 0.5s ease;
  overflow-y: auto;
  z-index: 1000;
  padding: 20px; 

  @media (width < 687px){
		top: 165px;
		height: calc(100% - 165px);
  }

  @media (width < 601px){
		top: 156px;
		height: calc(100% - 156px);
  }

  @media (width < 481px){
		top: 144px;
		height: calc(100% - 144px);
  }

  @media (width < 427px){
		top: 159px;
		height: calc(100% - 159px);
  }

  @media (width < 356px){
		top: 174px;
		height: calc(100% - 174px);
  }

}

/* Slide in */
.g9-mobile-panel.open {
  left: 0;
}

/* Sub‑panels sit above the main panel */
.g9-mobile-panel.sub-panel {
  z-index: 1001;
}

/* Main list */
.mobile-main-list,
.mobile-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.mobile-main-item,
.mobile-sub-list li {
  margin-bottom: 0;
}
.mobile-main-item{

    padding: 0;

}
.mobile-main-item.has-children > a {
  font-weight: bold;
}

/* Tabs */

.mobile-tab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: start;
  align-items: start;
  flex-wrap: wrap;
  text-transform: uppercase;
  gap: 0 20px;
}
.mobile-tab-list li {
  padding: 0;
}

.mobile-tab-trigger {
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-tab-trigger.active {
  color: #53585C !important;
}

.mobile-tab-list li span{
    color: #A4A4A4 !important;
    /* font-family: Roboto !important; */
    font-weight: 500 ;
    font-size: 11px ;
    font-style: normal;
    display: flex;
    text-decoration: none;
    padding: 5px 0 ;
    line-height: 21.09px ;
    text-align: left ;
    align-items: center;
    text-transform: uppercase;
}

.mobile-tab-list li{
    margin: 0 0 3px;
}

/* Sub‑items */
.mobile-sub-list li a {
  display: block;
  padding: 0.5em 0;
  text-decoration: none;
}

/*css */

.g9-mobile-menu .g9-mobile-hamburger-icon{

    width: 25px;
    height: 25px;
}

/* Mobile toggle icon */
.g9-mobile-toggle {
  background: none;
  border: none;
  padding: 0.5em;
  cursor: pointer;
}
.g9-mobile-icon {
  width: 24px;
  height: auto;
  display: block;
}
/* Rotate when ‘open’ */
.g9-mobile-toggle.open .g9-mobile-icon {
  transform: rotate(180deg);
}

.mobile-main-list .mobile-main-item a{
    /* font-family: Roboto !important; */
    font-size: 18px ;
    font-weight: 400 ;
    line-height: 21.09px ;
    text-align: left ;
    color: #53585C !important;
    padding: 9px 0 ;
    font-style: normal;
    display: flex;
    text-decoration: none;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
}

.mobile-main-item.has-children > a::after {

content: "";
display: block;
width: 17px;
height: 14px;
background-image: url('../images/arrow-right.svg');
background-repeat: no-repeat;
background-position: center;
background-size: contain;

}

.g9-mobile-panel.sub-panel{
    display: flex ;
    flex-direction: column;
    /* height: 100%; */
    padding: 0;
    margin: 0;
    overflow: auto;
}

.g9-mobile-panel.sub-panel .back-btn{

    font-family: Roboto;
    font-size: 12px ;
    font-weight: 400 ;
    line-height: 14.06px;
    text-align: left;
    padding: 10px 20px ;
    border-bottom: 1px solid #99999966;
    margin-bottom: 0 ;
    line-height: 21.09px ;
    text-align: left ;
    color: #53585C !important;
    display: flex;
    text-decoration: none;
    text-transform: UPPERCASE;
}

.g9-mobile-panel.sub-panel .back-btn img{
    margin-right: 10px;
    width: 6px;
}

.g9-mobile-panel.sub-panel .mobilesubmenulist{
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    gap: 0 20px;
}

.mobile-parent-title{

    margin: 0;
    padding: 0;
    width: 100%;
    padding: 20px 0;
    font-family: Roboto;
    font-size: 18px;
    font-weight: 400;
    line-height: 21.09px;
    text-align: left;
    color: #53585C;
    text-transform: uppercase;

}

.mobile-sub-list li{
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding-bottom: 0;
}

.mobile-sub-list li a{
    display: flex;
    text-decoration: none;
    font-size: 11px ;
    font-weight: 400 ;
    line-height: 11.89px ;
    border-top: 1px solid #99999966;
    padding: 10px 20px ;
    text-align: left ;
    color: #53585C !important;
    align-items: center;
    text-transform: uppercase;
}

/* ───────────────────────────────────────────────────────────────
   Full‑page menu overlay
─────────────────────────────────────────────────────────────── */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 36, 36, 0.2);
    display: none;
    z-index: 999;
}

/* Bottom Links for Mobile */

.g9-mobile-panel.main-panel .bottom-mobile-links,.g9-mobile-panel.sub-panel .bottom-mobile-links{
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 20px;
    position: relative;
}

.g9-mobile-panel.sub-panel .bottom-mobile-links{
    padding: 0 20px;
}

.g9-mobile-panel.main-panel .bottom-mobile-links::after{
    content: '';
    height: 1px;
    width: calc(100% + 40px);
    position: absolute;
    top: 0;
    background: #99999966;
    z-index: 1;
    right: -20px;
}

.g9-mobile-panel.main-panel .bottom-mobile-links li,.g9-mobile-panel.sub-panel .bottom-mobile-links li{
    padding: 0;
}

.g9-mobile-panel.main-panel .bottom-mobile-links .link_item,.g9-mobile-panel.sub-panel .bottom-mobile-links .link_item{
    margin: 0 0 12px;
} 

.g9-mobile-panel.main-panel .bottom-mobile-links li a,.g9-mobile-panel.sub-panel .bottom-mobile-links li a{
    font-size: 14px;
    display: flex;
    text-decoration: none;
    color: #53585C !important;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    gap: 20px;
    align-items: center;
    text-transform: uppercase;
}

/*Social Icons */

.g9-mobile-panel.main-panel .bottom-mobile-links.social-icons{

    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    position: relative;
    /* margin-top: 110%; */
    margin-top: auto;
}

.g9-mobile-panel.main-panel .bottom-mobile-links.social-icons::after{
    content: '';
        height: 1px;
        width: calc(100% + 40px);
        position: absolute;
        top: 0;
        background: #99999966;
        z-index: 1;
        right: -20px;
}

.g9-mobile-panel.main-panel .bottom-mobile-links.social-icons .link_item{
    /* margin-bottom: 0 */
}

.g9-mobile-panel.sub-panel .bottom-mobile-links.social-icons{

    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    position: relative;
}

.g9-mobile-panel.sub-panel .bottom-mobile-links.social-icons::after{
    content: '';
        height: 1px;
        width: calc(100% + 40px);
        position: absolute;
        top: 0;
        background: #99999966;
        z-index: 1;
        right: -20px;
}

.g9-mobile-panel.sub-panel .bottom-mobile-links.social-icons .link_item{
    margin-bottom: 0
}

/* */

/* Main panel: column flex container */
.g9-mobile-panel.main-panel {
  display: flex;
  flex-direction: column;
  padding: 20px;
 
}

/* Let the list size to its content */
.g9-mobile-panel.main-panel .mobile-main-list {
  flex: 0 0 auto;    /* fit to content height */
  overflow: visible;  /* no internal scroll here */
}

/* Bottom sections scroll if panel overflows */
.g9-mobile-panel.main-panel {
  overflow-y: auto;  /* entire panel scroll when too tall */
}

/* Bottom links remain below the list */
.g9-mobile-panel.main-panel .bottom-mobile-links,
.g9-mobile-panel.main-panel .bottom-mobile-links.social-icons {
  flex-shrink: 0;
  position: relative;
}

/* sub panel*/


.g9-mobile-panel.sub-panel .mobilesubmenulist {
  flex: 0 0 auto;
  overflow-y: auto;
  max-height: 50vh;
}


.g9-mobile-panel.sub-panel .bottom-mobile-links.social-icons {
  margin-top: auto; 
}

.g9-mobile-panel.sub-panel{
    height: calc(100% - 109px);
    overflow-x: hidden;
}

/* Highlight a focused or “active” main‑item link */

.mobile-sub-list li a:focus,
.mobile-sub-list li a:active{
  background: #FAF1D0;
  border-top: 1px solid transparent;  
}


