/* ==================================================
   志光國考試聽館首頁
   區間式 CSS：#start / #search / #voices / #nutritionSpotlight / #teacher
   / #videos / #results / #contact
   ================================================== */

:root {
  --ink: #383737;
  --ink-soft: #383737;
  --paper: #f2efe7;
  --paper-deep: #e6e0d5;
  --white: #fffdf7;
  --muted: #6e6a61;
  --line: rgba(25, 25, 23, 0.18);
  --acid: #fff3cd;
  --blue: #dfe8ff;
  --rose: #efded3;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --wrap: min(88vw, calc(100% - 28px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

section {
  /* width: var(--wrap); */
  margin: 0 auto;
  padding: 12vh 8vw;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(145px, 0.38fr) 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 54px;
}

.section-heading h2,
#voices h2,
#results h2,
#contact h2 {
  margin: 0;
  font-family: var(--sans);
    font-size: clamp(32px, 8vw, 45px);
  font-weight: 500;
  line-height: 1.08;
}

.section-heading p:not(.section-no) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.section-no {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-line {
  background: transparent;
}

.button-light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.75, 0.22, 1);
}

[data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.mag-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  font-family: "Noto Serif TC", "Noto Sans TC", "Microsoft JhengHei", serif;
}
.mag-header {
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 3vw;
  display: flex;
  align-items: center;
  gap: 38px;
  box-sizing: border-box;
  transition:
    height 0.35s ease,
    padding 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.mag-logo {
  font-size: clamp(22px, 5vw,32px);
  line-height: 1;
  font-weight: 400;
  color: #058d9c;
  text-decoration: none;
  white-space: nowrap;
  transition:
    font-size 0.35s ease,
    letter-spacing 0.35s ease,
    color 0.35s ease;
  
}
.mag-header.is-scrolled {
  position: fixed;
  height: 45px;
  background: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.mag-header.is-scrolled .mag-logo {
  font-size: 20px;
}
.mag-header.is-scrolled ~ .mag-nav {
  position: fixed;
  top: 0;
  right: 3vw;
  bottom: auto;
  height: 45px;
  display: flex;
  align-items: center;
  z-index: 1002;
}
.mag-header.is-scrolled ~ .mag-nav a {
  font-size: 16px;
  text-shadow: none;
}
.mag-nav {
  position: absolute;
  z-index: 1000;
  top:0;
  right: 3vw;
  height: clamp(52px, 5vw, 108px);
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 0;
}

.mag-nav a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.mag-nav a:hover { color:#2a91ff;}
@media (min-width:901px){.mag-header{height:clamp(76px,7.6vw,112px);padding-top:0;padding-bottom:0}.mag-nav,.mag-header.is-scrolled~.mag-nav{top:0;bottom:auto;height:clamp(76px,7.6vw,112px);align-items:center}.mag-header.is-scrolled~.mag-nav{height:45px}.mag-nav a{display:inline-flex;align-items:center;min-height:44px;line-height:1.2}}
@media (min-width:641px) and (max-width:900px){.mag-header{height:70px;padding:0 5vw;justify-content:center}.mag-logo{font-size:28px}.mag-nav,.mag-header.is-scrolled~.mag-nav{position:absolute;top:70px;left:0;right:0;bottom:auto;width:100%;height:52px;padding:0 4vw;justify-content:center;gap:clamp(16px,3vw,28px);box-sizing:border-box;background:rgba(255,255,255,.96)}.mag-header.is-scrolled{height:52px;padding:0 5vw}.mag-header.is-scrolled .mag-logo{font-size:22px}.mag-header.is-scrolled~.mag-nav{position:fixed;top:52px}.mag-nav a,.mag-header.is-scrolled~.mag-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:1.2;white-space:nowrap}}
@media (min-width: 901px) and (max-width: 68em) {
  .mag-header {padding: 28px 6vw; }
  .mag-nav {gap: 18px;}
}

@media (max-width: 40em) {
.mag-header { padding: 22px 6vw;gap: 20px;}
.mag-logo {font-size: 28px;}
.mag-header.is-scrolled {height: 45px; padding: 0 5vw;}
.mag-header.is-scrolled .mag-logo {font-size: 21px;letter-spacing: 0.05em;}
.mag-nav,.mag-header.is-scrolled ~ .mag-nav {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom:6.5vh;
    width: 100%;
    height: calc(56px + env(safe-area-inset-bottom));
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    display: flex !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    background: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    box-sizing: border-box;
    
  }
  .mag-nav a,.mag-header.is-scrolled ~ .mag-nav a {
    width: 20%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-shadow: none;
    border-right: 1px dotted rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
  }
  .mag-nav a:last-child {border-right: 0;}
}



/* ---------- #start ---------- */

.visibleBreadcrumb {font-size: 12px;letter-spacing: 0.08em;}
.visibleBreadcrumb ol {display: flex;margin: 0;padding: 0;align-items: center;flex-wrap: wrap;gap: 8px;list-style: none;}
.visibleBreadcrumb li + li::before {margin-right: 8px;opacity: 0.62;content: "／";}
.visibleBreadcrumb a {text-decoration: underline;text-decoration-color: rgba(255, 253, 247, 0.45);text-underline-offset: 4px;}
.homeBreadcrumb {position: absolute;z-index: 4;top: 88px;left: 8vw;color: rgba(255, 253, 247, 0.88);}

#start {
  position: relative;
  min-height: 148svh;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 12vh 0vw 0;
}

#start .start-video {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #c9b792;
  isolation: isolate;
}

