/* Large Devices, Wide Screens */
@media (max-width: 1200px) and (min-width: 990px) {
  .sppb-teams-wrapper {
    ul {
      li {
        .sppb-team-image-wrapper {
          img {
            max-height: 230px;
          }
        }

        .sppb-team-info {
          h3 {
            margin: 0;
          }

          p {
            margin-bottom: 5px;
          }

          .sppb-team-social-icons a {
            margin-top: 5px;
            margin-right: 5px;
          }
        }
      }
    }
    .sppb-carousel-arrow.left {
      transform: translate(-25%, -100%);
    }
    .sppb-carousel-arrow.right {
      transform: translate(25%, -100%);
    }
  }
}

@media (max-width: 1199px) {
  #sp-header.full-header {
    padding-left: 15px;
    padding-right: 15px;
  }
  #sp-header.header-with-social {
    #sp-menu .social-wrap {
      padding-left: 0px;
    }
  }
  .sp-megamenu-parent {
    > li {
      > a,
      span {
        padding: 0 10px;
      }
    }
  }
  .one-blog-layout {
    > .sppb-addon-content {
      > .sppb-row {
        > .sppb-addon-article-layout > .sppb-addon-article-layout-content {
          .sppb-article-info-wrap {
            max-width: 300px;
          }
        }
        > .sppb-addon-article-layout:nth-of-type(odd) {
          .sppb-addon-article-layout-content {
            flex-direction: row-reverse;
            padding-right: 35px;
            &::after {
              right: -23px;
            }
            .sppb-article-info-wrap {
              text-align: right;
            }
          }
        }
        > .sppb-addon-article-layout:nth-of-type(even) {
          .sppb-addon-article-layout-content {
            flex-direction: row;
            padding-left: 35px;
            margin-top: 90px;
            &::after {
              left: -23px;
            }
          }
        }
      }
    }
  }
  .one-testimonial-carousel {
    .sppb-carousel-extended-list {
      &::before {
        left: 49%;
      }
      .sppb-carousel-extended-item {
        left: 0;
      }
    }
  }
}
@media (min-width: 992px) {
  #sp-header.header-with-modal-menu #offcanvas-toggler.offcanvas {
    display: none !important;
  }
}
@media (max-width: 991px) {
  :root {
    --header_height: $header_height_sm;
  }
  .sp-megamenu-parent {
    > li {
      > a,
      > span {
        line-height: $header_height_sm;
      }
    }
  }
  #sp-header {
    height: $header_height_sm;
    .logo {
      height: $header_height_sm;
    }
    &.header-with-modal-menu {
      #offcanvas-toggler {
        display: flex !important;
      }
      #modal-menu-toggler {
        display: none;
      }
    }
    &.full-header-center,
    &.header-with-modal-menu,
    &.full-header-left,
    &.lg-header,
    &.header-with-social {
      #offcanvas-toggler.mega {
        display: flex !important;
      }
    }
    &.lg-header {
      #offcanvas-toggler.mega {
        display: none !important;
      }
      .offcanvas-toggler-left.offcanvas {
        display: flex !important;
      }
    }
  }
  #sp-header-topbar {
    .container-inner {
      > .row {
        min-height: $header_height_sm;
      }
    }
  }
  #modal-menu {
    top: $header_height_sm;
  }
  #offcanvas-toggler {
    height: $header_height_sm;
    line-height: $header_height_sm;
  }
  #sp-logo {
    &.has-border > .sp-column {
      border-right: none;
      padding-right: 0px;
    }
  }
  #sp-menu .social-wrap,
  #sp-logo.has-border {
    &:after {
      display: none;
    }
  }
  #sp-logo.has-border {
    padding-right: 15px;
  }
  #sp-menu .social-wrap {
    padding-left: 15px;
  }
  #sp-header.header-with-modal-menu.center-layout .sp-contact-info,
  #sp-header.header-with-modal-menu.classic-layout .sp-contact-info {
    display: none;
  }
  #sp-header-topbar {
    margin: 10px 0px;
    .container-inner {
      padding-bottom: 10px;
    }
  }
  .inner-wrapper-sticky {
    z-index: 1000;
  }
  .one-clients-section {
    .sppb-addon-content {
      > .sppb-row {
        > div {
          max-width: 33.3333%;
          flex: 0 1 33.333%;
          margin: 30px 0;
          .sppb-img-responsive {
            margin: 0 auto;
          }
        }
      }
    }
  }
  .one-testimonial-carousel {
    .sppb-carousel-extended-list {
      .sppb-carousel-extended-item {
        height: 335px;
      }
    }
  }

  //For Team Section
  .sppb-teams-wrapper {
    ul {
      display: block;
      text-align: center;

      li {
        display: block;
        width: auto;
        float: none;
        margin-bottom: 30px;
      }

      li.active {
        width: auto;

        .sppb-team-image-wrapper {
          float: none;
          clear: both;
          display: block;
        }

        .sppb-team-info {
          position: relative;
          width: 285px;
          display: inline-block;
          float: none;
        }

        .sppb-team-image-wrapper {
          float: none;
          text-align: -webkit-center;
          img {
            max-height: 263px;
          }
        }
      }
    }
    .sppb-carousel-arrow .fas {
      font-size: 36px;
    }
    .sppb-carousel-arrow.left {
      transform: translate(0%, -50%);
    }

    .sppb-carousel-arrow.right {
      transform: translate(0%, -50%);
    }
  }
  #sp-header {
    height: 70px !important;
    > .container:first-of-type {
      padding-top: 15px;
    }
  }
  .one-testimonial-carousel {
    .sppb-carousel-extended-list {
      &::before {
        display: none;
      }
      .sppb-carousel-extended-item {
        left: 0px;
      }
    }
  }
  .one-blog-layout {
    > .sppb-addon-content {
      &::before {
        display: none;
      }
      > .sppb-row {
        > .sppb-addon-article-layout {
          margin: 25px 0;
          > .sppb-addon-article-layout-content {
            flex-direction: column !important;
            margin: 0 !important;
            padding: 0 !important;
            &::after {
              display: none;
            }
            .sppb-article-img-wrap {
              max-width: 133px;
              max-height: 154px;
            }
            .sppb-article-info-wrap {
              max-width: 100%;
              text-align: center !important;
              margin-top: 20px;
            }
          }
        }
      }
    }
  }
  //Detail View
  .sp-simpleportfolio.sp-simpleportfolio-view-item {
    .sp-simpleportfolio-image {
      height: 500px;
    }

    .sp-simpleportfolio-details {
      .sp-simpleportfolio-description {
        float: left !important;
      }
      .sp-simpleportfolio-meta {
        padding-left: 60px;
        float: left !important;
      }
    }
  }
}

