.th-header {
    position: relative;
    z-index: 41;
    .icon-btn {
        border-radius: 99px;
    }
    .menu-area {
        position: relative;
        z-index: 2;
    }
}

.sticky-wrapper {
    transition: 0.4s ease-in-out;
    &.sticky {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        background-color: $white-color;
        filter: drop-shadow(0 0 10px 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;
    }
}

.main-menu {
    a {
        display: block;
        position: relative;
        font-weight: 600;
        font-size: 16px;
        font-family: $body-font;
        color: $title-color;
        text-transform: uppercase;

        &:hover {
            color: $theme-color;
        }
    }

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

    ul {
        margin: 0;
        padding: 0;

        li {
            list-style-type: none;
            display: inline-block;
            position: relative;

            &.menu-item-has-children {
                > a {
                    &:after {
                        content: "\f078";
                        display: inline-block;
                        position: relative;
                        font-family: $icon-font;
                        margin-left: 4px;
                        font-weight: 600;
                        top: 0;
                        font-size: 0.9em;
                        color: inherit;
                        transition: transform 0.4s ease-in-out;
                    }
                    &:hover {
                        &:after {
                            transform: rotate(180deg);
                        }
                    }
                }
            }

            &: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: $body-bg;
        visibility: hidden;
        min-width: 230px;
        width: max-content;
        padding: 7px;
        left: -14px;
        opacity: 0;
        z-index: -1;
        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 {
            font-size: 16px;
            line-height: 30px;
        }
    }

    ul.sub-menu {
        padding: 18px 20px 18px 18px;
        left: -27px;
        li {
            display: block;
            margin: 0 0;
            padding: 0px 9px;

            &.menu-item-has-children {
                > a {
                    &:after {
                        content: "\f078";
                        float: right;
                        top: 1px;
                        display: inline-block;
                    }
                    &:hover {
                        &:after {
                            transform: rotate(180deg);
                        }
                    }
                }
            }

            a {
                position: relative;
                padding-left: 0;
                text-transform: capitalize;

                &:before {
                    content: "\f8cb";
                    position: absolute;
                    top: 6px;
                    left: 10px;
                    font-family: $icon-font;
                    width: 11px;
                    height: 11px;
                    text-align: center;
                    border-radius: 50%;
                    display: inline-block;
                    font-size: 1em;
                    line-height: 1;
                    color: $theme-color;
                    font-weight: 900;
                    opacity: 0;
                    visibility: visible;
                    transition: 0.3s ease-in-out;
                }
                &:hover {
                    padding-left: 23px;
                    &:before {
                        visibility: visible;
                        opacity: 1;
                        left: 0;
                    }
                }
            }

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

                li {
                    ul {
                        left: 100%;
                        right: auto;
                    }
                }
            }
        }
    }
}
@media (max-width: 1500px) {
    .main-menu > ul > li {
        margin: 0 12px;
    }
}
.menu-style1 {
    > ul > li {
        margin: 0 14px;
        @include xl {
            margin: 0 10px;
        }
        > a {
            padding: 17px 0;
            color: $white-color;
            &:hover {
                color: $theme-color2;
            }
        }
    }
    ul li.menu-item-has-children > a:after {
        color: $white-color;
    }
}

.header-button {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    .th-btn {
        margin-left: 20px;
        @media (min-width: 1399px) {
            min-width: 185px;
        }
    }
    .icon-btn {
        background-color: transparent;
        &:hover {
            background-color: $theme-color;
        }
        .badge {
            font-size: 12px;
            background-color: $theme-color2;
        }
        &:hover {
            .badge {
                background-color: $title-color;
            }
        }
    }
}

.social-links {
    .social-title {
        font-weight: 500;
        font-size: 16px;
        display: inline-block;
        margin: 0 10px 0 0;
        color: $body-color;
    }

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

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

        &:hover {
            color: $theme-color;
        }
    }
}
.header-logo {
    padding-top: 15px;
    padding-bottom: 15px;
}
.header-links {
    ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    li {
        display: inline-block;
        position: relative;
        font-size: 16px;
        font-weight: 400;
        &:not(:last-child) {
            margin: 0 55px 0 0;
            &:after {
                content: '';
                height: 16px;
                width: 1px;
                background-color: $body-color;
                position: absolute;
                top: 0px;
                right: -30px;
                margin-top: 4px;
                opacity: 0.7;
            }
        }
        > i {
            margin-right: 6px;
        }
        .icon-btn {
            margin-right: 8px;
        }
    }
    li,
    span,
    p,
    a {
        color: $body-color;
    }
    a:hover {
        color: $theme-color;
    }
    b,
    strong {
        font-weight: 600;
        margin-right: 6px;
    }
    .social-links a {
        font-size: 14px;
    }
    &.style2 {
        li {
            margin: 0 25px 0 0;
            &:after {
                display: none;
            }
        }
    }
}
.header-notice {
    margin: 0;
}
.header-top {
    padding: 10px 0;
    background-color: $theme-color;
    --body-color: #fff;
    a {
        &:hover {
            color: $border-color;
        }
    }
    .icon-btn {
        --btn-size: 30px;
        background-color: transparent;
        border: 1px solid;
        font-size: 12px;
    }
}

