
#courses-hero {
  padding: 60px 24px 36px;
  background: linear-gradient(170deg, #FFFDF5 0%, #F7EED8 100%);
  position: relative; overflow: hidden;
}
#courses-page { padding: 28px 24px 80px; background: var(--cream); position: relative; overflow: hidden; }
@media (max-width: 640px) {
  #courses-hero { padding: 60px 14px 24px; }
  #courses-page { padding: 20px 14px 60px; }
}

/* 紫微命盤 4×4 */
.mingpan-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, auto);
  border: 1px solid var(--border); box-shadow: 0 4px 22px var(--shadow);
  margin: 40px 0 56px; background: var(--border); gap: 1px;
  position: relative; z-index: 1;
}
.mp-cell {
  background: #fff; padding: 16px 12px; text-align: center;
  font-family: 'Noto Serif TC', serif;
  display: flex; flex-direction: column; gap: 4px;
  transition: background 1.2s ease;
}
.mp-cell:hover { background: var(--gold-wash) !important; }
.mp-active { background: var(--gold-wash2); }
.mp-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.mp-star { font-size: 15px; color: var(--ink-soft); letter-spacing: 1px; }
.mp-center {
  grid-column: 2 / 4; grid-row: 2 / 4;
  background: var(--gold-wash);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.mp-center-text { font-family: 'Noto Serif TC', serif; font-size: 24px; font-weight: 900; color: var(--gold); letter-spacing: 3px; margin-bottom: 6px; text-align: center; }
.mp-center-sub { font-size: 14px; color: var(--ink-dim); letter-spacing: 2px; text-align: center; }
@media (max-width: 560px) {
  .mp-name { font-size: 15px; }
  .mp-star { font-size: 14px; }
  .mp-cell { padding: 10px 6px; }
  .mp-center-text { font-size: 17px; letter-spacing: 2px; }
  .mp-center-sub { font-size: 13px; }
}

/* STAGE 卡片 */
.stage-list { display: flex; flex-direction: column; position: relative; z-index: 1; }
.stage-item {
  border-top: 1px solid var(--border);
  background: #fff;
  position: relative;
  transition: box-shadow .2s;
}
.stage-item:last-child { border-bottom: 1px solid var(--border); }
.stage-item { scroll-margin-top: 84px; }
.stage-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}
.stage-left {
  padding: 32px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.stage-right {
  background: #fff;
  border-left: 1px solid var(--border-soft);
  padding: 28px 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 18px;
}

/* Stage 標題 */
.stage-head {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 14px; margin-bottom: 14px;
}
.stage-num {
  font-family: 'Noto Serif TC', serif; font-size: 13px; font-weight: 700;
  color: var(--gold); letter-spacing: 3px;
  background: var(--gold-wash); border: 1px solid var(--border);
  padding: 4px 14px; white-space: nowrap; flex-shrink: 0;
}
.stage-tag {
  font-family: 'Noto Serif TC', serif;
  font-size: 17px; font-weight: 700; color: var(--gold);
  letter-spacing: 2px; flex-shrink: 0;
}
.stage-tag-sep { width: 1px; height: 18px; background: var(--border); align-self: center; flex-shrink: 0; }
.stage-name {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 700;
  color: var(--ink); letter-spacing: 1px;
}

/* NEW 標籤 — Stage 05 用 */
.stage-new {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: 3px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-left: 4px;
  align-self: center;
  position: relative;
  animation: newPulse 2.2s ease-in-out infinite;
}
.stage-new::before { content: '✦'; font-size: 9px; }
@keyframes newPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,42,26,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(139,42,26,0); }
}

.stage-desc { font-size: 18px; color: var(--ink-soft); line-height: 1.95; margin-bottom: 16px; }
.stage-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-topic {
  font-size: 16px; color: var(--gold); font-weight: 600;
  border: 1px solid var(--border); padding: 6px 16px;
  background: #fff;
}

/* 右側資訊區 */
.stage-info { display: flex; flex-direction: column; gap: 14px; }
.stage-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  background: #fff;
}
.stage-meta-cell {
  padding: 14px 8px; text-align: center;
  border-right: 1px solid var(--border-soft);
  min-width: 0;
}
.stage-meta-cell:last-child { border-right: none; }
.stage-meta-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 32px; font-weight: 900; color: var(--gold);
  line-height: 1; margin-bottom: 6px;
  letter-spacing: -1px;
  white-space: nowrap;
}
.stage-meta-num .unit {
  font-size: 15px; color: var(--ink-soft); font-weight: 400;
  margin-left: 2px;
}
.stage-meta-label {
  font-size: 14px; color: var(--ink-dim); letter-spacing: 3px;
  white-space: nowrap;
}

/* 主講徽章 — 改成印章式，沒有照片 */
.stage-presenter {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  position: relative;
  display: flex; flex-direction: column;
  gap: 4px;
}
.stage-presenter::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px;
  background: linear-gradient(to bottom, var(--gold-pale), var(--gold), var(--gold-pale));
}
.stage-presenter-eyebrow {
  font-size: 13px; letter-spacing: 4px; color: var(--gold); font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.stage-presenter-eyebrow::before { content: '✦'; font-size: 10px; }
.stage-presenter-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 17px; font-weight: 700; color: var(--ink);
  letter-spacing: 1.5px;
}
.stage-presenter-name em {
  color: var(--gold); font-style: normal; font-size: 14px; margin-left: 4px;
}

