/* ============================
   NID For Kids — Editorial Site
   Design tokens
   ============================ */

:root {
  /* Brand colors */
  --yellow: #F5C518;
  --yellow-soft: #f7d34e;
  --black: #0a0a0a;
  --dark: #161616;
  --dark-2: #1f1f1f;
  --gray-900: #2a2a2a;
  --gray-700: #4a4a4a;
  --gray-500: #767676;
  --gray-300: #c8c8c8;
  --gray-100: #ececec;
  --cream: #f5f1ea;
  --white: #ffffff;

  /* Typography */
  --serif: "Noto Serif TC", "Songti TC", "PingFang TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: "Bebas Neue", "Helvetica Neue", sans-serif;

  /* Layout */
  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--black);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* Film grain texture overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================
   NAV
   ============================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 900;
  color: var(--white);
}

.nav-logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-name {
  font-family: var(--mono);
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.nav-links a {
  color: var(--white);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--yellow);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.4rem 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--yellow);
  color: var(--black) !important;
  border-color: var(--yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ============================
   HERO
   ============================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-img.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.35) 30%,
      rgba(0, 0, 0, 0.4) 60%,
      rgba(0, 0, 0, 0.7) 100%);
}

.hero-meta {
  position: relative;
  z-index: 5;
  padding: 6rem var(--pad) 0;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
}

.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 4rem var(--pad) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.title-cn {
  display: block;
}

.yellow {
  color: var(--yellow);
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 32rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
}

.btn-yellow:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.hero-foot {
  position: relative;
  z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 2rem var(--pad);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================
   GENERIC SECTION
   ============================ */

.section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.section-head.light {
  color: rgba(255, 255, 255, 0.7);
}

.section-num {
  color: var(--yellow);
  font-weight: 700;
}

.section-label {
  color: var(--gray-500);
}

.section-head.light .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.section-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section-title.light {
  color: var(--white);
}

.section-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--gray-700);
  margin-bottom: 4rem;
  max-width: 36rem;
  line-height: 1.8;
}

.section-lead.light {
  color: rgba(255, 255, 255, 0.8);
}

.inline-link {
  color: var(--yellow);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.inline-link:hover {
  opacity: 0.7;
}

/* ============================
   ABOUT
   ============================ */

.about {
  background: var(--cream);
  color: var(--black);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  line-height: 1.9;
}

.about-emphasis {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem !important;
  color: var(--black) !important;
  border-left: 3px solid var(--yellow);
  padding-left: 1.5rem;
  margin-top: 2rem !important;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.value-item {
  border-top: 2px solid var(--black);
  padding-top: 1.25rem;
  position: relative;
}

.value-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gray-500);
  letter-spacing: 0.15em;
}

.value-item h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.75rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--black);
}

.value-item p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ============================
   COURSES
   ============================ */

.courses {
  background: var(--white);
  padding-bottom: 8rem;
}

.path-arrows {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  flex-wrap: wrap;
}

.path-arrows .arrow {
  color: var(--yellow);
  font-weight: 900;
  font-size: 1.3em;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.course-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.course-card:nth-child(even) .course-card-img {
  order: 2;
}

.course-card-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--gray-100);
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(0.1) contrast(1.05);
}

.course-card:hover .course-card-img img {
  transform: scale(1.04);
}

.course-card-body {
  display: flex;
  flex-direction: column;
}

.course-tag-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.course-tag {
  background: var(--black);
  color: var(--yellow);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.course-pillar {
  background: var(--yellow);
  color: var(--black);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
}

.course-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--black);
}

.course-tagline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--yellow);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.course-desc {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.course-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-features li {
  font-size: 0.85rem;
  font-family: var(--sans);
  font-weight: 500;
  padding: 0.45rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--cream);
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  padding: 0.85rem 1.75rem;
  background: var(--black);
  color: var(--yellow) !important;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 999px;
  align-self: flex-start;
  transition: all 0.25s;
}

.course-link:hover {
  background: var(--yellow);
  color: var(--black) !important;
  transform: translateX(4px);
}

/* ============================
   SCHEDULE (DARK)
   ============================ */

.schedule {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0 8rem;
  position: relative;
}

.schedule::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.25 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  pointer-events: none;
}

.schedule .container {
  position: relative;
  z-index: 2;
}

.schedule-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.location-card {
  background: var(--dark-2);
  border: 1px solid var(--gray-900);
  border-radius: 6px;
  padding: 2.5rem;
  transition: border-color 0.3s;
}

