/** full page menu styling **/
button.menu-toggle.hamburger {
    display: block;
    z-index: 4;
}

body div#wpadminbar + .site header#masthead button.menu-toggle {
    top: 32px;
}
body div#wpadminbar + .site header#masthead nav#top-navigation.toggled {
    top: 0;
}

.top-navigation.toggled button.menu-toggle.hamburger {
    position: fixed;
    z-index: 4;
    padding-top: 9px;
}
.top-navigation.toggled button.menu-toggle.hamburger {
    position: fixed;
    z-index: 4;
    padding-top: 23px;
}

.top-navigation.toggled .logo-mobile {
    display: flex;
    text-align: center;
    justify-content: center;
    margin-bottom: 2rem;
}
.top-navigation.toggled .logo-mobile img {
    width: 80%;
}

button.menu-toggle.hamburger {
    padding: 0;
    margin: 0 3rem 0 0;
    border: none;
    width: auto;
}

.nav_logo {
    display: flex;
    width: 100%;
    padding-top: 0.5rem;
    padding-left: 1rem;
}

header#masthead nav#top-navigation:not(.toggled) .nav_logo {
    display: none;
}

/* header#masthead nav#top-navigation.toggled {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: white;
    z-index: 3;
    opacity: 1;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
}
@media (min-width: 800px) {
    header#masthead nav#top-navigation.toggled {
        display: none;
    }
} */

header#masthead nav#top-navigation.toggled a {
    color: white;
}


.hamburger {
    font: inherit;
    display: inline-block;
    overflow: visible;
    margin: 0;
    padding: 15px;
    cursor: pointer;
    transition-timing-function: linear;
    transition-duration: 0.15s;
    transition-property: opacity, filter;
    text-transform: none;
    color: inherit;
    border: 0;
    background-color: transparent;
}
.hamburger-box {
    position: relative;
    cursor: pointer;
    display: block;
    width: 27px;
    height: 24px;
}
.toggled .hamburger-box {
    height: 33px;
}

.hamburger-box:after {
    content: '';
    position: absolute;
    background-image: url(/wp-content/uploads/2023/06/searchIcon.svg);
    background-position: center center;
    background-size: cover;
    width: 20px;
    height: 20px;
    top: 2px;
    left: 38px;
}
.toggled .hamburger-box:after {
    content: none;
}


.hamburger--slider .hamburger-inner {
    top: 2px;
    background-color: white;
}
.hamburger-inner,
.hamburger-inner:after,
.hamburger-inner:before {
    position: absolute;
    width: 28px;
    height: 3px;
    transition-timing-function: ease;
    transition-duration: 0.25s;
    transition-property: transform;
    border-radius: 1px;
    background-color: white;
}
.toggled .hamburger-inner, .toggled .hamburger-inner:after {
    background-color: white;
}

.hamburger-inner {
    top: 50%;
    display: block;
    margin-top: -2px;
}

.hamburger-inner:after,
.hamburger-inner:before {
    display: block;
    content: "";
}
.hamburger--slider .hamburger-inner:before {
    background-color: white;
    width: 20px;
    left: 0;
    top: 10px;
    transition-timing-function: ease;
    transition-duration: 0.25s;
    transition-property: transform, opacity;
}
.hamburger--slider .hamburger-inner:is(:hover,:focus),
.hamburger--slider .hamburger-inner:is(:hover,:focus):before,
.hamburger--slider .hamburger-inner:is(:hover,:focus):after {
    background-color: var(--mint1);
}

.toggled .hamburger--slider .hamburger-inner:before {
    transform: rotate(-45deg) translate3d(0, 0, 0);
    opacity: 0;
}

.toggled .hamburger--slider .hamburger-inner {
    transform: translate3d(0, 15px, 0) rotate(-45deg);
    background-color: white;
}
body.admin-bar .toggled .hamburger--slider .hamburger-inner {
    transform: translate3d(0, 11px, 0) rotate(-45deg);
}


.toggled .hamburger--slider .hamburger-inner:after {
    transform: translate3d(0, -20px, 0) rotate(-90deg);
    background-color: white;
    width: 100%;
}

.hamburger--slider .hamburger-inner:after {
    width: 25px;
    left: 0;
    background-color: white;
    top: 20px;
}
.hamburger-inner:after {
    bottom: -10px;
}

@media (max-width: 799px) {
    .comment-navigation .nav-links,
    .posts-navigation .nav-links,
    .post-navigation .nav-links {
        flex-direction: column;
    }
    .nav-previous,
    .nav-next {
        margin-top: 1rem;
    }
    .comment-navigation .nav-next,
    .posts-navigation .nav-next,
    .post-navigation .nav-next,
    .comment-navigation .nav-previous,
    .posts-navigation .nav-previous,
    .post-navigation .nav-previous {
        text-align: center;
    }
}
@media (max-width: 799px){
    a.custom-logo-link:hover:after {
        content: none!important;
    }
    footer .footer-menu-toggle,
    footer .top-navigation {
        display: none;
    }
    footer .custom-logo-link {
        display: flex;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        padding: 0 2rem;
    }
}

