// Common BreadCrumb
.fp-breadcrumb {
    padding: 30px 0;
    background: $bgBlack;

    .breadcrumb {
        margin-bottom: 0;

        .breadcrumb-item {
            color: $textWhite;

            &:not(:first-child)::before {
                content: ">";
                color: $textWhite;
            }

            &.active {
                color: $textPurple;
            }

            a {
                color: $textWhite;

                &:hover {
                    color: $textPurple;
                }
            }
        }
    }
}

// InnerHero
.fp-inner-hero {
    padding: 50px 0;
    margin-bottom: 40px;
    background: $bgLightPurple;

    @media only screen and (max-width: $md_991) {
        padding: 50px 0;
    }

    @media only screen and (max-width: $xs_575) {
        padding: 40px 0;
    }

    .fp-inner-hero-des {
        .fp-head-40 {
            margin-bottom: 20px;
        }

        p {
            margin-bottom: 10px;

            a {
                color: $textBlack;
                text-decoration: underline;

                &:hover {
                    color: $textPurple;
                    text-decoration: none;
                }
            }
        }

        .fp-hero-date {
            color: rgba($color: $bgBlack, $alpha: 0.6);
        }

        .fp-cat-des {
            margin-top: 20px;

            p {
                color: $textBlack;
            }
        }
    }
}

// CompanyList
.fp-cmpny-list {

    .fp-cmn-form {
        .form-group {
            margin-bottom: 20px;

            .fp-dropdown {
                @include fpCommonDropdown;

                .btn {
                    width: 100%;
                    text-align: left;
                }
            }
        }

        .form-control {
            padding: 10px 15px;
            border: 1px solid $bgPurple;
        }

        .fp-checkbox-group {
            margin-top: 30px;
            padding-top: 25px;
            border-top: 1px solid $bgPurple;

            &.fp-check-border {
                margin-bottom: 30px;
                padding-bottom: 15px;
                border-bottom: 1px solid $bgPurple;
            }

            .fp-checkbox {
                margin-bottom: 15px;
            }

            .fp-head-18 {
                margin-bottom: 20px;
            }
        }

        .fp-filter-btn-group {
            .btn {
                width: 100%;
            }
        }
    }

    .fp-filter-box {
        padding: 40px 20px;
        border-radius: 24px;
        background: $bgLightPurple;

        @media only screen and (max-width: $md_991) {
            position: fixed;
            top: 0;
            left: -310px;
            z-index: 9;
            width: 300px;
            height: 100%;
            border-radius: 0;
            padding-top: 50px;
            overflow-y: scroll;
            background: $bgWhite;
            @include fpTransition;
            box-shadow: 0 0 5px rgba($color: $bgBlack, $alpha: 0.2);

            &.fp-show-filter {
                left: 0;
            }
        }
    }
}

.fp-cmpny-head {
    padding-bottom: 40px;

    .fp-cmpny-sortby {
        display: flex;
        align-items: center;
        justify-content: end;

        @media only screen and (max-width: $sm_767) {
            justify-content: start;
            margin-top: 10px;
        }

        label {
            padding-right: 15px
        }
    }

    .fp-dropdown {
        @include fpCommonDropdown;

        .dropdown-menu {
            &.show {
                min-width: 100%;
            }
        }
    }
}

