/* =========================================================
   社團法人中華多元技能培訓協會 — 官網樣式
   ========================================================= */

:root {
  /* 品牌色：菖蒲色 */
  --brand: #C47BB4;
  --brand-deep: #9D4F87;
  --brand-ink: #7C3A6B;
  --brand-soft: #F7E6F2;

  /* 中性色 */
  --ink: #35203A;
  --ink-2: #5E4459;
  --ink-3: #8A7385;
  --cream: #FCF8FB;
  --sand: #F7F1EA;
  --surface: #FFFFFF;
  --line: #EFDCEA;
  --line-2: #E8E0D6;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(53, 32, 58, 0.06), 0 4px 14px rgba(124, 58, 107, 0.07);
  --shadow: 0 2px 6px rgba(53, 32, 58, 0.06), 0 12px 32px rgba(124, 58, 107, 0.10);
  --shadow-lg: 0 8px 20px rgba(53, 32, 58, 0.08), 0 24px 56px rgba(124, 58, 107, 0.16);

  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--brand-deep); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

/* ---------- Header / Nav ---------- */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  padding: 0.7rem clamp(1.15rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

header .brand {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--brand-ink);
}

.brand-logo {
  height: 2.3rem;
  vertical-align: middle;
  border-radius: 6px;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: var(--brand-soft);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--brand-ink);
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.97rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

nav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
nav a.is-active { background: var(--brand-deep); color: #fff; font-weight: 700; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.section-head { margin-bottom: 1.8rem; }
.section-head .eyebrow { margin-bottom: 0.55rem; }

.section-head h2 {
  margin: 0;
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--ink);
  letter-spacing: 0.01em;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
  max-width: 46rem;
}

.lead { font-size: 1.06rem; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.section--alt { background: var(--sand); }
.section--tint { background: var(--brand-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(196, 123, 180, 0.20), transparent 62%),
    radial-gradient(700px 380px at 2% 108%, rgba(217, 164, 65, 0.14), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 107, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  mask-image: linear-gradient(200deg, #000 0%, transparent 58%);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 58%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.6rem);
  align-items: center;
  padding-block: clamp(2.8rem, 6vw, 4.6rem);
}

.hero h1 {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand-deep);
  background: linear-gradient(180deg, transparent 68%, rgba(196, 123, 180, 0.32) 68%);
  padding-inline: 0.1em;
}

.hero p {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin: 0 0 1.8rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.hero-note span { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1.5;
}

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-ink));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: #fff;
  color: var(--brand-ink);
  border-color: var(--line);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover { background: #fff; color: var(--brand-ink); }

/* ---------- Hero board (輪播) ---------- */
.hero-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.carousel { position: relative; }

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 1.7rem 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.slide-tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--brand-deep);
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
}

.carousel-slide h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink);
}

.carousel-slide p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.slide-facts {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.92rem;
}

.slide-facts li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.3rem;
}

.slide-facts dt,
.slide-facts .k {
  color: var(--brand-deep);
  font-weight: 700;
  white-space: nowrap;
  min-width: 4.5rem;
}

.slide-facts .v { color: var(--ink-2); }

.carousel-slide .btn { align-self: flex-start; margin-top: 0.45rem; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.carousel-nav {
  position: static;
  transform: none;
  background: var(--brand-soft);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-ink);
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.carousel-nav:hover { background: var(--brand); color: #fff; }
.carousel-nav .icon { width: 16px; height: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #E1CDDC;
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dots button.is-active { background: var(--brand-deep); width: 22px; }

/* ---------- 數據列 ---------- */
.stat-bar {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 1.9rem;
  text-align: center;
}

.stat-item { padding-inline: 0.5rem; }

.stat-num {
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-deep);
  letter-spacing: 0.01em;
}

.stat-num small { font-size: 0.52em; margin-left: 0.15em; }

.stat-label {
  display: block;
  font-size: 0.87rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- 特色卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.feature-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-soft), #FBEFF7);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.feature-ico .icon { width: 23px; height: 23px; }

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ---------- 內頁標頭 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand-ink), var(--brand-deep) 55%, var(--brand));
  color: #fff;
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  margin-bottom: 0.7rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  color: #fff;
  line-height: 1.4;
}

.page-hero p {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 46rem;
}

