/* ── reset & root ── */
.ab-page { font-family: "Noto Sans TC", sans-serif; color: #1a1a2e; line-height: 1.65; background: #fff; }
.ab-page *, .ab-page *::before, .ab-page *::after { box-sizing: border-box; }

/* ── hero ── */
.ab-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a4a 50%, #0a2a2a 100%);
  color: #fff;
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ab-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,168,150,.18) 0%, transparent 70%);
  pointer-events: none;
}
.ab-hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #00a896;
  background: rgba(0,168,150,.12);
  border: 1px solid rgba(0,168,150,.35);
  border-radius: 100px;
  padding: 4px 16px;
  margin-bottom: 20px;
}
.ab-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}
.ab-hero h1 em { font-style: normal; color: #00a896; }
.ab-hero-sub {
  font-size: clamp(.95rem, 2vw, 1.08rem);
  color: rgba(255,255,255,.72);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* hero quick-nav */
.ab-hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.ab-hero-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, transform .18s;
}
.ab-hero-nav a.primary {
  background: #00a896;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,168,150,.35);
}
.ab-hero-nav a.primary:hover { background: #008c7c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,168,150,.35); color: #fff !important; }
.ab-hero-nav a.ghost {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.25);
}
.ab-hero-nav a.ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,.12); color: #fff !important; }

