@media (max-width:1400px) {
    .sppb-section {

        //service page top section background image position
        &.background-position {
            background-position: 15% 100%;
        }
    }
}


@media (max-width: 1200px) {
    .contact-info {

        .phone-no,
        .email-id {
            .sppb-addon-title {
                width: 100%;
            }
        }
    }
}

@media (max-width: 992px) {

    .sp-page-title .sp-page-title-sub-heading {
        font-size: 200px;
    }

    .com-spsimpleportfolio .sp-simpleportfolio {
        &.sp-simpleportfolio-view-items {
            padding: 0;
        }

        .sp-simpleportfolio-items .sp-simpleportfolio-item {
            &:nth-child(3) {
                margin-top: 0;
            }
        }

        .sp-simpleportfolio-filter {
            margin: 0px 0px 40px;

            >ul>li {
                margin: 0px 3px;

                >a {
                    padding: 10px 25px;
                }
            }
        }
    }

    #sp-bottom #sp-bottom1 .sp-module {
        padding-right: 0;
    }
}

@media (max-width: 991px) {

    .service-tab {
        .custom-tab {
            .sppb-nav {
                li {
                    display: inline-block;
                    border-right: none;

                    &>a:hover,
                    a:focus {
                        border: none !important;
                    }
                }

                li.active {
                    &>a {
                        border: none !important;
                    }
                }
            }
        }
    }

    .contact-info {

        .phone-no,
        .email-id {
            .sppb-addon-title {
                width: 70px;
            }
        }
    }

    .view-article {
        #sp-right {
            margin-top: 80px;
        }
    }

    //blog version 2
    .blog-v2 {
        .sppb-addon-articles {
            .sppb-article-info-wrap {

                .sppb-article-meta,
                .sppb-article-introtext {
                    flex: 1 0 100%;
                    max-width: 100%;
                }

                .sppb-article-meta {
                    h3 {
                        font-size: 25px;
                        line-height: 35px;
                        margin-top: 10px;
                    }
                }

                .sppb-article-introtext {
                    margin-top: 0px;
                }
            }
        }

        #sp-right {
            &:before {
                display: none;
            }

            .sp-module {
                padding: 0px;

                .sp-module-content {
                    padding: 0px;
                }
            }
        }

        .blog {
            .article-list {
                .article {
                    .article-body {
                        padding: 0px;
                    }
                }
            }
        }
    }


    .view-article.blog-v2 {
        #sp-right {
            .sp-module {
                .latestnews {
                    padding: 20px;
                }
            }
        }
    }

    #sp-bottom .sp-module ul>li {
        margin-bottom: 12px;
    }
    /* Predefine Header */
    #sp-top-bar + #sp-header {
        padding-top:40px;
    } 
}