/** pg nav **/
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

div.fp-menu {
    display: none;
}
header#masthead .top-navigation.toggled .fp-menu {
    display: flex;
    animation: fade-in 0.25s;
    flex-direction: column;
    justify-content: flex-start;
    background-color: rgba(0, 89, 153, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    z-index: 3;
}
header#masthead .top-navigation.toggled .fp-menu .fp-topNav {
    height: 10%;
    display: flex;
    position: relative;
    top: 0;
    left: 3.25rem;
    width: calc(100% - 3.25rem);
}
@media (max-width: 799px){
    header#masthead .top-navigation.toggled .fp-menu {
        justify-self: center;
        padding: 1rem;
    }
    header#masthead .top-navigation.toggled .fp-menu .fp-topNav {
        margin-top: 3.25rem;
        min-height: 65px;
        margin-bottom: 2.25rem;
        left: 0;
        width: 100%;
    }
}

body.admin-bar header#masthead .top-navigation.toggled .fp-menu .fp-topNav {
    top: 2rem;
}
header#masthead .top-navigation.toggled .fp-menu .fp-topNav > * {
    flex: 1 1 auto;
}
header#masthead .top-navigation .fp-topmenu-div {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
}
@media (max-width: 1199px){
    header#masthead .top-navigation .fp-topmenu-div .menu-top-menu-container {
        display: none;
    }
}

header#masthead .top-navigation.toggled .fp-menu h1 {
    font-size: 1.75rem;
    margin: 0;
    text-transform: uppercase;
    color: white;
    letter-spacing: 4px;
    display: block;
    padding-top: 4px;
}
@media (max-width: 799px){
    header#masthead .top-navigation.toggled .fp-menu h1 {
        display: flex;
        flex-wrap: wrap;
    }
}

header#masthead .top-navigation.toggled .fp-menu h1 span {
    color: var(--mint1);
    font-size: 1.25rem;
}

header#masthead .top-navigation.toggled .fp-socials {
    display: flex;
    justify-content: flex-end;
    position: relative;
}
@media (max-width: 799px){
    header#masthead .top-navigation.toggled .fp-socials {
        display: none;
    }
}
header#masthead .top-navigation.toggled .fp-socials ul {
    position: absolute;
}

header#masthead .top-navigation.toggled .fp-menu .fp-socials li a {
    display: block;
    width: 28px;
    height: 45px;
    transition: 0.25s ease;
}
header#masthead .top-navigation.toggled .fp-menu .fp-socials li a:where(:hover,:focus) {
    opacity: 0.65;
}

header#masthead .top-navigation.toggled .fp-menu .fp-center {
    /* height: 80%; */
    height: 75%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
@media (max-width: 799px){
    header#masthead .top-navigation.toggled .fp-menu .fp-center {
        height: 65%;
    }
}

header#masthead .top-navigation.toggled .fp-menu .fp-menu-bottom {
    /* height: 10%; */
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
}
@media (max-width: 799px){
    header#masthead .top-navigation.toggled .fp-menu .fp-menu-bottom {
        height: auto;
        position: relative;
        padding: 0;
    }
    header#masthead .top-navigation.toggled .fp-menu .fp-menu-bottom a {
        display: block;
    }
}

header#masthead .top-navigation.toggled .fp-menu .fp-center > :where(.search-section, .belowSearch) {
    width: 50%;
    max-width: 799px;
    margin-left: auto;
    margin-right: auto;
    /** fwidthVersion **/
    flex-direction: column;
}
@media (max-width: 1024px){
    header#masthead .top-navigation.toggled .fp-menu .fp-center > :where(.search-section, .belowSearch) {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
header#masthead .top-navigation.toggled .fp-menu .search-form {
    display: flex;
    position: relative;
}
@media (max-width: 799px){
    header#masthead .top-navigation.toggled .fp-menu .search-form {
        flex-direction: column;
        width: 100%;
    }
}

