/**
 * TCA Shared Design System
 * 璨因教練學院 - 品牌色票方案 A 清晰森林
 *
 * 使用於：header-tca.php + footer-tca.php + 各 template-tca-*.php
 */

:root {
  --green: #009943; --green-dark: #00752F; --green-light: #AACD03; --green-bg: #E8F5E9;
  --red: #D7000F; --purple: #6B1B7E;
  --ink: #1A1A1A; --ink-2: #3a3a3a; --ink-3: #5C5C5C; --ink-4: #8a8a8a;
  --line: #e5e7e0; --page: #F7F9F4; --white: #ffffff;
}

/* 基礎 reset */
body.tca-themed *, body.tca-themed *::before, body.tca-themed *::after { box-sizing: border-box; }
body.tca-themed {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--page); color: var(--ink);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
}
body.tca-themed img { max-width: 100%; height: auto; }
body.tca-themed a { text-decoration: none; color: inherit; }
body.tca-themed ul { list-style: none; margin: 0; padding: 0; }
body.tca-themed h1, body.tca-themed h2, body.tca-themed h3, body.tca-themed h4 { margin: 0; }
body.tca-themed p { margin: 0; }

/* NAV（共用） */
.tca-nav { position: sticky; top: 0; z-index: 20; background: rgba(247,249,244,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tca-nav-inner { max-width: 1280px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; }
.tca-logo { font-weight: 900; font-size: 17px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.tca-logo-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--green); color: white; display: grid; place-items: center; font-size: 15px; font-family: 'Noto Serif TC', serif; font-weight: 900; }
.tca-nav-links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.tca-nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.tca-nav-links a:hover { color: var(--green); }
.tca-nav-cta { display: flex; align-items: center; gap: 14px; }

/* BUTTONS（共用） */
.tca-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 30px; font-size: 15px; font-weight: 700; transition: all .2s ease; cursor: pointer; border: 0; white-space: nowrap; font-family: inherit; text-decoration: none; }
.tca-btn-primary { background: var(--green); color: white; box-shadow: 0 8px 20px -8px rgba(0,153,67,0.5); }
.tca-btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); color: white; }
.tca-btn-secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.tca-btn-secondary:hover { background: var(--ink); color: white; }
.tca-btn-sm { padding: 9px 18px; font-size: 14px; }
.tca-btn-ghost { background: transparent; color: var(--ink-2); padding: 9px 14px; }

/* 通用排版 */
.tca-section { max-width: 1280px; margin: 0 auto; padding: 0 40px 90px; }
.tca-section-head { text-align: center; margin-bottom: 48px; }
.tca-section-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green-dark); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 14px; }
.tca-section-title { font-family: 'Noto Serif TC', serif; font-size: clamp(30px, 3.5vw, 42px); font-weight: 900; line-height: 1.3; color: var(--ink); margin-bottom: 12px; }
.tca-section-sub { font-size: 16px; color: var(--ink-3); max-width: 580px; margin: 0 auto; }

