section#mega-menu {
    z-index: 999;
}
.section--mega-menu .header--wrapper {
    position: relative;
}
.section--mega-menu .header__main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}


/* --- top bar -- */
.section--mega-menu .top__bar {
    position: relative;
    z-index: 999;
    background: var(--bz-primary);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.section--mega-menu .top__bar p {
    margin: 0;
}
.top__bar-menu ul {
    line-height: none;
    list-style: none;
    padding: 0;
    margin: 0;
}
.section--mega-menu .top__bar a:not(.btn):not(.hs-button) {
    color: inherit;
    text-decoration: underline;
}
.section--mega-menu .top__bar a,
.section--mega-menu .top__bar .top__bar-menu li.hs-menu-item.hs-menu-depth-1 > a {
    font-weight: 700;
}

.section--mega-menu .top__bar .top__bar-menu a {
    text-decoration: none;
}
.section--mega-menu .top__bar .top__bar-menu a:not(.hs-button):hover {
    text-decoration: underline;
}
.section--mega-menu .top__bar .top__bar-menu .hs-menu-children-wrapper {
    background: var(--bz-primary);
    padding: 10px;
}
.section--mega-menu .top__bar .top__bar-menu .hs-menu-children-wrapper a {
    text-decoration: none;
}
.section--mega-menu .top__bar * {
    font-size:0.95rem;
}
.header-search-icon {
	fill: currentColor;
}

/* --- search -- */
.section--mega-menu .header__search-form {
    line-height:1;
}
.section--mega-menu .header__search-form button {
    background: none !important;
    border: none;
    padding-left: 1rem;
}
.section--mega-menu .header__search-form svg {
    fill: currentColor;
}
.section--mega-menu .page_header {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.18);
    margin-bottom: 1rem;
}

/* --- logo -- */
.section--mega-menu .header_branding {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 9;
    transform: translate(-50%, -50%);
}
.section--mega-menu .header_branding img {
    max-width: 250px;
}
@media (min-width: 768px) {
    .section--mega-menu .header_branding img {
        max-width: 450px;
    }
}

/* Burger Menu Toggle Effect */
.section--mega-menu .menu-toggle {
    position: relative;
    display: block;
    width: 45px;
    height: 35px;
    background: transparent;
    border-top: 4px solid;
    border-bottom: 4px solid;
    border-left: 0px;
    border-right: 0px;
    color: #fff;
    font-size: 0;
    transition: all .25s ease-in-out;
    cursor: pointer;
}
.section--mega-menu .menu-toggle:before,
.section--mega-menu .menu-toggle:after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .25s ease-in-out;
}
.section--mega-menu .burger-button.is-active {
    border-color: transparent;
}
.section--mega-menu .burger-button.is-active:before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.section--mega-menu .burger-button.is-active:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.section--mega-menu #burger-menu {
    display: none;
    animation: fadeIn 0.8s;
}
.section--mega-menu #burger-menu .menu__row-list ul {
    flex-direction: column;
    list-style: none;
    padding: 0;
}

.section--mega-menu #burger-menu .mega__menu-footer ul {
    flex-direction: row;
    list-style: none;
}

.section--mega-menu #burger-menu.open {
    display: block;
    width: 100%;
    height: auto;
}



