/* ==========================================================================
   home.css｜首頁專屬（只有 /index.html 載入）
   載入順序：site.css → home.css
   主視覺輪播、學習路徑、課程卡片、四科練習、師資輪播、學員心得、考試資訊、精選教學、FAQ
   ========================================================================== */

button:disabled {
  cursor: default;
  opacity: 0.35;
}

.section {
  padding-block: var(--section-space);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading>p {
  max-width: 360px;
}

.section-heading h2+p {
  margin-top: 20px;
}

.section-description {
  margin-top: 18px;
  max-width: 650px;
}

.button-red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 0 6px;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
}

/* 左右箭頭按鈕：課程、師資、考生心得三組共用 */
.rail-controls,
.teacher-controls {
  display: flex;
  gap: 0;
  margin: 0 auto;
}

.stories-controls {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.rail-controls button,
.teacher-controls button,
.stories-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

.rail-controls button+button,
.teacher-controls button+button,
.stories-controls button+button {
  border-left: 0;
}

.rail-controls button:hover,
.teacher-controls button:hover,
.stories-controls button:hover {
  background: var(--ink);
  color: #fff;
}

/* 停用的箭頭：滑過不變黑 */
.rail-controls button:disabled:hover,
.teacher-controls button:disabled:hover {
  background: #fff;
  color: var(--ink);
}

/* 紅底課程區：停用時改透明底＋白色細框，避免出現粉紅色塊 */
.course-section .rail-controls button:disabled,
.course-section .rail-controls button:disabled:hover {
  background: transparent;
  color: #fff;
  border-color: #ffffff99;
  opacity: 0.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 30px;
}

.tags span {
  font-size: 15px;
  border-bottom: 1px solid var(--soft-line);
  padding: 3px 0;
}

/* 對話框外框（dialog、.dialog-top、.close-dialog）已移到 site.css，站內搜尋也共用 */
.dialog-body {
  padding: 32px;
}

.dialog-body h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

.dialog-body h3 {
  font-size: 21px;
  margin: 25px 0 10px;
}

.dialog-body p,
.dialog-body li {
  font-size: 16px;
}

.dialog-body p {
  margin-block: 14px;
}

.dialog-body a {
  color: var(--red);
  text-decoration: underline;
}

@media (max-width: 900px) {

  .section-heading {
    gap: 28px;
    align-items: flex-start;
  }
}

@media (max-width: 650px) {

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading>p,
  .section-heading>.text-link,
  .section-heading>.rail-controls,
  .section-heading>.teacher-controls {
    margin-top: 22px;
  }

  .dialog-body {
    padding: 24px;
  }

  .dialog-body h2 {
    font-size: 27px;
  }
}

/* ===== experience ===== */
/* 02 / EDITORIAL LAYOUTS — Hero, route planner, methodology, course and resources. */
/* KV 主視覺：紅底與照片維持滿版，左側文字對齊 .container 的左邊
   --side ＝ .container 外側到螢幕邊的距離（1220px 需與 site.css 的 .container 最大寬度一致）
   100cqw ＝ 主視覺區本身的寬度（不含捲軸） */
.hero-v2 {
  background: var(--red);
  color: #fff;
  container-type: inline-size;
}

.hero-v2-grid {
  --side: max(var(--gutter), calc((100cqw - 1220px) / 2));
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  margin: 0;
}

.hero-v2-copy {
  padding: 64px 4vw 30px var(--side);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-slide-label {
  font-size: 14px;
  color: #fff;
  margin-bottom: 18px;
}

.hero-v2 h1 {
  font-size: clamp(44px, 4.7vw, 76px);
  line-height: 1.3;
  letter-spacing: -0.055em;
  min-height: 2.6em;
  margin-bottom: 28px;
}

.hero-v2 h1 span {
  display: inline-block;
}

#hero-description {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.9;
  color: #fff;
  min-height: 3.8em;
}

.hero-v2-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin-top: 32px;
}

.hero-v2 #hero-primary {
  background: #fff;
  border-color: #fff;
  color: var(--red);
}