#start .start-video video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.018);
  transition:
    opacity 0.9s ease-in-out,
    transform 6s linear;
  will-change: opacity, transform;
}

#start .start-video video.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

#start .start-video-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 30%, rgba(25, 25, 23, 0.12) 53%, rgba(25, 25, 23, 0.46) 100%),
    linear-gradient(180deg, rgba(25, 25, 23, 0.08) 0%, transparent 44%),
    linear-gradient(180deg, transparent 58%, rgba(242, 239, 231, 0.2) 73%, var(--paper) 100%);
}

#start .start-hero-copy {
  position: absolute;
  z-index: 1;
  top: 42svh;
  right: 3vh;
  width: min(570px, 40vw);
  color: var(--white);
  text-shadow: 0 3px 24px rgba(25, 25, 23, 0.22);
}

#start .start-hero-copy h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(45px, 5vw, 68px);
  font-weight: 650;
  line-height: 1.07;
}

#start .start-hero-copy h1 span {
  display: block;
}

#start .start-hero-copy > div {
  margin-top: 25px;
}

#start .start-hero-copy > div > span {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 253, 247, 0.7);
}

#start .start-hero-copy p {
  margin: 17px 0 0;
  font-size: clamp(14px, 1.45vw, 21px);
  font-weight: 650;
  letter-spacing: 0.12em;
}

#start .start-video-note {
  position: absolute;
  z-index: 1;
  top: 55svh;
  left: 50%;
  display: none;
  width: var(--wrap);
  justify-content: space-between;
  align-items: center;
  transform: translateX(-50%);
  font-size:0.95em;
  font-weight: 600;
  letter-spacing: 0.14em;
}

#start .start-video-note p {
  margin: 0;
}

#start .start-video-note span {
  font-size:0.95em;
  letter-spacing: 0.08em;
}

#start .start-review-surface {
  position: relative;
  z-index: 2;
  padding: 70svh 0 42px;
}

#start .start-meta {
  display: none;
  grid-template-columns: 1fr auto 1fr;
  width: var(--wrap);
  margin: 0 auto 18px;
  align-items: center;
  font-size:0.95em;
  font-weight: 850;
  letter-spacing: 0.16em;
}

#start .start-meta p {
  margin: 0;
}

#start .start-meta > span {
  letter-spacing: 0.18em;
}

#start .start-meta b {
  justify-self: end;
  font-size: 8px;
}

#start .review-stage {
  position: relative;
  width: 100%;
  height: clamp(520px, 32vw, 900px);
  overflow: hidden;
  touch-action: pan-y;
}

#start .start-review-card {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  /* 以視窗比例維持卡片份量，避免高解析螢幕或瀏覽器縮放時
     被固定的 600px 上限壓成畫面中央的一小塊。 */
  width: clamp(600px, 42vw, 1320px);
  height: clamp(430px, 26.5vw, 820px);
  min-height: 0;
  padding: clamp(28px, 4vw, 54px);
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(25, 25, 23, 0.12);
  transform-origin: center center;
  transition:
    transform 0.72s cubic-bezier(0.2, 0.72, 0.2, 1),
    opacity 0.42s ease,
    filter 0.42s ease;
}

#start .start-review-card.is-center {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
}

#start .start-review-card.is-left {
  z-index: 1;
  opacity: 0.9;
  filter: saturate(0.86);
  transform: translateX(-113%) translateY(35px) rotate(-5deg) scale(0.88);
}

#start .start-review-card.is-right {
  z-index: 1;
  opacity: 0.9;
  filter: saturate(0.86);
  transform: translateX(13%) translateY(29px) rotate(4deg) scale(0.88);
}

#start .start-review-card.is-hidden {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(70px) rotate(0deg) scale(0.72);
}

#start .tone-acid {
  background: var(--acid);
}

#start .tone-blue {
  background: #b8d8f0;
}

#start .tone-rose {
  background: #ecc8bd;
}

#start .tone-paper {
  background: #fffdf7;
}

#start .review-card-top,
#start .review-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#start .review-card-top {
  font-size:0.95em;
  font-weight: 850;
  letter-spacing: 0.13em;
}

#start .review-card-top > span {
  opacity: 0.3;
}

#start .review-stars {
  letter-spacing: 0.2em;
  font-size: 1.2em;
  line-height: 1.1;
  color: #ffdc03;
  text-shadow: 1px 1px 1px #832f0a;
}

#start blockquote {
  flex: 1;
  max-width: 800px;
  min-height: 0;
  margin: 26px 0;
  padding-right: 6px;
  overflow-y: auto;
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 400;
  line-height: 1.38;
}

