/* Hero */
.hero-swiper {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-swiper .swiper-slide {
  background-position: center center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.hero-title-corner {
  position: absolute;
  top: 150px;
  left: 150px;
  width: 500px;
  max-width: 80vw;
  height: auto;
  z-index: 10;
}

.hero-swiper .swiper-slide {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100vh;
  animation: none;
}

/* ✅ 放大動畫 */
.zooming {
  animation: zoomIn 3s ease-in-out forwards;
}

@keyframes zoomIn {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 1; }
}


.zoom-bg {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  transition: transform 3s ease-in-out;
}
.swiper-slide-active .zoom-bg {
  transform: scale(1.15);
}

/* 圖片 + 標題區塊 */
.section-title {
  text-align: center;
  padding: 20px 20px 0; /* 上下縮短 padding */
  margin-bottom: 10px;  /* 明確與下方區塊建立距離（小） */
}
.section-title .title-icon {
  width: 60px;
  margin-bottom: 10px;
}
.section-title h2 {
  font-family: 'Baloo 2', 'Noto Sans TC', sans-serif;
  font-size: 22px;
  color: #00B4D8;
  display: inline-block;
  background: #F0FBFF;
  padding: 6px 18px;
  border-radius: 30px;
  position: relative;
}
.section-title h2::before,
.section-title h2::after {
  content: '●';
  color: #F4A261;
  margin: 0 8px;
  font-size: 14px;
  vertical-align: middle;
}

/* 師資招募 */
.teacher-section {
  background: url('../images/dot-grid.jpg') repeat;
  padding: 60px 20px;
}

.teacher-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.teacher-title {
  font-size: 22px;
  color: #3061A0;
  font-weight: bold;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  padding: 12px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin: 0 auto 40px;
}

.teacher-title img {
  width: 30px;
  height: auto;
}

.teacher-content {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.teacher-image {
  flex: 1 1 40%;
  text-align: center;
}
.teacher-image img {
  max-width: 100%;
  border-radius: 20px;
}

.teacher-text {
  flex: 1 1 55%;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}
.teacher-text strong {
  color: #EB801B;
}

.theme-title {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 700;
  color: #00A5D5;
  font-size: 18px;
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin: 0 auto;
  position: relative;
}

.theme-title::before,
.theme-title::after {
  content: '●';
  color: #FFB347;
  margin: 0 10px;
  font-size: 12px;
  vertical-align: middle;
}

.theme-title span {
  color: #333;
  font-weight: 400;
  margin-left: 6px;
}

/* 課程 */
.course-section {
  /* background: #f4faff; */
  padding: 80px 20px;
}

/* CTA 區塊 */
.cta {
  background: #FF88A2;
  color: white;
  text-align: center;
  padding: 20px 20px;
}
.cta h2 {
  font-size: 28px;
  margin-bottom: 0px;
}
.cta button {
  background: white;
  color: #FF88A2;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.cta button:hover {
  background: #ffe6ec;
}

/* 四塊區塊功能區樣式 */
.function-section {
  /* background: #f4f4f4; */
  padding: 20px 20px;
}
.function-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.function-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}
.function-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.function-title {
  position: absolute;
  bottom: 5px;
  left: 0;
  background: rgba(247, 147, 30, 0.65); /* 橘色 + 透明度 */
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 30px 8px 16px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
  pointer-events: none;
}

.function-title_blue {
  position: absolute;
  bottom: 5px;
  left: 0;
  background: rgba(30, 149, 247, 0.65); /* 橘色 + 透明度 */
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 30px 8px 16px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
  pointer-events: none;
}

.function-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}
.function-overlay p {
  margin-bottom: 12px;
  line-height: 1.6;
}
.function-card:hover .function-overlay {
  opacity: 1;
}
.btn-video {
  background: white;
  color: var(--hover-color, #333);
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

/* 免費試讀體驗區 */
.experience-section {  
  padding: 0px 20px;
}
.experience-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 40px;
}
.experience-item img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}
.experience-item h3 {
  font-size: 18px;
  color: #f26a6d;
  margin-bottom: 8px;
}
.experience-item p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.experience-wrapper {
  background: url('../images/dot-grid.jpg') repeat;
  border: 3px solid #ffb8c6;
  border-radius: 30px;
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 40px auto 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


/* RWD 平版、手機版 */

@media (max-width: 991px) {

}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 24px;
  }
  .section-title h2 {
    display: block;
    font-size: 18px;
    margin-top: 10px;
  }
  .section-title .title-icon {
    width: 36px;
  }

  .function-grid {
    grid-template-columns: 1fr;
  }

  .teacher-content {
    flex-direction: column;
  }
  .teacher-title {
    font-size: 18px;
    padding: 10px 20px;
    margin-bottom: 30px;
  }
  .teacher-title img {
    width: 24px;
  }

  .hero-title-corner {
    width: 80vw;
    top: 100px;
    left: 40px;
  }

  /* 免費試讀體驗 */
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}

@media (max-width: 576px) {

}
