/*------------------------Menu Opens on Hover, .dropdown-submenu takes care of 2nd tier menu hover*/

html {
    --primary: #010583;
    --secondary: #5869a5;
    --black: #231412;
    --accent: #e2957e;
    --accent-light: #eaad9b;
}

@media (min-width: 991px) {
    .dropdown:hover .men-level-0,
    .dropdown:hover .men-level- {
        display: block;
    }
    .dropdown-submenu:hover .men-level-1,
    .dropdown-submenu .dropdown-submenu:hover .men-level-2 {
        display: block;
    }
    .men-level-1,
    .men-level-2 {
        left: 100%;
        top: 0;
    }
}


/*--------------------Ends Menu Opens on Hover*/


/*------------------------2nd Tier Nav*/

#nav_menu .nav li {
    position: relative;
    float: left;
    list-style-type: none;
}

.open>.dropdown-menu {
    display: block;
}

#nav_menu .men-level-1 {
    top: 0px;
}

.dropdown-menu li {
    position: relative;
}


/*--------------------End-2nd Tier Nav*/


/*----------------------------
	MMS Member Icons Menu
------------------------------*/

@media (min-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 190px;
    }
}

@media (min-width: 990px) and (max-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 155px;
    }
}

@media (min-width: 767px) and (max-width: 990px) {
    .nav-tabs li.dropdown {
        width: 120px;
    }
}


/*------------------------------------------------------------------------------------
							Main Menu CSS
--------------------------------------------------------------------------------------*/

header #top-main-menu {
    background: var(--secondary);
    border-bottom: 3px solid var(--primary);
    /* height: 46px; */
}

header #top-main-menu .container-fluid div.row {
    display: flex;
    justify-content: space-between;
}

header #top-main-menu .container-fluid div.row::before, header #top-main-menu .container-fluid div.row::after {
    display: none;
}

header #header-left-wrap {
    display: flex;
    justify-content: flex-start;
}

header #nav_menu .nav{
    display: flex;
    justify-content: flex-end;
}

/*.navbar-collapse:before, .nav:before, .nav:after, .navbar-collapse:after {
    display: none;
}*/

.fixed {
    width: 100% !important;
    left: 0 !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 99 !important;
    bottom: auto !important;
}

#top-main-menu.fixed {
    background: var(--secondary);
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}

.public-menu-wrap,
.members-menu-wrap {
    display: inline-block;
    vertical-align: middle;
    padding: 13px 0px;
}

.top-left-menu {
   display: flex; 
}

.top-left-menu a {
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 20px 20px;
    white-space: nowrap;
}

.top-left-menu a:hover,
.top-left-menu a:focus {
    background-color: var(--primary);
}

@media (max-width: 480px) {
    .top-left-menu a {
        padding: 15px 13px;
    }
}

@media (min-width: 768px) {
    .navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
        opacity: 1;
        animation: appear 1s;
    }
}

/* #nav_menu {
    float: right;
} */

#nav-wrap {
    text-align: right;
    width: fit-content;
}

.nav-container {
    display: inline-block;
    vertical-align: middle;
}

#nav_menu .navbar-nav>li a {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    padding: 15px 22px 15px;
    transition: background-color .3s ease-in-out, padding .125s ease-in-out;
}

@media (min-width: 1200px) and (max-width: 1332px) {
    #nav_menu .navbar-nav>li a {
        padding: 15px 16px 15px;
    }
}

@media (min-width: 990px) and (max-width: 1199px) {
    #nav_menu .navbar-nav>li a {
        font-size: 14px;
        padding: 15px 7px 15px;
    }
}

#nav_menu .navbar-nav>li>a:hover,
#nav_menu .navbar-nav>li>a:focus,
#nav_menu .navbar-nav .open>a,
#nav_menu .navbar-nav .open>a:focus,
#nav_menu .navbar-nav .open>a:hover {
    background: var(--primary);
    color: #fff;
}

#nav_menu .caret {
    margin-left: 4px;
}


/*------------------------------------------------------------------------------------
							Dropdown Menus - full/collapsed
--------------------------------------------------------------------------------------*/

#nav_menu .dropdown-menu {
    background-color: var(--primary);
    border: 0;
    border-radius: 0px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    padding: 0px;
    left: auto;
    right: 0px;
}

