/* Extracted from theme style.css. Keep cascade order in functions.php. */
.hero-section {
  min-height: 100vh;
  height: auto;
  background: var(--gradient-learnio);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.5rem 2rem 4rem;
  overflow: hidden;
  border-radius: 0 0 3rem 3rem;

  .hero-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 1800px;
    gap: 2rem;
    min-height: calc(100vh - 5rem);

    .hero-left {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      padding: 10rem 0 4rem 2rem;

      .hero-text {
        h1 {
          color: white;
          margin-bottom: 0.5rem;
        }
      }

      .search-container {
        margin: 0;
        max-width: 540px;
      }
    }

    .hero-right {
      position: relative;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      overflow: hidden;
      margin-right: -9rem;

      .hero-naranja {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 100%;
        height: auto;
        object-fit: fill;
        object-position: center right;
      }

    }
  }
}

.hero-subtitle {
  background: linear-gradient(270deg, #4f1e85 0%, #d13379 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  font-size: 5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray);
  margin-bottom: 2.5rem;
}


.search-container {
  width: 100%;
  max-width: 650px;
  margin: 1.5rem auto;

  .search-form {
    background-color: var(--white);
    padding: 0.375rem;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

    .search-input-wrapper {
      display: flex;
      align-items: center;
      width: 100%;
      padding: 0.25rem 0.5rem 0.25rem 1.25rem;

      input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 0.5rem 0;
        font-family: var(--body-font);
        font-size: 0.875rem;
        outline: none;

        &::placeholder {
          color: #a08c6d;
        }
      }

      .search-submit {
        width: 2.25rem;
        height: 2.25rem;
        border: none;
        border-radius: 50%;
        background: linear-gradient(90deg,
            var(--brand-orange) 0%,
            var(--brand-pink) 100%);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0.5rem;
        flex-shrink: 0;
        transition: transform 0.2s;

        .icon-search {
          width: 0.75rem;
          height: 0.75rem;
          flex-shrink: 0;
          object-fit: contain;
        }
      }
    }
  }
}


.teachers-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4vw 0rem;
  margin: 0 auto;
}

.teachers-grid.container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 400px);
  align-items: center;
  justify-content: space-between;
  gap: 3rem;

  &.u-section-pad {
    padding-top: 2rem;
  }
}

.teacher-card {
  background: var(--white);
  min-width: 400px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  .card-image {
    position: relative;
    height: 20rem;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
    }

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom,
          transparent 70%,
          rgba(0, 0, 0, 0.4) 100%);
    }

    .overlay-text {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 2;
      padding: 1rem 1.25rem;

      .subtitle-big {
        color: white;
        margin: 0;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      }
    }
  }

  .card-rating-strip {
    background: linear-gradient(90deg, #FC9A3F 0%, #FEB93C 100%);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;

    .star {
      width: 22px;
      height: auto;
    }

  }

  .card-info {
    background: var(--white);
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    .subject {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--purple-stroke);

      img,
      svg {
        width: 1.5rem;
        height: 1.5rem;
        flex-shrink: 0;
      }
    }

    /* Tags pill pequeñas */
    .card-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;

      .tag {
        padding: 0.2rem 0.75rem;
        border: 1.5px solid var(--brand-orange);
        color: var(--brand-orange);
        background: transparent;
      }

      .tag.filled {
        background: var(--brand-orange);
        border: 1.5px solid var(--brand-orange);

        color: white;
      }
    }

    .description {
      line-height: 1.5;
      color: var(--gray);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .card-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-top: auto;
      padding-top: 0.5rem;

      .price {
        background: var(--brand-orange);
        color: white;
        padding: 0.5rem 1rem;
      }
    }
  }
}