@media (max-width:767px) {
    body {
        font-size: 14px !important;

        h1 {
            font-size: 32px;
        }

        h2 {
            font-size: 24px;
        }

        h3 {
            font-size: 16px;
        }

        h4 {
            font-size: 14px;
        }
    }

    // Button
    .sppb-btn {
        font-size: 12px;
        letter-spacing: 0px;
        padding: 12px 20px;
        border: none;

        &.sppb-btn-xlg {
            font-size: 14px;
            padding: 20px 45px;
        }

        &.sppb-btn-lg {
            padding: 15px 35px;
        }

        &.sppb-btn-sm {
            padding: 12px 15px;
        }

        &.sppb-btn-xs {
            padding: 5px 15px;
            font-size: 11px;
        }
    }

    .sp-page-title .sp-page-title-sub-heading {
        display: none;
    }

    //counter row

    .number-item {
        &:after {
            width: 100%;
            height: 1px;
            right: 0px;
            top: unset;
            bottom: 0;
            border-bottom: 1px solid rgba(136, 136, 136, 0.60);
        }
    }

    .fun-fact-inner {
        &:after {
            width: 100%;
            height: 1px;
            right: 0px;
            top: unset;
            bottom: 0;
            border-bottom: 1px solid rgba(136, 136, 136, 0.60);
        }
    }

    //values-item 
    .values-item {
        .sppb-addon-title strong {
            font-size: 60px;
            margin-bottom: 10px
        }
    }

    .offcanvas-menu {
        width: 100%;
    }

    .practice-areas {
        padding: 15px;
    }

    #sp-left,
    #sp-right {
        .sp-module.book-free .sp-module-content .sppb-btn {
            font-size: 12px;
            padding: 12px 20px;
        }
    }

    //blog version- 2

    .blog-v2 {
        section#sp-main-body {
            padding-top: 40px;
            padding-bottom: 40px;
        }

        .sppb-addon-articles {
            .sppb-article-info-wrap {
                border-top: none;

                .sppb-article-meta {
                    h3 {
                        font-size: 22px;
                        line-height: 30px;
                    }
                }
            }
        }

        .blog {
            .article-list {
                .article {
                    .article-header {
                        h2 {
                            font-size: 18px;
                        }
                    }
                }
            }
        }

        #sp-right {
            .sp-module {
                .latestnews {
                    &>div .latest-post-title {
                        font-size: 18px;
                    }
                }
            }
        }
    }

    .sp-simpleportfolio-view-item {
        margin-top: 20px;

        .sp-simpleportfolio-details-header {
            margin-bottom: 0;

            h2 {
                font-size: 28px;
            }
        }
    }

    .article-details .article-header {
        padding-top: 15px;

        h1,
        h2 {
            font-size: 32px;
        }
    }

    #sp-bottom-top .sppb-addon-form-builder .sppb-form-builder-btn .sppb-btn {
        font-size: 12px;
        padding: 12px 20px;
    }

    #sp-bottom-top1 .sppb-addon-form-builder .sppb-form-builder-btn {
        width: 100%;
        float: left;
    }

    #sp-bottom {
        font-size: 12px;

        padding: 40px 0px 20px;

        .sp-module {
            margin-bottom: 20px;

            ul>li {
                margin-bottom: 5px;

                >a {
                    letter-spacing: 0;
                }
            }
        }

        #sp-bottom3 {
            padding-top: 0;
        }
    }

    #sp-footer .container-inner {
        padding: 20px 0;
        text-align: center;

        .sppb-addon-content {
            text-align: center;
        }
    }

    body.ltr.offcanvs-position-left {
        .offcanvas-menu {
            left: -100%;
        }
    }

    body.ltr.offcanvs-position-left.offcanvas-active {
        .body-wrapper {
            left: 0px;
        }
    }

    .offcanvas-menu {
        .offcanvas-inner {
            .sp-module {
                .menu {
                    .menu-parent {

                        .menu-child li a,
                        span {
                            font-size: 12px;
                        }
                    }

                    &>li,
                    .menu-parent {

                        a,
                        span {
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
    #sp-top-bar + #sp-header {
        padding-top:60px;
    } 

}

@media (max-width: 480px) {


    .sp-page-title {
        padding: 60px 0px;

        .sp-page-title-heading {
            font-size: 32px;
        }

        .sp-page-title-sub-heading {
            font-size: 16px;
        }
    }

    .com-spsimpleportfolio .sp-simpleportfolio {

        .sp-simpleportfolio-items .sp-simpleportfolio-item {

            &:nth-child(1),
            &:nth-child(3) {
                margin-top: 0;
            }

            .sp-simpleportfolio-info {
                padding: 15px;
            }
        }

        .sp-simpleportfolio-filter {
            margin: 0px 0px 30px;
        }
    }

    .com-spsimpleportfolio .sp-simpleportfolio .sp-simpleportfolio-filter>ul>li>a {
        font-size: 13px;
        padding: 5px 0px;
        margin-right: 10px;
    }

    .portfolio-details-list .list ul li {
        margin-bottom: 2px;
    }

    .blockquote {
        font-size: 16px;
        padding: 15px;
    }

    .price-box-item {
        .sppb-addon-title {
            strong {
                font-size: 60px;
            }
        }
    }

    .client-list .sppb-col-sm-2 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;

        a {
            margin-bottom: 10px;
        }

    }

    .view-category #sp-main-body {
        padding-top: 0px;
    }

    .article-list {
        .article {
            margin-bottom: 10px;

            .article-body {
                padding: 15px;
            }

            .article-header {

                h1,
                h2 {
                    font-size: 16px;
                    margin: .5rem 0 0.4rem 0;
                }
            }
        }
    }

    .article-info {
        margin-top: 0;

        >span.published {
            top: 15px;
            left: 15px;
        }
    }

    #sp-left,
    #sp-right {
        .sp-module {
            padding: 0;

            &:not(:first-child) {
                margin-top: 15px;
            }

            .sp-module-title {
                font-size: 24px;
            }

            .sp-module-content {
                padding: 25px 15px;
            }

            &.book-free .sp-module-content {
                padding: 0;
            }

            .latestnews>div {
                &:not(:last-child) {
                    padding-bottom: 10px;
                    margin-bottom: 10px;
                }

                .latest-post-title {
                    font-size: 15px;
                }

                .latest-post-info {
                    margin-bottom: 0px;
                }
            }

            .categories-module li:not(:last-child) {
                margin-bottom: 8px;
            }
        }
    }

    .view-article #sp-right {
        margin-top: 40px;
    }

    .pager {
        padding: 1.5rem 0 0 0;
        margin: 1rem 0 0 0;
    }

    ul.pagination {
        padding: 10px 0px;
        margin: 30px 0 0;
    }

    .contact-info:after {
        width: 200px;
        height: 200px;
        bottom: -20px;
        right: -20px;
    }

    .form-builder-radio-content {
        .form-builder-radio-label {
            margin: 0 10px 0 0;
            padding-left: 18px;
        }

        .form-builder-radio-item {
            label {
                &:before {
                    width: 10px;
                    height: 10px;
                }

                &:after {
                    width: 12px;
                    height: 12px;
                }
            }

            input:checked+label::after {
                width: 12px;
                height: 12px;
            }
        }
    }
}