/* ============================================
   MENU DESIGN 3 - OPEN
   Main navigation CSS for #cssmenu
   (Desktop menu - dark bar with orange first item)
============================================ */

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#cssmenu:after,
#cssmenu > ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

#cssmenu #menu-button {
    display: none;
}

#cssmenu {
    width: auto;
    font-family: 'Mukta', 'Open Sans', Helvetica, sans-serif;
}

/* ===== Top-level list items ===== */
#cssmenu > ul > li {
    float: left;
    display: inline-block;
}

/* ===== Top-level links ===== */
#cssmenu > ul > li > a {
    color: #cce0ee;
    font: 500 17px 'Mukta', sans-serif;
    padding: 13px 17px;
    text-decoration: none;
    display: block;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.18s ease, color 0.18s ease;
}

/* ===== First item - orange highlight (समाचार) ===== */
#cssmenu > ul > li:first-child > a {
    background: #ed553b;
    color: #ffffff;
    font-weight: 700;
}

#cssmenu > ul > li:first-child:hover > a {
    background: #d4452b;
    color: #ffffff;
}

/* ===== Hover & active states ===== */
#cssmenu > ul > li:hover > a,
#cssmenu > ul > li > a:hover,
#cssmenu > ul > li.active > a {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* ===== has-sub arrow ===== */
#cssmenu > ul > li.has-sub > a {
    padding-right: 38px;
}

#cssmenu > ul > li.has-sub > a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: rgba(204, 224, 238, 0.7);
    right: 15px;
    top: 20px;
}

#cssmenu > ul > li.has-sub:hover > a::after {
    border-top-color: #ffffff;
}

/* ===== Dropdown submenu ===== */
#cssmenu ul ul {
    position: absolute;
    left: -9999px;
    top: 30px !important;
    padding-top: 4px;
    opacity: 0;
    -webkit-transition: top 0.2s ease, opacity 0.2s ease-in;
    -moz-transition: top 0.2s ease, opacity 0.2s ease-in;
    transition: top 0.2s ease, opacity 0.2s ease-in;
    z-index: 9999;
}

#cssmenu > ul > li > ul::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-bottom-color: #ffffff;
    top: -2px;
    left: 18px;
}

#cssmenu > ul > li > ul {
    top: 120px;
}

#cssmenu > ul > li:hover > ul {
    top: 46px !important;
    left: 0;
    opacity: 1;
}

#cssmenu ul ul ul {
    padding-top: 0;
    padding-left: 6px;
}

#cssmenu ul ul > li:hover > ul {
    left: 200px;
    top: 0;
    opacity: 1;
}

/* ===== Dropdown item links ===== */
#cssmenu ul ul li a {
    color: #242424;
    background: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.10), 1px 1px 2px rgba(0, 0, 0, 0.07);
    font: 400 17px 'Mukta', sans-serif;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    text-decoration: none;
    padding: 10px 22px;
    width: 200px;
    transition: color 0.15s ease, background 0.15s ease;
}

#cssmenu ul ul li:hover > a,
#cssmenu ul ul li.active > a {
    color: #ed553b;
    background: #fff8f7;
}

#cssmenu ul ul li:first-child > a {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

#cssmenu ul ul li:last-child > a {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom: none;
}

/* ===== has-sub in dropdown ===== */
#cssmenu ul ul li.has-sub > a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-left-color: #aaaaaa;
    right: 14px;
    top: 13px;
}

#cssmenu ul ul li.has-sub:hover > a::after {
    border-left-color: #ed553b;
}

/* ============================================
   MENU DESIGN 3 - CLOSE
============================================ */




/* ============================================
   MOBILE MENU (unchanged - do not edit)
============================================ */
@media all and (max-width: 800px),
    only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px),
    only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px),
    only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px),
    only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px),
    only screen and (min-resolution: 192dpi) and (max-width: 1024px),
    only screen and (min-resolution: 2dppx) and (max-width: 1024px) {

    #cssmenu {
        background: #173f5f;
    }

    #cssmenu > ul {
        display: none;
    }

    #cssmenu > ul.open {
        display: block;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    #cssmenu.align-right > ul {
        float: none;
    }

    #cssmenu.align-center > ul {
        text-align: left;
    }

    #cssmenu > ul > li,
    #cssmenu.align-right > ul > li {
        float: none;
        display: block;
    }

    #cssmenu > ul > li > a {
        color: #ffffff;
        padding: 16px 25px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    #cssmenu > ul > li:first-child > a {
        background: #ed553b;
    }

    #cssmenu > ul > li:hover > a,
    #cssmenu > ul > li.active > a {
        background: rgba(255, 255, 255, 0.1);
    }

    #cssmenu #menu-button {
        display: block;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        color: #cce0ee;
        padding: 15px 25px;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: #173f5f;
        cursor: pointer;
    }

    #cssmenu ul ul,
    #cssmenu ul li:hover > ul,
    #cssmenu > ul > li > ul,
    #cssmenu ul ul ul,
    #cssmenu ul ul li:hover > ul {
        left: 0;
        right: auto;
        top: auto;
        opacity: 1;
        width: 100%;
        padding: 0;
        position: relative;
        text-align: left;
    }

    #cssmenu ul ul li { width: 100%; }

    #cssmenu ul ul li a {
        width: 100%;
        box-shadow: none;
        padding-left: 35px;
        border-radius: 0 !important;
    }

    #cssmenu ul ul ul li a {
        padding-left: 45px;
    }

    #cssmenu #menu-button::after {
        display: block;
        content: '';
        position: absolute;
        height: 3px;
        width: 22px;
        border-top: 2px solid #cce0ee;
        border-bottom: 2px solid #cce0ee;
        right: 25px;
        top: 17px;
    }

    #cssmenu #menu-button::before {
        display: block;
        content: '';
        position: absolute;
        height: 3px;
        width: 22px;
        border-top: 2px solid #cce0ee;
        right: 25px;
        top: 27px;
    }

    #cssmenu > ul > li.has-sub > a::after,
    #cssmenu ul ul li.has-sub > a::after {
        display: none;
    }
}
