.fp-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: $bgBlack;
    
    &.fp-header-sticky {
        position: sticky;
        top: 0;
    }

    .navbar-brand {
        img {
            width: 150px;
            @media only screen and (max-width: $xs_575) {
                width: 100px;
            }
        }
    }

    .fp-save-btn {
        a {
            color: $textPurple;
        }
    }

    .nav-link {
        color: $textWhite;
        @include fpDflexAlignItemsCenter;

        &:hover,
        &:focus,
        &.active,
        &.show {
            color: $textPurple;
        }
    }

    .navbar-toggler {
        padding: 0;

        .navbar-toggler-icon {
            position: relative;
            margin-top: -5px;
            box-shadow: none;
            background-image: none;

            &:before,
            &:after {
                position: absolute;
                left: 15px;
                width: 2px;
                content: '';
                height: 25px;
                background-color: $bgWhite;
            }

            &:before {
                top: 0;
                transform: rotate(90deg);
                -o-transform: rotate(90deg);
                -ms-transform: rotate(90deg);
                -moz-transform: rotate(90deg);
                -webkit-transform: rotate(90deg);
            }

            &:after {
                bottom: -5px;
                transform: rotate(-90deg);
                -o-transform: rotate(-90deg);
                -ms-transform: rotate(-90deg);
                -moz-transform: rotate(-90deg);
                -webkit-transform: rotate(-90deg);
            }
        }

        &[aria-expanded="true"] {
            .navbar-toggler-icon {

                &:before {
                    top: 5px;
                    transform: rotate(45deg);
                    -o-transform: rotate(45deg);
                    -ms-transform: rotate(45deg);
                    -moz-transform: rotate(45deg);
                    -webkit-transform: rotate(45deg);
                }

                &:after {
                    bottom: -1px;
                    transform: rotate(-45deg);
                    -o-transform: rotate(-45deg);
                    -ms-transform: rotate(-45deg);
                    -moz-transform: rotate(-45deg);
                    -webkit-transform: rotate(-45deg);
                }
            }
        }

        &:focus {
            box-shadow: none;
        }
    }

    .navbar-nav {

        .dropdown-menu {
            padding: 0;

            li {

                &:first-child {
                    .dropdown-item {
                        border-radius: 5px 5px 0 0;
                    }
                }

                &:last-child {
                    .dropdown-item {
                        border-radius: 0 0 5px 5px;
                    }
                }
            }

            .dropdown-item {

                &:hover,
                &:focus {
                    background-color: $bgPurple;
                }
            }
        }

        &.fp-header-links {
            margin: 0 auto;

            .nav-item {
                padding-left: 50px;

                @media only screen and (max-width: $lg_1199) {
                    padding-left: 10px;
                    margin-right: 0;
                }
            }
        }
    }

    .navbar-collapse {

        @media only screen and (max-width: $md_991) {
            position: fixed;
            top: 0;
            z-index: 2;
            left: -130%;
            width: 400px;
            padding: 15px;
            height: 100% !important;
            display: block !important;
            background: $bgLightPurple;
            transition: all .7s ease-in-out;
            -o-transition: all .7s ease-in-out;
            -ms-transition: all .7s ease-in-out;
            -moz-transition: all .7s ease-in-out;
            -webkit-transition: all .7s ease-in-out;

            &.show {
                left: 0;
            }

            .fp-cat-list {
                margin-top: 0;
                padding: 0 0 15px;
            }

            .nav-link {
                color: $textBlack;

                &:hover {
                    color: $textPurple;
                }
            }
        }

        @media only screen and (max-width: $xs_414) {
            width: 280px;
        }
    }

    // Profile
    .fp-profile {
        margin-left: 50px;

        @media only screen and (max-width: $lg_1199) {
            margin-left: 0;
        }

        .nav-item {
            padding-left: 15px;
        }

        .nav-link {
            img {
                width: 40px;
                height: 40px;
                margin-right: 8px;
                object-fit: cover;
                border-radius: 50%;
            }
        }

        .fp-cmn-btn {

            &:hover,
            &:focus {
                color: $textBlack;
                background: $bgWhite;
            }
        }

        .fp-cmn-brdr-btn {
            color: $textWhite;
            border-color: $bgWhite;

            &:hover,
            &:focus {
                color: $textBlack;
                background: $bgPurple;
                border-color: transparent;
            }
        }

        @media only screen and (max-width: $md_991) {
            margin-left: 0;

            .nav-item {
                padding-left: 0;
            }

            .btn {
                width: 100%;
                margin-top: 15px;
            }
        }

        .nav-item {
            .nav-link {
                &.dropdown-toggle {
                    &:after {
                        margin-left: 0.3rem;
                        @include transition;
                    }
                    &[aria-expanded="true"] {
                        &:after {
                            transform: rotate(180deg); 
                        }
                    }
                }
            }
            .fp-profile-menu {
                margin: 0;
                right: 0;
                left: inherit;
                padding: 0;
                overflow: hidden;
                border-radius: 8px;
                li {
                    + {
                        li {
                            border-top: solid $bgGreyLight 1px;
                        }
                    }
                    .dropdown-item {
                        background: $bgWhite;
                        padding: 8px 16px;
                        font-size: $font16;
                        color: $textBlack;
                        &:hover {
                            background: $bgPurple;
                        }
                    }
                }
            }
            @media only screen and (min-width: $md_992) {
                &:hover {
                    .nav-link {
                        &.dropdown-toggle {
                            &:after {
                                transform: rotate(180deg); 
                            }
                        }
                    }
                    .dropdown-menu {
                        display: block;
                    }
                }
            }
        }

    }

    .fp-mobile-profile {
        @include fpDflexAlignItemsCenter;
        .nav-link {
            width: 40px;
            height: 40px;
            overflow: hidden;
            color: transparent;
        }
    }
}

