.nav-header {
    position: relative;
    z-index: 41;
}

.sticky-wrapper {
    transition: 0.4s ease-in-out;
    &.sticky {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        background-color: $white-color;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
        animation: stickyAni 0.4s ease-in-out;
    }
}

@keyframes stickyAni {
    0% {
        transform: translate3d(0, -40px, 0) scaleY(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translate3d(0, 0, 0) scaleY(1);
        opacity: 1;
    }
}

/****header-top*****/
.main-menu {
    a {
        display: block;
        position: relative;
        font-weight: 500;
        font-size: 16px;
        color: $title-color;
        text-transform: uppercase;
        &:hover {
            color: $theme-color;
        }
    }

    > ul {
        > li {
            margin: 0 23px;
            > a {
                padding: 44.5px 0;
                &:hover {
                    color: $theme-color;
                }
            }
        }
    }

    ul {
        margin: 0;
        padding: 0;

        li {
            list-style-type: none;
            display: inline-block;
            position: relative;
            &:last-child {
                margin-right: 0 !important;
            }

            &:first-child {
                margin-left: 0 !important;
            }

            &:hover {
                > ul.sub-menu {
                    visibility: visible;
                    opacity: 1;
                    transform: scaleY(1);
                    z-index: 9;
                }
            }
        }
    }

    ul.sub-menu {
        position: absolute;
        text-align: left;
        top: 100%;
        left: 0;
        background-color: $white-color;
        visibility: hidden;
        min-width: 190px;
        width: max-content;
        padding: 7px;
        left: -14px;
        opacity: 0;
        z-index: -1;
        border: 0;
        box-shadow: 0px 4px 15px rgba(1, 15, 28, 0.06);
        border-radius: 0;
        transform: scaleY(0);
        transform-origin: top center;
        transition: all 0.4s ease 0s;

        a {
            span {
                font-size: 12px;
                padding: 0px 5px;
                margin-left: 4px;
                background-color: $theme-color;
                color: $white-color;
                padding: 2px 5px;
                border-radius: 4px;
                position: relative;
                top: -1px;
            } 
        }
    }

    ul.sub-menu {
        padding: 13px 15px 13px 13px;
        left: -27px;
        li {
            display: block;
            margin: 0 0;
            padding: 2px 9px;
            a {
                position: relative;
                padding-left: 0px;
                font-weight: 500;
                text-transform: capitalize;
            }

            ul.sub-menu {
                left: 100%;
                right: auto;
                top: 0;
                margin: 0 0;
                margin-left: 15px;

                li {
                    ul {
                        left: 100%;
                        right: auto;
                    }
                }
            }
        }
    }
}
@include ml {
    .main-menu > ul > li {
        margin: 0 15px;
    }
}
.simple-icon {
    border: none;
    background-color: transparent;
    color: $title-color;
    padding: 0;
    font-size: 22px;
    position: relative;
    .badge {
        padding: 0.20em 0.40em;
        font-size: 0.5em;
        top: -5px;
        right: 0px;
    }
    &:has(.badge) {
        padding-right: 8px;
    }
}

.header-button {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    @include ml {
        gap: 20px;
    }
}
.social-links {
    .social-title {
        font-weight: 500;
        font-size: 16px;
        display: inline-block;
        margin: 0 10px 0 0;
        color: $body-color;
    }

    a {
        font-size: 14px;
        display: inline-block;
        color: $body-color;
        margin: 0 10px 0 0;

        &:last-child {
            margin-right: 0;
        }

        &:hover {
            color: $theme-color;
        }
    }
}
.header-logo {
    padding-top: 25px;
    padding-bottom: 25px;
}
.header-links {
    > ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
        display: flex;
        align-items: center;
    }

    li {
        display: inline-block;
        position: relative;
        font-size: 16px;
        font-weight: 400;
        &:not(:last-child) {
            margin: 0 35px 0 0;
        }
        > i,svg {
            margin-right: 8px;
            fill: $title-color;
        }
        .header-sub-links {
            li {
                &:not(:last-child) {
                    margin: 0 30px 0 0;
                    &:before {
                        content: '/';
                        position: absolute;
                        right: -20px;
                        top: 0;
                        color: $title-color;
                    }
                }                
            }
        }
    }
    li,
    span,
    p,
    a {
        color: $title-color;
        font-family: $body-font;
        display: inline-flex;
        align-items: center;
    }
    a:hover {
        color: $theme-color;
    }
    b,
    strong {
        font-weight: 600;
        margin-right: 6px;
    }
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    &.header-links-right {
        li:not(:last-child) {
            margin: 0 25px 0 0;
        }
    }
}
.dropdown-link {
    position: relative;
    > a {
        color: $body-color;
        i {
            color: $theme-color;
            margin-right: 5px;
        }
    }
}