.hero-v2 #hero-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.hero-secondary {
  font-size: 14px;
  border-bottom: 1px solid #fff;
  padding-bottom: 6px;
}

.hero-secondary:hover {
  color: #fff;
  opacity: 0.8;
}

.hero-controls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #ffffff75;
  padding-top: 20px;
  margin-top: auto;
}

.hero-controls>button {
  font-size: 20px;
  color: #fff;
  min-width: 34px;
  min-height: 36px;
  padding: 0;
}

.slide-dots {
  display: flex;
  gap: 12px;
}

.slide-dots button {
  color: #fff;
  font-size: 14px;
  padding: 8px 3px;
  border-bottom: 2px solid transparent;
}

.slide-dots button.active {
  border-color: #fff;
}

.hero-v2-visual {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: var(--gray);
}

.photo-shell {
  position: relative;
  height: 100%;
  min-height: 650px;
}

.photo-shell img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 35%;
}

.pathways-section {
  padding: 70px 0 70px;
}

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

/* 頁內錨點卡：黑字標題＋說明，細框往下箭頭貼齊右下角 */
.pathways-grid>a {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.18s, color 0.18s;
}

.pathways-grid>a:hover,
.pathways-grid>a:focus-visible {
  background: var(--red);
  color: #fff;
}

.pathways-grid strong {
  display: block;
  font-size: 20px;
}

.pathways-grid small {
  display: block;
  font-size: 14px;
  margin-top: 5px;
}

/* 往下箭頭：細框方塊，和輪播左右箭頭同一套樣式
   （箭頭沿用卡片文字色；指定字型避免箭頭被顯示成彩色符號） */
.pathway-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  transition: border-color 0.18s, transform 0.18s;
}

/* 滑入：卡片紅底白字，箭頭框線轉白並往下微移 */
.pathways-grid>a:hover .pathway-arrow,
.pathways-grid>a:focus-visible .pathway-arrow {
  border-color: #fff;
  transform: translateY(3px);
}

.practice-card {
  background: #fff;
  border: 1px solid #b7b7b7;
  padding: 32px;
}

.practice-kicker {
  font-size: 15px;
  margin: 23px 0 14px;
}

.practice-card blockquote {
  margin: 0;
  font: 25px/1.6 var(--serif);
  color: #c8102e;
}

.practice-question {
  margin-top: 24px;
  color: var(--ink);
  font-weight: 700;
}

.practice-options {
  margin-top: 15px;
}

.practice-feedback {
  font-size: 14px;
  border-top: 1px solid var(--soft-line);
  padding-top: 18px;
  margin-top: 24px;
  min-height: 52px;
}

.course-section {
  background: var(--red);
  color: #fff;
}

.course-section .eyebrow,
.course-section .section-heading p {
  color: #fff;
}

.course-section h2 span {
  display: block;
}

.course-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 0 20px;
  cursor: grab;
}

.course-rail.dragging {
  cursor: grabbing;
}

.learning-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.learning-card-top {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.learning-card-top>span {
  font-size: 14px;
  letter-spacing: 0.07em;
}

.course-index {
  font:
    700 70px/1 var(--sans);
  letter-spacing: -0.06em;
  color: var(--red);
  margin: 25px 0 35px;
}

.learning-card-top h3 {
  font-size: 25px;
  margin-bottom: 12px;
}

.learning-card-top>p {
  font-size: 16px;
}

.learning-card-body {
  padding: 0 28px 24px 28px;
}

.learning-card-body ul {
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.learning-card-body a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  font-size: 15px;
  font-weight: 700;
}

.course-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 26px;
  padding-top: 25px;
  border-top: 1px solid #ffffff70;
  text-align: center;
}

.course-bottom p {
  color: #fff;
  font-size: 14px;
  max-width: 700px;
}

.resources-section {
  background: #fff;
}

.resources-section h2 {
  max-width: 790px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 30px;
}

.resource-card {
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.article-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
}

