@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --color-primary: #2450ff;
  --header-text: #293591;
  --color-primary-light: #edf3ff;
  --color-accent: #f7d83b;
  --color-bg: #fff9f0;
  --color-text: #4B4745;
  --color-muted: #666;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.06);
  --max-width: 1200px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
}

.courses-page {
  position: relative;
  background-color: #293692;
  /* 防止動畫溢出 */
}
.courses-page .container {
  padding-top: 81px;
  padding-right: 5%;
  padding-left: 5%;
  padding-bottom: 5%;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .courses-page .container {
    padding-top: 20px;
    padding-right: 5%;
    padding-left: 5%;
    padding-bottom: 5%;
    position: relative;
    z-index: 1;
  }
}
.courses-page .section-title {
  text-align: center;
  margin-bottom: 68px;
  font-size: 32px;
  font-weight: bold;
}
@media (max-width: 768px) {
  .courses-page .section-title {
    margin-bottom: 30px;
  }
}
.courses-page .cover {
  position: absolute;
  border-radius: 64px;
  background-color: white;
  top: 1.8%;
  bottom: 1.8%;
  left: 1.8%;
  right: 1.8%;
}
.courses-page .cover img {
  width: 100%;
}
@media (max-width: 768px) {
  .courses-page .cover {
    border-radius: 20px;
    background-color: white;
    top: 12px;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

/* 標題與進度 */
.page-title {
  color: #293591;
  font-size: 64px;
  font-weight: bold;
}

.courses-wrap {
  opacity: 0;
  -webkit-transition: opacity 0.5s ease-in;
  transition: opacity 0.5s ease-in;
}
.courses-wrap.show {
  opacity: 1;
}
@media (max-width: 768px) {
  .courses-wrap {
    padding-left: 28px;
    padding-right: 28px;
  }
}

.courses-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 35px;
  gap: 25px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.course-card {
  width: 25%;
  max-width: 270px;
  margin-bottom: 25px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}
.course-card:hover .course-card__img {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 9px;
}
@media (max-width: 768px) {
  .course-card {
    margin: 0 auto;
    margin-bottom: 46px;
    max-width: 480px;
    width: 100%;
  }
}

.course-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 8px;
  -webkit-transition: 0.2s ease-in;
  transition: 0.2s ease-in;
}
.course-card__img img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  -o-object-fit: cover;
  object-fit: cover;
}

.course-card__tag {
  position: absolute;
  right: -15px;
  bottom: 22px;
  color: white;
  background-color: #293692;
  border-radius: 30px;
  line-height: 40px;
  width: 78px;
  font-size: 14px;
  text-align: center;
}
@media (max-width: 768px) {
  .course-card__tag {
    line-height: 35px;
    width: 85px;
  }
}

.course-card__body {
  text-align: right;
}

.course-card__title {
  font-size: 22px;
  color: #293591;
  font-weight: 500;
  line-height: 28px;
  text-align: left;
}

.course-card__sort {
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 14px;
  color: #4B4745;
  text-align: left;
}
@media (max-width: 768px) {
  .course-card__sort {
    font-size: 16px;
    line-height: 22px;
  }
}

.course-card__unit {
  text-align: right;
  color: #7CC062;
  font-size: 18px;
  line-height: 24px;
}
@media (max-width: 768px) {
  .course-card__unit {
    font-size: 16px;
    line-height: 22px;
  }
}

.course-card__lecturer {
  text-align: right;
  color: #7CC062;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  background-color: #FFEB3B;
  display: inline-block;
  padding-left: 8px;
}
@media (max-width: 768px) {
  .course-card__lecturer {
    font-size: 16px;
    line-height: 22px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding-top: 60px;
  }

  .courses-page {
    padding-top: 10px;
  }

  .courses-row {
    display: block;
    margin-bottom: 0;
  }
}