.location-card:hover {
  border-color: var(--yellow);
}

.location-head {
  border-bottom: 1px solid var(--gray-900);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.location-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}

.location-area {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.location-classes {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.class-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.class-row:last-child {
  border-bottom: none;
}

.class-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.class-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.price-current {
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.price-original {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  font-size: 0.85em;
}

.price-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85em;
}

.class-price.has-discount {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.class-price.has-discount .price-current::before {
  content: "🏷 ";
  font-size: 0.85em;
}

.class-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.class-time {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.class-name {
  color: var(--white);
  font-weight: 500;
}

.class-age {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
}

.class-spots {
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.class-spots.few {
  color: #ff8a8a;
}

.class-spots.full {
  color: rgba(255, 255, 255, 0.35);
}

.class-enroll {
  display: inline-block;
  background: var(--yellow);
  color: var(--black) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.03em;
  transition: all 0.2s;
  white-space: nowrap;
}

.class-enroll:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.class-enroll.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4) !important;
  pointer-events: none;
}

.schedule-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.schedule-info-item {
  text-align: center;
}

.info-mini-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.4rem;
}

.info-mini-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--yellow);
}

/* 舊的 .class-status 已不用，但保留以防 fallback */
.class-status {
  display: none;
}

.schedule-footnote {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

/* ============================
   FAQ
   ============================ */

.faq {
  background: var(--cream);
  padding: 6rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--black);
}

.faq-item {
  border-bottom: 1px solid var(--black);
  padding: 1.5rem 0;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-item summary {
  list-style: none;
  position: relative;
  padding-right: 3rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--black);
  outline: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--yellow);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  padding-top: 1rem;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.9;
}

.faq-answer strong {
  color: var(--black);
  font-weight: 700;
}

/* ============================
   CONTACT (DARK)
   ============================ */

.contact {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--dark-2);
  border: 1px solid var(--gray-900);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s;
  position: relative;
}

.contact-card:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-4px);
  border-color: var(--yellow);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.contact-card:hover .contact-icon {
  background: var(--black);
  color: var(--yellow);
}

.contact-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-card:hover .contact-label {
  color: var(--black);
}

.contact-body h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.contact-card:hover .contact-body h3 {
  color: var(--black);
}

.contact-body p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.contact-card:hover .contact-body p {
  color: var(--gray-900);
}

.contact-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.contact-card:hover .contact-arrow {
  color: var(--black);
  transform: translate(3px, -3px);
}

/* ============================
   FOOTER
   ============================ */

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-logo-img {
  display: block;
  width: 96px;
  height: auto;
  margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
  .footer-logo-img {
    width: 80px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.footer-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-desc {
  line-height: 1.8;
  max-width: 24rem;
}

.footer-h {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 1.5rem var(--pad);
    gap: 1.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid,
  .schedule-list,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .course-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .course-card:nth-child(even) .course-card-img {
    order: 0;
  }

  .course-card-img {
    aspect-ratio: 16/10;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .class-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem 0;
  }

  .class-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .schedule-info-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }

  .hero-meta {
    padding-top: 5rem;
    font-size: 0.7rem;
  }

  .hero-foot {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .path-arrows {
    font-size: 0.9rem;
    gap: 0.6rem;
  }

  .about-emphasis {
    font-size: 1.1rem !important;
  }

  .location-card {
    padding: 1.5rem;
  }
}

/* ============================
   Course Tabs (班次卡片 v2)
   ============================ */

.course-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.course-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.course-tab.is-open {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--yellow);
}

.course-tab-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}

.course-tab-head:hover {
  background: rgba(245, 197, 24, 0.05);
}

.course-tab-info {
  flex: 1;
}

.course-tab-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.course-tab-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--white);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.course-tab-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

.course-tab-icon {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--yellow);
  flex-shrink: 0;
  margin-left: 1.5rem;
  transition: transform 0.3s ease;
  line-height: 1;
}

.course-tab.is-open .course-tab-icon {
  transform: rotate(45deg);
}

.course-tab-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.course-tab.is-open .course-tab-body {
  max-height: 1200px;
}

.schedule-rows {
  list-style: none;
  margin: 0;
  padding: 0 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 145px 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.schedule-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 197, 24, 0.3);
}

