@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700&display=swap");

.heroSection {
  height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;

  figure {
    position: absolute;
    inset: 0;
    z-index: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(0.7);
    }
  }

  .heroContent {
    color: #f3e9dc;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 2;

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

    .heroSubtitle {
      font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
      margin-bottom: 2rem;
    }

    .ctaButton {
      display: inline-block;
      padding: 1rem 3rem;
      background-color: #b87d4b;
      color: #f3e9dc;
      border-radius: 4px;
      font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
      transition: background-color 0.3s ease;

      &:hover {
        background-color: #9a6b3e;
      }
    }
  }
}

.aboutSection {
  padding: 5rem 1rem;
  background-color: #fff;
  position: relative;
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(243, 233, 220, 0.3),
      rgba(243, 233, 220, 0)
    );
    z-index: 1;
  }

  .aboutContainer {
    max-width: 1200px;
    margin-inline: auto;
    position: relative;
    z-index: 2;

    .sectionTitle {
      text-align: center;
      font-size: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
      margin-bottom: 3rem;
      color: #1b4b33;
    }

    .aboutContent {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;

      .aboutImage {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        aspect-ratio: 3/2;

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

      .aboutTextContent {
        .aboutText {
          font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
          line-height: 2;
          margin-bottom: 1.5rem;

          &:last-child {
            margin-bottom: 0;
          }
        }
      }
    }
  }

  @media (width < 768px) {
    &::before {
      display: none;
    }

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

.instructorSection {
  padding: 5rem 1rem;
  background-color: #f3e9dc;

  .instructorContainer {
    max-width: 800px;
    margin-inline: auto;

    .sectionTitle {
      text-align: center;
      font-size: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
      margin-bottom: 3rem;
      color: #1b4b33;
    }

    .instructorContent {
      .instructorText {
        text-align: center;

        .instructorMessage {
          font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
          line-height: 2;
          margin-bottom: 1.5rem;

          &:last-child {
            margin-bottom: 2rem;
          }
        }

        .instructorName {
          margin-top: 3rem;

          .instructorTitle {
            font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
            color: #1b4b33;
            margin-bottom: 0.5rem;
          }

          .instructorFullName {
            font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
            font-weight: 500;
            color: #1b4b33;
          }
          > .instructorSchool {
            display: grid;
            justify-content: center;
            gap: 1rem 0;
            margin-top: 2rem;
            > p {
              text-align: left;
            }
          }
        }
      }
    }
  }
}

.courseSection {
  padding: 5rem 1rem;
  background-color: #f3e9dc;

  .sectionTitle {
    text-align: center;
    font-size: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
    margin-bottom: 3rem;
    color: #1b4b33;
  }

  .courseContainer {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;

    .courseCard {
      background-color: #fff;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 6px rgba(27, 75, 51, 0.1);
      display: flex;
      text-decoration: none;
      color: inherit;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      height: 300px;

      &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 12px rgba(27, 75, 51, 0.15);
      }

      figure {
        width: 300px;
        height: 100%;
        flex-shrink: 0;

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

      .courseContent {
        padding: 2rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;

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

        .courseDescription {
          font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1rem);
          margin-bottom: 1.5rem;
          line-height: 1.6;
        }

        .courseDetails {
          display: flex;
          flex-direction: column;
          gap: 0.5rem;
          font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1rem);
          margin-top: auto;
        }
      }
    }
  }

  @media (width < 768px) {
    .courseContainer .courseCard {
      flex-direction: column;
      height: auto;

      figure {
        width: 100%;
        height: 200px;
      }

      .courseContent {
        padding: 1.5rem;
      }
    }
  }
}

.classesSection {
  padding: 5rem 1rem;
  background-color: #f3e9dc;
  position: relative;
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(243, 233, 220, 0.3),
      rgba(243, 233, 220, 0)
    );
    z-index: 1;
  }

  .classesContainer {
    max-width: 1200px;
    margin-inline: auto;
    position: relative;
    z-index: 2;

    .sectionTitle {
      text-align: center;
      font-size: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
      margin-bottom: 3rem;
      color: #1b4b33;
    }

    .classesContent {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;

      .classesTextContent {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 9;
        gap: 6px;
        padding: 1rem;
        border-radius: 12px;
        background-color: #fbfbfb;
        .classesText {
          font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
          line-height: 2;
          margin-bottom: 1.5rem;
          &:last-child {
            margin-bottom: 0;
          }
        }
        .classesTextBox {
          display: grid;
          grid-template-columns: 1fr 1fr;
          font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
          > hgroup {
            > p {
              font-size: clamp(0.75rem, 0.675rem + 0.38vw, 1.125rem);
            }
          }
        }
      }
    }
  }

  @media (width < 768px) {
    &::before {
      display: none;
    }

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

.contactSection {
  padding: 5rem 1rem;
  background-color: #fff;
  text-align: center;

  hgroup {
    margin-bottom: 1rem;
    h2 {
      margin-bottom: 1rem;
    }
    > p {
      font-weight: bold;
    }
  }

  > a {
    display: inline-block;
    padding: 1.2rem 4rem;
    background-color: #b87d4b;
    color: #f3e9dc;
    border-radius: 4px;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    text-decoration: none;
  }
}
