/* ============================================== */
/* ------------------ MAIN MENU ----------------- */
/* ============================================== */

header .row.high {
    height: 100%;
}

.topnav ul {
    margin: 0;
    padding: 0;
}

.topnav li {
    font-weight: 700;
    list-style: none;
    display: inline-block;
    line-height: 23px;
}

    .topnav a:link, .topnav a:visited, .topnav a:active, .topnav li:after, .solid .topnav a:link, .solid .topnav a:visited, .solid .topnav a:active, .solid .topnav li:after {
        color: var(--black-color);
    }
    
    .topnav a:hover, .topnav a:focus {
        color: var(--gray-color);
        background-color: transparent;
    }
    
    .solid .topnav a:hover, .solid .topnav a:focus {
        background-color: transparent;
        color: var(--gray-color) !important;
    }

/* fix text not aligning to right */

#mega-menu-wrap-main_menu {
    width: 100% !important;
}

/* Mega Menu Hamburger */

#mega-menu-wrap-main_menu .mega-menu-toggle {
    margin-top: -10px;
    margin-right: -10px;
}

.mega-toggle-block button, .mega-toggle-block button:hover, .mega-toggle-block button:focus {
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}

#mega-menu-wrap-main_menu, #mega-menu-wrap-main_menu #mega-menu-main_menu, #mega-menu-wrap-main_menu #mega-menu-main_menu ul.mega-sub-menu, #mega-menu-wrap-main_menu #mega-menu-main_menu li.mega-menu-item, #mega-menu-wrap-main_menu #mega-menu-main_menu li.mega-menu-row, #mega-menu-wrap-main_menu #mega-menu-main_menu li.mega-menu-column, #mega-menu-wrap-main_menu #mega-menu-main_menu a.mega-menu-link, #mega-menu-wrap-main_menu #mega-menu-main_menu span.mega-menu-badge {
font-family: var(--menu-family) !important;
}
/* Mobile Toggle Button */
#mega-menu-wrap-main_menu .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated {
    border-radius: 0px !important;
    border: none !important;
    padding: 0 !important;
}

/* Mobile Toggle Color */
#mega-menu-wrap-main_menu .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner, #mega-menu-wrap-main_menu .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner::before, #mega-menu-wrap-main_menu .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-animated-inner::after {
    border-radius: 0px !important;
}

.headercontainer {
    border-bottom: var(--header-border);
}

.headermain img {
    margin: 0 auto;
    transition: all .5s ease-in-out;
}

li.menu-button a:link, li.menu-button a:visited, li.menu-button a:active {
    background-color: var(--menu-button-background-color) !important;
}

li.menu-button a:hover, li.menu-button a:focus {
    color: var(--menu-button-hover-color) !important;
    background-color: var(--menu-button-hover-background-color) !important;
}

.headercontainer, .headercontainer.solid {
    padding: .5rem;
}

.headercontainer.solid {
    background: var(--header-solid-background);
        position: fixed !important;
        top: 0;
        right: 0;
        width: 100%;
        max-width: none;
    border-bottom: var(--header-solid-border);
        z-index: 900 !important;
    }
    

/* ----------------------------------------------------------------- */
/* --------------------------------------- >>>>> DESKTOP MENU ------ */
@media screen and (min-width: 1081px) {
    
    .mobile-menu-only {
        display: none !important;
    }
    
    #mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item > a.mega-menu-link:hover,
    #mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item > a.mega-menu-link:focus,
    /*CURRENT*/#mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link {
        border-bottom: var(--link-border-width) double var(--black-color);
    }
    
    .top-nav, .nav {/*full width in the column medium-12*/
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .nav {
    margin-right: auto;
    margin-left: auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
        max-width: none;
        /* align-self-bottom */
        -webkit-align-self: flex-end;
    -ms-flex-item-align: end;
    align-self: flex-end;
    }
    
    .topnav {
        text-align: right;
            -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}
    .topnav li {
    font-size: 16pt;
    margin: 0 5px 0 0;
    }
    
    .topnav a:link, .topnav a:visited, .topnav a:active, .topnav li:after, .solid .topnav a:link, .solid .topnav a:visited, .solid .topnav a:active, .solid .topnav li:after {
        display: inline-block;
        padding-bottom: 2px;
    }
    
    /* Current Menu Item Ancestor */
#mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link {
    color: var(--text-color) !important;
    border-bottom: none !important;
}
    
    .hdr-right .row.high {
        webkit-box-align: center; */
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
    }
    
    .logo img {
        width: var(--header-desktop-logo-width);
    }
    
    .headercontainer.solid .logo img {
        width: auto;
        height: var(--header-desktop-solid-logo-height);
    }
    
    #mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-flyout.dropdown-right ul.mega-sub-menu {
        right: 0;
    }
    
    .headercontainer form {
        padding-bottom: 1rem;
    }

    header ul.mega-menu li {
        position: relative;
    }
    
    ul.mega-menu li.mega-current-menu-item a {
        cursor: crosshair;
    }
    
    ul.mega-menu ul li a:hover {
        transform-origin: bottom left;
    }
    
}

/* ----------------------------------------------------------------- */
/* --------------------------------------- >>>>> MOBILE MENU ------ */

@media screen and (max-width: 1080px) {
    
    .desktop-menu-only {
        display: none !important;
    }
    
    .top-nav {/* small-10 */
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 83.33333%;
        -ms-flex: 0 0 83.33333%;
        flex: 0 0 83.33333%;
        max-width: 83.33333%;
        text-align: center;
    }
    
    .nav {/* small-2 */
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 16.66667%;
        -ms-flex: 0 0 16.66667%;
        flex: 0 0 16.66667%;
        max-width: 16.66667%;
        padding-right: 0.9375rem;
        padding-left: 0.9375rem;
        min-width: 0;
    }
    
    header .row.high {
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        height: auto !important;
        margin-top: 10px !important;
    }
    
    .headercontainer {
        
    }
    
    .headercontainer {
        position: relative;
        padding: .5rem;
        z-index: 800 !important;
    }
    
    header .column {
        padding: 0;
    }
    
    .topnav ul {
        text-align: center;
    }
    
    .topnav li {
        color: var(--black-color);
        font-size: 16pt;
    }
    
    .topnav a {
        padding: 10px;
    }
    
    .logo img {
        width:var(--header-mobile-logo-width) !important;
    }
    
    /* Mega Menu Dropdown Arrow */

#mega-menu-wrap-main_menu #mega-menu-main_menu li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {
    color: #fff !important;
}
    
    .headermain {
        padding: 1rem .3rem;
    }

    .menu-image-title {
        display: none !important;
    }

    .headermain.row {
        width: 100%;
        max-width: 100%;
    }

    /* Submenu */
    
    #mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
        padding: 5px 10px 5px 20px;
        font-weight: 500;
    }
    
    #mega-menu-wrap-main_menu #mega-menu-main_menu > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
        background: var(--mobile-submenu-background-color) !important;
        color: var(--mobile-submenu-color) !important;
    }

    /* Submenu arrows - keeps the text from shifting left when it's centered */

    #mega-menu-wrap-main_menu #mega-menu-main_menu li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {
        position: absolute;
    }

}