.dropdown-toggle::after {
    display: none;
}
.dropdown-menu {
    width: fit-content;
    min-width: auto;
    top: calc(100% + 6px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 8px 20px !important;
    text-align: center;
    border-color: $border-color;
    li {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-right: 0;
        margin-right: 0;
        display: block;
        &:after {
            display: none;
        }
        a {
            display: block;
            font-weight: 400;
            font-size: 14px;
        }
    }
    a {
        color: $title-color !important;
        &:hover {
            color: $theme-color !important;
        }
    }
    &:before {
        content: "";
        position: absolute;
        left: 50%;
        top: -7px;
        width: 14px;
        height: 14px;
        margin-left: -7px;
        background-color: var(--white-color);
        z-index: -1;
        transform: rotate(45deg);
        border-top: 1px solid $border-color;
        border-left: 1px solid $border-color;
    }
}
.sidebar-btn {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border: 0;
    padding: 0;
    background: transparent;
    color: $title-color;
    font-family: $body-font;
    position: relative;
    line-height: normal;
    display: inline-block;
    .line {
        width: 53px;
        display: inline-flex;
        position: relative;
        flex-wrap: wrap;
        border-top: 1px solid;
        &:before,
        &:after {
            content: '';
            position: relative;
            width: 30px;
            border-top: 1px solid $title-color;
            display: inline-block;
            margin-top: 8px;
            transition: 0.4s;
        }
        &:before {
            top: -10px;
            margin-top: 0;
            width: 100%;
        }
    }
    &:hover {
        .line {
            &:after {
                width: 100%;
            }
        }
    }
}
/* Header 1 ---------------------------------- */
.header-layout1 {
    background: $white-color;
    border-top: 1px solid transparent;
    .header-top {
        border-bottom: 1px solid $border-color;
        .header-links li {
            padding: 21px 0;
            &:has(.sidebar-btn) {
                border-left: 1px solid $border-color;
                padding: 24px 0;
                padding-left: 25px;
            }
        }
    }
    @include xs {
        .sticky-wrapper {
            padding: 0;
        }
        .header-top {
            padding: 9.5px 0;
        }
    }
    @include xxl {
        position: absolute;
        left: 0;
        right: 0;
    }
}

/* Header 2 ---------------------------------- */
.header-layout2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    .sticky-wrapper {
        border-bottom: 1px solid $white-color;
        background: rgba(55, 62, 67, 0.35);
        .header-links {
            a {
                color: $white-color;
                &:hover {
                    color: $theme-color;
                }
            }
        }
    }
    .main-menu > ul > li > a {
        padding: 51.5px 0;
        color: $white-color;
        &:hover {
            color: $theme-color;
        }
    }
    .header-button {
        gap: 30px;
    }
    .btn {
        padding: 19.5px 20px;
    }
    .btn.sideMenuToggler {
        width: 55px;
        height: 55px;
    }
    .search-btn {
        border: 0;
        background: transparent;
        font-size: 16px;
        font-weight: 500;
        color: $white-color;
        &:hover {
            color: $theme-color;
        }
    }
    .header-logo {
        padding: 0 80px;
    }
    .sticky-wrapper.sticky {
        background: rgba(55, 62, 67, 1);;
        .header-logo {
            display: block;
        }
        .header-links.sticky-none {
            display: none;
        }
    }
}
@media (min-width: 1600px) {
    .header-layout2 {
        --main-container: 1600px;
    }
}
@include xxl {
    .header-layout2 .header-logo {
        padding: 0 20px;
    }
    .header-layout2 .search-btn {
        display: none;
    }  
}
@include lg {
    .header-layout2 .main-menu > ul > li > a {
        padding: 36.5px 0;
    }
}
@include md {
    .header-layout2 .header-logo {
        padding: 21.5px 0px;
    }
    .header-layout2 .sticky-wrapper .header-logo {
        display: block;
    }
}
@include xs {
    .header-layout2 .sticky-wrapper {
        padding: 0;
    }
}
/* Header 3 ---------------------------------- */
.header-layout3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    .sticky-wrapper {
        border-bottom: 1px solid $title-color;
        background: $white-color;
    }
    .main-menu > ul > li > a {
        padding: 51.5px 0;
    }
    .header-button {
        gap: 30px;
    }
    .btn {
        padding: 19.5px 20px;
    }
    .btn.sideMenuToggler {
        width: 55px;
        height: 55px;
    }
    .search-btn {
        border: 0;
        background: transparent;
        font-size: 16px;
        font-weight: 500;
        color: $title-color;
        &:hover {
            color: $theme-color;
        }
    }
    .header-logo {
        padding: 0 80px;
    }
    .sticky-wrapper.sticky {
        background: $white-color;
        .header-logo {
            display: block;
        }
        .header-links.sticky-none {
            display: none;
        }
    }
}
@media (min-width: 1600px) {
    .header-layout3 {
        --main-container: 1600px;
    }
}
@include xxl {
    .header-layout3 .header-logo {
        padding: 0 20px;
    }
    .header-layout3 .search-btn {
        display: none;
    }  
}
@include lg {
    .header-layout3 .main-menu > ul > li > a {
        padding: 36.5px 0;
    }
}
@include md {
    .header-layout3 .header-logo {
        padding: 21.5px 0px;
    }
    .header-layout3 .sticky-wrapper .header-logo {
        display: block;
    }
}
@include xs {
    .header-layout3 .sticky-wrapper {
        padding: 0;
    }
}