.stage-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--gold); color: #fff;
  padding: 13px 16px; font-size: 15px; font-weight: 700;
  letter-spacing: 2px; border-radius: 3px; text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 3px 12px rgba(168,120,42,.25);
}
.stage-cta:hover { background: var(--gold-deep); transform: translateY(-1px); }
.stage-cta::after { content: '›'; font-size: 18px; line-height: 1; }

/* 響應式 */
@media (max-width: 900px) {
  .stage-inner { grid-template-columns: 1fr; }
  .stage-right { border-left: none; border-top: 1px solid var(--border-soft); padding: 22px 22px 24px; }
  .stage-info { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 12px; }
  .stage-meta-grid { flex: 1 1 220px; min-width: 200px; }
  .stage-presenter { flex: 1 1 220px; min-width: 200px; }
  .stage-cta { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  .stage-left { padding: 24px 18px 6px; }
  .stage-right { padding: 18px 18px 20px; }
  .stage-head { gap: 10px; margin-bottom: 12px; }
  .stage-num { font-size: 12px; padding: 3px 11px; }
  .stage-tag { font-size: 16px; }
  .stage-name { font-size: 20px; width: 100%; margin-top: 4px; }
  .stage-tag-sep { display: none; }

  /* 手機 stage-info：全部直排 */
  .stage-info { flex-direction: column; gap: 10px; }
  .stage-meta-grid {
    width: 100%; flex: none;
    display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border); background: #fff;
  }
  .stage-meta-cell {
    padding: 12px 10px; text-align: center;
    border-right: 1px solid var(--border-soft);
  }
  .stage-meta-cell:last-child { border-right: none; }
  .stage-meta-num {
    font-family: 'Noto Serif TC', serif;
    font-size: 26px; font-weight: 900; color: var(--gold);
    line-height: 1; margin-bottom: 4px;
  }
  .stage-meta-num .unit { font-size: 13px; }
  .stage-meta-label { font-size: 14px; color: var(--ink-dim); letter-spacing: 1.5px; }
  .stage-presenter {
    width: 100%; flex: none;
    border: 1px solid var(--border-soft);
    background: #fff; padding: 12px 14px;
    position: relative;
    display: flex; flex-direction: column; gap: 4px;
  }
  .stage-presenter::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px;
    background: linear-gradient(to bottom, var(--gold-pale), var(--gold), var(--gold-pale));
  }
  .stage-presenter-eyebrow {
    font-size: 11px; letter-spacing: 3px; color: var(--gold); font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    padding-left: 8px;
  }
  .stage-presenter-name {
    font-family: 'Noto Serif TC', serif;
    font-size: 16px; font-weight: 700; color: var(--ink);
    letter-spacing: 1.5px; padding-left: 8px;
  }
  .stage-cta { width: 100%; flex: none; }
}
/* bundle packages 課程套組合報 */
#bundles { padding: 56px 24px 80px; background: var(--cream); position: relative; overflow: hidden; }
@media (max-width: 640px) { #bundles { padding: 44px 14px 60px; } }
.bundle-head { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.bundle-head .section-eyebrow { justify-content: center; }
.bundle-head .section-title { text-align: center; }
.bundle-head .bundle-lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 2.0; margin: 0 auto; }
.bundle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; margin-top: 44px; max-width: 760px; margin-left: auto; margin-right: auto; }
.bundle-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 22px var(--shadow); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.bundle-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px var(--shadow-md); }
.bundle-card.featured { border-color: var(--gold); box-shadow: 0 8px 36px rgba(168,120,42,.22); }
.bundle-ribbon { position: absolute; top: 18px; right: -36px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 2px; padding: 5px 42px; transform: rotate(45deg); box-shadow: 0 2px 8px rgba(139,42,26,.35); z-index: 2; }
.bundle-top { padding: 26px 26px 22px; border-bottom: 1px solid var(--border-soft); background: var(--gold-wash2); position: relative; }
.bundle-card.featured .bundle-top { background: linear-gradient(160deg, var(--gold-wash) 0%, var(--gold-wash2) 100%); }
.bundle-combo { display: inline-block; white-space: nowrap; font-family: 'Noto Serif TC', serif; font-size: 15px; font-weight: 700; letter-spacing: 3px; color: var(--gold); background: #fff; border: 1px solid var(--border); padding: 5px 16px; margin-bottom: 14px; }
.bundle-card.featured .bundle-combo { color: #fff; background: var(--gold); border-color: var(--gold); }
.bundle-name { font-family: 'Noto Serif TC', serif; font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: 1px; line-height: 1.35; margin-bottom: 8px; }
.bundle-scope { font-size: 15px; color: var(--ink-dim); letter-spacing: 1px; }
.bundle-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.bundle-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-soft); margin-bottom: 20px; }
.bundle-stat { padding: 12px 8px; text-align: center; }
.bundle-stat + .bundle-stat { border-left: 1px solid var(--border-soft); }
.bundle-stat .bs-num { font-family: 'Noto Serif TC', serif; font-size: 26px; font-weight: 900; color: var(--gold); line-height: 1; }
.bundle-stat .bs-num .unit { font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-left: 2px; }
.bundle-stat .bs-label { font-size: 13px; color: var(--ink-dim); letter-spacing: 2px; margin-top: 6px; }
.bundle-price { margin-bottom: 20px; }
.bundle-price .bp-orig { font-size: 14px; color: var(--ink-dim); text-decoration: line-through; margin-bottom: 2px; letter-spacing: .5px; }
.bundle-price .bp-now { display: flex; align-items: baseline; gap: 8px; }
.bundle-price .bp-now .bp-cur { font-size: 15px; color: var(--red); font-weight: 700; }
.bundle-price .bp-now .bp-val { font-family: 'Noto Serif TC', serif; font-size: 34px; font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -.5px; }
.bundle-price .bp-save { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--gold-deep); background: var(--gold-wash); border: 1px solid var(--border); padding: 3px 12px; }
.bundle-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; background: var(--gold); color: #fff; padding: 14px 18px; font-size: 16px; font-weight: 700; letter-spacing: 2px; border-radius: 3px; text-decoration: none; transition: background .2s, transform .15s; box-shadow: 0 3px 12px rgba(168,120,42,.25); }
.bundle-cta:hover { background: var(--gold-deep); transform: translateY(-1px); }
.bundle-cta::after { content: '\2192'; font-size: 17px; line-height: 1; }
.bundle-card.featured .bundle-cta { box-shadow: 0 5px 18px rgba(168,120,42,.4); }
.bundle-includes { max-width: 760px; margin: 36px auto 0; border: 1px solid var(--border); background: var(--gold-wash2); padding: 24px 30px; position: relative; }
.bundle-includes::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(to right, var(--gold-pale), var(--gold), var(--gold-pale)); }
.bundle-includes h4 { font-family: 'Noto Serif TC', serif; font-size: 16px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.bundle-includes h4::before { content: '\2726'; color: var(--gold); }
.bundle-includes ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bundle-includes li { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; color: var(--ink-soft); line-height: 1.8; }
.bundle-includes li::before { content: '\2713'; color: #2A7A2A; font-weight: 700; flex-shrink: 0; }
@media (max-width: 900px) { .bundle-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } } }
.bundle-ribbon.alt { background: var(--gold); box-shadow: 0 2px 8px rgba(168,120,42,.35); }
.bundle-feats { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.bundle-feats .bf-label { font-family: 'Noto Serif TC', serif; font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.bundle-feats ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bundle-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 17px; color: var(--ink-soft); line-height: 1.7; }
.bundle-feats li::before { content: '\2713'; color: #2A7A2A; font-weight: 700; flex-shrink: 0; }

/* 張盛舒親授 — 移出「課程皆含」後的署名標記 */
.bundle-author {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-family: 'Noto Serif TC', serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--gold-deep);
  border: 1px solid var(--border); background: #fff; padding: 5px 13px;
}
.bundle-author { white-space: nowrap; }
.bundle-author::before { content: '✦'; color: var(--gold); font-size: 11px; }
.bundle-card.featured .bundle-author { background: rgba(255,255,255,.85); }

/* 五班專屬：認證考試費用（價值）highlight */
.bundle-feats li.bf-hot { color: var(--ink-soft); font-weight: 400; }
.bundle-feats li.bf-hot .bf-htext { flex: 1; }
.bundle-feats li.bf-hot::before { content: '✓'; color: #2A7A2A; }
.bundle-feats li.bf-hot .bf-val { color: var(--ink-dim); font-weight: 400; white-space: nowrap; margin-left: 5px; }


/* 合報贈品 block */
.bundle-body .gift-block { margin-top: 18px; margin-bottom: 18px; }

/* 單堂課程贈品 — stage 卡片內 */
.stage-gift {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; padding: 11px 14px;
  background: var(--gold-wash); border: 1px solid var(--border);
}
.stage-gift .sg-tag {
  flex-shrink: 0; font-family: 'Noto Sans TC', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; color: #fff; background: var(--gold); border: none; padding: 3px 11px; border-radius: 3px;
}
.stage-gift .sg-text { font-size: 16px; color: var(--ink-mid); font-weight: 400; line-height: 1.5; }
.stage-gift .sg-val { color: var(--ink-dim); font-weight: 400; white-space: nowrap; }
.stage-gift .sg-val::before { content: '· '; color: var(--ink-dim); font-weight: 400; }

/* ── 手機版 bundle-head：標題置中、說明文靠左 ── */
@media (max-width: 640px) {
  .bundle-head .section-title { text-align: center !important; }
  .bundle-head .bundle-lead { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; }
  .bundle-head .section-eyebrow { justify-content: flex-start !important; }
}

/* ════ Extracted inline styles from courses.html ════ */
.stage-highlight-gold { color: var(--gold); }
