﻿.__nav li {
    list-style: none;
}

.__nav a, .__nav label {
    display: block;
    padding: 10px 25px;
    margin: 0;
    color: #144339;
    font-size: 15px;
    font-weight: 400;
    background-color: #fff;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
}

    .__nav a:focus, .__nav a:hover, .__nav label:focus, .__nav label:hover { 
        background-color: #fbfbfb;
    }
    .__nav li.active a {
        color: #d5682e;
        background-color: #eaeaea;
        /*font-weight: 500;*/
    }

.__nav label {
    cursor: pointer;
}

/**
 * Styling first level lists items
 */

.group-list a, .group-list label {
    font-weight: 300;
    font-size: 14px;
    padding: 8px 25px 8px 58px;
    background-color: #fcfcfc;
}

    .group-list a:focus, .group-list a:hover, .group-list label:focus, .group-list label:hover { 
        background-color: #f6f6f6;
    }

/**
 * Styling second level list items
 */

.sub-group-list a, .sub-group-list label {
    font-size: 13px;
    font-weight: 300;
    padding: 8px 25px 8px 76px;
    background-color: #f8f8f8;
}

    .sub-group-list a:focus, .sub-group-list a:hover, .sub-group-list label:focus, .sub-group-list label:hover {
        /*color: #45b19b;*/
        background-color: #eaeaea;
    } 

/**
 * Styling third level list items
 */

.sub-sub-group-list a, .sub-sub-group-list label {
    padding-left: 6rem;
    background: #454545;
    box-shadow: inset 0 -1px #575757;
}

    .sub-sub-group-list a:focus, .sub-sub-group-list a:hover, .sub-sub-group-list label:focus, .sub-sub-group-list label:hover {
        background: #000333;
    }

/**
 * Hide nested lists
 */

.group-list, .sub-group-list, .sub-sub-group-list {
    height: 100%;
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height .4s ease-in-out;
    transition: max-height .4s ease-in-out;
}

.nav__list input[type=checkbox]:checked + label + ul { /* reset the height when checkbox is checked */
    max-height: 1000px;
}

/**
 * Rotating chevron icon
 */

.__nav label > span {
    float: right;
    -webkit-transition: -webkit-transform .4s ease;
    transition: transform .4s ease;
}

.nav__list input[type=checkbox] + label > span {
    font-size: 18px;
    margin-top: 2px;
}

.nav__list input[type=checkbox]:checked + label > span {
    margin-top: 2px;
    font-size: 18px;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}