.section--mega-menu .mega-menu__nav-menu {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.18);
}
.section--mega-menu .mega-menu__nav-menu a {
    text-decoration:none;
}
.section--mega-menu .mega-menu__nav-menu a:hover {
    opacity: 0.5;
    transition: opacity .15s ease-in-out;
}
.section--mega-menu .mega-menu__nav-menu a:not(.hs-button),
.section--mega-menu .mega-menu__nav-menu p span {
    color: inherit;
}
.section--mega-menu .mega-menu__nav-menu p:not(.hs-button) {
    color: var(--bz-primary); !important;
}
.section--mega-menu .menu-items {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.section--mega-menu .menu__row-list {
    display: block;
    width: 100%
}
.section--mega-menu .menu-links li {
    margin: 8px 0 !important;
}
.section--mega-menu .row-list-title {
    text-transform: uppercase;
    font-weight: 900;
}
@media (min-width: 768px) {
    .section--mega-menu .menu-items {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .section--mega-menu .menu__row-list {
        width: calc(100% / 3 - 1.5rem);
    }
    .section--mega-menu .menu__row-list .row-list-title label {
        display: none;
    }
}
@media (min-width: 1025px) {
    .section--mega-menu .menu__row-list {
        width: calc(100% / 6 - 1.5rem);
    }
}
.section--mega-menu .child-menu + .child-menu {
    margin-top: 1rem;
}
@media (min-width:1025px) {
    .section--mega-menu .child-menu + .child-menu {
        margin-top: 1rem;
    }
}





.section--mega-menu .mega__menu-footer {
    border-top: 1px solid #A1A1A4;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.section--mega-menu .footer-socials .footer-social-title {
    text-transform: uppercase;
    font-weight: 900;
}
.section--mega-menu .footer-social-icons {
    display: flex;
    gap: 0.5rem;
}
.section--mega-menu .mega-menu__nav-menu .footer-socials a {
    display: block;
    color: var(--bz-link-color) !important;
    padding: 0.25rem;    
}
.section--mega-menu .mega-menu__nav-menu .footer-socials a:hover {
    opacity: 1 !important;
    color: var(--bz-link-hover-color) !important;
}
.section--mega-menu .footer-socials a span {
    color: inherit !important;
}
.section--mega-menu .footer-socials a svg {
    display: block;
    height: 18px;
    fill: currentColor;
}
@media (min-width: 768px) {
    .section--mega-menu .footer-socials {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .section--mega-menu .footer-socials .footer-social-title {
        margin: 0;
    }
}
.section--mega-menu .footer-right ul {
    display: flex;
    line-height: 1;
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.section--mega-menu .footer-right li {
    margin: 0;
    line-height: 1;
}
@media (min-width: 768px) {
    .section--mega-menu .footer-right ul {
        justify-content: flex-end;
    }
}
.section--mega-menu .footer-right li + li {
    border-left: solid thin black;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
}
.section--mega-menu .row-list-title .menu_arrow {
    display: none !important;
}





@media (max-width: 767px) {
    .section--mega-menu .header_branding {
        left: unset;
        right: 15px;
        transform: translate(0,-50%);
    }
    .section--mega-menu .header_branding img {
        max-width: 75vw;
    }
    .section--mega-menu .menu__row-list {
        padding: 0;
        width: 100%;
    }
    .section--mega-menu .child-menu {
        border-bottom: 1px solid #A1A1A4;
    }

    .section--mega-menu .row-list-title,
    .section--mega-menu .menu__row-list ul {
        cursor: pointer;
        padding: 10px 0;
        margin: 5px 30px;
    }
    .section--mega-menu .child-menu + .child-menu {
        margin-top: 0;
    }
    .section--mega-menu .hs-menu-item.hs-menu-depth-1 {
        margin: 0 30px;
    }
    .section--mega-menu .menu__row-list.is-active [aria-expanded='true'].is-active ul {
        display: block !important;
    }
    .section--mega-menu .menu__row-list.is-active [aria-expanded='false'] ul {
        display: none !important;
    }
    .section--mega-menu #burger-menu ul {
        display: none;
    }

    /* Menu Arrow */
    .section--mega-menu .menu_arrow {
        display: none;
    }
    .section--mega-menu .menu_arrow + label {
        display: inline-block;
        position: relative;
        padding: 1rem;
        float: right;
        cursor: pointer;
    }

    .section--mega-menu .menu_arrow + label:before,
    .section--mega-menu .menu_arrow + label:after {
        content: "";
        background: #5B1DE7;
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        height: 0.13rem;
        width: calc(20% + 0.25rem);
        margin: auto;
        transition: transform 0.1s cubic-bezier(0.8, 0.2, 0.5, 0.1), background 0.3s ease-in-out;
    }

    .section--mega-menu .menu_arrow + label:before {
        left: 15;
        border-radius: 0.5rem 0 0 0.5rem;
    }
    .section--mega-menu .menu_arrow + label:after {
        right: 0;
        border-radius: 0 0.5rem 0.5rem 0;
    }
    .section--mega-menu .menu_arrow-invert + label:before {
        transform: rotate(50deg);
    }
    .section--mega-menu .menu_arrow-invert + label:after {
        transform: rotate(-50deg);
    }
    .section--mega-menu .is-active [aria-expanded='true'] .menu_arrow-invert + label:before {
        transform: rotate(-50deg);
    }
    .section--mega-menu .is-active [aria-expanded='true'] .menu_arrow-invert + label:after {
        transform: rotate(50deg);
    }


    .section--mega-menu .mega__menu-footer {
        border-top: none;
        text-align: center;
    }
    .section--mega-menu .mega__menu-footer .header-button {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    .section--mega-menu .mega__menu-footer .header-button a {
        display: block;
        text-align: center;
    }
    .section--mega-menu .mega__menu-footer .footer-social-icons {
        justify-content: center;
    }

}

@media (min-width: 768px) and (max-width: 991px) {
    .section--mega-menu .header_branding img {
        width: 400px;
        max-width: 50vw;
    }
}



/* -- search popup -- */
.section--mega-menu .search-popup-link {
    margin-left: 2rem;
    line-height:1;
}
div#search-popup {
    margin: 0 auto;
    max-width: 800px;
    background: white;
    padding: 2rem;
}

.hs-search-field {
    position: relative;
}
.hs-search-field__input {
    box-sizing: border-box;
    width: 100%;
}
.hs-search-field__bar button svg {
    height: 10px;
}
.hs-search-field__suggestions {
    list-style: none;
    padding:0;
}
.hs-search-field__suggestions li {
    display: block;
}
.hs-search-field__suggestions #results-for {
    font-weight: bold;
}
.hs-search-field__suggestions a,
.hs-search-field__suggestions #results-for {
    display: block;
}
.hs-search-field__suggestions a:hover,
.hs-search-field__suggestions a:focus {
    background-color: rgba(0, 0, 0, 0.1);
    outline: none;
}

div#search-popup .hs-search-field--open .hs-search-field__suggestions {
    border: none;
}

div#search-popup .hs-search-field--open .hs-search-field__suggestions li {
    margin: 16px 0px;
    border-bottom: solid thin #e1e1e1 !important;
    padding-bottom: 10px;
}

div#search-popup .hs-search-field--open .hs-search-field__suggestions li a {
    color: initial !important;
    text-decoration: none;
}

