.th-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;
    }
}

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

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

    > ul {
        > li {
            margin: 0 14px;
            > a {
                padding: 31.5px 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: "\2b";
                        position: relative;
                        font-family: $icon-font;
                        margin-left: 4px;
                        font-weight: 600;
                        top: 0;
                        font-size: 1em;
                        display: inline-block;
                        transition: 0.4s;
                        transform: rotate(0deg);
                    }
                }
                &:hover {
                    > a {
                        &:after {
                            content: "\f068";
                            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: $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 {
            font-size: 16px;
            line-height: 30px;
            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: 18px 20px 18px 18px;
        left: -27px;
        li {
            display: block;
            margin: 0 0;
            padding: 0px 9px;

            &.menu-item-has-children {
                > a:after {
                    content: "\2b";
                    float: right;
                    top: 1px;
                }
                &:hover {
                    > a:after {
                        content: "\f068";
                    }
                }
            }

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

                &:before {
                    content: "\f105";
                    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: 16px;
                    line-height: 1;
                    color: $theme-color;
                    font-weight: 600;
                    opacity: 0;
                    transition: 0.4s;
                }
                &:hover {
                    padding-left: 20px;
                    &:before {
                        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;
                    }
                }
            }
        }
    }
}

.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: 20px;
    .th-btn {
        margin-left: 10px;
    }
}
.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 20px 0 0;

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

        &:hover {
            color: $theme-color;
        }
    }
}
.header-logo {
    padding-top: 15px;
    padding-bottom: 15px;
}
.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 55px 0 0;
            &:after {
                content: '';
                height: 20px;
                width: 2px;
                background-color: $body-color;
                opacity: 0.15;
                position: absolute;
                top: 2px;
                right: -30px;
            }
        }
        > i {
            margin-right: 10px;
            color: $theme-color;
        }
    }
    li,
    span,
    p,
    a {
        color: $body-color;
    }
    a:hover {
        color: $theme-color;
    }
    b,
    strong {
        font-weight: 600;
        margin-right: 6px;
    }
}
.header-info {
    display: flex;
    gap: 12px;
    align-items: center;
    --body-color: #6F6E77;
    .icon {
        font-size: 35px;
        color: $theme-color;
    }
    .header-info-title {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 0;
        color: $white-color;
    }
    .header-info-link {
        font-size: 14px;
        font-weight: 500;
        color: $border-color;
    }
}
.dropdown-link {
    position: relative;
    > a {
        color: $white-color;
        font-weight: 500;
        display: flex;
        align-items: center;
        img {
            margin-right: 10px;
        }
    }
}

.dropdown-toggle::after {
    content: "\f107";
    border: none;
    font-family: var(--icon-font);
    vertical-align: middle;
    font-weight: 400;
    margin-left: 6px;
}
.dropdown-menu {
    width: fit-content;
    min-width: auto;
    top: calc(100% + 12px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 8px 20px !important;
    text-align: center;
    border-color: $border-color;
    li {
        padding-right: 0;
        margin-right: 0;
        &:after {
            display: none;
        }
        a {
            display: block;
        }
    }
    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;
    }
}

.header-top {
    padding: 11.5px 0;
    background-color: $title-color;
    --body-color: #fff;
    a {
        &:hover {
            color: $theme-color;
        }
    }
}

/* Header 1 ---------------------------------- */
.header-layout1 {
    position: relative;
    .menu-area {
        position: relative;
        z-index: 2;
    }
    .header-top {
        .container {
            padding-left: 385px;
        }
    }
    .header-logo {
        position: relative;
        z-index: 2;
        margin-top: -50px;
    }
    .header-button {
        .icon-btn {
            color: $white-color;
        }
    }
    .th-menu-toggle {
        margin-left: auto;
    }
    .logo-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 24%;
        height: 100%;
        z-index: 0;
        &:before,
        &:after {
            content: '';
            height: 100%;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background-color: $theme-color;
            clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0% 100%);
            z-index: -1;
        }
        &:after {
            background-color: #A01707;
            left: 30px;
            height: 50px;
            clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0% 100%);
            z-index: -2;
        }
    }
}

@include hd {
    .header-layout1 {
        .logo-bg {
            width: 30%;
        }
    }
}
@media (max-width: 1600px) {
    .header-layout1 {
        .logo-bg {
            width: 19%;
        }
        .header-logo {
            padding-left: 20px;
        }
        .header-top .container {
            padding-left: 370px;
        }
    }
}
@include xxl {
    .header-layout1 {
        .logo-bg {
            width: 21.2%;
        }
    }
    .header-layout1 {
        .header-logo {
            padding-left: 30px;
        }
    }
}