#start .review-card-bottom {
  flex-shrink: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(25, 25, 23, 0.38);
}

#start .review-card-bottom > a {
  display: flex;
  gap: 13px;
  align-items: center;
}

#start .review-avatar {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  overflow: hidden;
  place-items: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(25, 25, 23, 0.32);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

#start .review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

#start .review-card-bottom b,
#start .review-card-bottom small {
  display: block;
}

#start .review-card-bottom b {
  font-size: 1.58em;
  line-height: 1.5;
  font-weight: 300;
}

#start .review-card-bottom small,
#start .review-card-bottom > p {
  color: rgba(25, 25, 23, 0.68);
  font-size: 1.2em;
  font-weight: 400;
  letter-spacing: 0.08em;
}

#start .review-card-bottom small {
  margin-top: 4px;
}

#start .review-card-bottom > p {
  margin: 0;
}

#start .review-card-bottom .review-realname {
  display: inline;
  margin: 0 0 0 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

#start .review-card-bottom > p {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

#start .review-controls {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: var(--wrap);
  margin: 15px auto 0;
  align-items: center;
}

#start .review-controls > div:first-child {
  display: flex;
  gap: 17px;
}

#start .review-controls button {
  padding: 4px 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

#start .review-controls > a {
  justify-self: end;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

#start .review-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

#start .review-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

#start .review-dots button.is-active {
  width: 28px;
  background: var(--ink);
}

#start .review-progress {
  min-width: 78px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* ---------- #aboutTutorLibrary ---------- */
#aboutTutorLibrary {display: grid;padding: 11vh 8vw;grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);gap: clamp(42px, 8vw, 120px);align-items: start;background: #fffdf7;border-bottom: 1px solid var(--line);}
#aboutTutorLibrary h2 {margin: 18px 0 0;font-family: var(--sans);font-size: clamp(40px, 5vw, 68px);font-weight: 500;line-height: 1.08;}
#aboutTutorLibrary .aboutLibraryContent > p {max-width: 760px;margin: 0;font-size: clamp(17px, 1.45vw, 21px);line-height: 1.9;}
#aboutTutorLibrary ul {display: grid;margin: 45px 0 0;padding: 0;border-top: 1px solid var(--ink);list-style: none;}
#aboutTutorLibrary li {display: grid;padding: 22px 0;grid-template-columns: 52px 1fr;gap: 16px;border-bottom: 1px solid var(--line);}
#aboutTutorLibrary li > span {padding-top: 3px;font-size: 11px;font-weight: 850;letter-spacing: 0.14em;}
#aboutTutorLibrary li b {font-size: 18px;}
#aboutTutorLibrary li p {margin: 5px 0 0;color: var(--muted);}

/* ---------- #column ---------- */
#column {
  width: 100%;
  overflow: hidden;
  background: var(--white);
}

#column .column-heading {
  display: grid;
  margin-bottom: 52px;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}

#column h2 {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 500;
  line-height: 1.12;
}

#column .column-intro > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

#column .column-controls {
  display: flex;
  margin-top: 24px;
  gap: 10px;
  align-items: center;
}

#column .column-controls button {
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

#column .column-controls button:hover {
  color: var(--white);
  background: var(--ink);
}

#column .column-controls button:disabled {
  opacity: 0.28;
  cursor: default;
}

#column .column-controls span {
  min-width: 58px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
}

#column .column-viewport {
  width: calc(100% + 8vw);
}

#column .column-track {
  display: grid;
  grid-auto-columns: calc((100% - 48px - 8vw) / 3);
  grid-auto-flow: column;
  gap: 24px;
  padding: 0 8vw 14px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

#column .column-track::-webkit-scrollbar {
  display: none;
}

#column .column-card {
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#column .column-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.48 / 1;
  overflow: hidden;
  background: var(--paper-deep);
}

/* 名師人像以四組低飽和色系循環，讓輪播更有層次但不搶人物焦點。 */
#column .column-card:nth-child(4n + 1) .column-image {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.72) 0 18%, transparent 58%),
    linear-gradient(145deg, #e8dfd2, #f5efe7);
}

#column .column-card:nth-child(4n + 2) .column-image {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.7) 0 18%, transparent 58%),
    linear-gradient(145deg, #dbe7f1, #eef4f8);
}

#column .column-card:nth-child(4n + 3) .column-image {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.7) 0 18%, transparent 58%),
    linear-gradient(145deg, #ecdede, #f8eeee);
}

#column .column-card:nth-child(4n) .column-image {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.7) 0 18%, transparent 58%),
    linear-gradient(145deg, #dce7dc, #eef4e9);
}

#column .column-image picture,
#column .column-image img {
  width: 100%;
  height: 100%;
}

#column .column-image img {
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 0.75, 0.22, 1);
}

#column .column-image img[src*="/tutors/"] {
  object-fit: contain;
  object-position: center bottom;
}

#column .column-card:not(.is-upcoming):hover .column-image img {
  transform: scale(1.035);
}

#column .column-meta {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

