.nav-container {
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    margin: -1px 30px 0 0;
    padding: 0px;
    cursor: pointer;
}

.nav-item__header {
    display: flex;
    width: 100%;
    color: #fff;
    letter-spacing: 0.03em;
}

.nav-item:focus {
    outline: #4d90fe solid 3px;
    /*outline-offset: 6px;*/
}

.nav-item-list {
    display: none;
    position: absolute;
    flex-direction: column;
    top: 78px;
    width: 300px;
    padding-top: 10px;
    background-color: #006ba6;
}

    .nav-item-list > a {
        margin: 0;
        padding: 8px 0 8px 16px;
        align-items: center;
        font-size: 16px;
        line-height: 20px;
        color: #fff !important;
        text-decoration: none !important;
        outline: 0;
        font-family: 'Proxima Nova', Arial, sans-serif;
    }

        .nav-item-list > a:hover,
        .related-links > a:hover,
        .related-links-mobile > a:hover {
            background-color: #0a5584;
            color: #fff !important;
            text-decoration: none;
            border-bottom: none;
        }

.related-links,
.related-links-mobile {
    display: flex;
    flex-direction: column;
    width: 300px;
    /*padding: 0 0 10px 16px;*/
    background-color: #006ba6;
    font-size: 14px;
    font-weight: 300;
    color: #fff !important;
}

    .related-links > a,
    .related-links-mobile > a {
        display: flex;
        /*height: 35px;*/
        margin: 0;
        padding: 0px;
        align-items: center;
        font-size: .9em;
        line-height: 20px;
        color: #fff !important;
        text-decoration: none !important;
        outline: 0;
    }

    .related-links > span {
        padding-top: 12px;
        padding-bottom: 5px;
    }

    .related-links-mobile > a {
        padding-left: 20px;
    }

.visible {
    display: flex !important;
}

.invisible {
    display: none !important;
}

@media (min-width: 768px) {

    .nav-item__header {
        padding:  8px 0px 8px 0px;
    }

    .nys-global-header {
        display: block !important;
    }

    .nav-viewer {
        display: flex;
    }

    .nav-container {
        padding-left: 30px;
    }

    .nav-item-list {
        top: 99px;
    }
        .nav-item-list > a {
        font-size: 12px;
        line-height: 17px;
    }

    .related-links > a,
    .related-links-mobile > a {
        font-size: 12px;
        line-height: 17px;
        padding: 8px 0px 8px 16px;
    }

    .related-links > span {
        padding: 8px 0px 8px 16px;
        font-size: 12px;
        line-height: 17px;
    }
}

@media (min-width: 1023px) {

    .nys-global-header {
        display: flex !important;
    }

    .nav-container {
        padding-left: 4px;
    }

    .nav-viewer {
        display: flex;
    }

    .nav-item-list {
        display: none;
        position: absolute;
        flex-direction: column;
        top: 78px;
        width: 300px;
        padding-top: 10px;
        background-color: #006ba6;
    }

        .nav-item-list > a {
            margin: 0;
            padding: 8px 0 8px 16px;
            align-items: center;
            font-size: 16px;
            line-height: 20px;
            color: #fff !important;
            text-decoration: none !important;
            outline: 0;
            font-family: 'Proxima Nova', Arial, sans-serif;
        }

    .related-links {
        padding-bottom:5px;
    }

    .related-links > a,
    .related-links-mobile > a {
        font-size: 14px;
        line-height: 20px;
    }

    .related-links > span {
        font-size: 14px;
        line-height: 20px;
    }

}

@media (max-width: 767px) {

    .nav-viewer {
        display: none;
    }

    .nys-global-header h1{
        position: absolute;
        left: 65px;
        top: 30px;
    }

    .nav-container {
        display: none;
        padding: 0;
        margin: 0;
        align-items: center;
        flex-direction: column;
        position: absolute;
        background-color: #006ba6;
        top: 84px;
        width: 255px;
    }

    .nav-container-related-mobile {
        background-color: #006ba6;
        width: 255px;
    }

    .nav-item-list {
        display: none;
        flex-direction: column;
        background-color: #006ba6;
        position: absolute;
        top: 75px;
        width: 255px;
        z-index: 1;
        padding-top: 0px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        margin: 0 0px 0 0;
        padding: 0px;
        cursor: pointer;
        width: 255px;
        /*height: 75px;*/
        justify-content: center;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #0085ad;
    }

        .nav-item:focus {
            outline: #4d90fe solid 3px;
            outline-offset: -5px;
        }

    .nav-item-list > a {
        height: auto;
        margin: 0;
        padding: 20px 35px 20px 30px;
        align-items: center;
        font-size: 14px;
        line-height: 20px;
        color: #fff !important;
        text-decoration: none;
        outline: 0;
        font-family: 'Proxima Nova', Arial, sans-serif;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #0085ad;
    }

        .nav-item-list > a:last-of-type {
            display: inline !important;
        }

        .nav-item-list > a:hover,
        .related-links > a:hover,
        .nav-item__header:hover,
        .related-links-mobile span:hover {
            background-color: #0a5584;
            color: #fff !important;
            text-decoration: none;
        }

    .nav-item__header {
        display: flex;
        width: 100%;
        color: #fff !important;
        padding: 20px 0 20px 30px;
        letter-spacing: 0.018em;
    }

    .related-links,
    .related-links-mobile {
        padding-left: 20px !important;
    }

        .related-links span,
        .related-links-mobile span {
            padding: 20px 0 20px 30px !important;
            font-weight: bold;
        }

    .related-links,
    .related-links-mobile {
        display: flex;
        width: 255px;
        flex-direction: column;
        padding: 0px !important;
        background-color: #006ba6;
        font-size: 14px;
        font-weight: 300;
        color: #fff !important;
    }

        .related-links > a,
        .related-links-mobile > a {
            padding: 20px 0px 20px 30px !important;
        }

    .mobile-item--active {
        display: flex;
        align-items: center;
        padding-left: 49px;
        background-color: #006ba6;
        color: #4892bc;
    }

    .mobile-item--not-active:after {
        background-image: url('../../icons/icon-arrow-right.png');
        background-image: linear-gradient(transparent, transparent), url('../../icons/icon-arrow-right.svg');
        background-size: 16px;
        background-repeat: no-repeat;
        width: 2em;
        height: 1.2em;
        content: '';
        position: absolute;
        right: 5px;
        margin-top: 10px; /* Pete C. help */
    }

    .mobile-item--active:before {
        background-image: url('../../icons/icon-arrow-left.png');
        background-image: linear-gradient(transparent, transparent), url('../../icons/icon-arrow-left.svg');
        background-size: 16px;
        background-repeat: no-repeat;
        width: 2em;
        height: 1.2em;
        display: inline-block;
        content: '';
        position: absolute;
        left: 19px;
        margin-top: 1px;
    }

    div.visible > div.related-links,
    div.invisible > div.related-links-mobile {
        display: none;
    }
}