.resource-body {
  padding: 24px 0 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.resource-meta {
  font-size: 14px;
  color: var(--red);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.resource-meta span {
  color: var(--muted);
}

.resource-body h3 {
  font-size: 25px;
  margin: 18px 0 14px;
}

.resource-body>p:not(.resource-meta) {
  font-size: 16px;
}

.read-link {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
  padding-top: 25px;
}

.article-open:hover h3 {
  color: var(--red);
}

.exam-section {
  background: var(--red);
  color: #fff;
}

.exam-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
}

.exam-grid>div>p {
  color: #fff;
}

.exam-grid>div>p:not(.eyebrow) {
  margin: 25px 0 30px;
}

.exam-grid .text-link:hover {
  color: #fff;
}

.exam-links {
  border-top: 1px solid #fff;
}

.exam-links>a,
.exam-links>button {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  border-bottom: 1px solid #fff;
  color: #fff;
  text-align: left;
}

.exam-links strong {
  font-size: 19px;
}

.exam-links>a>span:first-child,
.exam-links>button>span:first-child {
  font-size: 14px;
}

.exam-links small,
.exam-links>button>span:last-child {
  margin-left: auto;
  font-size: 14px;
}

.exam-links>a:hover,
.exam-links>button:hover {
  background: #ffffff12;
}

.teaching-section {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.teaching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: none;
}

.teaching-photo {
  background: var(--gray);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.teaching-photo img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  flex: 1;
}

.teaching-photo small {
  font-size: 14px;
  padding: 5px 30px 0;
  color: var(--muted);
}

.teaching-copy {
  padding: 80px var(--gutter) 80px 55px;
}

.teaching-copy>p:not(.eyebrow) {
  margin: 26px 0;
}

.teaching-mini {
  padding-top: 25px;
}

.teaching-mini strong {
  font-size: 17px;
}

.teaching-mini p {
  margin-top: 12px;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .hero-v2-copy {
    padding-top: 45px;
  }

  .hero-v2 h1 {
    font-size: clamp(40px, 4.7vw, 60px);
  }

  .photo-shell {
    min-height: 630px;
  }

  .exam-grid {
    gap: 45px;
  }

  .learning-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .teaching-copy {
    padding: 60px 35px;
  }

  .resource-body h3 {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  .hero-v2-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .hero-v2-copy {
    padding-right: 25px;
  }

  .hero-v2 h1 {
    font-size: 39px;
  }

  .hero-controls {
    gap: 8px;
    margin-top: 20px;
  }

  .slide-dots {
    gap: 6px;
  }

  .photo-shell {
    min-height: 640px;
  }

  .pathways-grid {
    grid-template-columns: 1fr 1fr;
  }

  .practice-card {
    padding: 25px;
  }

  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }

  .course-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .teaching-grid {
    grid-template-columns: 1fr 1fr;
  }

  .teaching-copy {
    padding: 55px 28px;
  }

  .teaching-copy h2 {
    font-size: 32px;
  }

  .teaching-photo img {
    min-height: 450px;
  }

  .exam-grid {
    grid-template-columns: 1fr;
    gap: 0px;
  }
}

@media (max-width: 650px) {
  .hero-v2-grid {
    grid-template-columns: 1fr;
  }

  /* 650px 以下上下排列：文字左右都對齊 .container */
  .hero-v2-copy {
    padding: 40px var(--side) 25px;
  }

  .hero-v2 h1 {
    font-size: clamp(38px, 8.8vw, 55px);
    min-height: 2.6em;
    margin-bottom: 22px;
  }

  #hero-description {
    font-size: 15px;
  }

  .hero-v2-buttons {
    gap: 20px;
    margin-top: 25px;
  }

  .hero-v2 .button {
    font-size: 14px;
    padding: 12px 16px;
  }

  .hero-controls {
    gap: 15px;
  }

  .hero-v2-visual {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .photo-shell {
    height: 420px;
    min-height: 0;
  }

  .pathways-section {
    padding: 25px 0 50px;
  }

  .pathways-grid>a {
    padding: 18px 13px;
  }

  .pathway-arrow {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .pathways-grid strong {
    font-size: 17px;
  }

  .practice-card {
    padding: 23px;
  }

  .practice-card blockquote {
    font-size: 23px;
  }

  .learning-card {
    flex-basis: 88%;
  }

  .learning-card-top {
    padding: 24px;
  }

  .course-index {
    font-size: 64px;
    margin: 22px 0;
  }

  .learning-card-body {
    padding: 24px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .resource-body h3 {
    font-size: 25px;
  }

  .resources-section h2 {
    font-size: 35px;
  }

  .exam-links>a,
  .exam-links>button {
    gap: 15px;
    padding: 22px 0;
    flex-wrap: wrap;
  }

  .exam-links strong {
    font-size: 17px;
  }

  .teaching-grid {
    grid-template-columns: 1fr;
  }

  .teaching-photo {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .teaching-photo img {
    height: 340px;
    min-height: 0;
  }

  .teaching-copy {
    padding: 50px 20px;
  }
}

/* ===== motion ===== */
/* 03 / INTERACTIVE LEARNING & BRAND WORLDS
   No decorative animation, parallax, tilt, or infinite marquee.
   Only the existing scroll-driven lesson navigation and optional carousels move. */
.learning-lab {
  padding: 70px 0;
  background: var(--gray);
  color: var(--ink);
}

.scene-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 32px;
}

.scene-heading .eyebrow {
  margin-bottom: 14px;
  color: var(--red);
}

.scene-heading>p {
  color: #fff;
  font-size: 14px;
}

.scene-heading>p small {
  font-size: 14px;
}

.scene-window {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--ink);
  background: var(--gray);
  color: var(--ink);
}

.scene-window::-webkit-scrollbar {
  display: none;
}

.scene-track {
  display: flex;
}

.scene-panel {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 40px;
  padding: 35px;
  scroll-snap-align: start;
  background: #fff;
  color: var(--ink);
}

.scene-copy {
  min-width: 0;
}

.scene-copy>span {
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0.08em;
}

.scene-copy h3 {
  font-size: clamp(27px, 2.7vw, 40px);
  line-height: 1.45;
  margin: 20px 0;
}

.scene-copy h3 span {
  color: var(--red);
}

.scene-copy p {
  font-size: 15px;
  color: #626262;
}

.scene-copy>a {
  display: inline-flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  margin-top: 25px;
  border-bottom: 1px solid var(--red);
  padding-bottom: 7px;
  color: var(--red);
}

.scene-copy>a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.scene-device {
  border: 1px solid #b7b7b7;
  background: var(--gray);
  min-width: 0;
}

.device-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ink);
  background: #fff;
  color: #555;
}

