*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #026e6b;
  --teal-light:  #1a7f79;
  --cream:       #ebe5d2;
  --gold:        #b9925a;
  --text-dark:   #1f2a26;
  --text-mid:    #3a3a3a;
  --white:       #ffffff;
  --row-alt:     #f2efe6;

  /* 響應式字級：最小值 / 依視窗寬度縮放 / 最大值 */
  --fs-label:  clamp(15.5px, 2.1vw, 19.5px);
  --fs-name:   clamp(19.5px, 2.6vw, 24.5px);
  --fs-role:   clamp(14px, 1.8vw, 18px);
  --fs-desc:   clamp(15.5px, 2vw, 19px);
  --fs-time:   clamp(18px, 2.5vw, 22px);
  --fs-th:     clamp(18px, 2.6vw, 26px);
  --fs-date:   clamp(18px, 2.3vw, 23.5px);
  --fs-td:     clamp(17px, 2.1vw, 21px);
  --fs-join:   clamp(15.5px, 1.8vw, 19px);

  --gutter: clamp(16px, 3vw, 32px);
}

/* ===== 課程導言 ===== */
.lede-intro {
  position: relative;
  background: linear-gradient(135deg, var(--cream) 0%, #f5f1e4 100%);
  border-left: 5px solid var(--gold);
  border-radius: 4px 10px 10px 4px;
  padding: clamp(18px, 3vw, 30px) clamp(24px, 4vw, 44px) clamp(18px, 3vw, 30px) clamp(30px, 5vw, 52px);
  margin: 0 0 clamp(20px, 3vw, 32px) 0;
  box-shadow: 0 4px 14px rgba(2, 110, 107, 0.08);
}

.lede-intro::before {
  content: '“';
  position: absolute;
  top: -6px;
  left: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
}

.lede-intro p {
  position: relative;
  z-index: 1;
  font-size: var(--fs-desc);
  font-weight: 600;
  line-height: 1.9;
  color: #000;
  letter-spacing: 0.5px;
}

@media (max-width: 620px) {
  .lede-intro {
    padding: 18px 20px 18px 34px;
    border-radius: 4px 8px 8px 4px;
  }
  .lede-intro::before {
    font-size: 44px;
    left: 8px;
    top: -2px;
  }
}

/* ===== Info Rows ===== */
.info-rows {
  background: var(--white);
}

.info-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  border-bottom: 1px solid #e3ded0;
  padding: clamp(10px, 1.8vw, 14px) var(--gutter);
  gap: clamp(10px, 2vw, 18px);
}

.info-label {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-label);
  padding: 6px 14px;
  min-width: 74px;
  height: 32px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.info-content {
  color: var(--text-dark);
  font-size: var(--fs-desc);
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  line-height: 1.7;
  min-width: 0;
  flex: 1 1 200px;
  
}

.info-content .name      { font-size: var(--fs-name); font-weight: 900; color: var(--text-dark); }
.info-content .role      { font-size: var(--fs-role); color: #444; }
.info-content .desc      { font-size: var(--fs-desc); color: var(--text-mid); line-height: 1.9; }
.info-content .date-time { font-size: var(--fs-time); font-weight: 900; color: var(--text-dark); }

/* ===== 圓框數字標記（❶❷❸ 替代樣式）===== */
.num-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  min-width: 1.5em;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-weight: 900;
  font-size: 0.95em;
  line-height: 1;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ===== 報名按鈕 ===== */



.reg-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;              /* 新增：讓容器撐滿，center 才有效果 */
  gap: clamp(10px, 2vw, 16px);  
}

.reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--fs-join);
  font-weight: 800;
  letter-spacing: 1px;
  color: #000;
  border: 2px solid var(--teal);
  border-radius: 999px;
  padding: 10px 30px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(2, 110, 107, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}



.reg-btn:hover,
.reg-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 110, 107, 0.38);
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
}

.reg-btn:hover::after { transform: translateX(3px); }

.reg-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(2, 110, 107, 0.3); }

.reg-btn--alt {

  border-color: var(--gold);
  box-shadow: 0 3px 10px rgba(185, 146, 90, 0.32);
}

