:root {
  --bg: #f9f7f0;
  --bg-soft: #fcfbf8;
  --card: #fbf9f4;
  --text: #2b2b2b;
  --text-muted: #5c5c5c;
  --accent: #da5b37;
  --line: #3a3a3a;
  --radius: 16px;
  --max: 1200px;
  --pad: 4vw;
  --font: "Poppins", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.1rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 247, 240, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 26px; width: auto; }
.site-nav { display: flex; gap: 2rem; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    padding: 1rem var(--pad) 2rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s;
  }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 1.05rem; }
  body.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  padding: .9rem 2.6rem; border-radius: 10px; font-size: .95rem;
  transition: background .2s, color .2s;
}
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); background: rgba(255,255,255,.4); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.text-link { color: var(--accent); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.6em; }
.section-gradient {
  background:
    linear-gradient(rgba(249, 247, 240, .62), rgba(249, 247, 240, .62)),
    var(--bg) url(/assets/img/bg-gradient.jpg) center / cover no-repeat;
}

/* ---------- Hero ---------- */
.hero { padding: 90px 0 130px; background: var(--bg) url(/assets/img/hero-blob.jpg) 85% center / cover no-repeat; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; min-height: 460px; }
.eyebrow { font-size: .95rem; color: var(--text-muted); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.55; letter-spacing: .04em; margin-bottom: 1.4em; }
.hero-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  width: 140px; padding: 26px 12px 22px;
  background: #fff; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--text);
  box-shadow: 0 6px 30px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.hero-card img { width: 56px; margin-bottom: 10px; }
.hero-card strong { color: var(--accent); font-size: 1.05rem; }
.hero-card span { font-size: .9rem; }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero { background-position: 72% 30%; background-size: auto 520px; }
  .hero-cards { justify-content: flex-start; }
  .hero-card { width: calc((100% - 24px) / 3); min-width: 92px; }
}

/* ---------- Check list ---------- */
.check-list { list-style: none; margin: 0 auto; padding: 0; max-width: 600px; }
.check-list li { display: flex; align-items: center; gap: 1.6rem; margin-bottom: 2rem; }
.check-list img { width: 60px; flex: none; }
.check-list p { margin: 0; color: var(--text); }
.intro { margin-bottom: 2.5rem; }

