  /* ==========================================================================
   Main Navigation
   ========================================================================== */

.nav-menu {
    position: relative;
    z-index: 15;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Droid Arabic Kufi", Tahoma;
}


/* ==========================================================================
   Top-Level Navigation Items
   ========================================================================== */

ul#site-main-menu .nav-item {
    display: inline-block;
    padding: 0;
    border-left: 1px solid #999999;
    list-style: none;
}

#site-main-menu .nav-item > a {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 0.5em 1em;
    color: #ffffff;
    font-size: 0.98em;
    text-decoration: none;
}

#site-main-menu .nav-item > a:focus,
#site-main-menu .nav-item > a.open {
    color: #ffffff;
    background-color: #000000;
}

#site-main-menu .nav-item > a.open {
    z-index: 1;
}


/* ==========================================================================
   Navigation Icons
   ========================================================================== */

/*
 * Scoped to the main menu so Font Awesome icons elsewhere on the page
 * are not positioned by this navigation stylesheet.
 */
#site-main-menu .fa {
    position: absolute;
    bottom: -1px;
    left: 3px;
    padding-top: 3px;
}


/* ==========================================================================
   Search Navigation Item
   ========================================================================== */

.search-btn-in-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    margin-left: 7px;
    padding-top: 6px;
    border: none;
    border-radius: 0 !important;
    background-color: #4d4d4d;
}

#site-main-menu #li-search .sub-nav {
    left: -2px;
    margin-top: 27px;
}

.search-container {
    display: none;
}


/* ==========================================================================
   Sub-Navigation Panel
   ========================================================================== */

.sub-nav {
    position: absolute;
    display: none;

    /*
     * Preserves the original RTL-oriented spacing:
     * top: 0.7em
     * right: 5px
     * bottom: 0.7em
     * left: 1em
     */
    padding: 0.7em 5px 0.7em 1em;

    border: 1px solid #dedede;
    background-color: #cccccc;
    font-size: 0.8em;
}

.sub-nav.open {
    z-index: 5;
    display: block;
    min-width: 200px;
}


/* ==========================================================================
   Sub-Navigation Lists
   ========================================================================== */

.sub-nav ul {
    display: inline-block;
    margin: 0 0.25em 0 0;
    padding: 0;
    vertical-align: top;
}

.sub-nav li {
    display: block;
    margin: 10px 0;
    padding: 0;
    list-style-type: none;
    font-weight: 100;
}

#site-main-menu .sub-nav li a {
    padding: 3px;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

#site-main-menu .sub-nav li a:hover,
#site-main-menu .sub-nav li a:focus {
    text-decoration: underline;
}


/* ==========================================================================
   Sub-Navigation Headings and Non-Link Items
   ========================================================================== */

.sub-nav li.nolink {
    color: #000000;
    border-bottom: 1px solid #ffffff;
    font-weight: bold;
}

.sub-nav li.nolink ul li {
    padding-right: 3px;
}


/* ==========================================================================
   Navigation Container and Mobile Menu Button
   ========================================================================== */

nav[role="navigation"] {
    transition: all 0.3s ease-out;
}

button.menu-link {
    position: relative;
    z-index: 999;
    display: block;
    float: right;
    margin: 5px 15px;
    border: none;
    background: transparent;
}

.pattern {
    background-color: #4d4d4d;
}

.navbar {
    min-height: 0;
}

.icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    border-radius: 1px;
    background-color: #ffffff;
}

.menu-active {
    display: block;
}


/* ==========================================================================
   Side Menu
   ========================================================================== */

.site-sidemenu {
    margin-top: 10px;
    padding: 3%;
    background-color: #eae8e5;
}

.site-sidemenu ul {
    list-style: none;
}

.site-sidemenu a {
    color: #000000;
}


/* ==========================================================================
   Active States
   ========================================================================== */

/*
 * The main-menu scope provides sufficient specificity without requiring
 * !important declarations.
 */
#site-main-menu .active_me {
    color: #000000;
    background-color: #cccccc;
}

#site-main-menu .active_sub {
    color: #0698c9;
    font-weight: bold;
}


/* ==========================================================================
   Desktop Navigation
   ========================================================================== */

@media (min-width: 769px) {
    .sub-nav {
        position: absolute;
    }

    .nav-menu {
        display: block;
    }

    button.menu-link {
        display: none;
    }
}


/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

@media (max-width: 768px) {
    /*
     * Static positioning places mobile submenus in the normal page flow.
     * This is more predictable than inheriting the parent's position value.
     */
    .sub-nav {
        position: static;
    }

    .nav-menu {
        display: none;
    }

    .menu-active {
        display: block;
    }

    #site-main-menu #li-search .sub-nav {
        left: 0;
        margin-top: 0;
    }
}