header#masthead .top-navigation.toggled .fp-menu input.search-field {
    border-radius: 0.75rem;
    padding: 1rem 5rem 1rem 1rem;
    font-weight: 900;
    color: black;
    font-family: 'Poppins';
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 1.1rem;
}
@media (max-width: 599px){
    header#masthead .top-navigation.toggled .fp-menu input[type="search"] {
        -webkit-appearance: none;
    }
}
header#masthead .top-navigation.toggled .fp-menu input.search-field::placeholder {
    font-weight: 900;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    font-size: inherit;
}
@media (max-width: 799px){
    header#masthead .top-navigation.toggled .fp-menu input.search-field::placeholder {
        font-size: 0.8rem;
    }
}
header#masthead .top-navigation.toggled .fp-menu button.search-submit {
    font-family: 'Proxima-Nova', sans-serif;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
}
header#masthead .top-navigation.toggled .fp-menu .line {
    position: absolute;
    height: 100%;
    background-color: black;
    width: 1px;
    top: 10px;
    right: 4.5rem;
    height: calc(100% - 20px);
}
header#masthead .top-navigation.toggled form :is(button, input[type="button"],
header#masthead .top-navigation.toggled input[type="reset"], input[type="submit"]):is(:hover,:focus) {
    border-radius: 0 0.75rem 0.75rem 0;
}
header#masthead .top-navigation.toggled .fp-menu .search-section {
    /* border-bottom: 2px solid white; */
    border-bottom: 1px solid var(--cityBlueSoft);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 799px){
    header#masthead .top-navigation.toggled .fp-menu .search-section {
        display: flex;
        padding-left: 0;
        padding-right: 0;
    }
}

header#masthead .top-navigation.toggled .fp-menu .belowSearch {
    display: flex;
    justify-content: space-between;
    color: white;
    font-family: 'Proxima-Nova', sans-serif;
    font-size: 1.25rem;
}
@media (max-width: 1024px){
    header#masthead .top-navigation.toggled .fp-menu .belowSearch {
        flex-direction: column;
        padding-left: 0;
        overflow-x: scroll;
        height: 50%;
    }
}
.fp-menu .departments-list ul {
    /* border-left: 4px solid var(--mint1);
    padding-left: 1.75rem; */
    /**fwidthVersion**/
}

@media (max-width: 1024px){
    header#masthead .departments-list {
        display: none;
    }
}

@media (min-width: 800px){
    ul#mobile-menu {
        display: none;
    }
    header#masthead .departments-list {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }
}
@media (min-width: 800px) and (max-height: 800px){
    /** mobile exeption **/
    ul#mobile-menu {
        display: none;
    }
}

/** hide after 4th
.fp-menu .departments-list ul li:nth-child(n+6){
    display: none;
}**/

header#masthead .top-navigation.toggled .fp-menu .belowSearch ul li a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 2;
    transition: 0.25s ease;
}
header#masthead .top-navigation.toggled .fp-menu .belowSearch ul li a:where(:hover,:focus,:active) {
    color: var(--mint1);
}
header#masthead .top-navigation.toggled .fp-menu .departments-list ul {
    position: relative;
    transition: 0.5s ease;
}
header#masthead .top-navigation.toggled .fp-menu .departments-list ul li a:before {
    content: '';
    width: 0;
    height: 0;
    transition: 0.25s ease-in-out;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 15px solid transparent;
    position: absolute;
    transform: translate(-25px, 5px);
    background-color: transparent;
}
header#masthead .top-navigation.toggled .fp-menu .departments-list ul li a:where(:hover,:focus):before {
    border-left: 15px solid var(--mint1);
    /* content: '';
    width: 0;
    height: 0; */
    /* border-top: 15px solid transparent;
    border-bottom: 15px solid transparent; */
    /* border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
   border-left: 15px solid var(--mint1);
   position: absolute; */
    /* left: -2px; */
    /* transform: translate(-25px, 5px); */
}
header#masthead .top-navigation.toggled .fp-menu .departments-list h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--mint1);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}


header#masthead .top-navigation.toggled .fp-menu .fp-menu-bottom > span {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    font-family: 'Proxima-Nova', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-transform: uppercase;
}
@media (max-width:  799px){
    header#masthead .top-navigation.toggled .fp-menu .fp-menu-bottom > span {
        padding: 1rem 0;
    }
    header#masthead .top-navigation.toggled .fp-menu .fp-menu-bottom > span:last-child,
    header#masthead .top-navigation.toggled .fp-menu .fp-menu-bottom > span small {
        display: none;
    }
}

@media all and (orientation:landscape) and (max-width: 1024px) and (max-height: 499px) {
    body.home header#masthead a.custom-logo-link img {
        display: none;
    }
    header#masthead .top-navigation.toggled .fp-socials ul {
        display: none;
    }
    header#masthead .top-navigation.toggled .fp-menu .fp-topNav {
        height: auto;
        margin-bottom: 0;
    }
    header#masthead .top-navigation.toggled .fp-menu .fp-menu-bottom {
        position: relative;
        padding: 0;
    }
    header#masthead .top-navigation.toggled .fp-menu-bottom {
        justify-content: center;
    }
    header#masthead .top-navigation.toggled .fp-menu .belowSearch {
        display: none;
    }
    header#masthead .top-navigation.toggled .fp-menu .search-section {
        border-bottom: none;
        margin: 0;
        padding: 0;
    }
}