#column .column-author {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#column .column-card h3 {
  min-height: 3.1em;
  margin: 9px 0 0;
  font-family: var(--sans);
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 500;
  line-height: 1.52;
}

#column .column-summary {
  display: -webkit-box;
  min-height: 5.8em;
  margin: 20px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#column .column-more,
#column .column-coming {
  display: inline-flex;
  margin-top: 25px;
  padding-bottom: 4px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

#column .column-more span {
  transition: transform 0.2s ease;
}

#column .column-more:hover span {
  transform: translate(3px, -3px);
}

#column .is-upcoming {
  opacity: 0.72;
}

#column .is-upcoming .column-image {
  background: linear-gradient(145deg, var(--blue), var(--rose));
}

#column .is-upcoming:nth-child(even) .column-image {
  background: linear-gradient(145deg, var(--rose), var(--acid));
}

#column .is-upcoming .column-image img {
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(0.12);
}

#column .column-coming {
  color: var(--muted);
  border-color: rgba(25, 25, 23, 0.32);
}

@media (max-width: 1040px) {
  #column .column-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #column .column-track {
    grid-auto-columns: calc((100% - 24px - 8vw) / 2);
  }
}

@media (max-width: 640px) {
  #column {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  #column .column-heading {
    margin-bottom: 34px;
  }

  #column h2 {
    font-size: clamp(36px, 12vw, 50px);
  }

  #column .column-viewport {
    width: calc(100% + 5vw);
  }

  #column .column-track {
    grid-auto-columns: min(76vw, 330px);
    gap: 14px;
    padding-right: 22px;
    padding-left: 16px;
    scroll-padding-left: 16px;
  }

  #column .column-card h3 {
    min-height: 0;
  }

  #column .column-summary {
    min-height: 0;
  }
}

/* ---------- #search ---------- */
#search {
  padding: 0;
  background: transparent;
}
#search .search-shell {
  overflow: hidden;
  border-radius: 0;
}

#search .search-console {
  padding: 0;
}

#search .search-status {
  display: flex;
  gap: 9px;
  margin-bottom: 40px;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
}

#search .search-status > span {
  width: 8px;
  height: 8px;
  background: var(--acid);
  border-radius: 50%;
}

#search .search-status b {
  margin-left: auto;
  font-weight: 600;
}

#search form > label {
  display: block;
  margin-bottom: 10px;
 font-size:0.95em;
}

#search .search-input-wrap {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--white);
  border:#ddd solid 1px;
  border-radius: 18px;
}

#search .search-input-wrap input {
  min-width: 0;
  flex: 1;
  padding: 12px 15px;
  color: #aaa;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 18px;
}

#search input::placeholder,
#teacher input::placeholder {
  color: #aaa;
  opacity: 1;
}

#search .search-input-wrap button {
  min-width: 88px;
  border: 0;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 800;
}

#search .clear-query {
  color: var(--muted);
  background: transparent;
}

#search .submit-query {
  color: var(--ink);
  background: var(--acid);
}

#search .search-categories {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  align-items: center;
}

#search .search-categories > span {
  flex: none;
  font-size: 0.95em;
  font-weight: 850;
  letter-spacing: 0.08em;
}

#search .search-categories .course {
  min-width: 0;
}

/* #search .search-answer {
  padding:0;
} */

#search .answer-heading {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
  justify-content: space-between;
  align-items: baseline;
}

#search .answer-heading p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(21px, 2.5vw, 31px);
}

#search .answer-heading span {
  color: rgba(255, 255, 255, 0.44);
  font-size:0.95em;
  font-weight:400;
  letter-spacing: 0;
}

#search .answer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

#search .search-result-card {
  display: flex;
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

#search .search-result-card:hover {
  border-color: var(--acid);
  transform: translateY(-3px);
}

#search .search-result-card div > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size:0.95em;
  font-weight: 400;
  letter-spacing: 0em;
}

#search .search-result-card h3 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size:1.5em;
  font-weight: 600;
}

#search .teacher-realname,
#teacher .teacher-realname {
  display: inline-block;
  margin-left: 7px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.02em;
  vertical-align: baseline;
}

#search .search-result-card p {
  display: -webkit-box;
  margin: 0 0 15px;
  overflow: hidden;
  color: var(--muted);
 font-size:0.95em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#search .search-result-card a {
  display: flex;
  justify-content: space-between;
 font-size:0.95em;
  font-weight: 800;
}

#search .show-all-result {
  display: block;
  margin: 22px auto 0;
  padding: 10px 17px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
 font-size:0.95em;
  font-weight: 750;
}

#search .empty-search {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
  color: var(--ink);
  background: var(--white);
  border-radius: 16px;
}

#search .empty-search b {
  font-family: var(--sans);
  font-size: 27px;
}

#search .empty-search p {
  margin: 6px 0 18px;
  color: var(--muted);
}

#search .empty-search a {
  font-size: 15px;
  font-weight: 800;
}

/* ---------- #voices ---------- */

#voices {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
  padding: 108px max(24px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--ink-soft);
}

#voices .voices-intro {
  align-self: center;
}

#voices .voices-intro > p:not(.section-no) {
  max-width: 420px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

