@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans TC', "Microsoft JhengHei", "PingFang TC", sans-serif;
}

body {
  color: #333;
  background: url(../images/bg.jpg) fixed center center;
}

.navbar-nav .nav-link.active {
  background-color: #007bff !important;
  color: white !important;
  border-radius: 5px;
}


.btn-line {
  background-color: #932228;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  padding: 8px 20px;
  transition: 0.3s;
}

.btn-line:hover {
  background-color: #6d171c;
  color: white;
}

section {
  scroll-margin-top: 70px;
}


/*  主視覺  */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.slogan-top {
  font-family: "PMingLiU", "MingLiU", "DFKai-SB", serif;
  font-size: clamp(48px, 8vw, 72px);
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  font-weight: bold;
  letter-spacing: 2px;
}

.highlight-red {
  color: #932228;
  text-shadow: none;
}

.main-title {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.4;
  margin-bottom: 35px;
  color: #222;
  font-weight: bold;
  letter-spacing: 1px;
}

.subtitle {
  font-size: clamp(16px, 3vw, 22px);
  color: #222;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 45px;
  background-color: #F5E8C7;
  padding: 15px 40px;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-banner {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
}

.cta-btn-large {
  background-color: #00ffff;
  color: #222;
  font-size: 24px;
  font-weight: bold;
  padding: 16px 48px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-block;
  border: 2px solid #00ffff;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.cta-btn-large:hover {
  background-color: transparent;
  border: 2px solid #00ffff;
  background-color: none;
  transform: translateY(-5px);
  color: #00ffff;
  text-decoration: none;
}


/* 備考路上的痛點 */
.course-section {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.5);
}

.course-cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 350px;
  display: flex;
  flex-direction: column;
}

.pain-point-box {
  background: rgba(2, 107, 145, 0.6);
  color: #fff;
  padding: 10px;
  border-radius: 15px 15px 0 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pain-title {
  font-size: 30px;
  font-weight: bold;
  color: #fcd036;
  margin-bottom: 15px;
}

.pain-point-box p {
  font-size: 16.5px;
  line-height: 1.6;
  color: #ddd;
}

.arrow-down {
  text-align: center;
  background-color: #fcd036;
  padding: 10px 0;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
}

.solution-box {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 20px 20px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  flex-grow: 1;
  border: 1px solid #eee;
  border-top: none;
}

.course-title {
  font-size: 30px;
  color: #026b91;
  text-align: center;
  font-weight: bold;
}

.course-slogan {
  text-align: center;
  font-size: 20px;
  color: #2b7691;
  font-weight: bold;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px dashed #ccc;
}

.feature-list li {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: "✔️";
  position: absolute;
  left: 0;
  top: 0;
  color: #28a745;
}

/* end 備考路上的痛點 */

/* 雲端課程再進化 */
.ai-section {
  padding: 80px 20px;
  background: rgba(21, 224, 255, 0.1);
}

.ai-feature-card {
  flex: 1;
  min-width: 280px;
  background: rgba(2, 107, 145, 0.85);
  border-radius: 10px;
  padding: 30px 10px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.ai-feature-card:hover {
  transform: translateY(-5px);
}

#ai-learning .highlight {
  background: linear-gradient(transparent 20%, #fff176 60%);
  padding: 2px 10px;
}

.ai-title {
  font-size: 28px;
  color: #fcd036;
  font-weight: bold;
  margin-bottom: 15px;
}

.ai-desc {
  font-size: 18px;
  color: #fff;
  line-height: 1.6;
}

.ai-image-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background-color: #f1f3f5;
  border-radius: 10px;
}

.ai-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* end 雲端課程再進化 */

/* 王牌師資陣容 */
.teachers-section {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.5);
}

.teacher-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.teacher-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.subject-tag {
  background-color: #932228;
  color: #fff;
  border-radius: 30px;
}

.teacher-name-box h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 3px;
}

.teacher-name-box span {
  font-size: 14px;
  color: #777;
}

.testimonial-box {
  background-color: #fce9b4;
  border-left: 4px solid #fcd036;
  padding: 18px;
  margin-bottom: 20px;
  flex-grow: 1;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.testimonial-text {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 12px;
}

.testimonial-author {
  text-align: right;
  font-size: 15px;
  font-weight: bold;
  color: #932228;
}

.btn-listen {
  display: block;
  text-align: center;
  background-color: #fff;
  color: #932228;
  border: 2px solid #932228;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  margin-top: auto;
}

.btn-listen:hover {
  background-color: #932228;
  color: #fff;
}

/* end 王牌師資陣容 */

/* 五大全方位輔考後援 */
.extra-section {
  padding: 80px 20px;
}

.extra-card {
  flex: 1 1 300px;
  background: rgba(2, 107, 145, 0.85);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.extra-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.extra-card .img-box {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.extra-card .img-box img {
  max-height: 100%;
  width: auto;
}

.extra-card .img-box img .img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.extra-title {
  font-size: 24px;
  color: #fcd036;
  font-weight: bold;
  margin-bottom: 10px;
}

.extra-desc {
  font-size: 16px;
  color: #fff;
  line-height: 1.3;
}

/* end 五大全方位輔考後援 */

/* 下一個上榜的就是你 */
.reviews-section {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.5);
}

.reviews-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-btn {
  background-color: #932228;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: #fcd036;
  color: #932228;
  transform: scale(1.1);
}

.reviews-carousel {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  flex-grow: 1;
}

.reviews-track {
  display: flex;
  gap: 25px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-card {
  flex: 0 0 calc(33.333% - 17px);
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #932228;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 20 px;
}

.review-card img {
  position: absolute;
  top: -25px;
  right: 3px;
  width: 130px;
  margin-top: 15px;
}

.review-author-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
}

.review-author-name {
  font-size: 16px;
  font-weight: bold;
  color: #026b91;
  line-height: 1.4;
  padding-top: 10px;
}

.review-title {
  font-size: 20px;
  color: #932228;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 15px;
}

.review-content {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  flex-grow: 1;
}

.review-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 20px;
  color: #adb5bd;
}

/* end 下一個上榜的就是你 */

@media (max-width: 992px) {
  .review-card {
    flex: 0 0 calc(50% - 12.5px);
  }

  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 768px) {
  .review-card {
    flex: 0 0 100%;
  }

  .carousel-btn {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  body {
    background: url(../images/bg.jpg) fixed left -600px top 110px;
  }

  .cta-banner {
    padding: 3px;
  }

  .hero {
    height: 70vh;
  }
}

@media (max-width:414px) {

  body {
    background: url(../images/bg.jpg) fixed left -50px top 150px;
  }

  .cta-btn-large {
    font-size: 22px;
    padding: 10px 30px;
    margin-top: 10px;
  }

  .hero {
    height: 80vh;
  }
}


@media (max-width:375px) {
  .review-card {
    padding: 10px;
    margin: 0;
  }

  body {
    background: url(../images/bg.jpg) fixed left -50px top 50px;
  }

  .cta-banner {
    padding: 5px;
  }

  .teacher-name-box h3 {
    font-size: 19.5px;
    text-align: center;
  }

  .cta-btn-large {
    font-size: 20px;
    padding: 10px 40px;
  }


  .review-card img {
    top: -40px;
    right: -15px;
  }

  .review-card {
    margin-top: 30px;
  }

}