#nav_menu .dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid #b6d6db;
}

#nav_menu .dropdown-menu li:last-child {
    border-bottom: 0px;
}

#nav_menu .dropdown-menu li a {
    color: #fff;
    padding: 6px 18px;
    border: 0;
    font-weight: normal;
}

#nav_menu .dropdown-menu li a:hover,
#nav_menu .dropdown-menu li a:focus {
    background: var(--secondary);
    color: #fff;
}

#nav_menu .dropdown-menu li:last-child a:hover,
#nav_menu .dropdown-menu li:last-child a:focus {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

#nav_menu .dropdown-menu.men-level-,
#nav_menu .dropdown-menu.men-level-0 {
    margin-top: -2px !important;
}

#nav_menu .dropdown-menu.men-level-1,
#nav_menu .dropdown-menu.men-level-2 {
    left: -100%;
    right: 100%;
    top: -2px;
}

#nav_menu .dropdown-menu.men-level-1 li a,
#nav_menu .dropdown-menu.men-level-2 li a {
    white-space: normal;
}


/*---------------------------------------------
MMS Admin/Member Menus
---------------------------------------------*/

main .dropdown-toggle {
    position: relative;
}

main .dropdown-menu .dropdown-toggle::after {
    content: '';
    position: relative;
    bottom: 0.25rem;
    margin-left: 2px;
    color: #b73943;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    display: inline-block;
}

#admin_menu_wrap_5 .nav>li>a:focus,
#admin_menu_wrap_5 .nav>li>a:hover {
    text-decoration: none;
    background-color: transparent;
}


/*---------------------------------------------
		Mobile Menu
---------------------------------------------*/


/*-------------------------------------toggle*/

button#mobile-toggle {
    width: 37px;
    height: 37px;
    display: none;
    position: absolute;
    right: 15px;
    bottom: 30px;
    border: 2px solid #002857;
    border-radius: 4px;
    padding: 8px 5px;
    background-color: white;
    box-shadow: 0px 1.5px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;

}

@media (max-width: 990px) {
    button#mobile-toggle {
        display: inline-block;
    }
}

button#mobile-toggle svg * {
    fill: #002857;
}


/*--------------------------------end--toggle*/

#mobile-menu>li#triggerClose {
    display: inline;
    float: right;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    font-size: 22px;
    cursor: pointer;
}

#mobile-menu>li#mobile-logo {
    position: relative;
    left: -15px;
    top: -10px;
}

#mobile-menu>li#mobile-logo>a {
    display: inline;
    max-width: 80%;
}

#mobile-menu>li #q {
    width: 100%;
}

#mobile-menu>li>a {
    padding-left: 7px;
    padding-right: 7px;
    padding-top: 8px;
    padding-bottom: 8px;
    -webkit-transition: color .25s;
    transition: color .25s;
    text-decoration: none;
}

#mobileMenuWrapper {
    /*
	The menu wrapper is the div that surrounds the mobile menu.
	You'll want to make sure this has a background of some sort so the text shows up/doesn't appear over other text
	Setting bottom:0px; is needed to make a long menu scroll-able.
	
	
	
	/* REQUIRED */
    position: fixed;
    top: 0px;
    bottom: 0px;
    /* If having the menu slide in from the top or bottom, comment out this line */
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
    /* CHANGEABLE-ISH */
    left: -120%;
    /* Change this to left, right, top, or bottom.  You'll also have to make a change in the open state */
    width: 300px;
    /* The mobile menu works best with a pre-defined width. Percentages also work great here. */
    /* CHANGEABLE */
    background: var(--secondary);
    border-right: 2px solid var(--primary);
    /* Transition - bump */
    transition: left .3s;
    /* ##DIRECTION-02 */
    -webkit-transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    /* older webkit */
    -webkit-transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    -moz-transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    -o-transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    transition: all 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
}

#mobileMenuWrapper.open {
    left: 0px;
    /* This is required.  If you changed the direction attribute above, change it here too. */
    bottom: 0px;
    /* This line is here for bottom/top slide-ins.  See note on bottom above.*/
}


/* REQUIRED - Dropdown menu item transition states*/

#mobileMenuWrapper .mDropdown {
    display: none;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
}