/* ── section wrapper ── */
.ab-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}
.ab-section + .ab-section { padding-top: 0; }
.ab-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  color: #0d1b2a;
}
.ab-section-title em { font-style: normal; color: #00a896; }
.ab-section-sub {
  text-align: center;
  color: #5e6e6e;
  font-size: .95rem;
  margin: 0 0 36px;
}
.ab-section-foot {
  text-align: center;
  margin-top: 28px;
}
.ab-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, transform .18s;
}
.ab-link-btn--teal {
  background: #00a896;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0,168,150,.28);
}
.ab-link-btn--teal:hover { background: #008c7c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,168,150,.35); color: #fff !important; }
.ab-link-btn--outline {
  background: transparent;
  color: #00a896;
  border: 1.5px solid #00a896;
}
.ab-link-btn--outline:hover { background: rgba(0,168,150,.07); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,168,150,.15); color: #00a896 !important; }

/* ── differentiator cards ── */
.ab-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) { .ab-diff-grid { grid-template-columns: 1fr; } }
.ab-diff-card {
  background: #fff;
  border: 1px solid #e4edec;
  border-left: 5px solid #00a896;
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: 0 4px 16px rgba(0,168,150,.07);
  transition: transform .2s, box-shadow .2s;
}
.ab-diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,168,150,.13);
}
.ab-diff-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 12px; }
.ab-diff-card h3 { font-size: 1.05rem; font-weight: 700; color: #0d1b2a; margin: 0 0 8px; }
.ab-diff-card p { font-size: .9rem; color: #5e6e6e; margin: 0; line-height: 1.6; }
.ab-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  background: rgba(0,168,150,.1);
  color: #007a6e;
  border: 1px solid rgba(0,168,150,.3);
}

/* ── stats strip ── */
.ab-stats-strip {
  background: linear-gradient(135deg, #0d1b2a 0%, #0a2a2a 100%);
  padding: 56px 24px 48px;
  text-align: center;
}
.ab-stats-inner {
  max-width: 900px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .ab-stats-inner { grid-template-columns: repeat(2, 1fr); } }
.ab-stat-item { color: #fff; }
.ab-stat-value {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #00a896;
  line-height: 1.1;
}
.ab-stat-label { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 4px; }
.ab-stat-note  { font-size: .75rem; color: rgba(255,255,255,.4);  margin-top: 2px; }

/* ── achievement highlights ── */
.ab-ach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 640px) { .ab-ach-grid { grid-template-columns: 1fr; } }
.ab-ach-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: left;
}
.ab-ach-icon { font-size: 1.4rem; margin-bottom: 8px; }
.ab-ach-title { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.ab-ach-text  { font-size: .9rem;  color: rgba(255,255,255,.9);  line-height: 1.5; }

/* ── teacher card ── */
.ab-teacher-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
  background: #fff;
  border: 1px solid #e4edec;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
@media (max-width: 640px) {
  .ab-teacher-wrap { grid-template-columns: 1fr; text-align: center; }
  .ab-teacher-wrap img { margin: 0 auto 16px; }
}
.ab-teacher-wrap img { width: 100%; border-radius: 12px; display: block; object-fit: cover; }
.ab-teacher-name { font-size: 1.3rem; font-weight: 700; color: #0d1b2a; margin: 0 0 4px; }
.ab-teacher-handle { font-size: .88rem; font-weight: 600; margin: 0 0 14px; }
.ab-teacher-handle a { text-decoration: none; transition: opacity .18s; }
.ab-teacher-handle a:hover { opacity: .75; text-decoration: underline; }
.ab-teacher-handle .cf-logo { color: #3B5998; font-weight: 700; }
.ab-teacher-handle .cf-name { color: #FF0000; font-weight: 700; }
.ab-teacher-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
@media (max-width: 640px) { .ab-teacher-badges { justify-content: center; } }
.ab-tb { font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 100px; border: 1px solid; }
.ab-tb--gold  { color: #b06a00; background: rgba(251,188,5,.12); border-color: rgba(251,188,5,.5); }
.ab-tb--blue  { color: #4285F4; background: rgba(66,133,244,.1);  border-color: rgba(66,133,244,.3); }
.ab-tb--green { color: #34A853; background: rgba(52,168,83,.1);   border-color: rgba(52,168,83,.3); }
.ab-tb--red   { color: #EA4335; background: rgba(234,67,53,.08);  border-color: rgba(234,67,53,.3); }
.ab-teacher-bio { font-size: .93rem; color: #3a3a4a; line-height: 1.7; margin: 0 0 20px; }
.ab-teacher-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .ab-teacher-links { justify-content: center; } }

/* ── course overview strip ── */
.ab-courses-strip {
  background: #f5faf9;
  border-top: 1px solid #e4edec;
  padding: 60px 24px;
}
.ab-courses-inner { max-width: 1080px; margin: 0 auto; }
.ab-course-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 640px) { .ab-course-cards { grid-template-columns: 1fr; } }
.ab-course-card {
  background: #fff;
  border: 1px solid #dde8e7;
  border-radius: 12px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.ab-course-card:hover { box-shadow: 0 8px 24px rgba(0,168,150,.12); transform: translateY(-3px); }
.ab-course-card-icon { font-size: 1.8rem; line-height: 1; }
.ab-course-card h3 { font-size: 1rem; font-weight: 700; color: #0d1b2a; margin: 0; }
.ab-course-card p  { font-size: .85rem; color: #5e6e6e; margin: 0; line-height: 1.5; }
.ab-course-card-arrow { margin-top: auto; font-size: .82rem; color: #00a896; font-weight: 600; }

/* ── CTA ── */
.ab-cta {
  text-align: center;
  background: #f5faf9;
  padding: 72px 24px;
}
.ab-cta h2 { font-size: 1.5rem; font-weight: 700; color: #0d1b2a; margin: 0 0 8px; }
.ab-cta p  { color: #5e6e6e; margin: 0 0 30px; font-size: .97rem; }
.ab-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ab-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.ab-cta-btn--line {
  background: #00a896;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,168,150,.3);
}
.ab-cta-btn--line:hover { background: #008c7c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,168,150,.35); color: #fff !important; }
.ab-cta-btn--ghost {
  background: transparent;
  color: #0d1b2a;
  border: 1.5px solid #d0dcd9;
}
.ab-cta-btn--ghost:hover { background: #f0f7f6; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,168,150,.15); color: #0d1b2a !important; }
.ab-cta-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