.join-team {
  .join-content {
    display: flex;
    background-color: var(--brand-orange);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-height: 650px;

    .image-box {
      flex: 7;
      min-width: 0;
      position: relative;
      align-self: stretch;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
      }

      .badge {
        position: absolute;
        top: 21%;
        right: -10%;
        transform: translateY(-150%);
        background: white;
        padding: 1.25rem 2.5rem;
        border: 4px solid var(--brand-orange);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        font-family: var(--subtitle-font);
        color: #4a148c;
        white-space: nowrap;
        z-index: 5;

        strong {
          background: linear-gradient(90deg, #fc9a3f, #d13379);
          -webkit-background-clip: text;
          background-clip: text;
          -webkit-text-fill-color: transparent;
        }
      }
    }

    .text-box {
      flex: 3;
      min-width: 0;
      padding: 4rem 2rem;
      color: black;
      display: flex;
      flex-direction: column;
      justify-content: center;

      h2 {
        margin-bottom: 1.5rem;
      }

      p {
        line-height: 1.6;
        margin-bottom: 1rem;
        max-width: 28rem;
      }

      .btn-primary {
        margin-top: 2rem;
      }
    }
  }
}


.stats.container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6rem 5vw;
  text-align: center;

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0.5rem;

    .icon-wrapper {
      height: 5rem;
      width: 5rem;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;

      img {
        height: 100%;
        width: auto;
        object-fit: contain;
      }
    }

    strong {
      background: linear-gradient(90deg, #4f1e85 32%, #fc9a3f 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      display: inline-block;

      transition: all 0.5s ease-out;
    }

    span {
      color: var(--gray);
      margin-top: 0.25rem;
    }
  }
}


.subjects-section {
  text-align: center;

  .subjects-content {
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .subjects-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;

    .btn-secondary {
      width: 200px;
    }
  }

  .pill {
    padding: 0.5rem 0rem;
    border: 2px solid var(--gray-2);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;

    &:hover {
      border-color: var(--purple-stroke);
      color: var(--purple-stroke);
    }

  }
}

.about.container {
  padding: 6rem 15vw;
  display: flex;
  flex-direction: column;
  gap: 4rem;

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;

    .about-text {
      text-align: right;

      .gradient-title {
        margin-bottom: 1.5rem;
        display: inline-block;
        text-align: right;
      }

      p {
        color: var(--gray);
        margin-bottom: 1.25rem;
        text-align: right;

        strong {
          color: var(--brand-orange);
          font-weight: 700;
        }
      }

      &.left {
        text-align: left;

        .gradient-title,
        p {
          text-align: left;
        }
      }
    }

    .about-img {
      width: 100%;
      height: 28rem;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      border-top-left-radius: var(--radius-1);
      border-top-right-radius: var(--radius-1);

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      &.left {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: var(--radius-1);
        border-bottom-right-radius: var(--radius-1);
      }
    }
  }
}

.reviews.container {
  h2 {
    font-size: 7rem;
  }

  .gradient-title {
    text-align: center;
    margin-bottom: 3rem;
    display: block;
  }

  .reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .carousel-track-wrapper {
    overflow: hidden;
    flex: 1;
    position: relative;
  }

  .carousel-track-wrapper::before,
  .carousel-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 10;
  }

  .carousel-track-wrapper::before {
    left: 0;
  }

  .carousel-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  }

  .carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s ease;
  }

  .review-card {
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
    flex-shrink: 0;
    max-width: 400px;

    &:hover {
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

    &.orange {
      background-color: var(--brand-orange);
    }

    &.purple {
      background-color: #4a148c;
    }

    &.pink {
      background-color: var(--brand-pink);
    }

    &.teal {
      background-color: #00796b;
    }

    &.blue {
      background-color: #1565c0;
    }

    &.coral {
      background-color: #e64a19;
    }

    .user {
      display: flex;
      align-items: center;
      gap: 0.75rem;

      .userinfo {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
      }

      img {
        width: 4rem;
        height: 4rem;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.4);
      }
    }

    p {
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.9);
      flex-grow: 1;
    }

    .review-rating {
      align-self: flex-end;
      background: rgba(255, 255, 255, 0.2);
      padding: 0.25rem 1rem;
    }
  }

}