/* REQUIRED - Sets the ULs to not have dots, or be spaced in the typical UL fashion. */

#mobileMenuWrapper ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}


/* OPTIONAL-ISH - These are the settings for the base menu UL */

#mobileMenuWrapper #mobile-menu {
    overflow: auto;
    padding: 15px 15px 15px 10px;
}


/* OPTIONAL-ISH - This sets each link on its own line fo' sho' */


/*#mobileMenuWrapper a, #mobileMenuWrapper div{
	display: block;
}*/


/* OPTIONAL - The actual A's. Style them as you wish*/


/* Top Level / all*/

#mobileMenuWrapper #mobile-menu a {
    display: inline-block;
    width: 100%;
}


/* dropdown only */

#mobileMenuWrapper .mDropdown a {
    padding: 7px 5px;
}

#mobileMenuWrapper .mDropdown li:last-child {
    border-bottom: 0px;
}

#mobileMenuWrapper .mDropdown li:last-child a {
    border-bottom: 0px;
}

#mobile-menu>li>ul {
    background-color: var(--primary);
    border: 0;
    border-radius: 0px;
    padding: 0px 10px;
    box-shadow: none;
    margin-bottom: 0px;
}

#mobileMenuWrapper .mDropdown a:hover,
#mobileMenuWrapper .mDropdown a:focus {
    background: transparent;
    color: #00AAA0;
    text-decoration: none;
}


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

#mobileMenuWrapper.open {
    left: 0px;
    bottom: 0px;
}

#mobileMenuWrapper #mobile-menu {
    overflow: auto;
    padding: 0px 20px 10px;
}

#mobileMenuWrapper ul {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}

#mobile-menu>li#triggerClose {
    color: #fff;
    float: right;
    display: inline;
    font-size: 28px;
    cursor: pointer;
    transform: rotate(45deg);
    border-bottom: 0px;
}

#mobile-menu li {
    border-bottom: 1px solid #bacace;
}

#mobileMenuWrapper #mobile-menu a {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
    padding-left: 0px;
}

#mobileMenuWrapper #mobile-menu a:hover,
#mobileMenuWrapper #mobile-menu a:focus {
    color: #fff;
}

@media (max-width: 767px) {
    li.mobile-sm-wrap {
        display: inline-block !important;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    li.mobile-sm-wrap a {
        border-bottom: none !important;
        margin-right: 10px;
    }
    li.mobile-sm-wrap a:hover,
    li.mobile-sm-wrap a:focus {
        background: transparent !important;
    }
}

#mobileMenuWrapper ul.mDropdown {
    display: none;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
}

#mobile-menu a {}

#mobile-toggle {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    margin-right: 15px;
}

#mobile-menu-col {
    top: 8px;
    padding: 5px 0px;
    position: relative;
    margin-left: 15px;
}

#mobile-logo {
    width: 40%;
    float: left;
    margin-top: 27px;
    margin-bottom: 20px;
}

#mobile-logo a {
    margin: 0 !important;
}

#mobile-logo svg#logo {
    width: 250px;
    max-width: 250px;
}

svg#burger {
    width: 34px;
    height: 31px;
}

#mobile-menu .caret {
    margin-left: 0px;
    float: right;
    margin-top: 7px;
}


/*------------------------------------------------------------------------------------
								@Media and Sizes
--------------------------------------------------------------------------------------*/


/*------ Nav collapse @ Tablet size ------*/


@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        opacity: 1;
        animation: appear 1s;
    }
    .navbar-collapse.collapse {
        display: none !important;
        opacity: 0;
        animation: disappear .2s;
    }
    .navbar-nav {
        float: none!important;
        /* margin: 7.5px -15px; */
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* since 3.1.0 */
    .navbar-collapse.collapse.in {
        /* display: block!important; */
    }
    .collapsing {
        overflow: hidden!important;
    }
    /*.dropdown-menu {
		border: none;
		background-color: transparent;
		-webkit-box-shadow: none;
		box-shadow: none;
	}*/
}

@media (min-width: 768px) and (max-width: 990px) {}

@media (max-width: 767px) {}

@media (max-width: 480px) {}


@keyframes appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes disappear {
    from {
        display: block;
        opacity: 1;
    }
    to {
        display: none;
        opacity: 0;
    }
}