#voices .voices-list {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

#voices .voices-list article {
  display: grid;
  grid-template-columns: 52px 0.6fr 1fr;
  gap: 22px;
  padding: 28px 0;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

#voices .voices-list article > span {
  color: var(--acid);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

#voices .voices-list h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
}

#voices .voices-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

/* ---------- #nutritionSpotlight ---------- */

#nutritionSpotlight {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  min-height: 720px;
  padding: 0;
  color: #203b38;
  background: #dce9e5;
  border-bottom: 1px solid rgba(32, 59, 56, 0.16);
}

#nutritionSpotlight .nutrition-visual {
  position: relative;
  min-height: 720px;
  margin: 0;
  overflow: hidden;
  background: #edf3f1;
}

#nutritionSpotlight .nutrition-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(transparent, rgba(18, 44, 40, 0.16));
  content: "";
  pointer-events: none;
}

#nutritionSpotlight .nutrition-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

#nutritionSpotlight .nutrition-copy {
  display: flex;
  max-width: 760px;
  padding: clamp(64px, 8vw, 112px);
  flex-direction: column;
  justify-content: center;
}

#nutritionSpotlight .nutrition-copy h2 {
  max-width: 620px;
  margin: 24px 0 0;
  font-family: var(--sans);
  font-size: clamp(42px, 5.6vw, 78px);
  font-weight: 500;
  line-height: 1.08;
}

#nutritionSpotlight .nutrition-copy > p:not(.section-no) {
  max-width: 610px;
  margin: 30px 0 38px;
  color: rgba(32, 59, 56, 0.72);
  font-size: 16px;
}

#nutritionSpotlight .nutrition-tutor-links {
  border-top: 1px solid rgba(32, 59, 56, 0.28);
}

#nutritionSpotlight .nutrition-tutor-links a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  min-height: 92px;
  padding: 20px 10px;
  align-items: center;
  border-bottom: 1px solid rgba(32, 59, 56, 0.28);
  transition: background 0.25s ease, padding 0.25s ease;
}

#nutritionSpotlight .nutrition-tutor-links a:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.42);
}

#nutritionSpotlight .nutrition-tutor-links span,
#nutritionSpotlight .nutrition-tutor-links i {
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.16em;
}

#nutritionSpotlight .nutrition-tutor-links b {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

#nutritionSpotlight .nutrition-tutor-links small {
  display: block;
  margin-top: 5px;
  color: rgba(32, 59, 56, 0.66);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- #teacher ---------- */

#teacher.teacher-search-section {
  background: #ecc8bd;
}

#teacher .teacher-heading {
  margin-bottom: 44px;
}

#teacher .course {
  display: flex;
  gap: 8px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

#teacher .course button {
  flex: none;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
}

#teacher .course button:hover,
#teacher .course button.is-active {
  color: var(--white);
  background: var(--ink);
}

#teacher .teacher-toolbar {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  padding: 20px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#teacher .teacher-toolbar > p {
  display: flex;
  gap: 10px;
  margin: 0;
  align-items: baseline;
 font-size:0.95em;
  font-weight: 800;
}

#teacher .teacher-toolbar > p strong {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 500;
}

#teacher .teacher-toolbar > p span {
  color: var(--muted);
  font-weight: 500;
}

#teacher .teacher-toolbar label {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
}

#teacher .teacher-toolbar input {
  width: 240px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aaa;
  outline: 0;
}

#teacher .teacher-toolbar input:focus {
  background: var(--white);
  border-color: var(--ink);
}

#teacher .teacher-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 17px;
  margin-top: 28px;
}

#teacher .teacher-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 19px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

#teacher .teacher-card:nth-child(4n + 2) {
  background: var(--blue);
}

#teacher .teacher-card:nth-child(4n + 3) {
  background: var(--rose);
}

#teacher .teacher-card:hover {
  z-index: 2;
  box-shadow: 0 20px 50px rgba(25, 25, 23, 0.12);
  transform: translateY(-5px);
}

#teacher .teacher-groups {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 5px;
  min-height: 39px;
  padding: 12px 12px 7px;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
}

#teacher .teacher-groups span {
  padding: 4px 8px;
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid rgba(25, 25, 23, 0.06);
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

#teacher .teacher-photo {
  position: relative;
  display: grid;
  height: 200px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(120deg, transparent 0 49.7%, rgba(25, 25, 23, 0.11) 50%, transparent 50.3%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.62), transparent 68%);
}

#teacher .teacher-photo > span {
  color: rgba(25, 25, 23, 0.16);
  font-family: var(--sans);
  font-size: 66px;
}

#teacher .teacher-photo img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#teacher .teacher-card:hover img {
  transform: scale(1.045);
}

#teacher .teacher-info {
  display: block;
  padding: 17px 17px 19px;
  color: inherit;
  background: rgba(255, 253, 247, 0.52);
  border-top: 1px solid rgba(25, 25, 23, 0.09);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#teacher .teacher-info:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -5px;
}

#teacher .teacher-index {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

#teacher .teacher-info h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
}