.device-top small {
  font-size: 14px;
}

.device-content {
  padding: 24px;
}

.studio-label {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 700;
}

mark {
  background: var(--ink);
  color: #fff;
  padding: 1px 4px;
}

.device-note {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-top: 1px solid var(--soft-line);
  margin-top: 22px;
  padding-top: 15px;
}

.device-note>span {
  color: var(--red);
}

.device-note strong {
  font-size: 14px;
}

.device-note p {
  font-size: 14px;
  margin-top: 4px;
}

.reading-sheet {
  margin-top: 15px;
}

.reading-sheet small {
  font-size: 14px;
}

.reading-sheet>p {
  font: 21px/1.5 var(--serif);
  color: var(--ink);
  margin: 5px 0 15px;
}

.evidence-highlight {
  border-bottom: 2px solid var(--red);
}

.reading-distractor {
  color: var(--red);
}

.sheet-rule {
  height: 1px;
  background: var(--soft-line);
  margin-bottom: 12px;
}

.judgement {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}

.judgement strong {
  padding: 6px 10px;
  background: var(--ink);
  color: #fff;
}

.speech-bubble {
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 14px;
}

.question-bubble {
  font-size: 20px;
  font-family: var(--serif);
  color: var(--red);
  margin-top: 12px;
}

.speech-tag {
  display: block;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 2px;
}