/* Header 1 ---------------------------------- */
.header-layout1 {
    position: relative;
    .menu-area {
        position: relative;
        z-index: 2;
    }
    .header-logo {
        position: relative;
        z-index: 2;
        height: 100px;
        padding: 32px 170px 31px 0;
        @include xxl {
            padding-right: 130px;
        }
        @include xl {
            padding-right: 70px;
        }
        &:before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            width: 4000px;
            background-color: $smoke-color2;
            z-index: -1;
            clip-path: polygon(0 0, calc(100% - 70px) 0%, 100% 100%, 0% 100%);
            @include xl {
                clip-path: polygon(0 0, calc(100% - 55px) 0%, 100% 100%, 0% 100%);
            }
        }
    }
    .main-menu {
        margin-left: 40px;
    }
    .th-menu-toggle {
        margin-left: auto;
    }
    &.black-style {
        .header-logo:before {
            background-color: #000;
        }
    }
}
.black-style {
    .sticky-wrapper {
        background-color: $title-color;
    }
    .main-menu > ul > li > a {
        color: $white-color;
        &:hover {
            color: $theme-color2;
        }
    }
    .icon-btn {
        color: $white-color;
        &:hover {
            .badge {
                background-color: $theme-color2;
            }
        }
    }
}

@media (min-width: 1300px) {
    .header-layout1 {
        --main-container: 1700px;
    }
}

@include ml {
    .header-layout1 {
        .header-button {
            .th-btn {
                margin-left: 0;
                min-width: auto;
            }
        }
    } 
}

@include xl {
    .header-layout1 {
        .main-menu {
            margin-left: 0;
        }
    }
}

@include md {
    .header-layout1 {
        .header-logo {
            position: relative;
            z-index: 2;
            height: 80px;
            padding: 22px 0 22px 0;
            &:before {
                right: -70px;
            }
        }
    }
}

@include xs {
    .header-layout1 {
        .header-logo {
            h2 {
                font-size: 36px;
            }
            img {
                max-width: 160px;
            }
        }
    }
}
@include vxs {
    .header-layout1 {
        .header-logo {
            padding-top: 26px;
            img {
                max-width: 122px;
            }
        }
    }
}

@include xl {
    .unittest-header {
        .main-menu {
            a {
                font-size: 15px;
            }
            > ul > li {
                margin: 0 11px;
            }
        }
    }
}

/* Header 2 ---------------------------------- */
.header-layout2 {
    .sticky-wrapper {
        background-color: #010101;
        border-bottom: 1px solid rgba($color: #fff, $alpha: 0.2);
    }
    .th-menu-toggle {
        margin-left: auto;
    }
}
@media (min-width: 1200px) {
    .header-layout2 {
        --main-container: 1700px;
    }
}
@include xl {
    .header-layout2 {
        .container {
            max-width: 100% !important;
        }
        .header-button {
            .th-btn {
                margin-left: 0;
            }
        }
    }
}
@include md {
    .header-layout2 {
        .header-logo {
            height: 80px;
            padding: 22px 0 22px 0;
        }
    }
}
@include vxs {
    .header-layout2 {
        .header-logo {
            padding-top: 26px;
            img {
                max-width: 122px;
            }
        }
    }
}