@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;
}

/* =========================================================
   Hero Section / 主視覺
   =======================================================*/
.hero-section_swiper .swiper-slide img {
  width: 100%;
}

.swiper-pagination-bullet-active,
.swiper-pagination-bullet {
  background: white;
  -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   About  關於
   =======================================================*/
.about-section {
  padding: 98px 10px;
  padding-bottom: 216px;
  position: relative;
}
.about-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  background-image: url("./../src/index/about_bg.png");
  background-position: top center;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.about-section__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  max-width: 1720px;
  margin: 0 auto;
}

.about-section__title {
  margin-bottom: 22px;
}

.about-section__img {
  width: 100%;
  padding: 0 4.5%;
  text-align: center;
}
.about-section__img img {
  max-width: 699px;
}

.about-section__content {
  width: 100%;
  padding: 0 4.5%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.about-section__content > div {
  margin: 0 auto;
  display: inline-block;
}

.about-section__text {
  color: #4B4745;
  font-size: 18px;
  line-height: 31px;
}

.about-section__title-sub {
  font-size: 23px;
  margin-left: 32px;
}

/* About RWD -------------------------------------------------*/
@media (max-width: 768px) {
  .about-section {
    padding-top: 80px;
    padding-bottom: 66px;
  }
  .about-section::after {
    background-position: bottom left;
    background-size: 155% auto;
  }

  .about-section__inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
  }

  .about-section__text {
    font-size: 16px;
    line-height: 24.5px;
    margin-bottom: 31px;
  }

  .about-section__title {
    margin-bottom: 13px;
  }

  .about-section__title-sub {
    margin-left: 20px;
  }
}
/* =========================================================
   courses  課程
   =======================================================*/
.courses-section {
  padding: 0 20px;
  padding-bottom: 87px;
}

.courses-section__inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 80px 99px 13px 99px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  background-color: white;
  border-radius: 12px;
  border: 1px solid #EFEFEF;
}
@media (max-width: 1440px) {
  .courses-section__inner {
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 0px;
    padding-bottom: 14px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}
@media (max-width: 992px) {
  .courses-section__inner {
    border-radius: 5px;
  }
}
@media (max-width: 768px) {
  .courses-section__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

.courses-section__title {
  min-width: 20%;
  margin-top: 20px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr auto;
  grid-template-columns: 1fr auto;
  grid-auto-rows: auto;
}
.courses-section__title .section-title {
  font-weight: bold;
  -ms-grid-column: 1;
  grid-column: 1;
}
.courses-section__title .courses-section__subtitle {
  line-height: 1;
  -ms-grid-row: 2;
  -ms-grid-row-span: 3;
  grid-row: 2/span 3;
  -ms-grid-column: 2;
  -ms-grid-column-span: 2;
  grid-column: 2/span 2;
  margin-bottom: 20px;
}
.courses-section__title .courses-section__more {
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  grid-column: 1/span 3;
  height: 48px;
}
@media (max-width: 992px) {
  .courses-section__title {
    width: 100%;
    aspect-ratio: unset;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 15px;
    margin-top: -30px;

  }
}

.courses-section__subtitle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  white-space: nowrap;
  color: #293591;
  font-size: 23px;
  gap: 12px;
}
@media (max-width: 768px) {
  .courses-section__subtitle {
    font-size: 19px;
    line-height: 1.3;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 10px;
  }
}

a.courses-section__more {
  border: 1.4px solid #293591;
  border-radius: 48px 0 48px 0;
  font-size: 14px;
  background: #293591;
  color: white;
  line-height: 48px;
  letter-spacing: 0.5em;
  min-width: 131px;
  text-align: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 5%;
  white-space: nowrap;
  padding: 0 10%;
  max-width: 480px;
}
a.courses-section__more .arrow {
  display: inline-block;
  width: 100%;
  height: 1em;
  background-repeat: no-repeat;
  background-image: url("./../src/icon/icon-arrow.svg");
  background-size: 100% auto;
  background-position: left center;
}
a.courses-section__more:hover {
  background-color: #293591;
  color: white;
}

/* =========================================================
   course list & card
   =======================================================*/
.course-list {
  padding: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  width: 100%;
}
@media (max-width: 992px) {
  .course-list .swiper-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
  }
  .course-list .swiper-slide {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    width: 100% !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 768px) {
  .course-list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    gap: 26px;
  }
}

.course-card {
  width: 100%;
  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-bottom: 20px;
    max-width: 480px;
  }
}

.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;
  }
}