.writing-lines {
  margin-top: 15px;
}

.writing-lines>div {
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}

.writing-lines span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}

.writing-lines p {
  font: 18px/1.5 var(--serif);
  color: var(--ink);
  margin-top: 4px;
}

.scene-bottom {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 25px;
}

.scene-navigation {
  display: flex;
}

.scene-navigation button {
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  padding: 10px 22px;
  font-size: 15px;
}

.scene-navigation button+button {
  border-left: 0;
}

.scene-navigation button>span {
  font-size: 14px;
  margin-right: 8px;
}

.scene-navigation button:hover,
.scene-navigation button[aria-pressed="true"] {
  background: var(--red);
  color: #fff;
}

.scene-navigation button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.lab-scroll-active .learning-lab {
  padding: 0;
  height: 260svh;
}

.lab-scroll-active .scene-sticky {
  position: sticky;
  top: 72px;
  height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: 25px 0;
}

.lab-scroll-active .scene-sticky>.container {
  min-width: 0;
}

.lab-scroll-active .scene-window {
  overflow: hidden;
  scroll-snap-type: none;
}

.lab-scroll-active .scene-track {
  transform: translateX(var(--scene-x, 0%));
  will-change: transform;
}

.reduce-lab .learning-lab {
  height: auto;
  padding: 65px 0;
}

.reduce-lab .scene-sticky {
  position: static;
  height: auto;
}

.reduce-lab .scene-track {
  transform: none;
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
  scroll-behavior: auto !important;
  transition: none !important;
}

