/* Navbar */
a.nav-link {
    color: $light-grey;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    @media only screen and (min-width: 992px) and (max-width: 1200px) {
        font-size: 0.7rem;
    }
    @media only screen and (min-width: 1200px) {
        font-size: 0.725rem;
    }
    @media only screen and (min-width: 1400px) {
        font-size: 0.9rem;
    }
    @include media-breakpoint-up(md) {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    &:hover {
        color: #8CBEA0 !important;
    }
    @include media-breakpoint-down(sm) {
        &:focus {
            color: #8CBEA0 !important;
        }
    }
}
.dropdown {
    position: static;

    .content,
    .label {
        color: $light-grey;
        text-transform: uppercase;
    }
    .label {
        font-size: 0.9rem;
    }
    .content {
        font-size: 0.8rem;
    }

    .dropdown-menu.show {
        border-radius: 0;
        border: 1px solid $primary;
        border-top: none;
        min-width: 13rem;
        .dropdown-item {
            white-space: normal;
        }
    }
}

.dropdown {
    .dropdown-toggle {
        border: 1px solid transparent;
        border-bottom: none;
    }
}

.dropdown.show {
    .dropdown-toggle {
        border: 1px solid $primary;
        border-bottom: none;
    }
}

.navbar-brand {
    margin-right: 0;
}
.dropdown-items {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 0;
    &.dropdown-items-grid {
        grid-template-columns: 1fr 1fr;
    }
    // padding: 2rem 1rem;
    padding: 1rem 0;
    .dropdown-item {
        // margin: 0 0.5rem;
        padding-right: 30px;
        position: relative;
        &:active {
            background-color: transparent;
        }
    }
}
#nav-menu-primary.open .dropdown-items.dropdown-items-grid {
    grid-template-columns: 1fr;
}

.dropdown-menu {
    border: 1px solid transparent;
    border-top: none;
    @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
        &.iefix-w-100 {
            width: 100%;
        }
        &.iefix-w-18rem {
            width: 18rem;
        }
    }
    // min-width: 18rem;
}
.page-header {
    .col-auto {
        height: 54px;
    }
    .navbar-toggler {
        border-radius: 0;
        background-color: $blue;
    }

    input.form-control {
		border: none !important;
	}
}
.navbar-toggler-icon {
    padding-top: 1px;
    width: auto;
    font-size: 1.4rem !important;
    height: auto;
}
.navbar-toggler-icon div {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 3px;
    margin: 5px;
}
// .navbar-toggler-icon div {
//     width: 20px;
//     height: 2px;
//     background-color: #ffffff;
//     border-radius: 3px;
//     margin: 4px 5px 6px;
// }
.open .bg-black {
    display: none;
}
.open .nav-item + .nav-item {
    margin-top: 0.5rem;
}
.open .nav-item {
    text-align: left;
}
.open .nav-link {
    padding: 0.6rem 1rem;
    font-size: 20px;
}

.nav-item.active {
    .nav-link {
        color: #8CBEA0 !important;
        text-decoration: underline;
        text-underline-position: under;
        font-family: 'itc-avant-garde-gothic-pro', sans-serif;
        font-weight: 500;
        font-style: normal;
    }
}

/* Menu Close icon on mobile   */
.open .close, .modal .close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    opacity: 1;
    &:after,
    &:before {
        position: absolute;
        left: 15px;
        content: " ";
        height: 33px;
        width: 3px;
        background-color: #ffffff;
        border-radius: 3px;
    }
    &:before {
        transform: rotate(45deg);
    }
    &:after {
        transform: rotate(-45deg);
    }
}
.open button.close, .modal button.close {
    &:before {
        transform: translateY(-16px) rotate(45deg);
    }
    &:after {
        transform: translateY(-16px) rotate(-45deg);
    }
}
.modal .close {
    &:before, &:after {
    background-color: $blue;
    }
}

.nav-dropdown-desc-link, .dropdown-item {
    position: relative;
    .nav-child-icon {
        background-image: url("/images/menu-icons/menu-arrow.png");
        background-size: cover;
        position: absolute;
        top: 50%;
        right: 1rem;
        width: 25px;
        height: 25px;
        transform: translateY(-50%);
    }
    &:hover{
        .nav-child-icon {
            background-image: url("/images/menu-icons/menu-arrow-hover.png");
        }
    }
}

.navbar-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    @include media-breakpoint-down(sm) {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    > * {
        min-height: 0px;
    }
}

.dropdown-item {
    &:hover {
        background-color: $primary;
    }
}