#teacher .teacher-subjects {
  display: -webkit-box;
  min-height: 43px;
  margin: 6px 0 15px;
  overflow: hidden;
  color: var(--muted);
 font-size:0.95em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#teacher .teacher-cta {
  display: flex;
  justify-content: space-between;
 font-size:0.95em;
  font-weight: 800;
}

#teacher .teacher-more {
  display: flex;
  margin-top: 42px;
  justify-content: center;
}

#teacher .teacher-more button {
  min-width: 235px;
  gap: 18px;
  justify-content: space-between;
}

#teacher .teacher-more span {
  color: var(--muted);
  font-size: 15px;
}

#teacher .teacher-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 70px 20px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
}

#teacher .teacher-empty b {
  font-family: var(--sans);
  font-size: 27px;
}

#teacher .teacher-empty button {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---------- #videos ---------- */

#videos {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #faf9f5;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(8.333vw - 1px),
    rgba(32, 83, 110, 0.09) calc(8.333vw - 1px),
    rgba(32, 83, 110, 0.09) 8.333vw
  );
}

#videos .video-heading {
  grid-template-columns: minmax(145px, 0.38fr) 1fr auto;
  position: relative;
  z-index: 2;
}

#videos .video-heading > a {
  align-self: end;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
 font-size:0.95em;
  font-weight: 800;
}

#videos .video-heading p:not(.section-no) {
  max-width: 560px;
  font-size: 14px;
}

#videos .video-track {
  display: grid;
  width: calc(100% + 16vw);
  margin-left: -8vw;
  grid-auto-columns: clamp(270px, 23.5vw, 430px);
  grid-auto-flow: column;
  gap: clamp(16px, 1.2vw, 24px);
  padding: 4px max(28px, 4vw) 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(28px, 4vw);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

#videos .video-track::-webkit-scrollbar {
  display: none;
}

#videos .video-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--ink);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(25, 25, 23, 0.12);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform 0.38s cubic-bezier(0.22, 0.72, 0.22, 1), box-shadow 0.38s ease;
}

#videos .video-card::after {
  position: absolute;
  z-index: 1;
  inset: 45% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 17, 0.82) 100%);
}

#videos .video-card:hover,
#videos .video-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 25px 58px rgba(25, 25, 23, 0.2);
}

#videos .video-thumb {
  position: relative;
  overflow: hidden;
  height: 100%;
  aspect-ratio: 5 / 8;
  background: var(--ink);
}

#videos .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  transition: transform 0.42s ease, opacity 0.42s ease;
}

#videos .video-card:hover img {
  opacity: 1;
  transform: scale(1.04);
}

#videos .video-play {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  width: 48px;
  height: 48px;
  margin: auto;
  place-items: center;
  color: var(--white);
  background: rgba(25, 25, 23, 0.85);
  border-radius: 50%;
}

#videos .video-play::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  content: "";
}

#videos .video-thumb small {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 13px;
  color: var(--white);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

#videos .video-info {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: clamp(22px, 2.2vw, 34px);
  color: var(--white);
}

#videos .video-info > span {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

#videos .video-info h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: var(--sans);
  font-size: clamp(19px, 1.55vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------- #results ---------- */

#results {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 17px;
  padding-top: 0;
}

#results .results-card,
#results .offer-card {
  border-radius: 27px;
}

#results .results-card {
  padding: clamp(36px, 6vw, 74px);
  color: var(--white);
  background: var(--ink);
}

#results .results-card p:not(.section-no) {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.67);
}

#results .results-card .button {
  margin-top: 22px;
}

#results .offer-card {
  display: flex;
  min-height: 430px;
  padding: 30px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--acid);
  transition: transform 0.25s ease;
}

#results .offer-card:hover {
  transform: translateY(-5px) rotate(0.5deg);
}

#results .offer-card > span,
#results .offer-card > b {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

#results .offer-card div > p {
  margin: 0 0 9px;
  font-size:0.95em;
  font-weight: 850;
  letter-spacing: 0.16em;
}

#results .offer-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(39px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.05;
}

/* ---------- #contact ---------- */

#contact {
  display: grid;
  grid-template-columns: 1fr 0.52fr;
  gap: 60px;
  align-items: end;
  border-top: 1px solid var(--line);
}

#contact .contact-copy {
  padding-bottom: 7px;
}

#contact .contact-copy > p {
  max-width: 440px;
  margin: 0 0 25px;
  color: var(--muted);
}

