﻿
.chw-header__button {
    background: none;
    border: none;
}

@keyframes dropdown-open {
    from {
        opacity: 0%;
        max-height: 0;
    }

    to {
        opacity: 100%;
        max-height: 160px;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0%;
    }

    to {
        transform: translateY(0);
        opacity: 100%;
    }
}

@keyframes slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0%;
    }

    to {
        transform: translateY(0);
        opacity: 100%;
    }
}

.dropdown-toggle {
    position: relative;
    padding: 10px;
    border-radius: 3px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
    height: fit-content;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 20px;
    background: #00857f;
    width: 100px;
}

.dropdown-toggle.login {
    display: none;
}

@media (min-width: 1024px) {
    .dropdown-toggle.login {
        display: flex;
    }
}

.dropdown-toggle > .open-state, .dropdown-toggle > .close-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    display: block;
}

.dropdown-toggle > input[type="checkbox"]:not(:checked) ~ .open-state {
    display: none;
    animation: slide-up 0.4s;
}

.dropdown-toggle > input[type="checkbox"]:checked ~ .open-state {
    animation: slide-up 0.4s;
    display: flex;
    justify-content: center;
}

.dropdown-toggle > input[type="checkbox"]:not(:checked) ~ .closed-state {
    display: flex;
    justify-content: center;
    animation: slide-down 0.4s;
}

.dropdown-toggle > input[type="checkbox"]:checked ~ .closed-state {
    animation: slide-down 0.4s;
    display: none;
}

.dropdown-toggle > input[type="checkbox"] {
    opacity: 0%;
    z-index: 1;
    margin: 0;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.dropdown {
    display: none;
    overflow: hidden;
    max-height: 0;
    position: absolute;
    top: 100%;
    right: 0;
    width: 330px;
    background: #fff;
    border-top: 4px solid #00857f;
}

.dropdown * {
    color: #002235;
}

.dropdown {
    font-size: 18px;
}

.dropdown h2 {
    text-transform: none;
    font-size: 24px;
    text-align: left;
    font-weight: 700;
    margin: 0;
    margin-bottom: -15px;
}

.dropdown h3 {
    text-transform: none;
    font-size: 12px;
    text-align: left;
    font-weight: 500;
    margin: 0;
}

.dropdown > a {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
    text-decoration: none;
}

.dropdown > a:hover h2 {
    text-decoration: underline;
}

.dropdown svg {
    margin: 15px;
}

.dropdown-toggle svg {
    margin-left: 15px;
}

.dropdown > a > div {
    flex-grow: 1;
}

.dropdown > a > svg.fa-arrow-right {
    transform: translateX(0);
    transition: transform 0.4s;
    margin-right: 30px;
}
.dropdown > a:hover > svg.fa-arrow-right {
    transform: translateX(10px);
    transition: transform 0.4s;
}

input[type="checkbox"]:checked ~ .dropdown {
    display: flex;
    flex-direction: column;
    /*max-height: 1000px;
		height: 400px;
		transition: max-height 0.4s, height 0.4s;*/
    /*opacity: 100%;*/
    /*transition: opacity 0.4s;*/
    animation: dropdown-open 0.3s;
    animation-fill-mode: forwards;
}

.mobile-header-primary {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: #002235;
}

.mobile-header-nav {
    display: flex;
    flex-direction: column;
    background: #002235;
}

.mobile-header-nav[hidden] {
    display: none;
}

@media screen and (min-width: 1024px) {
    .mobile-header-nav {
        display: none;
    }
    .mobile-header {
        display: none;
    }
}

.mobile-header-search {
    position: relative;
    margin: 16px;
}

.navigation-mobile {
    width: 100%;
    padding: 0;
    margin: 0;
}

.navigation-mobile-heading {
    display: block;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    position: relative;
    cursor: pointer;
    color: #fff;
    padding: 0 27px 0 16px;
    margin: 0;
    /*background: #002235;*/
    display: flex;
    flex-direction: row;
    align-items: center;
}

.chw-header {
    max-height: 100vh;
    height: fit-content;
    overflow-y: auto;
    z-index: 16;
    scrollbar-width: none;
}

.chw-header::-webkit-scrollbar {
    background: transparent;
    width: 0px;
}

@media screen and (min-width: 1024px) {
    .chw-header {
        max-height: initial;
        overflow-y: initial;
    }
}

.mobile-header-nav h2 {
    font-size: 17px;
    font-weight: 600;
}

.navigation-mobile-heading h2 {
    text-transform: uppercase;
    color: #fff;
    flex-grow: 1;
    margin: 0;
    padding-block: 5px;
}

.navigation-mobile-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, auto));
    column-gap: 32px;
    padding-inline: 16px;
    background: #fff;
}

.navigation-mobile > li.open {
    border-top: 4px solid #bfeb30;
    background: white;
}

.navigation-mobile > li.open h2 {
    color: #000;
}

.navigation-mobile > li.open .chw-primary-nav__link__chevron {
    color: #002235;
}

.navigation-mobile-content {
    display: none;
}

.navigation-mobile > li.open .navigation-mobile-content {
    display: grid;
}

.navigation-mobile-content li a {
    text-decoration: none;
    width: 100%;
    padding-block: 14px;
}

.navigation-mobile-content a h2 {
    color: #002235;
    line-height: 28px;
    margin-bottom: 7px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    text-decoration: none;
}

.navigation-mobile-content a h2 svg {
    transform: translateX(0);
    transition: transform 0.4s;
}

.navigation-mobile-content a p {
    color: #000;
}

.chw-header {
    position: sticky;
    top: 0;
}

.chw-header .mobile-header-nav .chw-quicklinks__items {
    display: flex;
    flex-direction: column;
}

.chw-header .mobile-header-nav .chw-quicklinks__link {
    font-weight: 600;
}

.chw-header .mobile-header-nav .chw-quicklinks {
    padding-block: 16px;
}

.desktop-header-nav-primary {
    display: flex;
    flex-direction: row;
    background: #002235;
    justify-content: center;
}

.desktop-header-nav {
    display: none;
}

@media screen and (min-width: 1024px) {
    .chw-header .chw-quicklinks__link:hover {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        color: #00857f;
        text-decoration: underline
    }
    .desktop-header-nav {
        display: block;
    }
}

.login {
    width: 100%;
    background: #fff;
    font-size: 18px;
}

.login * {
    color: #002235;
}

.login h2 {
    text-transform: none;
    font-size: 24px;
    text-align: left;
    font-weight: 700;
    margin: 0;
    margin-bottom: -15px;
}

.login h3 {
    text-transform: none;
    font-size: 12px;
    text-align: left;
    font-weight: 500;
    margin: 0;
}

.login > a {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
    text-decoration: none;
}

.login > a:hover h2 {
    text-decoration: underline;
}

.login svg {
    margin: 15px;
}

.login > a > div {
    flex-grow: 1;
}

.login > a > svg.fa-arrow-right {
    transform: translateX(0);
    transition: transform 0.4s;
    margin-right: 30px;
}

.login > a:hover > svg.fa-arrow-right {
    transform: translateX(10px);
    transition: transform 0.4s;
}

.login hr {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}