// Mega Menu Links
.fp-mega-menu {
    position: fixed;
    top: 190px;
    width: 100%;
    opacity: 0;
    z-index: 9;
    padding: 20px 0;
    background: #FCF8FC;
    height: calc(100vh - 170px);
    transform: translateY(-150%);
    transition: all 0.9s;

    &.fp-menu-open {
        opacity: 1;
        transform: translateY(0);
    }

    &.fp-menu-fixed {
        top: 87px;
        height: calc(100vh - 100px);
    }

    @media only screen and (max-width: $xl_1440) {
        top: 175px;

        &.fp-menu-fixed {
            top: 70px;
        }
    }

    @media only screen and (max-width: $lg_1199) {
        top: 75px;
        height: calc(100vh - 70px);
    }

    @media only screen and (max-width: $md_991) {
        top: 0;
        left: -400px;
        z-index: 999;
        width: 400px;
        height: 100%;
        transform: translateY(0);

        &.fp-menu-open {
            left: 0;
        }
    }

    @media only screen and (max-width: $xs_414) {
        width: 310px;
    }

    .fp-filter-close {
        position: relative;
        top: 0;
        right: 0;
        padding: 0;
        width: 30px;
        height: 30px;
        display: block;
        border: 0 !important;
        margin: 0 0 20px auto;

        &::after,
        &::before {
            top: 0;
        }
    }

    .fp-ps-menu-links {
        padding: 24px;
        margin-bottom: 30px;
        border-radius: 24px;
        background: $bgWhite;
        border: 1px solid $bgLightPink;

        @media only screen and (max-width: $xl_1440) {
            padding: 15px;
        }

        .fp-badge {
            padding: 8px 14px;
            margin-bottom: 10px;
            border-radius: 8px;
            display: inline-block;
            background: $bgLightPurple;
            border: 1px solid $bgLightPink;

            @media only screen and (max-width: $xl_1440) {
                font-size: 12px;
                margin-bottom: 0;
                padding: 5px 10px;
            }
        }

        .fp-ps-menu-box {
            padding: 10px;
            display: flex;
            margin-top: 15px;
            align-items: center;
            border-radius: 16px;
            background: $bgLightPurple;
            border: 1px solid $bgLightPink;

            .fp-ps-img {
                width: 56px;
                height: 56px;
                line-height: 50px;
                text-align: center;
                border-radius: 12px;
                background: $bgWhite;
                border: 1px solid $bgLightPink;

                img {
                    width: 30px;
                    height: 30px;
                    object-fit: contain;
                }

                @media only screen and (max-width: $xl_1440) {
                    width: 45px;
                    height: 45px;
                    line-height: 40px;

                    img {
                        width: 25px;
                        height: 25px;
                    }
                }
            }

            .fp-ps-des {
                padding-left: 15px;

                p {
                    color: $bgBlack;
                    margin-bottom: 0;
                }

                @media only screen and (max-width: $xl_1440) {
                    padding-left: 10px;

                    p {
                        font-size: 14px;
                    }
                }
            }

            &:hover {
                background: $bgPurple;
                border-color: transparent;

                .fp-ps-img {
                    border-color: transparent;
                }
            }
        }
    }

    .fp-menu-get-find {
        padding: 0;
        margin: 0 0 40px;

        @media only screen and (max-width: $md_991) {
            display: none;
        }

        .fp-get-project {
            overflow: hidden;
            padding: 40px 0 110px 40px;

            .fp-get-img {
                height: 360px;

                img {
                    width: 90%;
                }

                @media only screen and (max-width: $xl_1440) {
                    height: 280px;

                    img {
                        width: 70%;
                    }
                }
            }

            .fp-get-des {

                @media only screen and (max-width: $xl_1440) {
                    p {
                        font-size: 16px;
                    }
                }
            }
        }
    }

    .mCSB_inside {
        .mCSB_container {
            margin-right: 0;
        }
    }
}

body {
    &.fp-body-open {
        overflow: hidden;
    }
}

// Categories Links
.fp-cat-list {
    padding: 16px 0;
    margin-top: 72px;

    @media only screen and (max-width: $xl_1440) {
        margin-top: 72px;
    }

    @media only screen and (max-width: $xs_575) {
        margin-top: 63px;
    }
    
    &.fp-empty-cl {
        margin-top: 42px;
    }

    .fp-cat-link {
        display: flex;
        padding-right: 50px;
        justify-content: space-between;

        @media only screen and (max-width: $xl_1440) {
            font-size: 15px;
        }

        @media only screen and (max-width: $lg_1199) {
            padding: 0 0 25px;
        }

        @media only screen and (max-width: $md_991) {
            display: none;
        }

        a {
            color: $textBlack;

            &.fp-view-link {
                text-decoration: underline;
            }

            &:hover {
                color: $textPurple;
            }
        }
    }
}