@media (max-width: 1100px) {
  .scene-panel {
    gap: 28px;
    padding: 28px;
  }

  .scene-copy p {
    font-size: 14px;
  }

  .scene-copy h3 {
    font-size: 30px;
  }

  .device-content {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .scene-panel {
    gap: 24px;
    padding: 24px;
  }

  .scene-copy h3 {
    font-size: 27px;
  }

  .device-content {
    padding: 20px;
  }

  .device-top {
    padding: 12px;
  }

  .scene-navigation button {
    padding: 10px 15px;
  }
}

@media (max-width: 760px) {

  .learning-lab,
  .lab-scroll-active .learning-lab {
    height: auto;
    padding: 55px 0;
  }

  .scene-sticky,
  .lab-scroll-active .scene-sticky {
    position: static;
    height: auto;
    padding: 0;
    display: block;
  }

  .scene-heading {
    display: block;
    margin-bottom: 25px;
  }

  .scene-heading>p {
    margin-top: 15px;
  }

  .scene-heading h2 span {
    display: block;
  }

  .scene-window,
  .lab-scroll-active .scene-window {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .scene-track,
  .lab-scroll-active .scene-track {
    transform: none !important;
  }

  .scene-panel {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 23px;
    gap: 25px;
  }

  .scene-copy h3 {
    font-size: 29px;
    margin: 12px 0;
  }

  .scene-copy h3 br {
    display: none;
  }

  .scene-copy>a {
    margin-top: 18px;
  }

  .scene-bottom {
    flex-wrap: wrap;
    gap: 15px;
  }

  .scene-navigation {
    width: 100%;
  }

  .scene-navigation button {
    flex: 1;
    padding: 10px 4px;
    font-size: 16px;
  }

  .scene-navigation button>span {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .learning-lab {
    height: auto !important;
    padding: 55px 0 !important;
  }

  .scene-sticky {
    position: static !important;
    height: auto !important;
    padding: 0 !important;
  }

  .scene-window {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
  }

  .scene-track {
    transform: none !important;
  }
}

/* ===== rose ===== */
/* 04 / PEOPLE, FAQ & CONSULTATION — named rose.css for drop-in compatibility.
   This is an authored component module, not a palette override. */
.teachers-section {
  background: #fff;
}

.teachers-section h2 span {
  display: block;
  color: var(--red);
}

.teacher-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.teacher-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
}

/* 師資照片：16:9，徽章文字疊在照片右半邊 */
.teacher-visual {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.teacher-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.teacher-badge {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  right: 5%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}

.teacher-badge span {
  display: block;
  margin-top: 5px;
  color: #616060;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.5;
}

.teacher-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.teacher-info h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  color: var(--red);
  font-size: 26px;
}

.teacher-info h3 span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.teacher-degree {
  margin-bottom: 13px;
  font-size: 15px;
}

.teacher-summary {
  font-size: 16px;
  font-weight: bold;
}

.teacher-text {
  background-color: #f5f5f5;
  padding: 14px 16px;
  flex: 1;
}

/* Equal-height cards replace the manual blank lines in the biography. */
.teacher-text p:last-child>br {
  display: none;
}

.teacher-info>a {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  padding-top: 10px;
}

.teacher-source {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

.teacher-source a {
  border-bottom: 1px solid var(--line);
}

/* Testimonial content remains explicitly labelled as fictional examples. */
.stories-section {
  background: var(--red);
  color: #fff;
}

.stories-section .eyebrow,
.stories-section .section-heading>p {
  color: #fff;
}

.story-card {
  min-width: 0;
}

.story-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.story-top>div {
  min-width: 0;
}

/* 圓形大頭照 */
.story-avatar {
  display: block;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--gray);
  font-size: 14px;
  font-weight: 700;
  line-height: 0;
}

.student-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.story-top h3 {
  font-size: 19px;
}

.story-top p {
  font-size: 15px;
  color: #fff;
  margin-top: 4px;
}

.story-card blockquote {
  font-size: 16px;
  line-height: 2;
  margin: 28px 0;
  color: #fff;
}

.story-card>small {
  display: block;
  margin-top: 20px;
  font-size: 14px;
  color: #fff;
}

.faq-section {
  background: var(--gray);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 25px 0;
  list-style: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary>span {
  font-size: 24px;
  color: var(--red);
}

.faq-list details[open] summary>span {
  transform: rotate(45deg);
}

.faq-list details p {
  font-size: 16px;
  line-height: 1.95;
  padding: 0 35px 25px 0;
}

.faq-list details a {
  color: var(--red);
  display: block;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .teacher-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .story-card blockquote {
    font-size: 17px;
  }

  .faq-grid {
    gap: 45px;
  }
}

@media (max-width: 900px) {
  .story-card blockquote {
    margin: 20px 0;
    font-size: 19px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 650px) {
  .teacher-card {
    flex-basis: 88%;
  }

  .teacher-info {
    padding: 24px;
  }

  .teacher-source {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .story-card blockquote {
    font-size: 18px;
  }

  .faq-list summary {
    font-size: 16px;
    padding-block: 22px;
  }

  .faq-list details p {
    font-size: 15px;
    padding-right: 0;
  }
}

.hero-v2 #hero-title,
.hero-v2 #hero-description,
.hero-v2 #hero-slide-label,
.hero-v2 .hero-v2-buttons,
.hero-v2 .photo-shell {
  transition: opacity 0.22s ease;
  animation: none !important;
}

.hero-v2.hero-fading #hero-title,
.hero-v2.hero-fading #hero-description,
.hero-v2.hero-fading #hero-slide-label,
.hero-v2.hero-fading .hero-v2-buttons,
.hero-v2.hero-fading .photo-shell {
  opacity: 0;
}

/* 課程、師資輪播：隱藏捲軸（改用左右箭頭） */
#course-rail,
#teacher-rail {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#course-rail::-webkit-scrollbar,
#teacher-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.section-heading>.section-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 外框按鈕：白底黑框，滑入黑底白字（認識完整師資陣容、準備雅思 共用） */
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.button-outline:hover,
.button-outline:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* 共用 .section-heading 已是 flex、底部對齊；這裡只調整間距 */
#resources .section-heading {
  gap: 24px;
}

#resources .section-heading>div:first-child {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  #resources .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading>.section-cta {
    align-self: flex-start;
    margin-top: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .pathways-grid>a:hover .pathway-arrow,
  .pathways-grid>a:focus-visible .pathway-arrow {
    transform: none;
  }
}

.photo-shell.missing-image {
  position: relative;
  background: #f4f4f4;
}

.photo-shell.missing-image::after {
  content: "IELTS.";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c8102e;
  font: bold clamp(60px, 8vw, 150px)/1 var(--sans);
  pointer-events: none;
}

#teacher-rail {
  cursor: grab;
}

#teacher-rail.mouse-drag-enabled {
  scroll-snap-type: none;
}

#teacher-rail.is-dragging,
#teacher-rail.is-dragging * {
  cursor: grabbing !important;
}

