/* Extracted from theme style.css. Keep cascade order in functions.php. */

/* ----------------- MEDIA QUERIES ----------------- */

@media (max-width: 1800px) {

  .teachers-grid.container {
    grid-template-columns: repeat(3, auto);
    align-items: center;
    justify-content: center;
    gap: 4rem;

    &.u-section-pad {
      padding-top: 4rem;
    }

    .teacher-card:last-child {
      display: none;
    }
  }
}

@media (max-width: 1700px) {
  .create-class-main-container {
    .background {
      .content {
        .create-form {
          width: 70%;
        }
      }
    }
  }
}


@media (max-width: 1600px) {
  .main-container-search {
    padding: 6rem 6rem 4rem 6rem;
  }

  .right-part-search {
    flex: 2;
  }

  .main-container-login {
    .left-part {
      flex: 1;
    }

    .right-part {
      flex: 1;
    }
  }
}

@media (max-width: 1500px) {
  .main-container-search {
    padding: 6rem 2rem 4rem 2rem;
  }

  .create-class-main-container {
    .background {
      .content {
        .create-form {
          width: 80%;
        }
      }
    }
  }
}

@media (max-width: 1400px) {
  .main-container-login {
    .left-part {
      flex: 2;
    }

    .right-part {
      flex: 1.5;

      .content {
        padding: 2rem;
      }
    }
  }

  .teachers-grid.container {
    grid-template-columns: repeat(2, auto);
    align-items: center;
    justify-content: center;
    gap: 4rem;

    &.u-section-pad {
      padding-top: 4rem;
    }

    .teacher-card:last-child {
      display: flex;
    }
  }

  .payment-layout {
    .payment-hero {
      .payment-hero__content {
        .title {
          font-size: 3.5rem;
        }
      }
    }
  }

  .portal-main-layout {
    .portal-content-view {
      .portal-onboarding__grid {
        flex-wrap: wrap;

        .portal-info-tile {
          min-width: 250px;
        }
      }
    }
  }
}

@media (max-width: 1300px) {
  .product-content {
    flex-direction: column;
  }

  .main-container-search {
    .search-section {
      flex-direction: column;

      .left-part-search {
        position: sticky;
        top: 6rem;
        z-index: 99;
        width: 100%;
        padding: 1rem 1.5rem;

        .form-search-content {
          position: absolute;
          visibility: hidden;
          opacity: 0;
          transform: translateY(-20px);
          height: 0;
          overflow: hidden;
          transition: all 0.5s ease;
        }

        .form-search-content.open {
          visibility: visible;
          opacity: 1;
          transform: translateY(0);
          height: auto;
          max-height: calc(100vh - 12rem);
          position: static;

          display: grid;
          grid-template-columns: repeat(3, 1fr);
          gap: 1rem;
          overflow-y: auto;
        }

        .form-search-top {
          display: flex;
          align-items: center;
          justify-content: space-between;

          .close-icon {
            display: flex;
            flex-direction: row;
            padding: 0.3rem 0.7rem;
            cursor: pointer;

            span {
              width: 15px;
              height: 2px;
              background-color: black;
              display: block;
              border-radius: 2px;
              transition: all 0.3s ease;

              &:nth-child(1) {
                transform: translateX(-5.5px) rotate(35deg);
              }

              &:nth-child(2) {
                transform: translateX(-8.5px) rotate(-35deg);
              }
            }

            span.open {
              &:nth-child(1) {
                transform: translateX(2px);
              }

              &:nth-child(2) {
                transform: none;
              }
            }
          }
        }

        .filter-actions {
          justify-content: center;
          gap: 1rem;
          align-items: flex-end;
          padding-bottom: 1rem;
        }
      }

      .right-part-search {
        width: 100%;
      }
    }
  }
}


@media (max-width: 1250px) {
  .checkout-gateway {
    .checkout-gateway__list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;

      .teacher-card-gateway {
        .teacher-card-gateway__header {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: flex-start;

          .teacher-card-gateway__info {
            text-align: center;
            align-items: center;
          }

          .teacher-card-gateway__stats {
            align-items: center;
          }
        }
      }
    }
  }
}