/* ---------- Courses ---------- */
.course-tabs { display: flex; justify-content: center; gap: clamp(2rem, 10vw, 7rem); margin-bottom: 80px; }
.course-tabs a { color: var(--accent); font-size: 1rem; }
.course + .course { margin-top: 140px; }
.rule-title {
  display: flex; align-items: center; gap: 2rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem); text-align: center; margin-bottom: 70px;
}
.rule-title::before, .rule-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule-title em { color: var(--accent); font-style: normal; }
.course-body { display: grid; grid-template-columns: 290px 1fr; gap: 80px; max-width: 760px; margin: 0 auto; align-items: start; }
.course-photo { border-radius: 12px; width: 100%; height: 100%; max-height: 620px; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { margin-bottom: 3rem; }
.feature-list li:last-child { margin-bottom: 0; }
.feature-list h4 { display: flex; align-items: center; gap: 1.2rem; font-size: 1.35rem; margin-bottom: .8em; }
.feature-list h4 img { width: 48px; }
.feature-list p { font-size: .9rem; color: var(--text-muted); padding-left: calc(48px + 1.2rem); margin: 0; }

@media (max-width: 760px) {
  .course-body { grid-template-columns: 1fr; gap: 40px; }
  .course-photo { aspect-ratio: 4 / 3; max-height: none; }
  .feature-list p { padding-left: 0; }
  .rule-title { gap: 1rem; margin-bottom: 40px; }
  .course + .course { margin-top: 90px; }
}

/* ---------- Custom course ---------- */
.custom-course { background: var(--bg-soft); padding-top: 70px; padding-bottom: 70px; }
.custom-body { display: grid; grid-template-columns: 300px 1fr; gap: 60px; max-width: 900px; margin: 0 auto; align-items: center; }
.custom-cta { text-align: center; }
.custom-cta h2 { font-size: 2rem; }
.custom-cta .btn { width: 100%; }
.dot-list { padding-left: 1.2rem; margin: 0; }
.dot-list li { margin-bottom: .5rem; }
@media (max-width: 760px) { .custom-body { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Pricing ---------- */
.price { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 1.2em; }

/* ---------- Enroll ---------- */
.enroll-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; max-width: 840px; }
.enroll h2 { font-size: 2rem; margin-bottom: 1.2em; }
@media (max-width: 760px) { .enroll-inner { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps-wrap { max-width: 940px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 48px; }
.steps li {
  display: grid; grid-template-columns: 110px 120px 1fr; align-items: center; gap: 1.5rem;
  background: var(--card); border-radius: 24px; padding: 40px 50px;
  box-shadow: 0 2px 30px rgba(0,0,0,.03);
}
.step-num { font-size: 3.4rem; font-weight: 400; text-align: center; }
.step-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step-icon img { width: 64px; }
.step-icon strong { font-size: .95rem; }
.steps p { margin: 0; }
.note { margin-top: 2rem; padding-left: 50px; }
@media (max-width: 760px) {
  .steps li { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; gap: .8rem; }
  .note { padding-left: 0; }
}

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: 150px 1fr; gap: 40px; max-width: 940px; align-items: start; }
.faq-inner h2 { font-size: 2rem; font-weight: 400; }
.faq-card { background: rgba(255,255,255,.55); border-radius: 24px; padding: 70px 90px; }
.faq-card details { border-top: 1px solid var(--line); }
.faq-card details:last-child { border-bottom: 1px solid var(--line); }
.faq-card summary {
  list-style: none; cursor: pointer; padding: 1rem 2rem 1rem 0; position: relative; font-size: 1.05rem;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: translateY(-75%) rotate(45deg); transition: transform .2s;
}
.faq-card details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-answer { padding: 0 0 1.2rem; font-size: .93rem; color: var(--text-muted); }
.faq-answer ul { padding-left: 1.2rem; }
@media (max-width: 760px) {
  .faq-inner { grid-template-columns: 1fr; gap: 20px; }
  .faq-card { padding: 28px 22px; }
}

/* ---------- Posts grid ---------- */
.columns-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; }
.columns-head h2 { font-size: 2rem; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; color: var(--text);
  background: var(--card); border-radius: 18px; padding: 18px 18px 22px;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.post-card img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 14px; }
.post-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: .4em; }
.post-card .read-more { font-size: .9rem; }
.post-card time { font-size: .8rem; color: var(--text-muted); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Post ---------- */
.post { padding-top: 70px; padding-bottom: 40px; max-width: 880px; }
.post-header { text-align: center; margin-bottom: 40px; }
.post-header h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; }
.post-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: .6rem; }
.post-meta a { color: inherit; }
.post-cover { width: 100%; margin-bottom: 40px; }
.post-body { font-size: .98rem; }
.post-body h2, .post-body h3, .post-body h4 { margin-top: 1.8em; }
.post-body h4 { font-size: 1.3rem; }
.post-body li { margin-bottom: .6em; }
.post-body li p { margin: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0 1.5rem; }
.post-body .small { font-size: .78rem; color: var(--text-muted); word-break: break-word; }
.post-body blockquote { margin: 1.5em 0; padding: .4em 1.2em; border-left: 3px solid var(--accent); color: var(--text-muted); }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; margin-top: 70px; padding-top: 28px; border-top: 1px solid rgba(0,0,0,.1); }
.post-nav a { text-decoration: none; color: var(--text); max-width: 48%; font-size: .95rem; }
.post-nav a span { display: block; font-size: .8rem; color: var(--accent); }
.post-nav .next { text-align: right; margin-left: auto; }
.post-cta { padding: 60px 0 100px; }

/* ---------- Contact ---------- */
.form-embed { margin: 2rem 0; }
.form-embed iframe { display: block; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; max-width: 1040px; }
.footer-brand img { height: 24px; width: auto; margin-bottom: .6rem; }
.footer-brand p { font-size: .9rem; }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { font-size: .92rem; line-height: 1.9; }
.footer-label { color: var(--text); }
.copyright { text-align: center; font-size: .85rem; margin: 60px 0 0; padding: 0 var(--pad); }
@media (max-width: 560px) { .footer-links { gap: 2.2rem; } }