#teacher-rail .teacher-card {
  user-select: none;
  -webkit-user-select: none;
}

#teacher-rail .teacher-photo {
  -webkit-user-drag: none;
}

@media (max-width: 600px) {
  .story-avatar {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .story-top {
    gap: 14px;
  }
}

/* 四科練習：閱讀、口說、寫作的答題區由 motion.js 產生（.scene-device 會被加上 .lab-quiz） */
#learning-lab .lab-quiz {
  order: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  justify-self: stretch;
  padding: clamp(22px, 2.6vw, 38px);
  background: #fff;
}

#learning-lab .lab-quiz-kicker {
  color: #5e5e5e;
  font-size: 14px;
  margin: 0 0 18px;
}

#learning-lab .lab-quiz-quote {
  color: #c8102e;
  font: 25px/1.55 var(--serif);
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}

#learning-lab .lab-quiz-question {
  color: #202020;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}

/* 選項按鈕：四科共用（聽力 .practice-options、其他三科 .lab-quiz-options） */
#learning-lab :is(.lab-quiz-options, .practice-options) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

#learning-lab :is(.lab-quiz-options, .practice-options) button {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  margin: 0;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid #292929;
  border-radius: 0;
  background: #fff;
  color: #202020;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

#learning-lab :is(.lab-quiz-options, .practice-options) button:hover {
  background: #f4f4f4;
}

#learning-lab :is(.lab-quiz-options, .practice-options) button:focus-visible {
  outline: 2px solid #202020;
  outline-offset: 3px;
}

#learning-lab :is(.lab-quiz-options, .practice-options) button.correct,
#learning-lab :is(.lab-quiz-options, .practice-options) button.correct:hover {
  background: #218349;
  border-color: #218349;
  color: #fff;
}

#learning-lab :is(.lab-quiz-options, .practice-options) button.incorrect,
#learning-lab :is(.lab-quiz-options, .practice-options) button.incorrect:hover {
  background: #fff;
  border-color: #c8102e;
  color: #c8102e;
}

#learning-lab .lab-quiz-feedback {
  border-top: 1px solid #20202030;
  padding-top: 17px;
  margin: 24px 0 0;
  color: #5e5e5e;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  #learning-lab .lab-quiz {
    padding: 22px;
  }

  #learning-lab .lab-quiz-quote {
    font-size: 21px;
  }
}

#stories-rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
  touch-action: pan-x pan-y;
}

#stories-rail::-webkit-scrollbar {
  display: none;
}

#stories-rail>.story-card {
  flex: 0 0 33.333333%;
  box-sizing: border-box;
  padding: 38px 30px 0;
  border: 0;
  border-left: 1px solid #ffffff80;
  scroll-snap-align: start;
}

#stories-rail>.story-card:first-child {
  border-left-color: transparent;
  padding-left: 0;
}

#stories-rail.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

#stories-rail img {
  -webkit-user-drag: none;
}

.stories-controls button:focus-visible,
#stories-rail:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1023px) {
  #stories-rail>.story-card {
    flex-basis: 50%;
  }
}

@media (max-width: 639px) {
  #stories-rail>.story-card {
    flex-basis: 100%;
    padding: 24px 20px 0;
  }
}

/* ==========================================================================
   考生心得區塊：每張卡片的「閱讀完整心得」連結＋標題旁「探索更多考生心得」按鈕
   選擇器用 #student-stories 開頭，確保不被上方規則與 site.css 的 a:hover 紅字蓋掉
   ========================================================================== */