/* ---------- Main ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.15rem, 4vw, 2rem);
}

main.is-full { max-width: none; padding: 0; }

h1 { color: var(--ink); letter-spacing: 0.01em; }

h2 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.01em;
}

h2 .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 8px;
  padding: 0.3rem;
  box-sizing: content-box;
  flex-shrink: 0;
}

h3 { color: var(--brand-ink); }

/* ---------- CTA 橫幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-ink), var(--brand-deep) 60%, var(--brand));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding-block: clamp(2rem, 4vw, 2.8rem);
}

.cta-inner h2 {
  margin: 0 0 0.35rem;
  color: #fff;
  display: block;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
}

.cta-inner p { margin: 0; color: rgba(255, 255, 255, 0.9); }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- 卡片 / 表格 ---------- */
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-deep);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-card > h2:first-child { margin-top: 0; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.info-table th {
  width: 8.5rem;
  color: var(--brand-ink);
  white-space: nowrap;
  background: #FDF9FC;
  font-weight: 700;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

ul { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

/* ---------- 狀態標籤 ---------- */
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  margin-left: 0.6rem;
  vertical-align: middle;
  white-space: nowrap;
}

.badge-open { background: #E4F3DC; color: #3D6B2B; border: 1px solid #C6E3B7; }
.badge-closed { background: #ECECEF; color: #66636D; border: 1px solid #DCDCE0; }

.course-card.is-past { border-top-color: #C9C6CE; }

/* ---------- 消息列表 ---------- */
.news-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.news-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
}

.news-item:hover { transform: translateX(3px); box-shadow: var(--shadow); }

.news-item > .icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--brand-deep);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.news-item a { color: var(--brand-deep); font-weight: 700; }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-deep);
}

.more-link:hover { text-decoration: underline; }

/* ---------- 聯絡資訊 ---------- */
.contact-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow-sm);
  margin: 0;
}

.contact-item .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 50%;
  padding: 0.45rem;
  box-sizing: content-box;
  flex-shrink: 0;
}

/* ---------- 組織架構圖 ---------- */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.org-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.org-arrow-down { font-size: 1.3rem; color: var(--brand); line-height: 1; }

.org-box {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  color: #3B2440;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
  white-space: nowrap;
}

.org-branches {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 0.3rem;
}

.org-branch { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.org-sub { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

.org-c-green { background: #CFE8C6; }
.org-c-navy { background: #C3D2E8; }
.org-c-purple { background: #E3CDEE; }
.org-c-blue { background: #C6E0F5; }
.org-c-orange { background: #F6CFA0; }
.org-c-gray { background: #DFE3E6; }
.org-c-peach { background: #F7DDC9; font-size: 0.9rem; font-weight: 500; padding: 0.5rem 1rem; }
.org-c-lightgreen { background: #DCEFD3; font-size: 0.85rem; font-weight: 500; padding: 0.4rem 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #3D2439;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 2rem;
  padding-block: clamp(2.2rem, 5vw, 3rem);
}

.footer-col h4 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.footer-col p { margin: 0 0 0.45rem; line-height: 1.8; }

.site-footer a { color: #fff; }

.footer-col p a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.18s ease;
}

.footer-col p a:hover { border-color: #fff; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover { color: #fff; }
.footer-links li { margin: 0; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.footer-social:hover { background: var(--brand-deep); }
.footer-social .icon { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 捲動淡入（漸進增強：預設可見） ---------- */
.reveal { opacity: 1; transform: none; }

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .course-card, .news-item, .btn, .feature-card { transition: none; }
}

/* ---------- 平板 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero p { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

/* ---------- 手機 ---------- */
@media (max-width: 700px) {
  header { padding: 0.65rem 1rem; }
  header .brand { font-size: 1rem; flex: 1 1 auto; }
  .brand-logo { height: 1.95rem; margin-right: 0.45rem; }

  .nav-toggle { display: flex; flex-shrink: 0; }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    overflow: hidden;
    padding: 0.35rem;
  }

  nav.is-open { display: flex; }
  nav a { padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0.6rem; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-col:first-child { grid-column: auto; }

  .course-card { padding: 1.35rem 1.2rem; }

  /* 表格改為上下堆疊，避免欄位被擠成細長條 */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table tr { border-bottom: 1px solid var(--line); padding: 0.5rem 0; }

  .info-table th,
  .info-table td {
    border-bottom: none;
    background: none;
    padding: 0;
    white-space: normal;
  }

  .info-table th { font-size: 0.9rem; margin-bottom: 0.1rem; }

  .badge { display: block; margin-left: 0; margin-top: 0.4rem; width: fit-content; }

  .org-box { white-space: normal; font-size: 0.9rem; }

  .slide-facts li { flex-direction: column; gap: 0.05rem; }
  .slide-facts .k { min-width: 0; }
}