/* FOOTER（共用） */
.tca-footer { background: var(--ink); color: #bdbdbd; padding: 70px 0 0; }
.tca-footer-top { max-width: 1280px; margin: 0 auto; padding: 0 40px 50px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; }
.tca-footer-brand .tca-logo { color: white; margin-bottom: 18px; }
.tca-footer-brand p { font-size: 14px; line-height: 1.85; margin-bottom: 20px; max-width: 340px; }
.tca-footer-social { display: flex; gap: 10px; }
.tca-footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); color: white; display: grid; place-items: center; font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 13px; transition: all .2s ease; }
.tca-footer-social a:hover { background: var(--green); }
.tca-footer-col h4 { font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 14px; color: white; margin-bottom: 18px; letter-spacing: 0.05em; }
.tca-footer-col li { margin-bottom: 10px; }
.tca-footer-col a { color: #bdbdbd; font-size: 14px; transition: color .2s ease; }
.tca-footer-col a:hover { color: var(--green-light); }
.tca-footer-col .contact { font-size: 13px; line-height: 1.9; color: #bdbdbd; }
.tca-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 40px; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #8a8a8a; }
.tca-footer-bottom a { color: #8a8a8a; margin-left: 20px; }
.tca-footer-bottom a:hover { color: var(--green-light); }

/* 一般頁面內容區（給 template-tca-page.php 用） */
.tca-page-head { max-width: 1280px; margin: 0 auto; padding: 80px 40px 40px; text-align: center; }
.tca-page-title { font-family: 'Noto Serif TC', serif; font-weight: 900; font-size: clamp(36px, 4vw, 52px); line-height: 1.25; color: var(--ink); margin-bottom: 16px; }
.tca-page-lead { font-size: 17px; color: var(--ink-3); max-width: 640px; margin: 0 auto; line-height: 1.75; }
.tca-page-content { max-width: 760px; margin: 0 auto; padding: 40px 40px 100px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.tca-page-content h1 { font-family: 'Noto Serif TC', serif; font-weight: 900; font-size: 30px; line-height: 1.4; color: var(--ink); margin: 48px 0 16px; }
.tca-page-content h2 { font-family: 'Noto Serif TC', serif; font-weight: 900; font-size: 26px; line-height: 1.4; color: var(--ink); margin: 40px 0 14px; }
.tca-page-content h3 { font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 20px; line-height: 1.5; color: var(--ink); margin: 32px 0 12px; }
.tca-page-content h4 { font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 17px; line-height: 1.5; color: var(--ink); margin: 28px 0 10px; }
.tca-page-content table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 14.5px; }
.tca-page-content th, .tca-page-content td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.tca-page-content th { background: var(--green-bg); font-weight: 700; color: var(--ink); }
.tca-page-content td ul, .tca-page-content td ol { margin: 0 0 0 18px; }
.tca-page-content td ul:first-child, .tca-page-content td ol:first-child { margin-top: 0; }
.tca-page-content td ul:last-child, .tca-page-content td ol:last-child { margin-bottom: 0; }
.tca-page-content p { margin: 0 0 18px; }
.tca-page-content a { color: var(--green-dark); text-decoration: underline; }
.tca-page-content a:hover { color: var(--green); }
.tca-page-content strong { color: var(--ink); font-weight: 700; }
.tca-page-content ul, .tca-page-content ol { margin: 0 0 18px 24px; list-style-position: outside; }
.tca-page-content ul { list-style: disc; }
.tca-page-content ol { list-style: decimal; }
.tca-page-content li { margin-bottom: 8px; }
.tca-page-content blockquote { margin: 28px 0; padding: 18px 24px; background: var(--green-bg); border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; font-family: 'Noto Serif TC', serif; font-weight: 500; color: var(--green-dark); }
.tca-page-content img { border-radius: 12px; margin: 24px 0; }

/* Admin bar 偏移 */
body.admin-bar .tca-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .tca-nav { top: 46px; }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .tca-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .tca-nav-links { display: none; }
  .tca-section { padding: 0 20px 60px; }
  .tca-footer-top { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .tca-footer-bottom { flex-direction: column; gap: 8px; padding: 20px; text-align: center; }
  .tca-page-head { padding: 50px 20px 30px; }
  .tca-page-content { padding: 30px 20px 70px; }
}


/* === 2026-06-12 課程列表頁 === */
.tca-courses-banner { background: linear-gradient(135deg, #009943 0%, #00752F 100%); border-radius: 20px; padding: 36px 40px; margin: 8px 0 28px; color: #fff; position: relative; overflow: hidden; }
.tca-courses-banner::after { content: ''; position: absolute; right: -60px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: rgba(170,205,3,0.18); }
.tca-cb-eyebrow { font-size: 12px; letter-spacing: .14em; color: #d9f0e0; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 2; }
.tca-cb-title { font-family: 'Noto Serif TC', serif; font-weight: 900; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; margin-bottom: 8px; position: relative; z-index: 2; }
.tca-cb-sub { font-size: 14px; color: #e8f5e9; position: relative; z-index: 2; }
@media (max-width: 768px) { .tca-courses-banner { padding: 24px 22px; } }

.tca-themed .tutor-course-card { border-radius: 18px; border: 1px solid #eceee9; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tca-themed .tutor-course-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.15); border-color: #009943; }
.tca-themed .tutor-course-name a { font-family: 'Noto Serif TC', serif; font-weight: 700; }