/* 卡片改成上下排列，讓連結固定貼齊卡片底部，六張卡片的連結會在同一條水平線上 */
#student-stories .story-card {
  display: flex;
  flex-direction: column;
}

#student-stories .story-card blockquote {
  margin-bottom: 28px;
}

/* 「閱讀完整心得」：白字＋細底線，滑過時底線變實、箭頭往右上移 */
#student-stories .story-card .story-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 6px 0 5px;
  border-bottom: 1px solid #ffffff80;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  transition: border-color 0.2s;
}

#student-stories .story-card .story-link span {
  transition: transform 0.2s;
}

#student-stories .story-card .story-link:hover,
#student-stories .story-card .story-link:focus-visible {
  color: #fff !important;
  /* 蓋過 site.css 的 a:hover 紅字（紅底上會看不到） */
  border-bottom-color: #fff;
}

#student-stories .story-card .story-link:hover span,
#student-stories .story-card .story-link:focus-visible span {
  transform: translate(2px, -2px);
}

/* 「探索更多考生心得」：沿用 .button-navy 黑底，紅色背景上對齊標題底部 */
#student-stories .stories-more {
  align-self: flex-end;
  border-color: var(--ink);
}

/* 紅底區塊的黑色按鈕：滑入變白底紅字（探索菁英雅思課程、探索更多考生心得 共用）
   .button-navy 在 site.css 用 color: #fff !important 鎖色，這裡也需要 !important */
:is(#course, #student-stories) .section-cta:hover,
:is(#course, #student-stories) .section-cta:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--red) !important;
}

@media (max-width: 650px) {
  #student-stories .stories-more {
    align-self: flex-start;
    width: 100%;
    margin-top: 24px;
  }
}

/* ==========================================================================
   主視覺切換列：隱藏右側「02 / 03」頁數文字，保留左側 01／02／03 與左右箭頭
   ========================================================================== */
.hero-v2 #slide-count {
  display: none;
}

/* 頁數文字原本負責把右箭頭推到最右邊，隱藏後改由右箭頭自己靠右 */
.hero-v2 [data-hero-next] {
  margin-left: auto;
}

/* ==========================================================================
   考生心得卡片：分數標籤（取代原本寫在 HTML 的行內 style）
   ========================================================================== */
#student-stories .story-score {
  display: inline-block;
  padding: 3px 5px;
  border-radius: 3px;
  background: #fff;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================================
   教學摘要 POP：底部按鈕區（內容寫在 index.html 各篇的 .lesson-actions）
   ========================================================================== */
.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   以下從 site.css 移過來（只有首頁用到）
   ========================================================================== */
.course-bottom .button {
  background: #fff;
  color: var(--red) !important;
  border-color: #fff;
  flex-shrink: 0;
}

@media (max-width: 650px) {

  .course-bottom .button {
    width: 100%;
  }
}

/* ==========================================================================
   考試資訊列表（01–03）、精選教學卡片「閱讀教學摘要」：
   ↗ 改成細線向右箭頭（同主選單 .nav-caret 畫法，轉 -45 度朝右）
   HTML 不用改，原本的 ↗ 文字以 font-size: 0 隱藏
   ========================================================================== */
.exam-links>button>span:last-child,
.read-link>span {
  flex: none;
  align-self: center;
  display: block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  /* 旋轉後角會凸出，留一點空間對齊右邊線 */
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  font-size: 0;
  line-height: 0;
  transform: rotate(-45deg);
  transition: transform 0.18s;
}

/* 滑入時箭頭往右微移 */
.exam-links>button:hover>span:last-child,
.exam-links>button:focus-visible>span:last-child,
.article-open:hover .read-link>span,
.article-open:focus-visible .read-link>span {
  transform: translateX(3px) rotate(-45deg);
}

/* 精選教學卡片：右上角分類小字（題型解析、PART 2…）手機版隱藏 */
@media (max-width: 650px) {
  .resource-meta span {
    display: none;
  }
}