@media (max-width: 767px) {
  #sp-menu .social-wrap {
    padding-left: 10px;
    &:after {
      display: none;
    }
  }
  #sp-header {
    height: 60px !important;
    .menu-wrap {
      display: none;
    }
    > .container:first-of-type {
      padding-top: 7px;
    }
  }

  .modal-dialog.jviewport-width80 {
    width: auto;
  }
  .article.related-article-large.d-flex {
    display: block !important;
  }
  .related-article-large {
    .article-image {
      width: auto;
      min-width: auto;
      margin-bottom: 15px;
    }
    .article-information {
      border-left: none;
      padding-left: 0;
      margin-left: 0;
    }
  }
  .article-list.grid {
    --columns: 1 !important;
    margin-bottom: 15px;
  }

  .inner-wrapper-sticky {
    z-index: 100;
  }
  .one-testimonial-carousel {
    margin-left: 0px;
    .sppb-carousel-extended-list {
      &::before {
        display: none;
      }
      .sppb-carousel-extended-item {
        height: 300px;
      }
      .sppb-carousel-extended-outer-stage {
        column-gap: 60px;
      }
    }
  }
  .one-clients-section {
    .sppb-addon-content {
      > .sppb-row {
        > div {
          max-width: 50%;
          flex: 0 1 50%;
        }
      }
    }
  }
  // Simple Portfolio
  #mod-sp-simpleportfolio.sp-simpleportfolio {
    .sp-simpleportfolio-filter {
      padding-left: 15px;
      ul > li > a {
        font-size: 16px;
        padding: 5px 10px;
        margin-right: 8px;
      }
    }
  }
  //Login & REgistration
  .com-users.view-registration,
  .com-users.view-login {
    .sp-main-body {
      padding: 50px 0;
    }
  }
  // Artical
  .view-category {
    .article-body {
      .article-info {
        margin-bottom: 20px;
        margin-left: -10px !important;
      }
      .article-header {
        margin-left: -60px;
        h2 {
          font-size: 22px !important;
          line-height: 30px !important;
        }
      }
    }
    .blogblog-list-page-title .article-list .article .article-intro-image {
      margin-bottom: 40px;
    }
  }
  .view-article,
  .view-category {
    .blog-info-wrapper,
    .article-body {
      &::before {
        height: 40px;
        width: 40px;
        font-size: 20px;
        left: -60px;
      }
    }
  }

  .view-article {
    .sp-page-builder .page-content .sppb-section > .sppb-row-container {
      margin: 0 -15px !important;
    }

    .blog-info-wrapper {
      > div:first-of-type {
        flex-direction: column;
        align-items: flex-start !important;
        row-gap: 15px !important;
        margin-left: -10px;
        .article-ratings {
          padding-left: 10px;
        }
      }
    }
    .article-details .article-header {
      margin-left: -60px;
      margin-top: 30px;
    }
    .article-ratings-social-share {
      .social-share-block {
        margin-top: 0 !important;
      }
    }
  }
  .one-testimonial-carousel {
    .sppb-carousel-extended-list {
      .sppb-carousel-extended-outer-stage {
        height: 420px !important;
      }
      .sppb-testimonial-carousel-content-wrap
        .sppb-testimonial-carousel-name-designation {
        bottom: -90px !important;
      }
    }
  }
  //Detail View
  .sp-simpleportfolio.sp-simpleportfolio-view-item {
    .sp-simpleportfolio-image {
      height: 350px;
    }

    .sp-simpleportfolio-details {
      .sp-simpleportfolio-description {
        float: none !important;
        width: 100% !important;
      }
      .sp-simpleportfolio-meta {
        padding-left: 0;
        padding-top: 30px;
        width: 100% !important;
        float: none !important;
      }
    }
  }
  .portfolio-page-title,
  .blog-list-page-title {
    #sp-main-body {
      padding: 40px 0 50px 0;
    }
    .sp-page-title {
      .sp-page-title-heading {
        font-size: 42px;
      }
    }
  }
  //Social Share
  .view-article
    .article-ratings-social-share
    .article-social-share
    .social-share-icon
    ul
    li
    a {
    height: 30px;
    width: 30px;
    line-height: 30px;
    font-size: 16px;
    svg {
      width: 16px !important;
    }
  }
}

