 .fl-page-header-logo img,
.fl-logo-img img,
.fl-logo-text img {
    max-height: 85px !important; 
    width: auto !important;
}

/* Large screens */
@media (max-width: 1500px) {
    #mega-menu-wrap-header {
        left: -125px;
    }
}

/* Tablet and below */
@media (max-width: 1100px) {
    #mega-menu-wrap-header {
        position: static !important;
        left: 0 !important;
        margin-left: -10px !important;
    }

    #mega-menu-wrap-header ul.mega-menu {
        flex-wrap: nowrap !important;
    }

    .fl-page-header-container {
        justify-content: flex-start !important;
    }
}

#mega-menu-wrap-header li.mega-menu-flyout > ul.mega-sub-menu {
    max-height: 30vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Ensure parent allows scrollbar rendering */
#mega-menu-wrap-header li.mega-menu-flyout {
    overflow: visible !important;
}

/* Optional scrollbar styling */
#mega-menu-wrap-header li.mega-menu-flyout > ul.mega-sub-menu::-webkit-scrollbar {
    width: 6px;
}

#mega-menu-wrap-header li.mega-menu-flyout > ul.mega-sub-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
}

#mega-menu-wrap-header li.mega-menu-flyout > ul.mega-sub-menu {
    scrollbar-width: thin;
}
@media (min-width: 769px) {

  .mega-menu-item-has-children > a:after,
  .mega-menu-item-has-children > a:before,
  .mega-indicator,
  .mega-indicator:after,
  .mega-indicator:before {
      display: none !important;
  }

}

/* Replace the number below with the exact ID number you found in your inspector */
#mega-menu-item-1939 .mega-sub-menu {
    top: 22.5px !important;
}

header[class*="scrolled"] #mega-menu-item-1939 .mega-sub-menu,
.fl-page-header-scrolled #mega-menu-item-1939 .mega-sub-menu {
    top:22.5px !important;
}

.mega-menu-item.nav-button > a.mega-menu-link {
    background-color: #0f7ef5 !important; 
    color: #ffffff !important;            
    border-radius: 4px !important;        
    font-weight: bold !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;

    /* 1. RESET THE HEIGHT: Kill the theme's forced vertical layout restrictions */
    height: auto !important;
    min-height: 0 !important;

    /* 2. FORCE PERFECT VERTICAL SPACING: Use line-height to center the text exactly */
    line-height: 1.2 !important; 
    padding-top: 10px !important;    /* Adjust this to change top thickness */
    padding-bottom: 10px !important; /* Adjust this to change bottom thickness */
    padding-left: 15px !important;   
    padding-right: 15px !important;  
}/* Target the "Get Pricing" button container to add a gap before it */
.mega-menu-item.nav-button {
    margin-left: 20px !important; /* Increase this number (e.g., 45px, 60px) to make the gap wider */
}
@media only screen and (max-width: 780px) {
    #mega-menu-wrap-header #mega-menu-header li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row > ul.mega-sub-menu > li.mega-menu-column {
        width: 100% !important;
    }
}

@media only screen and (max-width: 780px) {
  #mega-menu-wrap-header #mega-menu-header li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row .mega-menu-column > ul.mega-sub-menu > li.mega-menu-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

