/*Header Section Starts Here*/
.header-section {
    width: 100%;
    position: fixed;
    z-index: 999;
    top: 5px;
    @include transition($transition);
    padding: 15px 0;
    .header-wrapper {
        @extend %flex;
        justify-content: space-between;
        align-items: center;
        .logo {
            width: 225px;
            a {
                display: block;
                img {
                    width: 100%;
                }
            }
            // @include breakpoint(md) {
                @include breakpoint(max-lg) {
                    width: 160px;
                }
            // }
        }
        .menu {
            @include breakpoint(md) {
                display: flex;
                flex-wrap: wrap;
                justify-content: flex-end;
                margin-left: auto;
                li {
                    padding: 5px;
                    position: relative;
                    a {
                        font-weight: 600;
                        text-transform: uppercase;
                        color: $title-color;
                        padding: 7px 25px;
                        font-size: 18px;
                        @include breakpoint(xl) {
                            padding: 7px 28px;
                        }
                    }
                    
                }
                margin-right: 20px;
                @include breakpoint(max-lg) {
                    margin: 0 auto;
                    li {
                        padding: 0;
                        a {
                            font-size: 16px;
                            padding: 7px 18px;
                        }
                    }
                }
            }            
            @include breakpoint(max-md) {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                max-height: calc(100vh - 130px);
                z-index: 9;
                background-color: $white-color;
                overflow-y: auto;
                box-shadow: 0 0 20px rgba(0, 0, 0, .08);
                @include transition($transition);
                @include transform(scaleY(0));
                transform-origin: top;
                li {
                    width: 100%;
                    padding: 0;
                    a {
                        padding: 5px 10px;
                        display: flex;
                        align-items: center;
                        border-top: 1px solid rgba($color: $title-color, $alpha: .1);
                        font-weight: 500;
                        text-transform: capitalize;
                        justify-content: space-between;
                        color: $title-color;
                        &:hover {
                            background: rgba($color: $title-two, $alpha: .98);
                            color: $white-color;
                        }
                        &.header-button {
                            display: inline-flex;
                            padding: 10px 50px;
                            background: -moz-linear-gradient( -94deg, rgb(231,65,121) 0%, rgb(254,122,106) 84%);
                            background: -webkit-linear-gradient( -94deg, rgb(231,65,121) 0%, rgb(254,122,106) 84%);
                            background: -ms-linear-gradient( -94deg, rgb(231,65,121) 0%, rgb(254,122,106) 84%);
                            box-shadow: 0px 19px 56px 0px rgba(0, 0, 0, 0.2);                              
                            border: none;
                            color: $white-color;
                            margin: 5px;
                        }
                    }
                }
                &.active {
                    @include transform(scaleY(1));
                }
            }
        }
        .header-button {
            font-size: 20px;
            font-weight: 600;
            text-transform: uppercase;
            padding: 14px 36px 11px;
            color: $white-color;
            background: $theme-bg;
            box-shadow: 0px 19px 56px 0px rgba(0, 0, 0, 0.2); 
            @include border-radius(25px);
            margin-left: 22px;
            &:hover {
                background: $white-color;
                color: $theme-color;
            }
            @include breakpoint(max-lg) {
                padding: 9px 25px 7px;
                font-size: 16px;
                margin-left: 12px;
            }
        }
    }
    &.active {
        background: $white-color;
        top: 0;
        box-shadow: 0 0 5px rgba($color: $title-color, $alpha: .1);
    }
}
.menu-item-has-children {
    >a {
        &::after {
            content: "\f0d7";
            font-weight: 600;
            font-family: "Font Awesome 5 Free";
            margin-left: 5px;
            line-height: 1;
        }
    }
}

/*Header Bar Starts*/
.header-bar {
    position: relative;
    cursor: pointer;
    width: 25px;
    height: 20px;
    margin-left: auto;
    span {
        position: absolute;
        display: inline-block;
        height: 3px;
        width: 100%;
        -webkit-transition: all ease 0.3s;
        -moz-transition: all ease 0.3s;
        transition: all ease 0.3s;
        background-color: $title-color;
        left: 0;
        &:first-child {
            top: 0;
        }
        &:nth-child(2) {
            top: 52%;
            transform: translateY(-65%);
        }
        &:last-child {
            bottom: 0;
        }
    }
    &.active span {
        &:first-child {
            -webkit-transform: rotate(45deg) translate(3px, 9px);
            -ms-transform: rotate(45deg) translate(3px, 9px);
            transform: rotate(45deg) translate(3px, 9px);
        }
        &:nth-child(2) {
            opacity: 0;
        }
        &:last-child {
            -webkit-transform: rotate(-45deg) translate(3px, -9px);
            -ms-transform: rotate(-45deg) translate(3px, -9px);
            transform: rotate(-45deg) translate(3px, -9px);
        }
    }
}