.sr-time {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sr-day {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.sr-hour {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--yellow);
  white-space: nowrap;
}

.sr-loc {
  color: var(--white);
  font-weight: 500;
  font-size: 0.98rem;
}

.sr-spots {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.sr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.sr-cta:hover {
  transform: translateX(2px);
  background: #ffd64a;
}

.course-tab-price {
  margin: 0 2rem 2rem;
  padding: 1rem 1.25rem;
  background: rgba(245, 197, 24, 0.08);
  border-left: 3px solid var(--yellow);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.6;
}

.early-bird-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

/* Mobile */
@media (max-width: 720px) {
  .course-tab-head {
    padding: 1.4rem 1.25rem;
  }

  .course-tab-name {
    font-size: 1.2rem;
  }

  .course-tab-desc {
    font-size: 0.88rem;
  }

  .schedule-rows {
    padding: 0 1rem 1rem;
  }

  .schedule-row {
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto auto;
    gap: 0.4rem 1rem;
    padding: 0.85rem 1rem;
  }

  .sr-time {
    grid-row: 1 / 3;
  }

  .sr-hour {
    font-size: 1rem;
    white-space: nowrap;
  }

  .sr-loc {
    font-size: 0.92rem;
  }

  .sr-meta {
    grid-column: 2;
  }

  .sr-cta {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .course-tab-price {
    margin: 0 1rem 1.25rem;
    font-size: 0.88rem;
  }

  .early-bird-tag {
    display: block;
    margin-left: 0;
    margin-top: 0.4rem;
    width: fit-content;
    font-size: 0.78rem;
  }
}

/* ============================
   Partners Section
   ============================ */

.partners-strip {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.partners-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.partners-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  min-width: 220px;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.partner-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.partner-desc {
  font-size: 0.85rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .partners-strip {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .partner-card {
    padding: 1.25rem 1.5rem;
    min-width: 0;
    width: 100%;
  }
}

/* ============================
   v3 班次新版型: 期程徽章 + 雙行價格 + 首頁夥伴區
   ============================ */

.schedule-period {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.period-badge {
  background: var(--yellow);
  color: var(--black);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.period-text {
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
}

/* 雙行價格區 */
.course-tab-price {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 2rem 2rem;
  padding: 1.1rem 1.25rem;
  background: rgba(245, 197, 24, 0.08);
  border-left: 3px solid var(--yellow);
  border-radius: 4px;
}

.price-line {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.early-bird-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 700;
  margin-left: 0;
  align-self: flex-start;
}

/* 首頁深色版合作夥伴區 */
.partners-strip-dark {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.partners-strip-dark .partners-label {
  color: var(--yellow);
}

.partners-intro {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.5rem;
}

.partners-strip-dark .partner-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 1.75rem 2.25rem;
  min-width: 320px;
  position: relative;
}

.partners-strip-dark .partner-card:hover {
  background: rgba(245, 197, 24, 0.08);
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.1);
}

.partners-strip-dark .partner-name {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.partners-strip-dark .partner-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.partner-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--yellow);
  letter-spacing: 0.05em;
}

/* ===== 學員福利 MEMBER PERKS ===== */
.perks-strip {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.perks-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin: 1.5rem auto 0;
}

.perk-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  text-align: left;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.perk-card:hover {
  background: rgba(245, 197, 24, 0.08);
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.1);
  transform: translateY(-2px);
}

.perk-icon {
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.perk-name {
  color: var(--white);
  font-size: 1.3rem;
  font-family: var(--serif);
  margin: 0 0 0.6rem;
}

.perk-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0 0 1rem;
}

.perk-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--black);
  background: var(--yellow);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .perks-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .perk-card {
    padding: 1.6rem 1.5rem;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .schedule-period {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
  }

  .course-tab-price {
    margin: 0 1rem 1.25rem;
    padding: 1rem;
  }

  .price-line {
    font-size: 0.85rem;
  }

  .early-bird-tag {
    font-size: 0.92rem;
    padding: 0.35rem 0.75rem;
  }

  .partners-strip-dark {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .partners-strip-dark .partner-card {
    min-width: 0;
    width: 100%;
    padding: 1.4rem 1.5rem;
  }
}

/* Partner logo */
.partner-logo {
  display: block;
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.partners-strip-dark .partner-logo {
  /* logo 在深色底時補白邊框讓 logo 浮出來 */
  background: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  max-height: 50px;
}

@media (max-width: 720px) {
  .partner-logo {
    max-height: 50px;
  }
}

/* Partner name fallback (logo 載入失敗時顯示) */
.partner-name-fallback {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--black);
  background: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.partners-strip-dark .partner-name-fallback {
  color: var(--black);
}