#contact .contact-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
  background: #1aa696;
  color: #fff;
  padding: 5vh 5vw;

}
footer ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  list-style: none;
  padding: 0;
}
footer ul li {
  text-align: center;
  font-size: 1.35em;
}
footer ul li a, footer ul li a:hover {
  color: #fff;
}
footer .dataUpdated {
  width: 100%;
  margin: 2.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
}
  @media screen and (max-width: 55em) {
  footer {
  background: #1aa696;
  color: #fff;
  padding: 5vh 1vw 8vh;

}
  footer ul li {
  text-align: center;
  font-size: 1em;
}
  footer ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- RWD ---------- */

@media (max-width: 1040px) {
  :root {
    --wrap: min(100% - 34px, 820px);
  }

  /* backdrop-filter 會讓 fixed 子元素改以頁首為定位基準，
     行動版選單因此只剩頁首高度；窄畫面改用完整實色選單。 */
  #start .start-review-card {
    width: min(70vw, 680px);
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  #aboutTutorLibrary {grid-template-columns: 1fr;}

  #search .answer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #voices {
    grid-template-columns: 1fr;
  }

  #teacher .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #teacher .teacher-photo {
    height: 280px;
  }

  #videos .video-heading,
  #contact,
  #results {
    grid-template-columns: 1fr;
    padding: 0 5vw;
  }

  #videos .video-heading > a {
    width: max-content;
  }

  #results .offer-card {
    min-height: 300px;
  }

  #footer {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  #start .start-hero-copy {
    top: 21svh;
    right: 24px;
    width: min(390px, 48vw);
  }

  #start .start-hero-copy h1 {
    font-size: clamp(42px, 6.2vw, 55px);
  }

  #start .start-hero-copy p {
    font-size: 15px;
    letter-spacing: 0.08em;
  }
}
@media (min-width: 1041px) and (max-width: 80em) {
  #start .start-review-card {
    width: clamp(600px, 48vw, 700px);
    height: clamp(430px, 35vw, 490px);
    min-height: 0;
  }
}

/* 大尺寸與高解析螢幕：卡片、文字及老師資訊一起等比例放大，
   讓回饋輪播至少保有約六至七成畫面的視覺份量。 */
@media (min-width: 1281px) {
  #start blockquote {
    font-size: clamp(24px, 1.6vw, 42px);
  }

  #start .review-card-top {
    font-size: clamp(15px, 0.9vw, 23px);
  }

  #start .review-avatar {
    width: clamp(58px, 4vw, 90px);
    height: clamp(58px, 4vw, 90px);
  }

  #start .review-card-bottom b {
    font-size: clamp(22px, 1.3vw, 34px);
  }

  #start .review-card-bottom small {
    font-size: clamp(14px, 0.85vw, 21px);
  }
}
@media (max-width: 640px) {
  :root {
    --wrap: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 62px;
  }

  body {
    padding-bottom: calc(6.5vh + 56px + env(safe-area-inset-bottom));
  }

  section {
    padding: 88px 0;
  }

  #teacher.teacher-search-section {
    padding: 78px 16px;
  }

  .homeBreadcrumb {top: 77px;left: 14px;font-size: 11px;}
  #aboutTutorLibrary {padding: 74px 16px;gap: 34px;}
  #aboutTutorLibrary h2 {font-size: clamp(38px, 12vw, 52px);}
  #aboutTutorLibrary .aboutLibraryContent > p {font-size: 16px;line-height: 1.85;}
  #aboutTutorLibrary ul {margin-top: 32px;}
  #aboutTutorLibrary li {grid-template-columns: 42px 1fr;}

  .section-heading {
    gap: 20px;
    margin-bottom: 38px;
  }

  .section-heading h2,
  #voices h2,
  #results h2,
  #contact h2 {
    font-size: clamp(32px, 8vw, 45px);
  }


  #start {
    min-height: 132svh;
  }

  #start .start-video .start-video-item-0 {
    object-position: 42% center;
  }

  #start .start-video .start-video-item-1 {
    object-position: 50% center;
  }

  #start .start-video-shade {
    background:
      linear-gradient(180deg, rgba(25, 25, 23, 0.12) 0%, rgba(25, 25, 23, 0.04) 22%, rgba(25, 25, 23, 0.22) 54%, transparent 68%),
      linear-gradient(180deg, transparent 58%, rgba(242, 239, 231, 0.2) 73%, var(--paper) 100%);
  }

  #start .start-hero-copy {
    top: 28svh;
    right: 14px;
    left: 14px;
    width: auto;
    padding: 18px 18px 17px;
    background: rgba(25, 25, 23, 0.3);
    border: 1px solid rgba(255, 253, 247, 0.24);
    border-radius: 17px;
    text-shadow: 0 2px 15px rgba(25, 25, 23, 0.26);
    backdrop-filter: blur(7px);
  }

  #start .start-hero-copy h1 {
    font-size: clamp(45px, 13.2vw, 61px);
    line-height: 1.08;
  }

  #start .start-hero-copy > div {
    margin-top: 17px;
  }

  #start .start-hero-copy p {
    margin-top: 12px;
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  #start .start-video-note {
    display: flex;
    top: 60svh;
    align-items: flex-start;
    flex-direction: column;
  }

  #start .start-video-note span {
    margin-top: 7px;
  }

  #start .start-review-surface {
    padding: 69svh 0 28px;
  }

  #start .start-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    margin-bottom: 16px;
    font-size: 8px;
  }

  #start .start-meta b {
    display: block;
    grid-column: 1 / -1;
    justify-self: end;
  }

  #start .review-stage {
    height: 500px;
  }

  #start .start-review-card {
    width: 82vw;
    height: 380px;
    min-height: 0;
    padding: 24px 22px;
    border-radius: 18px;
  }

  #start .start-review-card.is-left {
    transform: translateX(-112%) translateY(28px) rotate(-4deg) scale(0.9);
  }

  #start .start-review-card.is-right {
    transform: translateX(12%) translateY(24px) rotate(3.5deg) scale(0.9);
  }

  #start blockquote {
    margin: 24px 0;
    font-size: clamp(20px, 2vw, 22px);
    line-height: 1.6;
  }

  #start .review-avatar {
    width: 50px;
    height: 50px;
  }

  #start .review-card-bottom > p {
    display: none;
  }

  #start .review-controls {
    grid-template-columns: 1fr auto;
    margin-top: 17px;
  }

  #start .review-controls > a {
    display: none;
  }

  #start .review-controls button span {
    display: none;
  }

  #search .search-shell {
    border-radius: 21px;
  }

  #search .search-status {
    margin-bottom: 27px;
  }

  #search .search-categories {
    align-items: flex-start;
    flex-direction: column;
  }

  #search .search-categories .course {
    width: 100%;
  }

  #search .search-input-wrap {
    flex-wrap: wrap;
  }

  #search .search-input-wrap input {
    flex-basis: 100%;
    padding: 11px 10px;
  }

  #search .search-input-wrap button {
    min-height: 43px;
    flex: 1;
  }

  #search .answer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  #search .answer-grid {
    grid-template-columns: 1fr;
  }

  #voices {
    gap: 48px;
    padding: 78px 16px;
  }

  #voices .voices-list article {
    grid-template-columns: 38px 1fr;
    gap: 7px 13px;
    padding: 22px 0;
  }

  #voices .voices-list p {
    grid-column: 2;
  }

  #teacher .teacher-heading p:not(.section-no) {
    font-size: 15px;
  }

  #teacher .teacher-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #teacher .teacher-toolbar label {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  #teacher .teacher-toolbar input {
    width: 100%;
  }

  #teacher .teacher-grid {
    grid-auto-columns: 82%;
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 14px;
    padding: 2px 14px 12px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  #teacher .teacher-grid::-webkit-scrollbar {
    display: none;
  }

  #teacher .teacher-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #teacher .teacher-photo {
    height: 300px;
  }

  #teacher .teacher-groups {
    min-height: 42px;
    padding: 12px 12px 8px;
  }

  #videos .video-track {
    width: calc(100% + 32px);
    margin-left: -16px;
    grid-auto-columns: min(78vw, 330px);
    gap: 14px;
    padding: 3px 16px 16px;
    scroll-padding-inline: 16px;
  }

  #videos .video-info {
    padding: 22px;
  }

  #videos .video-info h3 {
    font-size: clamp(20px, 6vw, 25px);
  }

  #results .offer-card {
    min-height: 270px;
  }

  #contact {
    gap: 32px;
  }

  #contact .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  #footer {
    padding: 27px 16px;
  }
}

