#mega_nav_container_menu {
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* Important for responsive layout */
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#mega_nav_container_menu:after {
    clear: both;
    content: "\00a0";
    display: block;
    height: 0;
    font: 0px/0 serif;
    overflow: hidden;
}

#mega-main-menu {
    clear: both;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

@media (min-width: 1024px) {
    #mega-main-menu {
        margin: 0 auto 0 auto 0;
        clear: none;
    }
}


/* Mega menus */


/* make mega menus take the full width of #mega_nav_container_menu */

#mega-main-menu,
#mega-main-menu > .has-mega-menu {
    position: static !important;
}

#mega-main-menu .mega-menu {
    margin-left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

#mega-main-menu > .has-mega-menu .scroll-up,
#mega-main-menu > .has-mega-menu .scroll-down {
    margin-left: 0 !important;
}


/* clear any floats inside the mega menus */

#mega-main-menu .mega-menu > li {
    overflow: auto;
}


/* reset mega menu list/link styles (which are inherited from the SmartMenus core/theme styles) */

#mega-main-menu .mega-menu {
    background-color: #cecece;
}

#mega-main-menu .mega-menu ul {
    position: static;
    display: block;
    margin: 0;
    border: 0;
    padding: 0px 0px 0px 0px;
    width: auto;
    background-color: transparent;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#mega-main-menu .mega-menu ul li {
    display: list-item;
    list-style-type: none;
    border: 0;
    line-height: 3em;
}

#mega-main-menu .mega-menu a {
    display: inline;
    border: 0;
    padding: 10px;
    background-color: transparent;
    text-decoration: none;
    font-family: "Open Sans", "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 1.125em;
    font-weight: 600;
    color: #0078c2;
}

#mega-main-menu .mega-menu a:hover {
    background-color: #b3b3b3;
    color: #ffffff;
}




#mega-main-menu .mega-menu .sub-menu a {
    display: inline;
    border: 0;
    padding: 10px;
    background-color: transparent;
    text-decoration: none;
    font-family: "Open Sans", "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 1.125em;
    font-weight: 400;
    color: #0078c2;
}

#mega-main-menu .mega-menu .sub-menu a:hover {
    background-color: #b3b3b3;
    color: #ffffff;
    text-decoration: none;
}


/* simple columns inside the mega menus */

#mega-main-menu .mega-menu .column-1-3 {
    padding: 20px 30px 30px 30px;
}

@media (min-width: 768px) {
    #mega-main-menu .mega-menu .column-1-3 {
        float: left;
        width: 33.33%;
    }
}


/* Sample image placeholder */

.mega-menu-sample-image {
    margin: 0.83em 0;
    border: 1px solid;
    height: 80px;
    line-height: 80px;
    text-align: center;
}


/* Mobile menu top separator */

#mega-main-menu:before {
    content: '';
    display: block;
    height: 0px;
    font: 0px/0px sans-serif;
    overflow: hidden;
    background: #4b4a73;
}

@media (min-width: 768px) {
    #mega-main-menu:before {
        display: none;
    }
}


/* Mobile menu toggle button - NOT USE ON BAIE D'URFE */

.main-menu-btn {
    float: right;
    margin: 10px;
    position: relative;
    display: inline-block;
    width: 29px;
    height: 29px;
    text-indent: 29px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/* hamburger icon */

.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
    position: absolute;
    top: 50%;
    left: 2px;
    height: 2px;
    width: 24px;
    background: #fff;
    -webkit-transition: all 0.25s;
    transition: all 0.25s;
}

.main-menu-btn-icon:before {
    content: '';
    top: -7px;
    left: 0;
}

.main-menu-btn-icon:after {
    content: '';
    top: 7px;
    left: 0;
}


/* x icon */

#mega-main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
    height: 0;
    background: transparent;
}

#mega-main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
    top: 0;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#mega-main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
    top: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}


/* hide menu state checkbox (keep it visible to screen readers) */

#mega-main-menu-state {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}


/* hide the menu in mobile view */

#mega-main-menu-state:not(:checked) ~ #mega-main-menu {
    display: none;
}

#mega-main-menu-state:checked ~ #mega-main-menu {
    display: block;
}

@media (min-width: 768px) {
    /* hide the button in desktop view */
    #mega-main-menu-state:checked .main-menu-btn {
        position: absolute;
        top: -99999px;
    }
    /* always show the menu in desktop view */
    #mega-main-menu-state:not(:checked) ~ #mega-main-menu {
        display: block;
    }
}