.header .container {
    position: relative;
}

.scrolled-header header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.hidden-header .primary-nav-wrapper {
    transform: translateY(-210%);
}


/* Top Navbar */

.top-nav {
    background: #414042;
    background: linear-gradient(90deg, rgba(65, 64, 66, 1) 30%, rgba(0, 0, 0, 1) 84%);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

ul.top-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

ul.top-nav-list li {
    font-size: var(--fs-xs);
    margin-right: 40px;
}

ul.top-nav-list li a {
    color: var(--white);
}

ul.top-nav-list li.current_page_item a {
    color: var(--orange);
}


/* Search Form */

form.search-form {
    border: solid 1px var(--white);
    border-radius: 5px 55px 55px 5px;
    padding: 0px 10px;
}

form.search-form  input {
    background-color: transparent;
    border: 0;
    font-size: var(--fs-xxs);
    color: var(--white);
}

.search-form__icon {
    position: relative;
    top: 3px;
}

.search-form__submit {
    display: none;
}

form.search-form input::placeholder {
    color: white;
    opacity: 1;
}

form.search-form input::-webkit-input-placeholder {
    color: white;
}

form.search-form input:-ms-input-placeholder {
    color: white;
}

form.search-form input::-moz-placeholder {
    color: white;
    opacity: 1;
}

form.search-form input:-moz-placeholder {
    color: white;
    opacity: 1;
}

/* Main Nav */

.primary-nav-wrapper {
    position: fixed;
    left: 0;
    top: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 999;
    transition: all .5s ease-out;
}

.primary-nav {
    display: flex;
    width: 100%;
    max-width: var(--container);
    height: 80px;
    border: solid 0.5px var(--black);
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border-radius: 10px 55px 55px 10px;
    padding: 0 40px;
    transition: background-color 1e3ms ease-out;
}

.header-brand {
    padding-top: 10px;
}

.nav-main {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    column-gap: 30px;
}

.nav-main li.nav-parent {
    position: relative;
    font-size: 18px;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-main li.nav-parent a {
    color: var(--dark-grey);
    font-weight: var(--fw-bold);
}

.nav-main li.nav-parent a.current-item {
    color: var(--orange);
}

.nav-main li:has(.current-item) > a.nav-parent-link {
    color: var(--orange);
}


/* Dropdown navigation */

.dropdown {
    background-color: var(--orange);
    max-height: 0px;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 100%;
    transition: max-height 0.3s ease-in-out;
    z-index: 999;
}

.nav-parent:hover .dropdown {
    max-height: 400px;
    transition: max-height 0.3s ease-in-out;
    cursor: pointer;
}

.nav-main li.nav-parent .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 220px;
}

.nav-main li.nav-parent .sub-menu li a {
    color: var(--white);
}

.nav-main li.nav-parent .sub-menu li a.current-item {
    color: var(--black);
}

.dropdown-inner {
    padding: 20px;
}

.nav-main li.nav-parent .sub-menu li {
    border-bottom: solid 1px var(--white);
    padding: 10px 0;
    font-size: var(--fs-xs);
}

.nav-main li.nav-parent .sub-menu li:nth-child(1) {
    padding-top: 0;
}

.nav-main li.nav-parent .sub-menu li:last-child {
    border-bottom: 0px;
    padding-bottom: 0;
}

/* Mobile menu */

#menu-button {
    display: none;
    font-size: 25px;
    border: solid 1px;
    padding: 10px;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    background-color: var(--orange);
    color: var(--white);
}

.header-mobile {
    background-color: var(--orange);
    max-height: 0px;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 999;
}

.header-mobile.show-menu {
    max-height: 500px;
    transition: max-height 0.3s ease-in-out;
    top: 160px;
}

.header-mobile-inner {
    padding: 40px;
}

.header-mobile-inner ul:first-of-type {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-mobile-inner ul:first-of-type li {
    border-bottom: solid 1px var(--white);
    padding: 10px 0 10px 20px;
}

.header-mobile-inner ul:first-of-type li:last-child {
    border-bottom: 0;
}

.header-mobile-inner ul:first-of-type li a {
    color: var(--white);
}

.header-mobile-inner ul:first-of-type li a:after {
    content: ' \f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

@media (max-width: 1025px) {
    .nav-main {
        column-gap: 15px;
    }
    .nav-main li.nav-parent {
        font-size: 16px;
    }
    .cta-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-rhs {
        display: none;
    }
    #menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    form.search-form {
        display: none;
    }
}

@media (max-width: 520px) {
    .header-mobile-inner {
        padding: 20px;
    }
}

@media (max-width: 430px) {
    .header-brand img {
        width: 180px;
        height: 19px;
    }
}