.heroSection {
  position: relative;
  height: 100dvh;
  overflow: hidden;

  .heroImage {
    width: 100%;
    height: 100%;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.6;
    }
  }

  .heroContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fbfbfb;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

    h2 {
      font-size: clamp(2rem, 1.5rem + 2.5vw, 4rem);
      margin-bottom: 1rem;
    }

    p {
      font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
    }
  }
}

.aboutSection,
.coursesSection,
.teachersSection,
.contactSection {
  padding: 5rem 1rem;
  max-width: 1200px;
  margin-inline: auto;

  h2 {
    text-align: center;
    font-size: clamp(1.8rem, 1.5rem + 1.5vw, 3rem);
    color: #f2961d;
    margin-bottom: 3rem;
  }
  > .aboutTitle {
    color: #333;
    > span {
      color: #d30077;
    }
  }
}

.aboutContent {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
  background-image: linear-gradient(to right, #c0d8e7 1px, transparent 1px),
    linear-gradient(to bottom, #c0d8e7 1px, transparent 1px);
  background-size: 100px 100px;

  .aboutText {
    > h3 {
      > mark {
        position: relative;
        background-color: transparent;
        padding: 0 0.2rem;
        &::before {
          position: absolute;
          content: "";
          top: 50%;
          left: 0;
          width: 100%;
          height: 50%;
          background-color: #f4e733;
          z-index: -1;
        }
        > span {
          color: #d30077;
        }
      }
    }
    p {
      font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
      margin-bottom: 1.5rem;
      line-height: 1.8;
    }
  }
}

.coursesList {
  display: flex;
  flex-direction: column;
  gap: 2rem;

  .courseCard {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;

    h3 {
      font-size: clamp(1.4rem, 1.2rem + 0.5vw, 1.8rem);
      margin-bottom: 1rem;
    }

    .courseDetails {
      color: #666;

      p {
        margin-bottom: 0.5rem;
        line-height: 1.6;
      }

      .courseDescription {
        font-size: 1.1rem;
        font-weight: 500;
      }

      .courseSchedule {
        color: #333;
      }

      .courseFee {
        font-weight: 500;
      }
    }

    &.bunbuRyodo {
      h3,
      .courseFee {
        color: #7ebf4a;
      }
    }

    &.gakushuKaihatsu {
      h3,
      .courseFee {
        color: #2798d5;
      }
    }

    &:not(.bunbuRyodo):not(.gakushuKaihatsu) {
      h3,
      .courseFee {
        color: #f2961d;
      }
    }
  }
}

.teacherProfile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  padding: 2rem;

  .teacherInfo {
    figure {
      width: 100%;
      max-width: 400px;
      margin-inline: auto;
      margin-bottom: 1.5rem;
      overflow: hidden;

      img {
        aspect-ratio: 3/4;
        object-fit: cover;
        object-position: 50% 0;
      }
    }

    .teacherDetails {
      text-align: center;

      h3 {
        font-size: 1.1rem;
        color: #666;
        margin-bottom: 0.5rem;
      }

      h4 {
        font-size: clamp(1.2rem, 1rem + 0.5vw, 1.5rem);
        color: #f2961d;
        margin-bottom: 1rem;
      }

      p {
        color: #666;
        margin-bottom: 0.5rem;
      }
    }
  }

  .teacherHistory {
    h3 {
      font-size: 1.4rem;
      color: #f2961d;
      margin-bottom: 1.5rem;
      text-align: left;
    }

    .historySection {
      margin-bottom: 1.5rem;

      h4 {
        font-size: 1.1rem;
        color: #333;
        margin-bottom: 0.5rem;
        border-bottom: 2px solid #f2961d;
        padding-bottom: 0.25rem;
      }

      ul {
        li {
          color: #666;
          margin-bottom: 0.25rem;
          padding-left: 1rem;
          position: relative;

          &::before {
            content: "•";
            position: absolute;
            left: 0;
            color: #f2961d;
          }

          > span {
            display: inline-block;
          }
        }
      }
    }
  }
}

.contactContent {
  text-align: center;
  padding: 2rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  .phoneNumber {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    color: #f2961d;
    font-weight: bold;
    margin: 1rem 0;
  }
}

@media (width < 768px) {
  .aboutContent {
    grid-template-columns: 1fr;
  }

  .teacherProfile {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