.reg-btn--alt:hover,
.reg-btn--alt:focus-visible {
  background: linear-gradient(135deg, #cba46f 0%, var(--gold) 100%);
  box-shadow: 0 6px 16px rgba(185, 146, 90, 0.42);
}

.reg-btn--alt:active { box-shadow: 0 2px 6px rgba(185, 146, 90, 0.34); }

@media (max-width: 620px) {
  .reg-btn-group { width: 100%; }
  .reg-btn { flex: 1 1 auto; padding: 10px 18px; text-align: center; }
}

/* 手機版專用的「參加辦法」區塊，桌機／平板隱藏，僅在窄螢幕（第3堂後）顯示 */
.join-mobile { display: none; }

/* ===== Course Table（寬螢幕：表格／窄螢幕：卡片） ===== */
.course-table {
  width: 100%;
  margin: 1em 0 0 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
}

.course-table thead th {
  background: var(--teal-light);
  color: #fff;
  font-family: 'Noto Serif TC', serif;
  font-size: var(--fs-th);
  font-weight: 900;
  letter-spacing: clamp(1px, 1vw, 6px);
  padding: clamp(10px, 2vw, 16px) 8px;
  text-align: center;
}

.course-table thead .col-date  { width: 20%; }
.course-table thead .col-topic { width: 42%; }
.course-table thead .col-join  { width: 38%; }

.course-table tbody td {
  padding: clamp(12px, 2.4vw, 22px) clamp(12px, 2.6vw, 26px);
  vertical-align: top;
  font-size: var(--fs-td);
  color: var(--text-dark);
  border-bottom: 1px dashed #cfc9b8;
}

.course-table tbody tr:nth-child(odd)  td { background: var(--white); }
.course-table tbody tr:nth-child(even) td { background: var(--row-alt); }

.course-table .col-date {
  text-align: center;
  font-size: var(--fs-date);
  color: var(--teal);
  border-right: 1px solid #e3ded0;
}

.course-table .col-topic {
  line-height: 1.9;
  border-right: 1px solid #e3ded0;
}

.course-table .col-join {
  vertical-align: middle;
}

.course-table .col-join p {
  line-height: 1.8;
  font-size: var(--fs-join);
}

.course-table .col-join p:not(:last-child) {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px dashed #e3ded0;
}

.course-table .col-join strong {
  color: var(--text-dark);
  font-size: calc(var(--fs-join) + 1px);
}

/* 平板：字級與間距略縮，仍維持表格 */
@media (max-width: 860px) {
  .course-table thead .col-date  { width: 24%; }
  .course-table thead .col-topic { width: 40%; }
  .course-table thead .col-join  { width: 36%; }
}

/* 手機：表格改為單欄卡片式排版，避免橫向擠壓 */
@media (max-width: 620px) {
  .course-table { width: 100%; margin: 0; }
  .course-table,
  .course-table thead,
  .course-table tbody,
  .course-table tr,
  .course-table td,
  .course-table th { display: block; width: 100%; }

  .course-table thead { display: none; }

  .course-table tbody tr {
    border-bottom: 6px solid var(--row-alt);
  }
  .course-table tbody tr:last-child { border-bottom: none; }

  .course-table tbody td {
    border-right: none;
    border-bottom: none;
    padding: 6px 18px;
  }

  .course-table .col-date {
    text-align: left;
    padding-top: 16px;
    font-size: calc(var(--fs-date) + 1px);
    position: relative;
  }
  .course-table .col-date::before {
    content: '📅';
    margin-right: 6px;
  }

  .course-table .col-topic { padding-bottom: 10px; }

  /* 原本因 rowspan 而黏在第1堂後面的參加辦法，在手機版隱藏，改由 .join-mobile 呈現在第3堂之後 */
  .course-table .col-join {
    display: none;
  }

  .join-mobile {
    display: block;
    padding-bottom: 18px;
    /*background: rgba(0,0,0,0.02);*/
    background:#ffffff;
    border: 1px solid #02716c;
    border-radius: 6px;
    margin: 5px 0;
    padding: 14px !important;
  }
  .join-mobile::before {
    content: '參加辦法';
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--teal);
  }
  .join-mobile p {
    line-height: 1.8;
    font-size: var(--fs-join);
  }
  .join-mobile p:not(:last-child) {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px dashed #e3ded0;
  }
  .join-mobile strong {
    color: var(--text-dark);
    font-size: calc(var(--fs-join) + 1px);
  }
}