@media (max-width: 1040px) {
  #nutritionSpotlight {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    min-height: 640px;
  }

  #nutritionSpotlight .nutrition-visual {
    min-height: 640px;
  }

  #nutritionSpotlight .nutrition-copy {
    padding: 64px 7vw;
  }
}

@media (max-width: 640px) {
  #nutritionSpotlight {
    grid-template-columns: 1fr;
  }

  #nutritionSpotlight .nutrition-visual {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  #nutritionSpotlight .nutrition-visual img {
    object-position: center;
  }

  #nutritionSpotlight .nutrition-copy {
    padding: 64px 16px 72px;
  }

  #nutritionSpotlight .nutrition-copy h2 {
    margin-top: 18px;
    font-size: clamp(38px, 12vw, 56px);
  }

  #nutritionSpotlight .nutrition-copy > p:not(.section-no) {
    margin: 24px 0 30px;
    font-size: 15px;
  }

  #nutritionSpotlight .nutrition-tutor-links a {
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    padding: 18px 4px;
  }

  #nutritionSpotlight .nutrition-tutor-links b {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.column-card[hidden] {
  display: none !important;
}

@media screen and (max-width: 575px) {
    #socail_icon_box a.w100 img {
      display: none!important;
    }
  }
  .lineCampaign {
    margin: 3vh 0;
    text-align: center;

  }
  .lineCampaign > a {
  display: inline-flex;
  min-width: min(380px, 100%);
  min-height: 66px;
  padding: 16px 26px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  background: linear-gradient(120deg, #058d9c, #1aa696);
  border: 1px solid rgba(25, 25, 23, 0.16);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(5, 141, 156, 0.24);
  font-size: clamp(16px, 1.65vw, 21px);
  font-weight: 750;
  letter-spacing: 0.05em;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lineCampaign > a:hover,
.lineCampaign > a:focus-visible {
  background: linear-gradient(120deg, #047987, #168e82);
  box-shadow: 0 20px 40px rgba(5, 141, 156, 0.3);
  outline: 0;
  transform: translateY(-3px);
}

.lineCampaign > a span {
  font-size: 1.25em;
  line-height: 1;
}