@media (max-width: 1400px) {
  .hero-section {
    min-height: auto;
    height: auto;
  }
  .hero-section .hero-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-section .hero-body .hero-right {
    display: none;
  }
  .hero-section .hero-body .hero-left {
    padding: 6rem 2rem 5rem;
    align-items: center;
    text-align: center;
  }
  .hero-section .hero-body .hero-left .search-container {
    max-width: 540px;
    width: 100%;
  }
  .hero-subtitle {
    font-size: 4rem;
  }
  .teachers-grid.container {
    grid-template-columns: repeat(4, 1fr);
  }
  .teacher-card {
    min-width: 0;
  }
}

@media (max-width: 1200px) {
  .hero-section {
    padding: 4rem 2rem 3rem;
  }
  .hero-section .hero-body .hero-left {
    padding: 6rem 0 3rem 1rem;
  }
  .hero-section .hero-body .hero-right {
    margin-right: -4rem;
  }
  .hero-subtitle {
    font-size: 3.5rem;
  }
  .teachers-grid.container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .about.container {
    padding: 5rem 8vw;
  }
}

@media (max-width: 900px) {
  .hero-section {
    padding: 3rem 1.5rem 0;
    min-height: auto;
  }
  .hero-section .hero-body {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
  }
  .hero-section .hero-body .hero-left {
    padding: 4rem 0 2rem;
    align-items: center;
    text-align: center;
  }
  .hero-section .hero-body .hero-left .search-container {
    max-width: 100%;
  }
  .hero-section .hero-body .hero-right {
    margin-right: 0;
    height: 22rem;
    overflow: hidden;
    position: relative;
  }
  .hero-section .hero-body .hero-right .hero-naranja {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .hero-subtitle {
    font-size: 3rem;
    white-space: normal;
  }

  .teachers-grid-header {
    padding: 2rem 3vw 0;
  }
  .teachers-grid.container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .teacher-card {
    min-width: 0;
  }

  .join-team .join-content {
    flex-direction: column;
    max-height: none;
  }
  .join-team .join-content .image-box {
    height: 30rem;
    flex: none;
    overflow: hidden;
  }
  .join-team .join-content .image-box .badge {
    top: auto;
    right: auto;
    bottom: 1.25rem;
    left: 1.5rem;
    transform: none;
    white-space: nowrap;
  }
  .join-team .join-content .text-box {
    flex: none;
    padding: 2.5rem 2rem 3rem;
    text-align: left;
  }
  .join-team .join-content .text-box h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  .join-team .join-content .text-box p {
    max-width: 100%;
    text-align: left;
  }
  .join-team .join-content .text-box .btn-primary {
    margin-top: 1.5rem;
  }

  .stats.container {
    padding: 4rem 3vw;
  }

  .about.container {
    padding: 4rem 5vw;
    gap: 3rem;
  }
  .about.container .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about.container .about-grid .about-img.left {
    order: -1;
  }
  .about.container .about-grid .about-text {
    text-align: left;
  }
  .about.container .about-grid .about-text .gradient-title {
    text-align: left;
  }
  .about.container .about-grid .about-text p {
    text-align: left;
  }

}

@media (max-width: 640px) {
  .hero-subtitle {
    font-size: 2.25rem;
  }

  .teachers-grid.container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .teachers-grid-header {
    padding: 2rem 1.25rem 0;
  }

  .stats.container {
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem 2rem;
  }

  .subjects-section .subjects-pills .btn-secondary {
    width: 160px;
  }

  .reviews.container .review-card {
    max-width: 300px;
  }
  .reviews.container h2 {
    font-size: 5rem;
  }

  .about.container {
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .join-team .join-content .image-box .badge {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
  }

}

@media (max-width: 480px) {
  .hero-section {
    padding: 2.5rem 1rem 0;
  }
  .hero-section .hero-body .hero-left {
    padding: 3rem 0 1.5rem;
  }
  .hero-subtitle {
    font-size: 1.875rem;
  }
  .hero-section .hero-body .hero-right {
    height: 16rem;
  }
  .teachers-grid-header {
    padding: 1.5rem 1rem 0;
  }
  .teachers-grid.container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .join-team .join-content .image-box {
    height: 16rem;
  }
  .subjects-section .subjects-pills .btn-secondary {
    width: 140px;
  }
  .about.container {
    padding: 3rem 1.5rem;
  }
  .reviews.container h2 {
    font-size: 2rem;
  }
}
