/* ============================================================
   teacher.css — Teacher profile page
   ============================================================ */

.profile-hero {
  padding-block: clamp(28px, 5vw, 56px);
  border-bottom: 1px solid var(--line-soft);
}
.profile-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 768px) {
  .profile-hero-grid { grid-template-columns: 280px 1fr; gap: 36px; }
}
@media (min-width: 1025px) {
  .profile-hero-grid { grid-template-columns: 360px 1fr; gap: 48px; }
}
.profile-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .ph-letter {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: "Inter", sans-serif;
  font-size: 96px; font-weight: 600;
  color: rgba(45, 95, 78, .35);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(45,95,78,.06) 14px 15px);
}
.profile-meta-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.profile-meta-pills .pill {
  font-size: 12px; padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  border: 1px solid var(--accent-soft);
  font-weight: 500;
}
.profile-meta-pills .pill.warm {
  background: #FBEFE3; color: #7A4A1F; border-color: #EFD9BD;
}
.profile-name {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.profile-name .en {
  font-family: "Inter", sans-serif;
  font-size: 16px; font-weight: 500;
  color: var(--ink-muted);
  margin-left: 10px;
}
.profile-tagline {
  margin-top: 10px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-soft);
  line-height: 1.6;
}
.profile-quickfacts {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
@media (min-width: 600px) { .profile-quickfacts { grid-template-columns: repeat(4, 1fr); } }
.profile-quickfacts .qf-label { font-size: 12px; color: var(--ink-muted); }
.profile-quickfacts .qf-value { font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.profile-quickfacts .qf-value .num { font-family: "Inter", sans-serif; font-weight: 600; }

.profile-cta-row {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.profile-cta-row .btn { min-height: var(--tap); }

/* Body sections */
.profile-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px);
  padding-block: clamp(32px, 5vw, 56px);
}
@media (min-width: 1025px) {
  .profile-body { grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
}
.profile-main { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.profile-side { display: flex; flex-direction: column; gap: 20px; }

.p-section h2 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.p-section p { color: var(--ink); line-height: 1.75; }
.p-list { display: flex; flex-direction: column; gap: 8px; }
.p-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.65;
}
.p-list li::before {
  content: "";
  position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.cred-block { margin-bottom: 14px; }
.cred-block h3 { font-size: 13px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.cred-block ul li { padding: 4px 0 4px 22px; color: var(--ink); }

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--accent-tint), var(--bg-soft));
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.video-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-thumb .badge, .video-thumb .play { position: relative; z-index: 1; }
.video-thumb .play {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid; place-items: center;
  color: var(--accent-deep);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}
.video-card:hover .play { transform: scale(1.08); }
.video-thumb .play svg { width: 24px; height: 24px; margin-left: 3px; }
.video-thumb .badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
  font-family: "Inter", sans-serif; font-weight: 500;
}
.video-meta { padding: 12px 14px; }
.video-meta h4 { font-size: 14px; font-weight: 500; line-height: 1.4; }

/* Side: pricing card */
.price-card, .schedule-card, .contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.price-card h3, .schedule-card h3, .contact-card h3 {
  font-size: 14px; font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.price-row:last-of-type { border-bottom: none; }
.price-row .label { color: var(--ink); }
.price-row .price { font-family: "Inter", sans-serif; font-weight: 600; color: var(--ink); }
.price-row .price .num { font-size: 18px; }

.trial-block {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--accent-tint);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-soft);
  font-size: 14px;
  color: var(--accent-deep);
  line-height: 1.55;
}
.trial-block strong { font-weight: 600; }

.schedule-card .sch-row { padding: 6px 0; font-size: 14px; }
.schedule-card .sch-row .day { color: var(--ink-muted); width: 60px; display: inline-block; }

.contact-card .ct-row { font-size: 14px; padding: 8px 0; display: flex; gap: 10px; align-items: baseline; }
.contact-card .ct-row .label { color: var(--ink-muted); width: 60px; flex-shrink: 0; }
.contact-card .ct-row .val { color: var(--ink); }
.contact-card .ct-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  line-height: 1.55;
}
.contact-card .ct-cta { margin-top: 14px; width: 100%; }

.policy-list { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.policy-list .pl-row { padding: 4px 0; }
.policy-list .pl-row strong { color: var(--ink); margin-right: 6px; }

/* Disclaimer banner — platform doesn't mediate */
.platform-disclaimer {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 20px;
}
.platform-disclaimer strong { color: var(--ink); }

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-muted);
  padding-block: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--ink-soft); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* Level grid (適合什麼程度的學生) */
.level-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 600px) { .level-grid { grid-template-columns: repeat(2, 1fr); } }
.level-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 12px;
  align-items: start;
}
.level-item .check, .level-item .x {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 700; font-size: 14px;
  color: #fff;
  grid-row: span 2;
  margin-top: 2px;
}
.level-item.ok .check { background: var(--accent); }
.level-item.not-ok { background: var(--bg-soft); border-color: var(--line-soft); }
.level-item.not-ok .x { background: #B5B0A4; }
.level-item strong { font-size: 15px; font-weight: 600; }
.level-item p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin-top: 2px; }
.level-item.not-ok strong, .level-item.not-ok p { color: var(--ink-muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item > summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform .2s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item > p {
  padding: 0 18px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* Testimonials (化名+純文字+嚴格規則) */
.testimonial-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-top: 14px;
}
@media (min-width: 600px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: 4px; left: 12px;
  font-family: "Inter", serif;
  font-size: 36px; line-height: 1;
  color: var(--accent-soft);
  font-weight: 700;
}
.testimonial p {
  font-size: 14px; line-height: 1.65; color: var(--ink);
  padding-left: 18px;
}
.testimonial .t-author {
  margin-top: 10px; padding-left: 18px;
  font-size: 12px; color: var(--ink-muted);
}
.muted { color: var(--ink-muted); font-size: 13px; line-height: 1.55; }

/* Stats (教學成果，純數字) */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 16px 0;
}
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
}
.stat-num {
  font-family: "Inter", sans-serif;
  font-size: 32px; font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--ink-muted); margin-top: 8px; line-height: 1.4; }

/* Privacy notice */
.privacy-notice {
  background: var(--bg-soft);
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  margin-top: clamp(28px, 4vw, 40px);
}
.privacy-notice h3 { color: var(--accent-deep); font-size: 16px; margin-bottom: 10px; font-weight: 600; }
.privacy-notice p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 8px; }
.privacy-notice p:last-child { margin-bottom: 0; }
.privacy-notice a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Related teachers */
.related-teachers {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 600px) { .related-teachers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .related-teachers { grid-template-columns: repeat(3, 1fr); } }
.related-teacher {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.related-teacher:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-teacher .rt-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.related-teacher .rt-meta { font-size: 13px; color: var(--ink-soft); }
.related-teacher .rt-tagline { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }

/* Mobile sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  display: flex; gap: 8px;
  box-shadow: 0 -4px 16px rgba(28,28,28,.08);
}
.mobile-sticky-cta .btn { flex: 1; min-height: var(--tap); }
@media (min-width: 1025px) { .mobile-sticky-cta { display: none; } }
@media (max-width: 1024px) { body { padding-bottom: 76px; } }

/* 教學環境 / 老師照片 gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.2s;
}
.photo-gallery img:hover { transform: scale(1.01); }
@media (min-width: 720px) {
  .photo-gallery { grid-template-columns: repeat(4, 1fr); }
}

/* 老師頁專屬：相關分類（footer 上方） */
.teacher-related {
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
  background: var(--bg);
}
.teacher-related h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
.related-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px 14px;
}
.related-links a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.15s;
}
.related-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
