/* ===== 客製化課程頁面 (Custom Course) - 簡潔專業樣式 ===== */
/*
  【文字大小規範】參考 Rule/FontSizeRule.txt
  - 區塊標題：1.5em（桌面）→ 1.3em（平板）→ 1.2em（手機）
  - 小節標題：1.125em
  - 一般內文：1em
  - 次要內文：0.95em
  - 輔助文字：0.85em
  
  【設計特色】
  - 簡潔專業
  - 清晰的視覺層次
  - 適度的互動反饋
*/

/* ===== 頁面容器 ===== */
.custom-course-page {
  padding-top: 0;
  padding-bottom: 100px;
  padding-left: 24px;
  padding-right: 24px;
  background: var(--background-secondary);
}

/* ===== 區塊基礎樣式 ===== */
.custom-course-section {
  margin-bottom: 100px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.custom-course-section:last-child {
  margin-bottom: 0;
}

/* ===== 標題樣式 ===== */
.custom-course-section-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.01em;
}

.custom-course-section-subtitle {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 48px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* ===== 內容區塊 ===== */
.custom-course-content {
  font-size: 1em;
  line-height: 1.8;
  color: var(--text-primary);
  padding: 0;
}

.custom-course-content p {
  margin-bottom: 16px;
}

.custom-course-content p:last-child {
  margin-bottom: 0;
}

.custom-course-content strong {
  color: var(--primary-blue);
  font-weight: 600;
}

/* ===== 統一版型 - 簡潔列表樣式 ===== */
/* 所有區塊使用相同的版型結構 */

/* 為什麼選擇包班授課 */
.why-choose-section {
  background: transparent;
  padding: 0;
}

.why-choose-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 700px;
  margin: 48px auto 0;
}

.why-choose-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-choose-icon {
  flex-shrink: 0;
  color: var(--primary-blue);
  font-size: 1.3em;
  margin-top: 2px;
}

.why-choose-content {
  flex: 1;
}

.why-choose-title {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.why-choose-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* 包班授課是什麼 */
.what-is-section {
  background: transparent;
}

.what-is-content {
  max-width: 700px;
  margin: 0 auto;
}

.what-is-intro {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.what-is-intro strong {
  color: var(--primary-blue);
  font-weight: 600;
}

.what-is-subtitle {
  font-size: 1em;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
  text-align: center;
}

.what-is-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.what-is-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.what-is-icon {
  flex-shrink: 0;
  color: var(--primary-blue);
  font-size: 1.3em;
  margin-top: 2px;
}

.what-is-item-content {
  flex: 1;
}

.what-is-item-title {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.what-is-item-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* 可選的課程模組 */
.modules-section {
  background: transparent;
  padding: 0;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 700px;
  margin: 48px auto 0;
}

.module-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.module-icon {
  flex-shrink: 0;
  color: var(--primary-blue);
  font-size: 1.3em;
  margin-top: 2px;
}

.module-content {
  flex: 1;
}

.module-title {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.module-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== 時數調整範例 ===== */
.custom-course-duration-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.custom-course-duration-card {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.custom-course-duration-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 12px 32px rgba(1, 132, 255, 0.15);
}

.custom-course-duration-title {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.custom-course-duration-detail {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ===== 合作流程 ===== */
.custom-course-process {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  position: relative;
  padding-left: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.custom-course-process::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: #e5e7eb;
}

.custom-course-process-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}

.custom-course-process-step:first-child {
  padding-top: 0;
}

.custom-course-process-step:last-child {
  padding-bottom: 0;
}

.custom-course-process-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-blue);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2em;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.custom-course-process-content {
  flex: 1;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  min-width: 0;
  padding-top: 0;
}

.custom-course-process-title {
  font-size: 1.125em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  margin-top: 0;
  line-height: 1.4;
}

.custom-course-process-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== 響應式設計 ===== */
@media screen and (max-width: 992px) {
  .why-choose-list,
  .what-is-list,
  .modules-list {
    gap: 28px;
  }
}

@media screen and (max-width: 768px) {
  .custom-course-page {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 80px;
  }

  .custom-course-section {
    margin-bottom: 80px;
  }

  .custom-course-section-title {
    font-size: 1.6em;
  }

  .custom-course-section-subtitle {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .custom-course-content {
    padding: 0;
  }

  .why-choose-list,
  .what-is-list,
  .modules-list {
    gap: 24px;
    margin-top: 32px;
  }
  
  .why-choose-item,
  .what-is-item,
  .module-item {
    gap: 14px;
  }

  .custom-course-duration-examples {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .custom-course-duration-card {
    padding: 32px 24px;
  }

  .custom-course-process {
    margin-top: 32px;
    padding-left: 0;
    max-width: 100%;
  }

  .custom-course-process::before {
    left: 20px;
    top: 20px;
    bottom: 20px;
  }

  .custom-course-process-step {
    padding: 20px 0;
    gap: 20px;
  }

  .custom-course-process-number {
    width: 40px;
    height: 40px;
    font-size: 1.1em;
    color: #ffffff !important;
  }

  .custom-course-process-content {
    padding: 0;
  }
}

@media screen and (max-width: 480px) {
  .custom-course-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 60px;
  }

  .custom-course-section {
    margin-bottom: 60px;
  }

  .custom-course-section-title {
    font-size: 1.4em;
  }

  .custom-course-section-subtitle {
    font-size: 0.95em;
    margin-bottom: 32px;
  }

  .custom-course-content {
    padding: 0;
  }

  .why-choose-list,
  .what-is-list,
  .modules-list {
    gap: 20px;
    margin-top: 32px;
  }
  
  .why-choose-item,
  .what-is-item,
  .module-item {
    gap: 12px;
  }

  .custom-course-duration-card {
    padding: 24px 20px;
  }

  .custom-course-process {
    padding-left: 0;
  }

  .custom-course-process::before {
    display: none;
  }

  .custom-course-process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    gap: 16px;
  }

  .custom-course-process-number {
    margin-bottom: 0;
    width: 40px;
    height: 40px;
    font-size: 1em;
    color: #ffffff !important;
  }

  .custom-course-process-content {
    width: 100%;
  }
}