.fp-cmpny-box-list {
    .fp-cmpny-sub-list {
        margin-bottom: 30px;
        border-radius: 24px;
        border: 1px solid $bgLightPink;

        @media only screen and (max-width: $sm_767) {
            border-radius: 10px;
        }

        .fp-cmpny-des,
        .fp-cmpny-footer,
        .fp-cmpny-header {
            padding: 24px;

            @media only screen and (max-width: $sm_767) {
                padding: 15px;
            }
        }

        .fp-cmpny-body {

            @media only screen and (min-width: $md_992) {
                border-right: 1px solid $bgLightPink;
            }

            .fp-cmpny-des {
                p {
                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }

        .fp-cmpny-footer {
            background: $bgLightPurple;
            border-top: 1px solid $bgLightPink;

            @media only screen and (min-width: $md_992) {
                border-bottom-left-radius: 24px;
            }

            @media only screen and (max-width: $md_991) {
                border-bottom: 1px solid $bgLightPink;
            }

            .fp-cmpny-ft-des {
                span {
                    @media only screen and (max-width: $xl_1366) {
                        font-size: 14px;
                    }

                    img {
                        width: 20px;
                        height: 20px;
                        margin: -3px 5px 0 0;
                        vertical-align: middle;

                        @media only screen and (max-width: $lg_1200) {
                            display: block;
                            margin: 0 auto 5px;
                        }
                    }
                }

                .col-auto {
                    @media only screen and (max-width: $xs_575) {
                        width: 50%;
                        margin: 10px 0;
                        text-align: center;
                    }
                }
            }
        }

        .fp-cmpny-des {
            min-height: 220px;
        }

        .fp-cmpny-badges {
            padding: 24px 0;

            @media only screen and (max-width: $md_991) {
                padding: 24px;
            }

            @media only screen and (max-width: $sm_767) {
                padding: 15px;
            }

            p {
                margin: 0;
            }

            a {
                text-decoration: underline;

                &:hover {
                    color: $textPurple;
                    text-decoration: none;
                }
            }

            p,
            a {
                color: $textBlack;
                font-weight: $fontMedium;
            }

            .fp-badges-group {
                padding: 10px 0;

                // @media only screen and (max-width: $md_991) {
                //     padding: 15px 0;
                // }
            }

            .fp-badge-group-scroll {
                &.tr-badge-scroll {
                    height: 220px;
                    overflow-y: scroll;
                }
            }
        }
    }

    .fp-cmpny-header {
        border-bottom: 1px solid $bgLightPink;

        .fp-cmn-heading {
            margin-bottom: 0;

            img {
                margin-right: 15px;

                &:not(.fp-badge img) {
                    width: 56px;
                    height: 56px;
                }
            }
        }

        .fp-cmpny-header-name {
            position: relative;

            .fp-badge {
                margin-left: 40px;
                vertical-align: middle;

                img {
                    margin-right: 10px;
                }

                @media only screen and (max-width: $lg_1199) {
                    float: right;
                    margin-left: 0;
                }

                @media only screen and (max-width: $xs_575) {
                    position: absolute;
                    right: 0;
                    padding: 0;
                    width: 40px;
                    height: 40px;
                    overflow: hidden;
                    line-height: 40px;
                    text-align: center;
                    color: transparent;
                    border-radius: 5px;

                    img {
                        margin-right: 0;
                    }
                }
            }
        }

        .fp-cmpny-btn-group {
            .btn {
                margin-left: 10px;
            }

            @media only screen and (max-width: $xs_575) {
                display: flex;

                .btn {
                    margin: 10px 2px;
                    width: 50%;
                }
            }

            @media only screen and (max-width: $xs_414) {
                display: block;
                margin-top: 15px;

                .btn {
                    width: 100%;
                    margin: 5px 0;
                }
            }
        }
    }
}

.fp-team-members {
    padding: 80px 0;

    @media only screen and (max-width: $sm_767) {
        padding: 40px 0;
    }

    .fp-team-emp {
        margin-bottom: 20px;

        @media only screen and (min-width: $lg_1200) {
            margin-bottom: 30px;
        }

        @media only screen and (min-width: $xl_1920) {
            margin-bottom: 40px;
        }

        .fp-team-emp-image {
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 16px;
                aspect-ratio: 1 / .95;
            }
        }

        .fp-team-emp-info {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: center;
            margin: 16px 0 0;

            @media only screen and (min-width: $xl_1920) {
                margin: 24px 0 0;
            }

            .fp-team-content {
                .fp-head-24 {
                    margin: 0 0 2px;
                }

                p {
                    margin: 0;
                    color: $textGrey;
                }
            }
        }
    }
}

// Badges Group
.fp-badges-group {

    .fp-badge {
        margin: 5px 0;
        padding: 8px 13px;
        display: inline-block;
    }
}

// FilterMobile Sidebar
.fp-filter-mob {
    width: 56px;
    height: 56px;
    display: block;
    line-height: 56px;
    margin-left: 15px;
    text-align: center;
    border-radius: 10px;
    background: $bgLightPurple;
    border: 1px solid $bgPurple;

    img {
        width: 25px;
    }

    @media only screen and (max-width: $sm_767) {
        width: 46px;
        height: 46px;
        line-height: 42px;

        img {
            width: 20px;
        }
    }
}

.fp-filter-close {
    position: absolute;
    top: 10px;
    right: 25px;
    width: 25px;
    height: 25px;

    &:hover {
        opacity: 1;
    }

    &:before,
    &:after {
        position: absolute;
        left: 15px;
        width: 2px;
        content: '';
        height: 25px;
        background-color: $bgBlack;
    }

    &:before {
        transform: rotate(45deg);
        -o-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
    }

    &:after {
        transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
    }
}

// Company Details
.fp-cmpny-details {
    padding-top: 60px;

    @media only screen and (max-width: $md_991) {
        padding-top: 30px;
    }

    .fp-cmpny-box-list {
        .fp-cmpny-header {
            padding-top: 0;
            border-bottom: 0;

            img {
                margin-right: 15px;

                &:not(.fp-badge img) {
                    width: 90px;
                    height: 90px;

                    @media only screen and (max-width: $xl_1660) {
                        width: 60px;
                        height: 60px;
                    }

                    @media only screen and (max-width: $sm_767) {
                        width: 40px;
                        height: 40px;
                        margin-right: 5px;
                    }
                }
            }
        }

        .fp-cmpny-btn-group {
            .fp-cmn-btn {
                @media only screen and (min-width: $sm_768) {
                    height: 56px;
                    // line-height: 2.4;
                }
            }
        }

        .fp-cmpny-body {
            .fp-head-40 {
                margin-bottom: 25px;

                @media only screen and (max-width: $sm_768) {
                    margin-bottom: 10px;
                }
            }
        }

        .fp-cmpny-badges {
            .fp-badges-group {
                padding: 0 0 15px;

                &.fp-badge-scroll {
                    height: 150px;
                    padding-bottom: 0;
                }
            }
        }

        .fp-cmpny-des {
            min-height: 290px;
        }
    }

    .fp-cmpny-pro-size {
        padding-bottom: 40px;

        span {
            display: block;
            padding-top: 10px;
            font-weight: $fontRegular;

            img {
                margin-top: -3px;
            }
        }
    }

    .fp-cmpny-sub-list {
        margin-bottom: 0;
    }
}

// Company Portfolio
.fp-cmpny-portfolio {
    padding: 80px 0;

    @media only screen and (max-width: $sm_767) {
        padding: 40px 0;
    }

    .fp-port-head {
        padding-bottom: 25px;

        @media only screen and (max-width: $sm_767) {
            padding-bottom: 10px;
        }
    }

    .fp-cmpny-port-list {
        .fp-port-img {
            padding-bottom: 24px;

            img {
                width: 100%;
                height: 260px;
                object-fit: cover;
                border-radius: 16px;
            }
        }

        .fp-head-24 {
            font-weight: $fontRegular;
        }

        .fp-port-des {
            padding-bottom: 40px;

            @media only screen and (max-width: $sm_767) {
                padding-bottom: 20px;
            }

            .fp-cmn-des {
                padding: 0 10px;

                p {
                    @include fpLineRestrict;
                    -webkit-line-clamp: 2;
                }

                .fp-badges-group {
                    display: flex;
                    flex-wrap: wrap;
                    padding-top: 5px;

                    .fp-badge {
                        margin: 0 10px 10px 0;
                    }
                }
            }
        }
    }
}

// Company Awards
.fp-cmpny-awards {
    .fp-cmny-award-grp {
        text-align: center;

        img {
            @media only screen and (max-width: $md_991) {
                width: 130px;
            }

            @media only screen and (max-width: $sm_767) {
                width: 100px;
                margin: 10px 0;
            }
        }
    }

    .fp-cmpny-award-head {
        padding-bottom: 24px;
    }

    .fp-award-badges {
        margin-top: 50px;

        .fp-badges-group {
            display: flex;
            flex-wrap: wrap;
            padding-top: 5px;
            align-items: center;

            .fp-badge {
                margin: 0 10px 10px 0;
            }

            .fp-more-link {
                margin-bottom: 10px;

                @media only screen and (max-width: $md_991) {
                    width: 100%;
                    margin-top: 15px;
                }

                a {
                    line-height: 1;
                    color: $textBlack;
                    font-weight: $fontMedium;
                    text-transform: capitalize;
                    text-decoration: underline;

                    &:hover {
                        color: $textPurple;
                        text-decoration: none;
                    }
                }
            }
        }
    }
}

.fp-border-box {
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 24px;
    border: 1px solid $bgLightPink;

    @media only screen and (max-width: $md_991) {
        padding: 20px;
    }
}

// Company Contact
.fp-cmpny-contact {
    .fp-cmpny-contact-list {
        @media only screen and (max-width: $md_991) {
            padding-bottom: 30px;
        }
    }

    .fp-cmpny-contact-head {
        padding: 50px 20px 50px 0;

        @media only screen and (min-width: $xs_576) {
            display: flex;

            .fp-cmpny-contact-des {
                padding-left: 25px;
            }
        }

        @media only screen and (max-width: $md_991) {
            padding: 30px 0;
        }

        @media only screen and (max-width: $xs_575) {
            padding: 10px 0 20px;
        }

        .fp-cmpny-img {
            width: 80px;

            @media only screen and (max-width: $xs_575) {
                margin-bottom: 10px;
            }

            img {
                @media only screen and (max-width: $md_991) {
                    width: 50px;
                }
            }
        }

        .fp-cmpny-contact-des {

            p {
                margin-bottom: 0;
            }
        }
    }

    .fp-cmpny-map {
        iframe {
            width: 100%;
            height: 530px;
            border-radius: 24px;

            @media only screen and (max-width: $xs_575) {
                height: 300px;
            }
        }
    }

    .fp-cmpny-social {

        ul {
            margin-top: 20px;

            li {
                padding-right: 10px;
                list-style-type: none;
                display: inline-block;

                @media only screen and (max-width: $lg_1199) {
                    padding-right: 5px;
                }

                @media only screen and (max-width: $xs_575) {
                    padding: 5px 0;
                    display: block;

                    .fp-cmn-btn {
                        width: 100%;
                    }
                }

                .fp-cmn-btn {
                    color: $textWhite;
                    background: $bgDarkPink;

                    .fp-svg {
                        margin-right: 10px;

                        path {
                            fill: $bgWhite;
                        }
                    }

                    &:hover {
                        background: $bgBlack;
                    }
                }
            }
        }
    }
}