#first-menu {
    background: #fff;
    border-radius: 3px;
}

#first-menu a, #first-menu a:hover, #first-menu a:focus, #first-menu a:active {
    padding: 13px 20px;
    padding-right: 58px;
    color: #191919;
    font-size: 0.9em;
    font-weight: normal;
    line-height: 1.1em;
    text-decoration: none;
    position: relative;
}

#first-menu a.current {
    font-weight: bold;
    color: #006A69;
}

#first-menu a.disabled {
    color: #cccccc;
}

#first-menu a .sub-arrow {
    position: absolute;
    top: 50%;
    margin-top: -17px;
    left: auto;
    right: 4px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    font: bold 16px/34px monospace !important;
    text-align: center;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

#first-menu a .sub-arrow::before {
    content: "+";
}

#first-menu a.highlighted .sub-arrow::before {
    content: "-";
}

#first-menu > li:first-child > a, #first-menu > li:first-child > :not(ul) a {
    border-radius: 3px 3px 0 0;
}

#first-menu > li:last-child > a, #first-menu > li:last-child > *:not(ul) a, #first-menu > li:last-child > ul, #first-menu > li:last-child > ul > li:last-child > a, #first-menu > li:last-child > ul > li:last-child > *:not(ul) a, #first-menu > li:last-child > ul > li:last-child > ul, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > a, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul {
    border-radius: 0 0 3px 3px;
}

#first-menu > li:last-child > a.highlighted, #first-menu > li:last-child > *:not(ul) a.highlighted, #first-menu > li:last-child > ul > li:last-child > a.highlighted, #first-menu > li:last-child > ul > li:last-child > *:not(ul) a.highlighted, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted, #first-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted {
    border-radius: 0;
}

#first-menu li {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#first-menu > li:first-child {
    border-top: 0;
}

#first-menu ul {
    background: rgba(205, 229, 250, 0.5);
}

#first-menu ul a, #first-menu ul a:hover, #first-menu ul a:focus, #first-menu ul a:active {
    font-size: 0.9em;
    border-left: 8px solid transparent;
    white-space: normal;
}

#first-menu ul ul a,
#first-menu ul ul a:hover,
#first-menu ul ul a:focus,
#first-menu ul ul a:active {
    border-left: 16px solid transparent;
}

#first-menu ul ul ul a,
#first-menu ul ul ul a:hover,
#first-menu ul ul ul a:focus,
#first-menu ul ul ul a:active {
    border-left: 24px solid transparent;
}

#first-menu ul ul ul ul a,
#first-menu ul ul ul ul a:hover,
#first-menu ul ul ul ul a:focus,
#first-menu ul ul ul ul a:active {
    border-left: 32px solid transparent;
}

#first-menu ul ul ul ul ul a,
#first-menu ul ul ul ul ul a:hover,
#first-menu ul ul ul ul ul a:focus,
#first-menu ul ul ul ul ul a:active {
    border-left: 40px solid transparent;
}

@media (max-width: 767px) {
    #first-menu ul a:hover, #first-menu ul a:focus, #first-menu ul a:active, #first-menu ul a.highlighted {
        background: rgba(179, 179, 179, 0.1) !important;
        color: #191919 !important;
    }
}