@include ml {
    .header-layout1 {
        .header-button {
            .th-btn {
                display: none;
            }
        }
        .header-logo {
            padding-left: 25px;
        }
    } 
}

@include xl {
    .header-layout1 .logo-bg {
        width: 24%;
    }
    .header-layout1 .header-logo {
        padding-left: 0;
    }
    .header-layout1 .header-top .container {
        padding-left: 300px;
    }
}

@include lg {
    .header-layout1 {
        .logo-bg {
            width: 27%;
        }
        .header-links {
            ul li {
                &:first-child {
                    display: none;
                }
            }
        }
        .main-menu {
            margin-left: 30px;
        }
    }
}

@include md {
    .header-layout1 {
        .logo-bg {
            width: 50%;
            height: calc(100% - 50px);
            top: unset;
            bottom: 0;
            &:after {
                display: none;
            }
        }
        .header-logo {
            margin-top: 0;
            padding-top: 10px;
            padding-bottom: 10px;
            img {
                max-height: 70px;
            }
        }
        .header-top .container {
            padding-left: 12px;
        }
    }
}

@include xs {
    .header-layout1 {
        .logo-bg {
            width: 70%;
        }
    }
}

/*******header-layout2*********/
.header-layout2 {
    .menu-area {
        background: $theme-color;
        border-radius: 4px;
        padding: 0 30px;
        transform: translate(0, 100%);
        margin-top: -90px;
    }
    .main-menu > ul > li > a {
        padding: 31.5px 0;
        color: $white-color;
    }
    .header-button .th-btn {
        border-radius: 4px;
        padding: 21.5px 40px;
    }
    .simple-icon {
        color: $white-color;
    }
    .badge {
        background: $white-color;
        color: $theme-color;
    }
}
@media (max-width: 1600px) {
    .header-layout2 {
        .th-container {
            --main-container: 1405px;
        }
    }
}
@media (max-width: 1200px) {
    .header-layout2 .header-button .th-btn {
        display: none;
    }
    .header-layout2 .menu-area {
        padding: 0 30px;
    }
}
@include lg {
    .header-layout2 .menu-area {
        padding: 0 25px;
        .header-logo {
            width: 174px;
        }
    }
    .header-layout2 {
        .sticky-wrapper {
            .th-container {
                max-width: none;
                padding: 0;
            }
            .menu-area {
                border-radius: 0;
            }
        }
    }
}
@include md {
    .header-layout2 .menu-area {
        margin-top: 0px;
        transform: none;
        padding: 0 15px;
        .th-menu-toggle {
            height: 40px;
            width: 40px;
            background: $title-color;
        }
    }
}
/*******header-layout3*********/
.header-layout3 {
    .header-top {
        padding: 18.5px 40px 18.5px 320px;
        .th-social a:hover {
            color: $white-color;
        }
    }
    .header-links ul {
        display: flex;
        align-items: center;
    }
    .header-links li:not(:last-child):after {
        height: 35px;
        top: 50%;
        transform: translate(0px, -50%);
        right: -40px;
    }
    .header-links li:not(:last-child) {
        margin-right: 80px;
    }
    .menu-area {
        border-radius: 4px;
        padding: 0 0 0 50px;
        position: relative;
        display: flex;
        &-left {
            width: -webkit-fill-available;
            margin-right: 25px;
            padding-right: 25px;
            position: relative;
            background: $white-color;
            &:after {
                content: '';
                position: absolute;
                right: -25px;
                top: 0;
                height: 100%;
                width: 227px;
                background: $white-color;
                clip-path: path("M208.829 67.0989C208.338 68.8161 206.769 70 204.983 70H4C1.79086 70 0 68.2091 0 66V4C0 1.79086 1.79086 0 4 0H222.697C225.355 0 227.273 2.54362 226.543 5.09888L208.829 67.0989Z");
                z-index: -1; 
          
            }
        }
    }
    .main-menu {
        margin-left: -135px;
        > ul > li > a {
            padding: 21.5px 0;
        }
    }
    .header-logo {
        position: relative;
        padding: 0;
        z-index: 1;
        margin-top: -71px;
    }
    .header-btn {
        margin-left: auto;
        flex: none;
        position: relative;
        z-index: 2;
        padding: 26.5px 50px 26.5px 56px;
        clip-path: path("M18.1711 2.90112C18.6617 1.18391 20.2313 0 22.0172 0H223C225.209 0 227 1.79086 227 4V66C227 68.2091 225.209 70 223 70H4.30291C1.6454 70 -0.273252 67.4564 0.456824 64.9011L18.1711 2.90112Z");
    }
    .logo-bg {
        position: absolute;
        top: -90px;
        left: 0;
        width: 18.8%;
        height: calc(100% + 90px);
        z-index: 0;
        clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0% 100%);
    }
    .sticky-wrapper.sticky {
        .header-logo {
            margin-top: 0;
            padding: 19.5px 0 19.5px 40px;
        }
        .menu-area {
            transform: none;
            margin: 0;
            padding: 0;
            align-items: center;
        }
        .header-btn {
            &:hover {
                color: $white-color;
                &:after,
                &:before {
                    background-color: $title-color;

                }
            }
        }
    }
    
}
@media (max-width: 1600px) {
    .header-layout3 .logo-bg {
        width: 19.8%;
    }
}
@include xxl {
    .header-layout3 {
        .th-container3 {
            max-width: 1380px;
        }
        .logo-bg {
            width: 22%;
        }
        .main-menu {
            margin-left: 0;
        }
    }
}
@include ml {
    .header-layout3 {
        .th-container3 {
            padding: 0;
        }
        .menu-area {
            padding: 0 0 0 30px;
        }
        .header-top {
            padding: 18.5px 40px 18.5px 290px;
        }
        .logo-bg {
            width: 19.5%;
        }
        .main-menu {
            margin-left: 42px;
        }
        .sticky-wrapper.sticky {
            padding-right: 15px;   
            .header-logo {
                padding: 19.5px 0 19.5px 30px;
            }
        }
    }
}
@media (max-width: 1200px) {
    
    .header-layout3 .sticky-wrapper.sticky .header-logo {
        padding: 20px 12px;
        img {
            &.logo2 {
                width: 200px;
            }
        }
    }
    .header-layout3 {
        .main-menu {
            margin-left: 30px;
        }
        .header-btn {
            padding: 26.5px 30px 26.5px 46px;
        }
        .logo-bg {
            width: 22%;
        }
        .sticky-wrapper.sticky {
            .main-menu {
                margin-left: 25px;
            }
            .logo-bg {
                width: 21%;
            }
        }
    }
}
@include lg {
    .header-layout3 {
        .header-logo {
            padding-left: 30px;
        }
        .header-top {
            padding: 18.5px 40px 18.5px 270px;
        }
        .logo-bg {
            height: 90px;
            width: 25%;
            background-position: top right !important;
        }
        .menu-area {
            padding: 0;
        }
        .sticky-wrapper.sticky {
            .header-btn {
                display: none;
            }
            .menu-area-left {
                padding-right: 0;
                margin-right: 0;
            }
            .logo-bg {
                top: 0;
                width: 23%;
            }
        }
    }
    .header-layout3 .header-links li:not(:last-child) {
        margin-right: 60px;
    }
    .header-layout3 .header-links li:not(:last-child):after {
        right: -30px;
    }
}
@include md {
    .header-layout3 {
        .header-top {
            padding: 18.5px 40px 18.5px 40px;
        }
        .header-logo {
            margin-top: 0;
            padding: 10px 0 10px 30px;
        }
        .logo-bg {
            top: 0;
            height: 100%;
            width: 35%;
        }
        .menu-area {
            align-items: center;
        }
        .menu-area-left {
            padding: 7px 20px 7px 0;
            margin-right: 0;
            &:after {
                display: none;
            }
        }
        .header-btn {
            display: none;
        }
        .sticky-wrapper.sticky {
            .logo-bg {
                width: 32%;
            }
            .header-logo {
                padding: 12px;
            }
        }
    }
    .header-info .icon {
        font-size: 30px;
    }
}
@include sm {
    .header-layout3 .header-top {
        display: none;
    }
    .header-layout3 {
        .menu-area {
            margin-top: 0px;
        }
        .sticky-wrapper.sticky .logo-bg,
        .logo-bg {
            width: 45%;
        }
    }
}
@include xs {
    .header-layout3 {
        .sticky-wrapper.sticky .logo-bg,
        .logo-bg {
            width: 63%;
        }
    }
}
@include vxs {
    .header-layout3 {
        .sticky-wrapper.sticky .logo-bg,
        .logo-bg {
            width: 65%;
        }
        .header-logo {
            padding: 10px 0 10px 15px;
        }
        .menu-area-left {
            padding: 7px 15px 7px 0;
        }
    }
}
@media (max-width: 320px) {
    .header-layout3 {
        .sticky-wrapper.sticky .logo-bg,
        .logo-bg {
            width: 73%;
        }
    }
}