@media (max-width: 1200px) {
  .main-container-search {
    padding: 4rem 3rem;

    .right-part-search {
      .class-card {
        .left-banner {
          height: 100%;
          min-height: 300px;
        }
      }
    }
  }

  .search-section {
    gap: 1.5rem;
  }

  .class-card {
    height: auto;
    min-height: 300px;
  }

  .class-card .content {
    gap: 1.25rem;
  }

  .class-card .content .footer .foot-body {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-container-login,
  .payment-layout {
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 4rem;

    .left-part {
      flex: 1;
      width: 100%;
      height: auto;

      .form-panel {
        width: 100%;

        display: flex;
        flex-direction: column;
        gap: 3rem;

        .top-left {
          width: 100%;

        }
      }

      .form-panel.hidden {
        display: none;
      }
    }

    .right-part {
      flex: 0 0 300px;
      width: 100%;

      .content {
        text-align: center;
        margin: 0 auto;
        align-items: center;
        justify-content: center;
        max-width: none;
      }
    }

    .payment-hero {
      flex: 0 0 300px;
      width: 100%;
      min-height: 300px;
      height: 300px;
    }

    .payment-hero__content {
      text-align: center;
      margin: 0 auto;
      align-items: center;
      justify-content: center;
      max-width: none;
      padding: 2rem;
      width: 100%;
    }

    .checkout-gateway,
    .portal-checkout,
    .portal-content-view {
      width: 100%;
      flex: none;
    }
  }

  .payment-layout {
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .checkout-gateway {
    .checkout-gateway__list {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 1rem;

      .teacher-card-gateway {
        .teacher-card-gateway__header {
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: flex-start;

          .teacher-card-gateway__info {
            text-align: left;
            align-items: flex-start;
          }

          .teacher-card-gateway__stats {
            align-items: flex-end;
          }
        }
      }
    }
  }
}

@media (max-width: 1150px) {
  .main-container-search {
    .search-section {
      .left-part-search {
        .form-search-content.open {
          grid-template-columns: repeat(2, 1fr);
          height: auto;
          max-height: calc(100vh - 12rem);
        }
      }
    }
  }
}

@media (max-width: 1024px) {
  .join-team {
    .join-content {
      flex-direction: column;
    }

    .join-content {
      .image-box {
        height: 22rem;

        .badge {
          right: 1.25rem;
          transform: translateY(-50%);
        }
      }

      .text-box {
        padding: 2.5rem;
        text-align: left;
        align-items: center;

        .btn-join {
          align-self: center;
        }
      }
    }
  }

  .create-class-main-container {
    .background {
      .content {
        padding-left: 2rem;
        padding-right: 2rem;

        .create-form {
          width: 100%;
        }
      }
    }
  }
}

@media (max-width: 992px) {
  .about.container {
    .about-grid {
      grid-template-columns: 1fr;
      text-align: left;
    }

    .about-img {
      height: 22rem;
      order: -1;
    }
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width:900px) {
  .hero-section {
    .hero-body {
      grid-template-columns: 1fr;
    }

    .hero-left {
      padding: 2rem 1rem;
      align-items: center;
      text-align: center;
    }

    .hero-right {
      min-height: 340px;
    }
  }

  .main-container-search {
    padding: 3rem 1.25rem;
  }

  .search-section {
    flex-direction: column;
  }

  .search-section .left-part-search,
  .right-part-search {
    width: 100%;
    flex: none;
  }

  .class-card {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
  }

  .class-card .left-banner {
    width: 100%;
    height: auto;
    padding: 1.25rem;
  }

  .class-card .left-banner .user-avatar {
    width: 110px;
    height: 110px;
  }

  .class-card .content {
    padding: 1.25rem;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .class-card .content .header {
    flex-direction: row;
    width: 100%;

    .teacher-info {
      justify-content: flex-end;

      .teacher-name {
        text-align: right;
        margin-left: auto;
      }

      .rating {
        margin-left: auto;
      }
    }
  }

  .class-card .content .body {
    width: 100%;
  }

  .class-card .content .header .teacher-info {
    align-items: flex-start;
  }

  .class-card .content .header .tags {
    flex-wrap: wrap;
  }

  .class-card .content .footer {
    width: 100%;
  }

  .class-card .content .footer .foot-body {
    gap: 1rem;
  }

  .main-footer .footer-grid {
    grid-template-columns: 1fr;

    .footer-logo {
      grid-column: 1 / -1;
      justify-content: center;
    }

    .footer-col {
      text-align: center;
      align-items: center;
      justify-content: center;

      h4 {
        &::after {
          left: 50%;
          transform: translateX(-50%);
        }
      }

      .dual-list {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
      }

    }
  }

  .teachers-grid.container {
    grid-template-columns: repeat(1, auto);
    align-items: center;
    justify-content: center;
    gap: 4rem;

    &.u-section-pad {
      padding-top: 4rem;
    }
  }

  .main-nav-inner {
    & .nav-links {
      & a.nav-link {
        &.responsive-link {
          display: block;
          padding: 0;
        }
      }

      .mobile-logo {
        display: block;

        img {
          width: 15rem;
          height: auto;
        }
      }
    }
  }

  .main-nav-inner.active {
    .nav-left {
      .logo {
        display: none;
      }
    }
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(255, 255, 255, 1);
    position: absolute;
    top: 4.5rem;
    left: 0;
    padding: 1rem;
    z-index: 1;
    transition: transform 0.3s ease;
    transform: translateY(-140%);

    .nav-link {
      transition: all 0.3s ease;
    }

    .nav-link:hover {
      color: var(--purple-stroke);
      font-weight: 600;
    }

    .nav-link::after {
      content: none;
      display: none;
    }
  }

  .nav-user-dropdown,
  .nav-dropdown {
    .nav-user-menu {
      right: 50% !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
    }
  }

  .main-nav-inner {
    & .nav-links {
      & a.nav-link {
        font-size: 1.5rem;
        transition: all 0.3s ease;
      }
    }
  }

  .nav-links.active {
    display: flex !important;
    gap: 2.5rem;
    padding-bottom: 1.5rem;
    min-height: calc(100vh - 4.5rem);
    transform: translateY(0);
    align-items: center;
    justify-content: flex-start;
    padding-top: 1rem;

    .nav-dropdown {
      margin-top: 1rem;
    }
  }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    height: 24px;
    width: 30px;
    cursor: pointer;

    span {
      background-color: black;
      height: 3px;
      width: 100%;
      border-radius: 5px;
      transition: transform 0.3s ease;
    }
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 6px;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -9px;
  }

  .responsive-dropdown {
    display: none !important;
  }

  .main-container-search {
    padding-top: 7rem;

    .title-section {
      .subtitle-big {
        font-size: 2rem;
      }
    }
  }

  .create-class-main-container {
    .background {
      .acf-form .acf-field {
        min-width: 100%;
      }

      .content {
        .section-title {
          .title {
            font-size: 4rem;
          }
        }
      }
    }
  }
}

@media (max-width: 850px) {

  .portal-onboarding {
    .portal-onboarding__grid {
      max-height: none !important;
    }
  }
}

@media (max-width: 800px) {
  .product-hero {
    .product-hero__inner {
      flex-direction: column;
      gap: 1.5rem;

      .product-hero__inner-left {
        align-items: center;
        justify-content: center;

        .product-hero__title {
          margin-bottom: 0.5rem;
          text-align: center;
        }

        .product-hero__meta {
          justify-content: center;
        }
      }

      .product-hero__inner-right {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0.8rem 1rem;

        img {
          width: 50px;
          height: 50px;
        }

      }
    }
  }

  .main-container-search {
    .search-section {
      .left-part-search {
        .form-search-content.open {
          grid-template-columns: repeat(1, 1fr);
          height: auto;
          max-height: calc(100vh - 12rem);
          overflow-y: auto;
          padding-right: 1rem;
        }
      }
    }
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-nav {
    top: 46px;
  }

  .main-container-login {
    .right-part {
      .content {
        .title {
          font-size: 4rem;
        }

        .p-lg {
          font-size: 1.5rem;
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .stats.container {
    flex-direction: column;
    gap: 4rem;

    .icon-wrapper {
      height: 6rem;
    }
  }

  .reviews.container .review-card {
    flex: 0 0 100%;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-hero {
    padding: 6rem 1.5rem 2.5rem;
  }

  .product-hero__title {
    font-size: 2rem;
  }

  .product-main {
    padding: 2rem 1.5rem 4rem;
  }

  .product-details-card {
    padding: 1.5rem;
  }

  .product-quick-info {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 700px) {
  .teachers-grid-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;

    .subtitle-big {
      font-size: 2.5rem;
    }
  }

  .main-container-search {
    padding-top: 7rem;

    .title-section {
      .subtitle-big {
        font-size: 1.5rem;
        text-align: center;
      }
    }
  }

  .create-class-main-container {
    .background {
      .content {
        .section-title {
          .title {
            font-size: 3rem;
          }

          .p-md {
            font-size: 0.8rem;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 650px) {
  .main-container-login {
    .right-part {
      flex: 0 0 200px;

      .content {
        .title {
          font-size: 2.5rem;
        }

        .p-lg {
          font-size: 1rem;
        }
      }
    }

    .left-part {
      .form {
        .form-row {
          flex-direction: column;

          .form-col {
            width: 100%;

            input {
              width: 100%;
            }
          }
        }
      }
    }
  }

  .payment-hero__content {
    padding: 1rem;
    gap: 0.5rem;

    .title {
      font-size: 2rem !important;
    }

    .p-lg {
      font-size: 1rem !important;
    }
  }

  .checkout-gateway {
    padding: 2rem;

    .checkout-gateway__list {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 1rem;

      .teacher-card-gateway {
        .teacher-card-gateway__header {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: flex-start;

          .teacher-card-gateway__info {
            text-align: center;
            align-items: center;
          }

          .teacher-card-gateway__stats {
            align-items: center;
          }
        }
      }
    }

    .summary-gateway {
      width: 100%;

      .actions-gateway {
        align-items: center;
        justify-content: center;
      }
    }
  }

  .portal-main-layout {
    padding-bottom: 1rem;

    .portal-content-view {
      .portal-footer-nav {
        padding-top: 0;
        justify-content: center;
      }
    }
  }

  .product-hero {
    .product-hero__inner {
      .product-hero__inner-left {
        h1 {
          font-size: 2.2rem;
        }
      }
    }
  }

  .main-container-search {
    .search-section {
      .right-part-search {
        .class-card {
          .content {
            gap: 2rem;

            .header {
              flex-direction: column;
              text-align: center;
              align-items: center;
              justify-content: center;
              gap: 1rem;

              .class-name {
                align-items: center;
                justify-content: center;
                text-align: center;
              }

              .teacher-info {
                justify-content: center;
                text-align: center;
                flex-direction: row;
                align-items: center;
                gap: 2rem;

                .teacher-name,
                .rating {
                  margin: 0 auto;
                }
              }
            }

            .body {
              text-align: center;
            }

            .footer {

              .foot-body {
                align-items: flex-start;
                gap: 2rem;
                padding-left: 1rem;
              }
            }
          }
        }
      }
    }
  }
}

@media (max-width: 600px) {
  .main-container-search {
    .search-section {
      .right-part-search {
        .class-card {
          .content {
            .footer {
              gap: 2rem;

              .foot-head {
                order: 2;

                span {
                  display: none;
                }
              }

              .foot-body {
                order: 1;
                align-items: center;
                justify-content: center;
              }
            }
          }
        }
      }
    }
  }

  .create-class-main-container {
    .background {
      .content {
        .section-title {
          .title {
            font-size: 2.5rem;
          }
        }
      }
    }
  }
}

@media (max-width: 480px) {
  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .payment-hero__content {
    padding: 1rem;
    gap: 0.5rem;

    .title {
      font-size: 1.5rem !important;
    }

    .p-lg {
      font-size: 1rem !important;
    }
  }
}