@media (min-width: 768px) {
    #first-menu ul {
        position: absolute;
        width: 12em;
    }
    
    #first-menu li {
        float: left;
    }
    
    #first-menu.sm-rtl li {
        float: right;
    }
    
    #first-menu ul li, #first-menu.sm-rtl ul li, #first-menu.sm-vertical li {
        float: none;
    }
    
    #first-menu a {
        white-space: nowrap;
    }
    
    #first-menu ul a, #first-menu.sm-vertical a {
        white-space: normal;
    }
    
    #first-menu .sm-nowrap > li > a, #first-menu .sm-nowrap > li > :not(ul) a {
        white-space: nowrap;
    }
    
    #first-menu {
        padding: 0 10px;
        background: transparent;
    }
    
    #first-menu a, #first-menu a:hover, #first-menu a:focus, #first-menu a:active, #first-menu a.highlighted {
        padding: 12px 10px;
        color: #fff;
        border-radius: 0 !important;
    }
    
    #first-menu a:hover, #first-menu a:focus, #first-menu a:active, #first-menu a.highlighted {
        color: #EE8208;
    }
    
    #first-menu a.current {
        color: #EE8208;
        font-weight: bold;
    }
    
    a[aria-current="page"] {
        color: #EE8208 !important;
    }
    
    #first-menu a.disabled {
        color: #e5e5e5;
    }
    
    #first-menu a.has-submenu {
        padding-right: 22px;
    }
    
    #first-menu a .sub-arrow {
        top: 50%;
        margin-top: -8px;
        right: 10px;
        width: 8px;
        height: 16px;
        font: 14px/16px monospace !important;
        background: transparent !important;
        border-radius: 0;
    }
    
    #first-menu a .sub-arrow::before {
        content: url(../../../images/down.png);
    }
    
    #first-menu a.highlighted .sub-arrow::before {
        content: url(../../../images/up.png);
    }
    
    #first-menu ul a .sub-arrow::before,
    #first-menu ul a.highlighted .sub-arrow::before {
        content: url(../../../images/right.png);
    }
    
    #first-menu li {
        border-top: 0;
    }
    
    #first-menu > li > ul::before,
    #first-menu > li > ul::after {
        content: "";
        position: absolute;
        top: -16px;
        left: 30px;
        width: 0;
        height: 0;
        overflow: hidden;
        border-width: 8px;
        border-style: dashed dashed solid dashed;
        border-color: transparent transparent #fff transparent;
    }
    
    #first-menu > li > ul::after {
        top: -14px;
        left: 31px;
        border-width: 7px;
        border-color: transparent transparent #fff transparent;
    }
    
    #first-menu ul {
        border: 1px solid #006A69;
        padding: 5px 0;
        background: #fff;
        border-radius: 3px !important;
        box-shadow: 0 5px 9px rgba(0, 0, 0, 0.1);
    }
    
    #first-menu ul a, #first-menu ul a:hover, #first-menu ul a:focus, #first-menu ul a:active, #first-menu ul a.highlighted {
        border: 0 !important;
        padding: 10px 20px;
        color: #191919;
    }
    
    #first-menu ul a:hover, #first-menu ul a:focus, #first-menu ul a:active, #first-menu ul a.highlighted {
        background: #006A69 !important;
        color: #EE8208 !important;
    }
    
    #first-menu ul a.current {
        color: #EE8208;
        font-weight: bold;
    }
    
    #first-menu ul a.disabled {
        background: #fff;
        color: #cccccc;
    }
    
    #first-menu ul a.has-submenu {
        padding-right: 20px;
    }
    
    #first-menu .scroll-up,
    #first-menu .scroll-down {
        position: absolute;
        display: none;
        visibility: hidden;
        overflow: hidden;
        background: #fff;
        height: 20px;
    }
    
    #first-menu .scroll-up:hover,
    #first-menu .scroll-down:hover {
        background: #fff;
    }
    
    #first-menu .scroll-up:hover .scroll-up-arrow {
        border-color: transparent transparent #006A69 transparent;
    }
    
    #first-menu .scroll-down:hover .scroll-down-arrow {
        border-color: #006A69 transparent transparent transparent;
    }
    
    #first-menu .scroll-up-arrow,
    #first-menu .scroll-down-arrow {
        position: absolute;
        top: 0;
        left: 50%;
        margin-left: -6px;
        width: 0;
        height: 0;
        overflow: hidden;
        border-width: 6px;
        border-style: dashed dashed solid dashed;
        border-color: transparent transparent #191919 transparent;
    }
    
    #first-menu .scroll-down-arrow {
        top: 8px;
        border-style: solid dashed dashed dashed;
        border-color: #191919 transparent transparent transparent;
    }
    
    #first-menu.sm-rtl a.has-submenu {
        padding-right: 12px;
        padding-left: 26px;
    }
    
    #first-menu.sm-rtl a .sub-arrow {
        right: auto;
        left: 12px;
    }
    
    #first-menu.sm-rtl.sm-vertical a.has-submenu {
        padding: 10px 20px;
    }
    
    #first-menu.sm-rtl.sm-vertical a .sub-arrow {
        right: auto;
        left: 8px;
        border-style: dashed solid dashed dashed;
        border-color: transparent #191919 transparent transparent;
    }
    
    #first-menu.sm-rtl > li > ul::before {
        left: auto;
        right: 30px;
    }
    
    #first-menu.sm-rtl > li > ul::after {
        left: auto;
        right: 31px;
    }
    
    #first-menu.sm-rtl ul a.has-submenu {
        padding: 10px 20px !important;
    }
    
    #first-menu.sm-rtl ul a .sub-arrow {
        right: auto;
        left: 8px;
        border-style: dashed solid dashed dashed;
        border-color: transparent #191919 transparent transparent;
    }
    
    #first-menu.sm-vertical {
        padding: 10px 0;
        border-radius: 3px;
    }
    
    #first-menu.sm-vertical a {
        padding: 10px 20px;
    }
    
    #first-menu.sm-vertical a:hover, #first-menu.sm-vertical a:focus, #first-menu.sm-vertical a:active, #first-menu.sm-vertical a.highlighted {
        background: #fff;
    }
    #first-menu.sm-vertical a.disabled {
        background: #fff;
    }
    
    #first-menu.sm-vertical a .sub-arrow {
        right: 8px;
        top: 50%;
        margin-top: -5px;
        border-width: 5px;
        border-style: dashed dashed dashed solid;
        border-color: transparent transparent transparent #191919;
    }
    
    #first-menu.sm-vertical > li > ul::before,
    #first-menu.sm-vertical > li > ul::after {
        display: none;
    }
    
    #first-menu.sm-vertical ul a {
        padding: 10px 20px;
    }
    
    #first-menu.sm-vertical ul a:hover, #first-menu.sm-vertical ul a:focus, #first-menu.sm-vertical ul a:active, #first-menu.sm-vertical ul a.highlighted {
        background: #fff;
    }
    
    #first-menu.sm-vertical ul a.disabled {
        background: #fff;
    }
}

@media screen and (min-width: 992px) and (max-width: 1280px) {
    
    #first-menu a, #first-menu a:hover, #first-menu a:focus, #first-menu a:active, #first-menu a.highlighted {
        padding: 12px 5px;
        font-size: 0.8em;
    }
    
    #first-menu a.has-submenu {
        padding-right: 12px;
    }
    
    #first-menu a .sub-arrow {
        right: 3px;
    }
}