/* Header 4 ---------------------------------- */
.header-layout4 {
    position: relative;
    .main-menu {
        margin-left: 45px;
    }
    .header-top {
        background: transparent;
        position: relative;
        z-index: 1;
        &:after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            background: $title-color;
            height: 100%;
            width: calc(100% - 150px);
            z-index: -1;
            clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%);       
        }
        .container {
            padding-left: 55px;
        }
    }
    .header-logo {
        position: relative;
        z-index: 2;
    }
    .header-button {
        .icon-btn {
            color: $white-color;
        }
    }
    .th-menu-toggle {
        margin-left: auto;
    }
    .logo-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 25%;
        height: 100%;
        z-index: -1;
        &:after {
            content: '';
            height: 100%;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background-color: $theme-color;
            clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 100%, 0% 100%);            
            z-index: -1;
        }
    }
    .sticky-wrapper.sticky {
        .header-top {
            display: none;
        }
    } 
}

@include hd {
    .header-layout4 {
        .logo-bg {
            width: 31%;
        }
        .header-top:after {
            width: calc(100% - 350px);
        }
    }
}
@media (max-width: 1600px) {
    .header-layout4 {
        .logo-bg {
            width: 18%;
        }
        .header-top:after {
            width: 100%;
        }
        .main-menu {
            margin-left: 60px;
        }
    }
}
@media (max-width: 1200px) {
    .header-layout4 .header-top .container {
        padding-left: 30px;
    }
    .header-layout4 {
        .header-logo {
            max-width: 175px;
        }
        .main-menu {
            margin-left: 12px;
            > ul > li {
                margin: 0 12px;
            }
            a {
                font-size: 14px;
            }
        }
        .logo-bg {
            width: 22%;
        }
    }
}
@include lg {
    .header-layout4 {
        .header-button .th-btn {
            display: none;
        }
        .logo-bg {
            width: 27%;
        }
    }
}
@include md {
    .header-layout4 .logo-bg {
        width: 37%;
    }
}
@include sm {
    .header-layout4 .logo-bg {
        width: 46%;
    }
}
@include xs {
    .header-layout4 .logo-bg {
        width: 53%;
    }
}
@include vxs {
    .header-layout4 .logo-bg {
        width: 60%;
    }
}
@media (max-width: 320px) {
    .header-layout4 .logo-bg {
        width: 70%;
    }
}
/* Header 5 ---------------------------------- */
.header-layout5 {
    .sticky-wrapper {
        background: transparent;
        position: absolute;
        left: 0;
        top: 50px;
        right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0 68px;
        &.sticky {
            position: fixed;
            top: 0;
            background: $title-color;
            .header-logo {
                margin-top: 0;
            }
        }
    }
    .header-top {
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 11px 68px 11px 30px;
        margin-left: 332px;
    }
    .header-logo {
        margin-top: -50px;
    }
    .main-menu {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        margin-left: 55px;
        padding-left: 40px;
        > ul > li > a {
            padding: 36.5px 0;
            color: $white-color;
        }
    }
    .header-button {
        height: 100px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 40px;
        .simple-icon {
            color: $white-color;
        }
    }
    .header-links li {
        font-weight: 500;
    }
    .header-links li:not(:last-child):after {
        width: 1px;
    }
}
@include ml {
    .header-layout5 {
        .sticky-wrapper {
            padding: 0 40px;
        }
        .main-menu {
            margin-left: 30px;
        }
        .header-top {
            margin-left: 279px;
            padding: 11px 42px 11px 30px;
        }
    }
}
@media (max-width: 1200px) {
    .header-layout5 {
        .header-top {
            margin-left: 249px;
            padding: 11.5px 42px 11.5px 30px;
        }
        .header-button .th-btn {
            display: none;
        }
        .header-links li {
            font-size: 14px;
        }
        .main-menu {
            margin-left: 0px;
            a {
                font-size: 14px;
            }
        }
    }
}
@include md {
    .header-layout5 {
        .sticky-wrapper {
            top: 0;
            padding: 9px 20px;
        }
        .header-logo {
            margin-top: 0px;
        }
    }
}
@include xs {
    .header-layout5 .sticky-wrapper {
        padding: 4px 0;
    }
}