/* ==========================================
   Vigilant Controls - Mobile Navigation Fix
   Screen width: 767px and below
========================================== */

@media screen and (max-width: 767px) {

    /* Navigation container */
    .navigation-top {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto;
        right: auto;
        width: 100%;
        z-index: 99999;
    }

    .navigation-top .wrap {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto;
    }

    /* Main navigation */
    .navigation-top #site-navigation.main-navigation {
        display: block !important;
        width: 100%;
        clear: both;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    /* Hamburger toggle button */
    .navigation-top .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 12px 15px;
        color: #ffffff;
        border: 0;
        border-radius: 0;
        font-size: 16px;
        cursor: pointer;
    }

    .navigation-top .menu-toggle svg {
        fill: currentColor;
    }

    /* Hide menu until hamburger is clicked */
    .navigation-top .menu-top-menu-container {
        display: none !important;
        width: 100%;
        background: #ffffff;
        position: absolute;
        left: 0;
        padding: 0 10px 15px 10px;
        top: 130px;
    }

    /* Display menu when expanded */
    .navigation-top #site-navigation.toggled-on
    .menu-top-menu-container {
        display: block !important;
    }

    /* Main menu */
    .navigation-top #top-menu {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        background: #ffffff;
    }

    .navigation-top #top-menu > li {
        display: block;
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #eeeeee;
    }

    .navigation-top #top-menu > li > a {
        display: block;
        width: 100%;
        padding: 13px 55px 13px 15px;
        color: #064783;
        font-size: 15px;
        line-height: 1.5;
        text-decoration: none;
    }

    /* Dropdown toggle */
    .navigation-top #top-menu .dropdown-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 45px;
        height: 48px;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        color: #064783;
        cursor: pointer;
    }

    /* Submenu hidden by default */
    .navigation-top #top-menu .sub-menu {
        display: none !important;
        position: static !important;
        float: none !important;
        width: 100%;
        margin: 0;
        padding: 0 0 0 15px;
        background: #f5f7fa;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    /* Display expanded submenu */
    .navigation-top #top-menu .sub-menu.toggled-on {
        display: block !important;
    }

    .navigation-top #top-menu .sub-menu li {
        display: block;
        width: 100%;
        margin: 0;
        border-top: 1px solid #e5e5e5;
    }

    .navigation-top #top-menu .sub-menu li a {
        display: block;
        padding: 12px 15px;
        color: #064783;
        font-size: 14px;
    }

    /* Remove desktop hover behavior */
    .navigation-top #top-menu li:hover > .sub-menu {
        display: none;
    }

    .navigation-top #top-menu li:hover > .sub-menu.toggled-on {
        display: block !important;
    }

    /* Keep navigation above hero content */
    .navigation-top,
    .navigation-top #site-navigation {
        z-index: 99999;
    }

    .navigation-top nav.toggled-on .menu-toggle {
        left: 0;
    }
    .navigation-top .wrap, .navigation-top {
        position: unset !important;
    }
    .toggled-on .menu-toggle .icon-close {
        position: absolute;
        top: 30%;
        transform: translateY(-50%);
    }
    .navigation-top nav.toggled-on .menu-toggle {
        position: relative;
    }
}

@media screen and (max-width: 639px) {
.navigation-top .menu-top-menu-container {
    top: 160px;
}
}