.header-container {
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.header-container-content {
    border-bottom-right-radius: var(--radius-15-x);
    border-bottom-left-radius: var(--radius-15-x);
}

.header-container-content:has(.page-navigation-bar) {
    background: var(--surface-1);
    box-shadow: 0 1px 24px 0 rgba(28, 43, 65, 0.10);
}

.site-header {
    --chevron-down-size: 24px;
    box-shadow: none;
    background-color: inherit;
}

.site-header h1,
.site-header h2,
.site-header h3,
.site-header h3:not(.review-title, .post-tile-title, .review-box-name),
.site-header h4,
.site-header h5,
.site-header h6,
.site-header p {
    margin: var(--spacing-0x);
}

.site-header--style3 .header-top {
    padding: var(--spacing-0x);
    background: var(--text-primary);
    border-bottom-left-radius: var(--radius-15-x);
    border-bottom-right-radius: var(--radius-15-x);
}

.site-header--style3 .header-top .container {
    padding: var(--spacing-0x);
}

.site-header--style3 .header-top-flex {
    justify-content: space-between;
    padding: var(--spacing-1x) var(--spacing-3x);
    min-height: var(--header-height);
}

.site-header--style3 .header-top-flex .header-top-flex-part {
    display: flex;
    flex: 0 1 auto;
}

.header-top .header-logo .custom-logo-link {
    display: flex;
}

.header-top .header-logo img {
    height: var(--font-line-height-xl);
    width: fit-content;
    border-radius: var(--spacing-0x);
}

.header-menu {
    gap: var(--spacing-05-x);
    padding: var(--spacing-0x);
}

.header-menu > li {
    padding: var(--spacing-0x);
}

.header-menu li a {
    display: flex;
    min-width: var(--font-line-height-xl);
    min-height: var(--font-line-height-xl);
    padding: var(--spacing-15-x);
    justify-content: center;
    align-items: center;
    gap: var(--spacing-1x);
    color: var(--text-contrast);
    font-family: var(--font-family-body), var(--font-family-reserve);
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: var(--font-line-height-sm);
    border-radius: var(--radius-1x);
    cursor: pointer;
    white-space: nowrap;
}

.header-menu > li::before {
    content: none;
}

.header-menu > li > a:hover, .header-menu > li.current-menu-item > a:hover {
    color: var(--text-contrast);
}

.header-menu > li.current-menu-item a {
    color: var(--text-contrast);
}

.header-menu > li.menu-item-has-children {
    padding: var(--spacing-0x);
}

.header-menu > li.menu-item-has-children a {
    padding-right: calc(var(--spacing-1x) + var(--chevron-down-size) + var(--spacing-15-x));
}

.header-menu > li.menu-item-has-children > a::after {
    position: absolute;
    font-size: var(--chevron-down-size);
    right: var(--spacing-15-x);
    font-weight: 700 !important;
}

.header-menu .sub-menu {
    display: inline-flex;
    padding: var(--spacing-1x);
    flex-direction: column;
    gap: var(--spacing-05-x);
    border-radius: var(--radius-1x);
    background: var(--surface-1);
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.10);
}

.header-menu .sub-menu li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    margin: var(--spacing-0x);
}

.header-menu .sub-menu li a {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    line-height: var(--font-size-xl);
    width: 100%;
    justify-content: flex-start;
}

.header-menu .sub-menu li a:hover, .header-menu .sub-menu li.current-menu-item a {
    background: var(--action-secondary);
}

.header-menu > li.menu-item-has-children > .sub-menu {
    left: auto;
    right: var(--spacing-0x);
    top: 100%;
}

.header-menu > li.menu-item-has-children > .sub-menu .menu-item-has-children > a::before {
    content: '';
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask: url('../images/chevron-default-down.svg');
    mask: url('../images/chevron-default-down.svg');
    font-family: var(--font-family-body) !important;
    width: var(--chevron-down-size);
    height: var(--chevron-down-size);
    font-size: var(--chevron-down-size);
    text-align: center;
    background-color: var(--text-primary);
    transform: rotate(-90deg);
    top: var(--spacing-15-x);
    right: var(--spacing-15-x);
}

.header-menu .sub-menu li.menu-item-has-children:hover > a::before,
.header-menu .sub-menu li.current-menu-item.menu-item-has-children > a::before {
    background: var(--action-primary);
}

.header-menu > li.menu-item-has-children > .sub-menu .menu-item-has-children .sub-menu {
    top: calc(var(--spacing-1x) * -1);
    left: auto;
    right: calc(100% + var(--spacing-05-x) + var(--spacing-1x));
}

.header-menu > li.menu-item-has-children > .sub-menu .menu-item-has-children .sub-menu::before {
    left: auto;
    right: -1.875rem;
}

.custom-btn-mobile-menu {
    transition: none;
}

