@charset "utf-8";

main {
  width: 100%;
  max-width: 1320px;
  margin: 240px auto 0;
}

.pageTitle {
  margin-inline-start: 60px;
  margin-block-end: 160px;
}

.pageTitle p {
  color: #2981c0;
  font-size: clamp(3rem, 1.239rem + 7.51vw, 8rem);
}

.pageTitle small {
  color: #333;
  font-size: clamp(1.5rem, 1.324rem + 0.75vw, 2rem);
  line-height: 5rem;
}

.lessonNav {
  display: none;
}

.lessonContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 160px;
}

.lessonSchedule,
.lessonContents {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lessonSchedule {
  width: 20%;
}

.lessonSchedule h3 {
  width: 90%;
  padding-block: 10px;
  text-align: center;
  background-color: #00b0ba;
}

.lessonSchedule h3 span {
  color: #fafafa;
  font-size: clamp(1.5rem, 1.324rem + 0.75vw, 2rem);
  letter-spacing: 2px;
}

.lessonContents {
  margin-block-start: 40px;
}

.lessonContents img {
  width: 80%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  transition: all 0.5s;
}

.lessonContents img:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 5px rgb(0 0 0 / 0.3);
}

.lessonInfo {
  text-align: center;
}

.lessonInfo p {
  color: #333;
  font-size: clamp(1.25rem, 1.162rem + 0.38vw, 1.5rem);
  line-height: clamp(1.5rem, 1.324rem + 0.75vw, 2rem);
}

@media (max-width: 768px) {
  .pageTitle {
    margin-inline-start: 0;
    margin-block-end: 0;
    text-align: center;
  }

  .lessonNav {
    display: block;
    width: 90%;
    margin: 0 auto 160px;
  }

  .lessonNavContainer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }

  .lessonNavContents {
    display: inline-block;
    width: 15%;
    text-align: center;
    padding-block: 10px;
    background-color: #f9a638;
  }

  .lessonNavContents a {
    color: #fafafa;
    font-weight: bold;
    font-size: clamp(1rem, 0.824rem + 0.75vw, 1.5rem);
    text-align: center;
    background-image: linear-gradient(#2981c0, #2981c0);
    background-size: 0 3px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: all 0.3s;
  }

  .lessonNavContents a:hover {
    color: #2981c0;
    background-size: 100% 3px;
  }

  .lessonContainer {
    display: block;
    width: 100%;
    margin: 0 auto;
  }

  .lessonSchedule {
    width: 90%;
    margin: 0 auto;
  }

  .lessonContents {
    width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
    margin-block: 40px;
  }

  .lessonContents img {
      width: 50%;
  }
}