﻿#tmenu {
    position: sticky;
    top: 0; /* stick to top */
    z-index: 9999; /* stay above content */
    border: none;
    border: 0;
    margin: 0;
    padding: 0;
    width: auto;
    margin-left:3%;
}

    #tmenu > ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

    #tmenu ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        display: none;
        flex-direction: column;
        min-width: 290px;
        border-radius: 0;
        padding: 0;
        z-index: 1000;
    }

    #tmenu ul {
        z-index: 90;
        margin: 0;
        padding: 0;
        list-style-type: none
    }

        #tmenu ul ul a {
            line-height: 20px
        }

        #tmenu ul ul ul {
            margin-top: 0
        }

    #tmenu li {
        float: left;
        position: relative;
    }

        #tmenu li a {
            font-family: "Lato", sans-serif;
            text-decoration: none;
            color: #002147;
            font-weight: normal;
            font-size: 12px;
            padding: 4px 5px;
            margin-right:2px;
            display: block;
            transition: all 0.3s ease;
            border-radius: 6px;
        }

            #tmenu li a:hover {
                color: #fff;
                background-color: #3c6fb4;
            }

    #tmenu ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        display: none;
        flex-direction: column;
        min-width: 290px;
        border-radius: 0;
        padding: 0;
        z-index: 1000;
    }

    #tmenu li ul {
        display: none;
        height: auto;
        opacity: .95;
        position: absolute;
        width: auto
    }

    #tmenu li:hover > ul {
        position: absolute;
        color: #fff;
        width: auto
    }

    #tmenu li li {
        display: block;
        float: none;
        position: relative;
        color: #fff;
        width: auto;
        height: 32px
    }

    #tmenu li ul a {
        width: auto;
        background-color: #000;
        background: 0 0;
        color: #009;
    }

        #tmenu li ul a:hover {
            background-color: #022f6b;
            color: #fff;
            width: auto;
            outline: 0 none;
        }

    #tmenu p {
        clear: left
    }



#thornav {
    z-index: 21
}

.is-sticky #thornav {
    z-index: 21
}

#thornav {
    width: 100%;
    color: #333
}

    #thornav .container {
        background-color: #000;
        box-shadow: 0 -4px 0 #33747a inset,0 0 20px rgba(0,0,0,.1);
        min-height: 30px;
        display: block;
        color: #333
    }

    #thornav .navbar-nav {
        float: none
    }

    #thornav .no-padding {
        padding-bottom: 0 !important
    }

    #thornav ul#tthornavmenu {
        display: inline-block;
        padding: 0
    }

        #thornav ul#tthornavmenu > li {
            margin: 0;
            color: #333
        }

            #thornav ul#tthornavmenu > li > a, #thornav ul#tthornavmenu > li > span {
                color: #009;
                text-transform: uppercase;
                font-weight: 400;
                letter-spacing: 1px;
                line-height: normal;
                text-align: center;
                display: block
            }

    #thornav ul ul {
        text-align: left;
        position: relative;
        color: #009;
        display: block;
        list-style: none;
        margin: 5px;
       
        min-width: 250px;
        font-size: 14px;
        z-index: 10
    }

        #thornav ul ul li, #thornav ul ul li span {
            box-shadow: none;
            display: block;
            padding: 0;
            color: #009;
            text-transform: none;
            border-top: 1px solid rgba(0,0,0,.05)
        }

            #thornav ul ul li:first-child a {
                border: none
            }

            #thornav ul ul li a:active, #thornav ul ul li a:focus, #thornav ul ul li a:hover {
                text-decoration: none
            }

            #thornav ul ul li:hover a {
                text-decoration: none
            }

        #thornav ul ul ul:before {
            display: none
        }

    #thornav li ul, #thornav li ul li ul {
        position: absolute;
        width: 250px;
        color: #009;
        background-color: #eee;
        visibility: hidden;
        transition: all 240ms linear
    }

        #thornav li ul li:hover > ul, #thornav li:hover > ul {
            display: block;
            opacity: 1;
            visibility: visible
        }

        #thornav li ul li ul {
            left: 250px;
            top: 0
        }

        #thornav li ul li:hover > ul {
            top: 0;
            color: #000
        }

    #thornav ul ul .parent:after {
        right: 15px;
        color: #000;
        position: absolute;
        font-weight: 400;
        display: inline-block
    }

@media(min-width:480px) {
    thornav {
        display: none
    }
}

@media (max-width: 768px) {

    /* Hide the desktop horizontal menu completely */
    #tmenu,
    #tmenu > ul,
    #thornav,
    #tthornavmenu,
    #thornav ul,
    #thornav ul#tthornavmenu {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Ensure slicknav menu displays properly */
    .slicknav_menu {
        display: block !important;
        background-color: #002147;
        z-index: 9999;
    }

    /* Adjust SlickNav text and background for clarity */
    .slicknav_nav a {
        color: #fff !important;
        background: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-weight: 600;
    }

        .slicknav_nav a:hover {
            background-color: #3c6fb4 !important;
            color: #fff !important;
        }
}

/* Hide SlickNav on desktop */
@media (min-width: 769px) {
    .slicknav_menu {
        display: none !important;
    }
}