.header-mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-0x) var(--spacing-2x);
    height: 0;
    transition: height 0.5s ease-in-out;
    overflow: hidden;
    position: absolute;
    inset: 0;
    top: var(--mobile-header-height);
    z-index: 9999;
    background: var(--text-primary);
    margin-top: -10px;
    border-bottom-right-radius: var(--radius-15-x);
    border-bottom-left-radius: var(--radius-15-x);
}

@media (max-width: 992px) {
    .header-top-flex-part--right .btn-mobile-menu {
        display: none !important;
    }

    .d-lg-none {
        display: flex !important;
    }

    .header-top-flex-part--right {
        max-width: fit-content;
    }
}

@media (max-width: 768px) {
    .header-top-flex-part--right .btn-mobile-menu {
        display: flex !important;
    }

    .d-lg-none {
        display: none !important;
    }

    .header-top-flex-part--right {
        max-width: fit-content;
    }

    .site-header--style3 .header-top-flex {
        display: flex;
        padding: var(--spacing-1x) var(--spacing-0x) var(--spacing-1x) var(--spacing-2x);
        justify-content: space-between;
        align-items: center;
        height: var(--mobile-header-height);
    }

    .btn-mobile-menu .hamburger-mobile-menu, .btn-mobile-menu .close-mobile-menu {
        display: none;
        width: fit-content;
    }

    .btn-mobile-menu .hamburger-mobile-menu.show, .btn-mobile-menu .close-mobile-menu.show {
        display: flex;
        width: 64px;
        height: 64px;
        min-width: 48px;
        min-height: 48px;
        padding: var(--spacing-0x) var(--spacing-2x) var(--spacing-0x) var(--spacing-3x);
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
    }

    .btn-mobile-menu .hamburger-mobile-menu:before, .btn-mobile-menu .hamburger-mobile-menu:after {
        content: none
    }

    .hamburger-mobile-menu svg, .close-mobile-menu svg {
        color: var(--text-contrast);
        cursor: pointer;
    }

    .mobile-body {
        overflow-y: hidden;
        -ms-scroll-chaining: none;
        overscroll-behavior: none;
    }

    .header-mobile-menu.open {
        height: 100%;
        transition: height 0.5s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .header-mobile-menu #custom-header-mobile-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: var(--spacing-5x);
    }

    #custom-header-mobile-menu ul {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-1x);
    }

    #custom-header-mobile-menu ul .menu-item {
        display: flex;
        flex-direction: column;
        min-width: 48px;
        min-height: 48px;
        padding: var(--spacing-15-x) var(--spacing-0x);
        justify-content: space-between;
        position: relative;
        border-radius: var(--radius-1x);
    }

    #custom-header-mobile-menu ul .menu-item a {
        color: var(--text-placeholder);
        font-size: var(--font-size-md);
        font-weight: 600;
        line-height: var(--font-line-height-sm);
        width: 100%;
        cursor: pointer;
    }

    #custom-header-mobile-menu ul .menu-item .menu-item-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #custom-header-mobile-menu ul .menu-item .submenu-arrow svg {
        color: var(--text-placeholder);
        width: var(--chevron-down-size);
        height: var(--chevron-down-size);
        transform: rotate(270deg);
        transition: transform 0.5s ease-out;
        cursor: pointer;
    }

    #custom-header-mobile-menu ul .menu-item.active:has(.sub-menu.open) > .menu-item-wrapper a,
    #custom-header-mobile-menu ul .menu-item.active:not(:has(.sub-menu)) > .menu-item-wrapper a {
        color: var(--text-contrast);
    }

    #custom-header-mobile-menu ul .menu-item.active:has(.sub-menu.open) > .menu-item-wrapper .submenu-arrow svg,
    #custom-header-mobile-menu ul .menu-item.active:not(:has(.sub-menu)) > .menu-item-wrapper .submenu-arrow svg {
        color: var(--text-contrast);
    }

    #custom-header-mobile-menu ul .menu-item.active > .menu-item-wrapper .submenu-arrow svg,
    #custom-header-mobile-menu ul .menu-item.active:not(:has(.sub-menu)) > .menu-item-wrapper .submenu-arrow svg {
        transform: rotate(180deg);
        transition: transform 0.5s ease-out;
    }

    #custom-header-mobile-menu ul .menu-item .sub-menu {
        display: none;
        height: 0;
        overflow: hidden;
    }

    #custom-header-mobile-menu ul .menu-item .sub-menu.open {
        display: flex;
        height: 100%;
        transition: height 0.5s ease-in-out;
    }

    #custom-header-mobile-menu .sub-menu .menu-item {
        display: flex;
        min-width: 48px;
        min-height: 48px;
        padding: var(--spacing-15-x);
        gap: var(--spacing-1x);
    }

    #custom-header-mobile-menu .sub-menu .menu-item a {
        color: var(--text-placeholder);
        font-size: var(--font-size-sm);
        font-weight: 600;
        line-height: var(--font-line-height-sm);
    }

    .header-mobile-menu .footer-section-social-links {
        color: var(--text-contrast);
        margin-bottom: var(--spacing-5x);
    }
}