@media (max-width: 575px) {
  :root {
    --header_height: $header_height_xs;
  }
  .sp-megamenu-parent {
    > li {
      > a,
      > span {
        line-height: $header_height_xs;
      }
    }
  }
  #sp-header {
    height: $header_height_xs;
    .logo {
      height: $header_height_sm;
    }
  }
  #sp-header-topbar {
    .container-inner {
      > .row {
        min-height: $header_height_xs;
      }
    }
  }
  #modal-menu {
    top: $header_height_xs;
  }
  #offcanvas-toggler {
    height: $header_height_sm;
    line-height: $header_height_sm;
  }
  #sp-header {
    .sp-module {
      margin-left: 10px;
      .sp-sign-in .text {
        display: none;
      }
    }
  }
  #sp-menu {
    ul.social-icons {
      > li:not(:last-child) {
        margin-right: 10px;
      }
    }
  }
  #sp-header {
    &.lg-header {
      .top-part {
        border-bottom: none;
      }
      #sp-contact {
        order: 1;
      }
      #sp-logo {
        order: 3;
      }
      #sp-social {
        order: 2;
        .sp-column {
          justify-content: center !important;
        }
        .social-icons {
          margin: 0;
          > li:not(:last-child) {
            margin-right: 10px;
          }
        }
      }
      .sp-contact-info {
        text-align: center;
        margin: 5px 0;
      }
    }
  }
  .header-has-modules {
    .container-inner > .row {
      flex-wrap: wrap !important;
    }
    #offcanvas-toggler {
      height: auto;
      line-height: 1.2;
    }
  }
  html.coming-soon {
    .coming-soon-title {
      font-size: 36px;
      line-height: 40px;
    }
    .coming-soon-content {
      margin: 15px 0;
      font-size: 20px;
      line-height: 28px;
    }
    #coming-soon-countdown {
      margin-top: 40px;
      .coming-soon-days,
      .coming-soon-hours,
      .coming-soon-minutes,
      .coming-soon-seconds {
        width: 50%;
        margin-bottom: 15px;

        .coming-soon-number {
          font-size: 2.5rem;
        }

        .coming-soon-string {
          font-size: 14px;
        }
      }
    }
  }
  //result page btn group
  .view-search #search-form {
    .btn-group {
      flex-wrap: wrap;
    }
    button,
    .btn {
      border-radius: 3px;
    }
  }
  //Team
  .sppb-teams-wrapper {
    .sppb-carousel-arrow.left {
      transform: translate(-40%, -100%);
    }
    .sppb-carousel-arrow.right {
      transform: translate(40%, -100%);
    }
  }
}

//try

@media only screen and (max-width: 320px) {
  // Teams Section
  //Team controller
  .sppb-teams-wrapper .sppb-carousel-arrow {
    top: -5%;
  }

  .sppb-teams-wrapper.sppb-carousel {
    margin-top: 120px;
  }
  .sppb-teams-wrapper .sppb-carousel-arrow.left {
    transform: translate(100%, -50%);
  }

  .sppb-teams-wrapper .sppb-carousel-arrow.right {
    transform: translate(-100%, -50%);
  }
}
