
.header_nav {
    &-menu {
        ul {
            padding: 0;
            margin: 0;
            li {
                display: inline-block;
                position: relative;
                list-style: none;
                margin: 0 25px;
                &:hover {
                    &::after {
                        width: 100%;
                    }
                    > a {
                        color: var(--primary-color-1);
                    }
                    > .sub-menu {
                        transform: scale(1, 1);
                        opacity: 1;
                        visibility: visible;
                    }
                }
                .sub-menu {
                    position: absolute;
                    background: var(--bg-white);
                    min-width: 240px;
                    transition: all 0.3s ease-out 0s;
                    top: 64px;
                    opacity: 0;
                    box-shadow: var(--box-shadow-1);
                    visibility: hidden;
                    z-index: 99;
                    transform: scale(1, 0);
                    transform-origin: 0 0;
                    border-bottom: 4px solid var(--primary-color-1);
                    li {
                        display: block;
                        padding: 0 30px;
                        margin: 0;
                        &::after {
                            display: none;
                        }
                        > a {
                            border-bottom: 1px solid var(--border-color-1);
                            color: var(--text-heading-color);
                            padding: 12px 0;
                            transition: all 0.4s ease-out 0s;
                            font-size: 15px;
                            line-height: 25px;
                            text-transform: capitalize;
                            position: relative;
                            text-align: left;
                            &::after {
                                position: absolute;
                                content: '';
                                background: var(--primary-color-1);
                                width: 0;
                                transition: all 0.4s ease-out 0s;
                                height: 1px;
                                left: 0;
                                bottom: -1px;
                            }
                        }
                        .sub-menu {
                            left: 100%;
                            top: 0;
                        }
                        &:hover {
                            > a {
                                color: var(--primary-color-1);
                                &::after {
                                    width: 100%;
                                }
                            }
                        }
                        &:last-child > a {
                            border: none;
                            &::after {
                                display: none;
                            }
                        }
                        &:first-child .sub-menu {
                            top: -4px;
                        }
                    }
                    .menu-item-has-children > {
                        a {
                            &::before {
                                content: '\f105';
                                right: 0;
                                color: var(--text-heading-color);
                            }
                        }
                    }
                }
                ul {
                    .sub-menu li .sub-menu {
                        color: var(--text-heading-color);
                        cursor: pointer;
                    }
                }
                a {
                    color: var(--text-heading-color);
                    display: block;
                    font-size: 16px;
                    line-height: 26px;
                    transition: all 0.4s ease-out 0s;
                    text-transform: capitalize;
                    font-weight: 500;
                }
                &.menu-item-has-children > {
                    a {
                        position: relative;
                        &::before {
                            content: '\f107';
                            position: absolute;
                            top: 50%;
                            transform: translateY(-48%);
                            right: -16px;
                            font-family: 'Font Awesome 5 Pro';
                            font-weight: 400;
                            color: var(--text-heading-color);
                            transition: all 0.3s ease;        
                        }
                    }
                }
                &.menu-item-has-children {
                    padding-right: 15px;
                    &:hover > a {
                        &::before {
                            color: var(--primary-color-1);
                        }
                    }
                }
                &:first-child {
                    margin-left: 0;
                }
                &:last-child {
                    margin-right: 0;
                }
                &.active {
                    &::after {
                        width: 100%;
                        bottom: -39px;
                    }
                }
            }
        }
        &-responsive {
            display: none;
            .nav_menu_bar {
                > i {
                    font-size: 35px;
                    color: var(--text-heading-color);
                    cursor: pointer;
                    display: block;
                }
                &-popup {
                    opacity: 0;
                    visibility: hidden;
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 400px;
                    height: 100%;
                    z-index: 9999;
                    transition: 0.5s;
                    background: #fbecda;
                    transform: translateX(-100%);
                    padding: 40px;
                    overflow: auto;
                    &.show {
                        opacity: 1;
                        visibility: visible;
                        transform: translateX(0);
                    }
                    &-close {
                        position: relative;
                        i {
                            background: var(--primary-color-1);
                            width: 40px;
                            color: var(--text-white);
                            height: 40px;
                            line-height: 40px;
                            text-align: center;
                            border-radius: 50%;
                            cursor: pointer;
                            &:hover {
                                animation: rotate 0.4s ease 0s;			
                            }
                        }
                    }
                    ul {
                        padding: 0;
                        margin: 0;
                        li {
                            list-style: none;
                            .menu-link {
                                padding: 15px 0;
                                display: block;
                                font-size: 18px;
                                line-height: 28px;
                                font-weight: 400;
                                transition: all 0.4s ease;
                                border-bottom: 1px solid #e3d9ce;
                            }
                            &:hover > .menu-link {
                                color: var(--primary-color-1);
                            }
                            & .submenu {
                                padding-left: 15px;
                                li .menu-link {
                                    padding: 10px 0;
                                    font-size: 16px;
                                    line-height: 26px;
                                }
                            }
                        }
                    }
                    &-top {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        margin-bottom: 40px;
                        &-logo a img {
                            max-width: 150px;
                        }
                    }
                }
            }
        }
    }
}

.logged-in .nav_menu_bar-popup {
    margin-top: 32px;
}
.logged-in.elementor-editor-preview .nav_menu_bar-popup,
.logged-in.elementor-editor-active .nav_menu_bar-popup {
  margin-top: 0px;
}

@media (max-width: 1024px) {
    .header_nav {
        &-menu {
            display: none;
        }
        &-menu-responsive {
            display: block;
        }
    }
}
@media (max-width: 575px) {
    .header_nav-menu-responsive {
        .nav_menu_bar-popup {
            width: 100%;
        }
    }
}