.site-nav,
.site-nav *,
.nav-links,
.nav-links * {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

:root {
  --color-primary: #1e2f4f;
  --color-primary-light: #2f4f7f;
  --color-primary-soft: #3f6fa8;
  --color-accent: #c89b5a;
  --color-bg: #f6f8fb;
  --color-card: #ffffff;
  --color-text: #1f2937;
  --color-muted: #64748b;
  --color-border: #d7dee8;
  --color-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
}

a {
  color: inherit;
}

::selection {
  background-color: rgba(63, 111, 168, 0.22);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  background-image: url("../images/chiayi-tennis-banner.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 120px 20px 70px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.58) 0%,
    rgba(30, 47, 79, 0.44) 42%,
    rgba(30, 47, 79, 0.18) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: var(--color-white);
  margin-left: 6%;
}

.hero-eyebrow {
  margin: 0 0 12px;
  color: #d8b26e;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}

.hero-title-sub {
  margin: 14px 0 0;
  color: #f8fafc;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  margin: 18px 0 0;
  color: #f8fafc;
  font-size: 1.12rem;
  line-height: 1.8;
  max-width: 620px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.hero-location {
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-btn:hover,
.hero-btn:focus {
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-btn-primary {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.32);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
  background-color: var(--color-primary);
}

.hero-btn-secondary {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.24);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0);
  padding: 16px 0;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.nav-brand {
  position: relative;
  display: flex;
  align-items: center;
  width: 190px;
  height: 46px;
  text-decoration: none;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
}

.nav-logo {
  position: absolute;
  left: 0;
  display: block;
  width: 190px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  transition:
    opacity 0.25s ease,
    width 0.28s ease;
}

.nav-logo-light {
  opacity: 1;
}

.nav-logo-dark {
  opacity: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 900;
  font-size: 0.95rem;
  white-space: nowrap;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.38);
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #d8b26e;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: #ffffff;
  border-radius: 999px;
  margin: 5px 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background-color 0.25s ease;
}

.site-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
  padding: 16px 0;
  backdrop-filter: blur(10px);
}

.site-nav.scrolled .nav-logo-light {
  opacity: 0;
}

.site-nav.scrolled .nav-logo-dark {
  opacity: 1;
}

.site-nav.scrolled .nav-links a {
  color: var(--color-primary);
  text-shadow: none;
}

.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links a:focus {
  color: var(--color-primary-soft);
}

.site-nav.scrolled .nav-toggle {
  border-color: rgba(30, 47, 79, 0.18);
  background: rgba(30, 47, 79, 0.06);
}

.site-nav.scrolled .nav-toggle span {
  background-color: var(--color-primary);
}

main {
  background-color: var(--color-bg);
}

section {
  padding: 48px 20px;
  max-width: 960px;
  margin: auto;
  scroll-margin-top: 86px;
}

h2 {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
  margin-top: 0;
  font-size: 1.8rem;
}

h3 {
  color: #243b63;
}

p {
  font-size: 1rem;
}

.course-card {
  background-color: var(--color-card);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 22px;
  margin-bottom: 20px;
}

.course-card-large {
  margin-bottom: 36px;
  padding: 26px;
}

.course-card h3 {
  margin-top: 0;
}

.course-title {
  color: var(--color-primary);
  font-size: 1.55rem;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 16px;
}

.course-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-text p {
  margin: 0;
}

.coach-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  animation: fadeIn 0.8s ease-in-out;
}

.coach-section-spaced {
  margin-bottom: 42px;
}

.coach-section ul {
  flex: 1;
  min-width: 260px;
  margin: 0;
  padding-left: 22px;
}

.coach-section li {
  margin-bottom: 4px;
}

.coach-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-primary);
  list-style: none;
  margin-left: -22px;
  margin-bottom: 10px;
}

.coach-photo {
  flex: 0 1 260px;
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  animation: fadeIn 1s ease-in-out;
}

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.carousel img {
  height: auto;
  scroll-snap-align: center;
  border-radius: 14px;
}

.carousel-photo {
  width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.info-section {
  max-width: 1080px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.info-card {
  background-color: var(--color-card);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.info-card p {
  margin-bottom: 0;
}

.info-card .social-links {
  margin-top: 16px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  margin-right: 14px;
  text-decoration: none;
}

.social-links i {
  vertical-align: middle;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.social-links a:hover i,
.social-links a:focus i {
  transform: translateY(-2px);
  opacity: 0.85;
}

.instagram-icon {
  color: #e4405f;
}

.facebook-icon {
  color: #1877f2;
}
.summer-camp-section {
  max-width: 1080px;
}

@media (max-width: 700px) {
  .summer-camp-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .summer-camp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    text-align: center;
  }
}

.summer-camp-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: center;
  background-color: var(--color-card);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.summer-camp-content h2 {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.summer-camp-lead {
  margin-top: 0;
  color: var(--color-text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.8;
}

.summer-camp-info {
  margin-top: 18px;
  padding: 16px 18px;
  background-color: #f6f8fb;
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
}

.summer-camp-info p {
  margin: 6px 0;
  font-size: 0.98rem;
}

.summer-camp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.summer-camp-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.summer-camp-btn:hover,
.summer-camp-btn:focus {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.summer-camp-btn.secondary {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.summer-camp-btn.secondary:hover,
.summer-camp-btn.secondary:focus {
  background-color: #f8fafc;
}

.summer-camp-poster-link {
  display: block;
  text-decoration: none;
}

.summer-camp-poster {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}
footer {
  background-color: var(--color-primary);
  padding: 22px 20px;
  text-align: center;
  font-size: 0.9em;
  color: var(--color-white);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background-color: rgba(30, 47, 79, 0.92);
  color: #ffffff;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.back-to-top i {
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
  background-color: var(--color-primary-light);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-inner {
    align-items: flex-start;
  }

  .nav-links {
    gap: 16px;
  }

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

@media (max-width: 700px) {
  .hero {
    width: 100%;
    min-height: 100svh;
    padding: 104px 16px 46px;
    background-position: center;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.58) 0%,
      rgba(30, 47, 79, 0.46) 48%,
      rgba(30, 47, 79, 0.34) 100%
    );
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
  }

  .hero-eyebrow {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-title-sub {
    font-size: 1.15rem;
  }

  .hero-subtitle,
  .hero-location {
    font-size: 0.98rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 11px 18px;
  }

  .site-nav {
    padding: 12px 0;
  }

  .site-nav.scrolled {
    padding: 12px 0;
  }

  .nav-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
  }

  .nav-brand {
    width: 145px;
    height: 40px;
    min-width: 0;
  }

  .nav-logo {
    width: 145px;
    height: auto;
    flex-shrink: 0;
  }

  .site-nav.scrolled .nav-brand {
    width: 140px;
  }

  .site-nav.scrolled .nav-logo {
    width: 140px;
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 10px;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background-color: #ffffff;
    border-radius: 999px;
    margin: 5px 0;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease,
      background-color 0.25s ease;
  }

  .site-nav.scrolled .nav-toggle {
    border-color: rgba(30, 47, 79, 0.18);
    background: rgba(30, 47, 79, 0.06);
  }

  .site-nav.scrolled .nav-toggle span {
    background-color: var(--color-primary);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(30, 47, 79, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
    transition:
      max-height 0.3s ease,
      opacity 0.25s ease;
  }

  .nav-links a {
    display: block;
    color: var(--color-primary);
    text-shadow: none;
    font-size: 1rem;
    font-weight: 900;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(30, 47, 79, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    color: var(--color-primary-soft);
  }

  .site-nav.is-open .nav-links {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  section {
    padding: 36px 15px;
    scroll-margin-top: 104px;
  }

  h2 {
    font-size: 1.55rem;
  }

  .course-card,
  .course-card-large {
    padding: 20px;
    margin-bottom: 24px;
  }

  .course-title {
    font-size: 1.35rem;
  }

  .coach-section {
    gap: 18px;
  }

  .coach-photo {
    max-width: 100%;
  }

  .carousel-photo {
    width: 260px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .summer-camp-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
    border-radius: 16px;
  }

  .summer-camp-content h2 {
    font-size: 1.55rem;
  }

  .summer-camp-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .summer-camp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    text-align: center;
    padding: 12px 18px;
  }

  .summer-camp-poster {
    border-radius: 12px;
  }
}

/* =========================
   多頁版共用樣式
========================= */
.site-nav.site-nav-solid,
.site-nav.site-nav-solid.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
}

.site-nav.site-nav-solid .nav-logo-light,
.site-nav.site-nav-solid.scrolled .nav-logo-light {
  opacity: 0;
}

.site-nav.site-nav-solid .nav-logo-dark,
.site-nav.site-nav-solid.scrolled .nav-logo-dark {
  opacity: 1;
}

.site-nav.site-nav-solid .nav-links a,
.site-nav.site-nav-solid.scrolled .nav-links a {
  color: var(--color-primary);
  text-shadow: none;
}

.site-nav.site-nav-solid .nav-links a:hover,
.site-nav.site-nav-solid .nav-links a:focus,
.site-nav.site-nav-solid.scrolled .nav-links a:hover,
.site-nav.site-nav-solid.scrolled .nav-links a:focus {
  color: var(--color-primary-soft);
}

.site-nav.site-nav-solid .nav-toggle,
.site-nav.site-nav-solid.scrolled .nav-toggle {
  border-color: rgba(30, 47, 79, 0.18);
  background: rgba(30, 47, 79, 0.06);
}

.site-nav.site-nav-solid .nav-toggle span,
.site-nav.site-nav-solid.scrolled .nav-toggle span {
  background-color: var(--color-primary);
}

.page-hero {
  position: relative;
  padding: 132px 20px 58px;
  background:
    linear-gradient(135deg, rgba(30, 47, 79, 0.96), rgba(47, 79, 127, 0.88)),
    url("../images/chiayi-tennis-banner.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.page-hero-content {
  max-width: 960px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  font-weight: 900;
}

.page-hero p:not(.hero-eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: #e5eefb;
  font-size: 1.08rem;
}

.home-overview,
.home-cta {
  max-width: 1080px;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.home-card {
  display: block;
  background-color: var(--color-card);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.home-card:hover,
.home-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.home-card h3 {
  margin: 0 0 10px;
  color: var(--color-primary);
}

.home-card p {
  margin: 0;
  color: var(--color-text);
}

.home-cta {
  margin-bottom: 40px;
  text-align: center;
}

.home-cta p {
  max-width: 680px;
  margin: 0 auto;
}

.home-cta-buttons {
  justify-content: center;
}

.home-secondary-btn {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: var(--color-border);
}

@media (max-width: 900px) {
  .home-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-hero {
    padding: 112px 16px 44px;
  }

  .page-hero h1 {
    font-size: 1.9rem;
  }

  .page-hero p:not(.hero-eyebrow) {
    font-size: 1rem;
  }
}

/* =========================
   首頁關於 JOIN 品牌區塊
========================= */

/* =========================
   About 區塊：ALLDAY 風格版
========================= */

.about-all-day-style {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 28px 90px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 38px;
  align-items: center;
  background: #f7f8fb;
  overflow: hidden;
}

.about-left {
  position: relative;
  padding: 20px 10px 20px 24px;
}

.about-bg-word {
  margin: 0 0 18px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  color: rgba(30, 47, 79, 0.18);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about-brand-lockup {
  margin-bottom: 26px;
  transform: skewX(-14deg);
  transform-origin: left center;
}

.about-brand-main {
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  font-weight: 700;
  line-height: 0.9;
  color: #2a3f63;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.about-brand-sub {
  margin-top: 4px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #2a3f63;
  text-transform: uppercase;
}

.about-left h2 {
  margin: 0 0 18px;
  font-size: 2rem;
  color: var(--color-primary);
}

.about-lead {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.9;
  color: var(--color-text);
}

.about-left p:not(.about-bg-word):not(.about-lead) {
  line-height: 1.95;
  color: var(--color-text);
}

.about-right {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.about-slash {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%) skewX(-16deg);
  width: 42px;
  height: 320px;
  background: #2f466d;
  z-index: 1;
}

.about-image-wrap {
  position: relative;
  width: min(100%, 760px);
  height: 670px;
  overflow: hidden;
  z-index: 2;

  /* 梯形重點 */
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 如果想在圖片上放品牌白字，可加這個 */
.about-image-wrap::after {
  content: "JOIN";
  position: absolute;
  left: 52%;
  bottom: 14%;
  transform: translateX(-50%) skewX(-14deg);
  font-family: "Oswald", sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .about-all-day-style {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 54px 20px 70px;
  }

  .about-right {
    min-height: auto;
    justify-content: center;
  }

  .about-slash {
    left: 10px;
    width: 26px;
    height: 180px;
  }

  .about-image-wrap {
    width: 100%;
    max-width: 760px;
    height: 460px;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }
}

@media (max-width: 700px) {
  .about-all-day-style {
    padding: 40px 16px 56px;
  }

  .about-left {
    padding: 0;
  }

  .about-bg-word {
    font-size: 2.6rem;
    margin-bottom: 14px;
  }

  .about-brand-lockup {
    margin-bottom: 18px;
    transform: skewX(-10deg);
  }

  .about-brand-main {
    font-size: 3rem;
  }

  .about-brand-sub {
    font-size: 0.88rem;
    letter-spacing: 0.18em;
  }

  .about-left h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  .about-lead,
  .about-left p:not(.about-bg-word) {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .about-right {
    min-height: auto;
  }

  .about-slash {
    left: 4px;
    width: 18px;
    height: 120px;
  }

  .about-image-wrap {
    height: 320px;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  }

  .about-image-wrap::after {
    font-size: 3.2rem;
    bottom: 10%;
  }
}

/* =========================
   品牌概念區塊：橫幅整合版
========================= */

.brand-concept-section,
.brand-concept-section * {
  box-sizing: border-box;
}

.brand-concept-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px 58px;
  background-color: #f7f8fb;
}

.brand-concept-panel {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.82) 0%,
      rgba(30, 47, 79, 0.76) 48%,
      rgba(30, 47, 79, 0.58) 100%
    ),
    url("../images/chiayi-tennis-banner.jpg");
  background-size: cover;
  background-position: center;
}

.brand-concept-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 42%,
    rgba(255, 255, 255, 0) 42%
  );
  pointer-events: none;
}

.brand-concept-frame {
  position: relative;
  z-index: 1;
  width: calc(100% - 64px);
  border: 2px solid rgba(255, 255, 255, 0.72);
  padding: 46px 54px;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.78fr);
  gap: 36px;
  align-items: center;
  text-align: left;
}

.brand-concept-eyebrow {
  grid-column: 1;
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  line-height: 0.95;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-concept-frame h2 {
  grid-column: 1;
  margin: 8px 0 22px;
  color: #ffffff;
  border-bottom: none;
  padding-bottom: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-concept-text {
  grid-column: 1;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.85;
}

.brand-concept-slogan {
  grid-column: 2;
  grid-row: 1 / span 3;
  max-width: none;
  margin: 0;
  padding: 30px 32px;
  background: rgba(63, 111, 168, 0.88);
  backdrop-filter: blur(4px);
  transform: skewX(-7deg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.brand-concept-slogan p {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.45vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.04em;
  transform: skewX(7deg);
}

.brand-concept-slogan p:last-child {
  margin-bottom: 0;
}

/* =========================
   教學核心區塊：編號＋圓形 icon
========================= */
.teaching-core-section {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px 96px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(245, 248, 252, 0.96),
      rgba(236, 242, 249, 0.96)
    ),
    url("../images/chiayi-tennis-banner.jpg");
  background-size: cover;
  background-position: center;
}

.teaching-core-section::before {
  content: "CORE";
  position: absolute;
  right: -18px;
  top: 10px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(5rem, 13vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(30, 47, 79, 0.06);
  pointer-events: none;
}

.teaching-core-heading {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 34px;
  z-index: 1;
}

.teaching-core-heading h2 {
  margin: 10px 0 0;
  color: var(--color-primary);
}

.teaching-core-list {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 1;
}

.core-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.core-item-icon {
  position: relative;
  width: 154px;
  height: 154px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-item-icon i {
  color: var(--color-primary);
  font-size: 3rem;
}

.core-item-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Oswald", sans-serif;
  color: var(--color-primary);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.core-item-content {
  padding: 12px 0;
}

.core-item-content h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.core-item-content p {
  margin: 0;
  color: #1f2937;
  font-size: 1.25rem;
  line-height: 1.85;
}

/* =========================
   品牌概念 / 教學核心 RWD
========================= */
@media (max-width: 1100px) {
  .brand-concept-panel {
    min-height: 640px;
  }

  .brand-concept-frame {
    width: calc(100% - 52px);
    padding: 68px 36px 56px;
  }

  .brand-concept-text {
    font-size: 1.05rem;
  }

  .core-item {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
  }

  .core-item-icon {
    width: 126px;
    height: 126px;
  }

  .core-item-icon i {
    font-size: 2.45rem;
  }

  .core-item-content h3 {
    font-size: 1.65rem;
  }

  .core-item-content p {
    font-size: 1.08rem;
  }
}

@media (max-width: 700px) {
  .brand-concept-section {
    padding: 18px 14px 44px;
  }

  .brand-concept-panel {
    min-height: auto;
  }

  .brand-concept-frame {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 18px 30px;
  }

  .brand-concept-eyebrow {
    font-size: 2.7rem;
  }

  .brand-concept-frame h2 {
    margin: 6px 0 16px;
    font-size: 1.55rem;
  }

  .brand-concept-text {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .brand-concept-slogan {
    grid-column: 1;
    grid-row: auto;
    padding: 22px 18px;
    transform: skewX(0);
  }

  .brand-concept-slogan p {
    font-size: 1.28rem;
    transform: skewX(0);
  }

  .teaching-core-section {
    padding: 8px 16px 60px;
  }

  .teaching-core-list {
    gap: 20px;
  }

  .core-item {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }

  .core-item-icon {
    width: 108px;
    height: 108px;
    margin: 0;
  }

  .core-item-icon i {
    font-size: 2.2rem;
  }

  .core-item-number {
    top: -14px;
    left: 44px;
    transform: none;
    font-size: 2rem;
  }

  .core-item-content h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
  }

  .core-item-content p {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* =========================
   首頁品牌概念 / 教學核心：緊湊版覆蓋
   目的：降低區塊高度，避免一個螢幕塞不下太多內容
========================= */

.brand-concept-section {
  padding: 24px 24px 48px;
}

.brand-concept-panel {
  min-height: 560px;
}

.brand-concept-frame {
  width: calc(100% - 64px);
  min-height: auto;
  padding: 58px 52px 52px;
}

.brand-concept-eyebrow {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
}

.brand-concept-frame h2 {
  margin: 8px 0 24px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.brand-concept-text {
  max-width: 780px;
  margin-bottom: 30px;
  font-size: 1.08rem;
  line-height: 1.85;
}

.brand-concept-slogan {
  max-width: 680px;
  padding: 24px 24px;
}

.brand-concept-slogan p {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.35vw, 1.9rem);
}

.teaching-core-section {
  padding: 18px 28px 64px;
}

.teaching-core-section::before {
  right: -10px;
  top: 18px;
  font-size: clamp(4rem, 10vw, 8.5rem);
}

.teaching-core-heading {
  max-width: 1080px;
  margin-bottom: 22px;
}

.teaching-core-heading h2 {
  font-size: 1.65rem;
}

.teaching-core-list {
  max-width: 1080px;
  gap: 16px;
}

.core-item {
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 22px;
  min-height: 116px;
}

.core-item-icon {
  width: 108px;
  height: 108px;
}

.core-item-icon i {
  font-size: 2.15rem;
}

.core-item-number {
  top: -14px;
  font-size: 2rem;
}

.core-item-content {
  padding: 6px 0;
}

.core-item-content h3 {
  margin-bottom: 6px;
  font-size: 1.52rem;
}

.core-item-content p {
  font-size: 1rem;
  line-height: 1.7;
}

/* 中尺寸螢幕：再壓縮一些，避免 13 吋筆電第一屏太擠 */
@media (max-width: 1100px) {
  .brand-concept-panel {
    min-height: 500px;
  }

  .brand-concept-frame {
    width: calc(100% - 44px);
    padding: 48px 30px 44px;
  }

  .brand-concept-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .brand-concept-slogan {
    padding: 20px 20px;
  }

  .core-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    min-height: 102px;
  }

  .core-item-icon {
    width: 94px;
    height: 94px;
  }

  .core-item-icon i {
    font-size: 1.9rem;
  }

  .core-item-number {
    top: -12px;
    font-size: 1.75rem;
  }

  .core-item-content h3 {
    font-size: 1.36rem;
  }

  .core-item-content p {
    font-size: 0.96rem;
    line-height: 1.65;
  }
}

/* 手機版：避免每個核心項目太高，讓內容更像列表 */
@media (max-width: 700px) {
  .brand-concept-section {
    padding: 16px 14px 42px;
  }

  .brand-concept-frame {
    width: calc(100% - 24px);
    padding: 34px 16px 28px;
  }

  .brand-concept-eyebrow {
    font-size: 2.55rem;
  }

  .brand-concept-frame h2 {
    margin-bottom: 18px;
    font-size: 1.5rem;
  }

  .brand-concept-text {
    margin-bottom: 22px;
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .brand-concept-slogan {
    padding: 18px 14px;
  }

  .brand-concept-slogan p {
    font-size: 1.22rem;
  }

  .teaching-core-section {
    padding: 6px 14px 46px;
  }

  .teaching-core-heading {
    margin-bottom: 18px;
  }

  .teaching-core-list {
    gap: 16px;
  }

  .core-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: auto;
  }

  .core-item-icon {
    width: 70px;
    height: 70px;
  }

  .core-item-icon i {
    font-size: 1.5rem;
  }

  .core-item-number {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.35rem;
  }

  .core-item-content h3 {
    margin-bottom: 4px;
    font-size: 1.2rem;
  }

  .core-item-content p {
    font-size: 0.94rem;
    line-height: 1.65;
  }
}

/* =========================
   手機版 Hero 文字裁切修正
   避免標題、副標與按鈕超出畫面
========================= */

@media (max-width: 700px) {
  .hero,
  .hero * {
    box-sizing: border-box;
  }

  .hero {
    width: 100%;
    min-height: 100svh;
    padding: 104px 18px 46px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  .hero-eyebrow {
    font-size: 0.78rem;
    line-height: 1.4;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-subtitle,
  .hero-location {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: loose;
  }

  .hero-subtitle {
    margin-top: 14px;
    font-size: clamp(0.98rem, 4vw, 1.06rem);
    line-height: 1.75;
    font-weight: 700;
  }

  .hero-location {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 800;
  }

  .hero-buttons {
    width: 100%;
    margin-top: 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 310px;
    min-height: 56px;
    padding: 12px 18px;
    text-align: center;
    line-height: 1.4;
  }
}

@media (max-width: 380px) {
  .hero-content {
    max-width: 310px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle,
  .hero-location {
    max-width: 300px;
    font-size: 0.94rem;
  }

  .hero-btn {
    max-width: 290px;
  }
}

/* =========================
   課程介紹頁：JOIN 4×1 左右交錯版
   圖片請放入 images：
   course-kids.jpg / course-private.jpg / course-group.jpg / course-athlete.jpg
========================= */

.courses-nav-only {
  height: 78px;
  background: #ffffff;
}

.program-flow,
.program-flow *,
.program-flow-cta,
.program-flow-cta * {
  box-sizing: border-box;
}

.program-flow {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 28px 86px;
  overflow: hidden;
  isolation: isolate;
}

.program-flow-list {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.program-flow-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  min-height: 420px;
}

.program-flow-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
}

.program-flow-card:nth-child(even) .program-flow-image {
  grid-column: 2;
}

.program-flow-card:nth-child(even) .program-flow-panel {
  grid-column: 1;
  grid-row: 1;
}

.program-flow-image {
  position: relative;
  z-index: 2;
  min-height: 410px;
  background:
    linear-gradient(rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.16)),
    url("../images/chiayi-tennis-banner.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
}

.program-flow-kids .program-flow-image {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.16)),
    url("../images/course-kids.jpg"), url("../images/chiayi-tennis-banner.jpg");
}

.program-flow-private .program-flow-image {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.16)),
    url("../images/course-private.jpg"),
    url("../images/chiayi-tennis-banner.jpg");
}

.program-flow-group .program-flow-image {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.16)),
    url("../images/course-group.jpg"), url("../images/chiayi-tennis-banner.jpg");
}

.program-flow-athlete .program-flow-image {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.16)),
    url("../images/course-athlete.jpg"),
    url("../images/chiayi-tennis-banner.jpg");
}

.program-flow-image::after {
  content: none !important;
  display: none !important;
}

.program-flow-panel {
  position: relative;
  z-index: 3;
  min-height: 350px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #1e2f4f 0%, #111827 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.program-flow-card:nth-child(odd) .program-flow-panel {
  margin-left: -58px;
  padding: 30px 34px 30px 78px;
}

.program-flow-card:nth-child(even) .program-flow-panel {
  margin-right: -58px;
  padding: 30px 78px 30px 34px;
}

.program-flow-card:nth-child(2) .program-flow-panel {
  background: linear-gradient(135deg, #222222 0%, #111827 100%);
}

.program-flow-card:nth-child(3) .program-flow-panel {
  background: linear-gradient(135deg, #2d4158 0%, #1e2f4f 100%);
}

.program-flow-card:nth-child(4) .program-flow-panel {
  background: linear-gradient(135deg, #17233b 0%, #0f172a 100%);
}

.program-flow-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  pointer-events: none;
}

.program-flow-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.program-flow-label {
  margin: 0 0 12px;
  color: #e9c47f;
  font-family: "Oswald", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.program-flow-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.program-flow-title i {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 2rem;
}

.program-flow-number {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
}

.program-flow-title h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
}

.program-flow-tag {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--color-accent);
  color: #f3d8a5;
  font-size: 0.9rem;
  font-weight: 900;
}

.program-flow-copy {
  max-width: 760px;
}

.program-flow-copy h4 {
  display: inline-flex;
  margin: 16px 0 6px;
  padding: 4px 10px;
  background: rgba(216, 230, 245, 0.18);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
}

.program-flow-copy h4:first-child {
  margin-top: 0;
}

.program-flow-copy p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.75;
}

.program-flow-copy p:last-child {
  margin-bottom: 0;
}

/* =========================
   分頁上方標題區：統一版
   適用：教練團隊 / FAQ / 課程照片 / 預約資訊
========================= */

.page-hero {
  height: 78px;
  min-height: 0;
  padding: 0;
  background: #ffffff;
  color: var(--color-primary);
}

.page-hero-content {
  display: none;
}

.subpage-title-block,
.subpage-title-block * {
  box-sizing: border-box;
}

.subpage-title-block {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 62px 28px 76px;
  overflow: hidden;
  background: var(--color-bg);
  isolation: isolate;
}

.subpage-title-block::before {
  content: attr(data-bg);
  position: absolute;
  left: 42%;
  top: 50px;
  z-index: 0;
  width: 760px;
  height: 180px;
  overflow: hidden;
  color: rgba(30, 47, 79, 0.055);
  font-family: "Oswald", sans-serif;
  font-size: 9.6rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.subpage-title-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
}

.subpage-title-block .section-eyebrow {
  margin: 0 0 18px;
  color: var(--color-accent);
  font-family: "Oswald", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.subpage-title-block h1 {
  max-width: 760px;
  margin: 0 0 18px;
  padding-bottom: 18px;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.subpage-title-block p:not(.section-eyebrow) {
  max-width: 830px;
  margin: 0;
  color: var(--color-text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.85;
}

.subpage-title-block + section {
  padding-top: 18px;
}

.program-flow-cta {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px 78px;
}

.program-flow-cta-inner {
  position: relative;
  overflow: hidden;
  padding: 42px 50px;
  background:
    linear-gradient(110deg, rgba(15, 23, 42, 0.94), rgba(30, 47, 79, 0.82)),
    url("../images/chiayi-tennis-banner.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.program-flow-cta-inner::after {
  content: "JOIN";
  position: absolute;
  right: -8px;
  bottom: -20px;
  color: rgba(255, 255, 255, 0.08);
  font-family: "Oswald", sans-serif;
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  transform: skewX(-10deg);
}

.program-flow-cta h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  padding-bottom: 0;
  color: #ffffff;
  border-bottom: none;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.program-flow-cta p:not(.section-eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
}

.program-flow-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 24px;
  background: #ffffff;
  color: var(--color-primary);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

/* =========================
   課程頁與分頁標題 RWD
========================= */

@media (max-width: 980px) {
  .program-flow-list {
    gap: 40px;
  }

  .program-flow-card,
  .program-flow-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .program-flow-card:nth-child(even) .program-flow-image,
  .program-flow-card:nth-child(even) .program-flow-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .program-flow-card:nth-child(even) .program-flow-image {
    grid-row: 1;
  }

  .program-flow-card:nth-child(even) .program-flow-panel {
    grid-row: 2;
  }

  .program-flow-card:nth-child(odd) .program-flow-panel,
  .program-flow-card:nth-child(even) .program-flow-panel {
    margin: 0;
    padding: 0;
  }

  .program-flow-image {
    min-height: 320px;
  }

  .program-flow-panel {
    min-height: auto;
  }

  .program-flow-panel::before {
    inset: 20px;
  }

  .program-flow-inner {
    padding: 34px 36px;
  }
}

@media (max-width: 700px) {
  .page-hero,
  .courses-nav-only {
    height: 68px;
  }

  .program-flow {
    padding: 12px 16px 58px;
  }

  .subpage-title-block {
    padding: 40px 16px 58px;
  }

  .subpage-title-block::before {
    left: 32%;
    top: 48px;
    width: 420px;
    height: 110px;
    font-size: 5.8rem;
  }

  .program-flow-heading,
  .subpage-title-inner {
    margin-bottom: 30px;
  }

  .program-flow-heading h2,
  .subpage-title-block h1 {
    font-size: 1.8rem;
  }

  .program-flow-heading p:not(.section-eyebrow),
  .subpage-title-block p:not(.section-eyebrow) {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .program-flow-list {
    gap: 28px;
  }

  .program-flow-card {
    min-height: auto;
  }

  .program-flow-image {
    min-height: 240px;
  }

  .program-flow-panel::before {
    inset: 14px;
  }

  .program-flow-panel::after {
    right: 22px;
    top: 18px;
    font-size: 3.1rem;
  }

  .program-flow-inner {
    padding: 30px 24px;
  }

  .program-flow-label,
  .subpage-title-block .section-eyebrow {
    font-size: 0.78rem;
  }

  .program-flow-title {
    gap: 12px;
  }

  .program-flow-title i {
    font-size: 1.55rem;
  }

  .program-flow-title h3 {
    font-size: 1.55rem;
  }

  .program-flow-tag {
    font-size: 0.82rem;
  }

  .program-flow-copy h4 {
    font-size: 0.9rem;
  }

  .program-flow-copy p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .program-flow-cta {
    padding: 0 16px 60px;
  }

  .program-flow-cta-inner {
    padding: 36px 24px;
  }

  .program-flow-cta-btn {
    width: 100%;
  }
}

/* =========================
   課程頁標題統一修正：覆蓋舊版殘留
========================= */

.program-flow::before,
.program-flow-heading,
.program-flow-panel::after {
  content: none !important;
  display: none !important;
}

#courses.program-flow {
  padding-top: 18px;
}

@media (max-width: 700px) {
  #courses.program-flow {
    padding-top: 12px;
  }
}

/* =========================
   About 區塊：JOIN 橫向品牌介紹版
========================= */

.about-join-section,
.about-join-section * {
  box-sizing: border-box;
}

.about-join-section {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 78px 28px 86px;
  overflow: hidden;
  background: #f7f8fb;
}

.about-join-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 58px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.about-join-copy {
  position: relative;
  z-index: 2;
}

.about-join-eyebrow {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-family: "Oswald", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about-join-copy h2 {
  max-width: 560px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
}

.about-join-lead {
  margin: 0 0 16px;
  color: var(--color-primary);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.75;
}

.about-join-copy p:not(.about-join-eyebrow):not(.about-join-lead) {
  margin: 0;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.9;
}

.about-join-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.about-join-point {
  min-height: 92px;
  padding: 16px 14px;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.about-join-point span {
  display: block;
  margin-bottom: 8px;
  color: var(--color-accent);
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.about-join-point p {
  margin: 0;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.45;
}

.about-join-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.about-join-slash {
  position: absolute;
  left: 0;
  top: 50%;
  width: 130px;
  height: 430px;
  transform: translateY(-50%) skewX(-13deg);
  background: var(--color-primary);
  z-index: 1;
}

.about-join-image {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  height: 600px;
  overflow: hidden;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.about-join-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-join-image::after {
  content: "JOIN";
  position: absolute;
  right: 8%;
  bottom: 10%;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  transform: skewX(-10deg);
  pointer-events: none;
}

@media (max-width: 1100px) {
  .about-join-section {
    padding: 62px 22px 74px;
  }

  .about-join-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-join-copy {
    max-width: 760px;
  }

  .about-join-visual {
    min-height: auto;
    justify-content: center;
  }

  .about-join-slash {
    left: 5%;
    width: 86px;
    height: 310px;
  }

  .about-join-image {
    width: 100%;
    max-width: 780px;
    height: 460px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  }
}

@media (max-width: 700px) {
  .about-join-section {
    padding: 46px 16px 58px;
  }

  .about-join-inner {
    gap: 32px;
  }

  .about-join-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .about-join-copy h2 {
    font-size: 1.8rem;
  }

  .about-join-lead {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .about-join-copy p:not(.about-join-eyebrow):not(.about-join-lead) {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .about-join-points {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .about-join-point {
    min-height: auto;
    padding: 14px 16px;
  }

  .about-join-visual {
    min-height: auto;
  }

  .about-join-slash {
    left: 0;
    width: 46px;
    height: 210px;
  }

  .about-join-image {
    height: 330px;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  }

  .about-join-image::after {
    right: 8%;
    bottom: 9%;
    font-size: 3.1rem;
  }
}

/* =========================
   預約資訊頁：全版深色聯絡面板
   接近參考圖方向，但只保留 FB / IG
========================= */

.contact-hero-panel-section,
.contact-hero-panel-section * {
  box-sizing: border-box;
}

.contact-hero-panel-section {
  max-width: 1400px;
  margin: 0 auto 72px;
  padding: 0 28px;
  background: var(--color-bg);
}

.contact-hero-panel {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.7)),
    url("../images/chiayi-tennis-banner.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 47, 79, 0.5), rgba(15, 23, 42, 0.78)),
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 255, 255, 0.12),
      transparent 34%
    );
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  min-height: 760px;
  margin: 0 auto;
  padding: 82px 26px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-panel-eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.8rem, 9vw, 6.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-align: center;
}

.contact-hero-content h2 {
  margin: 0 0 56px;
  padding: 0;
  border: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.04em;
}

.contact-panel-grid {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.contact-panel-item {
  min-height: 220px;
  padding: 34px 30px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-panel-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.72);
}

.contact-panel-item:nth-child(1),
.contact-panel-item:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.contact-panel-item i {
  display: block;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 3rem;
  line-height: 1;
}

.contact-panel-item h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: "Oswald", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.05em;
}

.contact-panel-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.65;
}

.contact-social-item {
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.contact-social-item:hover,
.contact-social-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.contact-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 360px;
  min-height: 78px;
  margin-top: 62px;
  padding: 16px 34px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.contact-panel-cta:hover,
.contact-panel-cta:focus {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.contact-panel-cta i {
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .contact-hero-panel {
    min-height: 720px;
  }

  .contact-hero-content {
    min-height: 720px;
  }

  .contact-panel-grid {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .contact-hero-panel-section {
    margin-bottom: 54px;
    padding: 0;
  }

  .contact-hero-panel {
    min-height: 760px;
  }

  .contact-hero-content {
    min-height: 760px;
    padding: 56px 22px 60px;
  }

  .contact-panel-eyebrow {
    font-size: 4.1rem;
  }

  .contact-hero-content h2 {
    margin-bottom: 42px;
    font-size: 2.25rem;
  }

  .contact-panel-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .contact-panel-item,
  .contact-panel-item:nth-child(odd),
  .contact-panel-item:nth-child(1),
  .contact-panel-item:nth-child(2) {
    min-height: auto;
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  }

  .contact-panel-item:last-child {
    border-bottom: 0;
  }

  .contact-panel-item i {
    margin-bottom: 14px;
    font-size: 2.55rem;
  }

  .contact-panel-item h3 {
    font-size: 1.6rem;
  }

  .contact-panel-item p {
    font-size: 0.96rem;
  }

  .contact-panel-cta {
    width: 100%;
    min-width: 0;
    min-height: 66px;
    margin-top: 42px;
    font-size: 1.18rem;
  }
}

/* =========================
   預約資訊頁調整版 v2：
   縮小佔比＋四宮格白色外框＋右上/右下交換
========================= */

.contact-hero-panel-section {
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 0 28px;
}

.contact-hero-panel {
  min-height: 680px;
}

.contact-hero-content {
  max-width: 860px;
  min-height: 680px;
  padding: 66px 24px 58px;
}

.contact-panel-eyebrow {
  font-size: clamp(3.4rem, 7.5vw, 5.5rem);
}

.contact-hero-content h2 {
  margin-bottom: 42px;
  font-size: clamp(1.9rem, 4.2vw, 2.65rem);
}

.contact-panel-grid {
  max-width: 680px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: rgba(15, 23, 42, 0.1);
}

.contact-panel-item {
  min-height: 190px;
  padding: 28px 24px;
}

.contact-panel-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.78);
}

.contact-panel-item:nth-child(1),
.contact-panel-item:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
}

.contact-panel-item i {
  margin-bottom: 15px;
  font-size: 2.55rem;
}

.contact-panel-item h3 {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2.5vw, 1.72rem);
}

.contact-panel-item p {
  font-size: 0.95rem;
  line-height: 1.62;
}

.contact-panel-cta {
  min-width: 300px;
  min-height: 64px;
  margin-top: 46px;
  font-size: 1.22rem;
}

@media (max-width: 700px) {
  .contact-hero-panel-section {
    max-width: 100%;
    margin-bottom: 54px;
    padding: 0 16px;
  }

  .contact-hero-panel {
    min-height: auto;
  }

  .contact-hero-content {
    min-height: auto;
    padding: 50px 18px 48px;
  }

  .contact-panel-eyebrow {
    font-size: 3.6rem;
  }

  .contact-hero-content h2 {
    margin-bottom: 32px;
    font-size: 2rem;
  }

  .contact-panel-grid {
    max-width: 390px;
    border: 2px solid rgba(255, 255, 255, 0.86);
  }

  .contact-panel-item,
  .contact-panel-item:nth-child(odd),
  .contact-panel-item:nth-child(1),
  .contact-panel-item:nth-child(2) {
    min-height: auto;
    padding: 24px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  }

  .contact-panel-item:last-child {
    border-bottom: 0;
  }

  .contact-panel-cta {
    min-height: 60px;
    margin-top: 34px;
    font-size: 1.08rem;
  }
}

/* =========================
   預約資訊頁：目前定稿版
   單一版本，已整合舊版全版深色面板與 v2 覆蓋碼
========================= */

.contact-hero-panel-section,
.contact-hero-panel-section * {
  box-sizing: border-box;
}

.contact-hero-panel-section {
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 0 28px;
  background: var(--color-bg);
}

.contact-hero-panel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.7)),
    url("../images/chiayi-tennis-banner.jpg");
  background-size: cover;
  background-position: center;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(30, 47, 79, 0.5), rgba(15, 23, 42, 0.78)),
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 255, 255, 0.12),
      transparent 34%
    );
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  min-height: 680px;
  margin: 0 auto;
  padding: 66px 24px 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-panel-eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.4rem, 7.5vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-align: center;
}

.contact-hero-content h2 {
  margin: 0 0 42px;
  padding: 0;
  border: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 4.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.04em;
}

.contact-panel-grid {
  width: 100%;
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: rgba(15, 23, 42, 0.1);
}

.contact-panel-item {
  min-height: 190px;
  padding: 28px 24px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-panel-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.78);
}

.contact-panel-item:nth-child(1),
.contact-panel-item:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
}

.contact-panel-item i {
  display: block;
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 2.55rem;
  line-height: 1;
}

.contact-panel-item h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: "Oswald", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.72rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.05em;
}

.contact-panel-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.62;
}

.contact-social-item {
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.contact-social-item:hover,
.contact-social-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.contact-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 300px;
  min-height: 64px;
  margin-top: 46px;
  padding: 16px 34px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.contact-panel-cta:hover,
.contact-panel-cta:focus {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.contact-panel-cta i {
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .contact-hero-panel-section {
    max-width: 100%;
    margin-bottom: 54px;
    padding: 0 16px;
  }

  .contact-hero-panel {
    min-height: auto;
  }

  .contact-hero-content {
    min-height: auto;
    padding: 50px 18px 48px;
  }

  .contact-panel-eyebrow {
    font-size: 3.6rem;
  }

  .contact-hero-content h2 {
    margin-bottom: 32px;
    font-size: 2rem;
  }

  .contact-panel-grid {
    grid-template-columns: 1fr;
    max-width: 390px;
  }

  .contact-panel-item,
  .contact-panel-item:nth-child(odd),
  .contact-panel-item:nth-child(1),
  .contact-panel-item:nth-child(2) {
    min-height: auto;
    padding: 24px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  }

  .contact-panel-item:last-child {
    border-bottom: 0;
  }

  .contact-panel-cta {
    min-height: 60px;
    margin-top: 34px;
    font-size: 1.08rem;
  }
}

/* =========================
   教練團隊頁：白底精簡 Hover 卡片版
   方向：與其他分頁一致的淺底、深靛色、金色點綴，照片縮小
========================= */

.coach-light-section,
.coach-light-section * {
  box-sizing: border-box;
}

.coach-light-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 28px 86px;
  background: var(--color-bg);
  overflow: hidden;
}

.coach-light-intro {
  max-width: 1080px;
  margin: 0 auto 34px;
}

.coach-light-intro h2 {
  max-width: 680px;
  margin: 0 0 14px;
  padding-bottom: 14px;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  font-weight: 900;
  line-height: 1.25;
}

.coach-light-intro p:not(.section-eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

.coach-light-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.coach-light-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.coach-light-photo {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #e5eaf1;
}

.coach-light-photo::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 32%;
  background: var(--color-accent);
  z-index: 4;
}

.coach-light-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.38s ease,
    filter 0.38s ease;
}

.coach-light-role {
  position: absolute;
  right: 14px;
  top: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(30, 47, 79, 0.88);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.coach-light-role span {
  color: #e9c47f;
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
}

.coach-light-role strong {
  font-size: 0.92rem;
}

.coach-light-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    180deg,
    rgba(30, 47, 79, 0.12),
    rgba(30, 47, 79, 0.96)
  );
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.coach-light-hover-title {
  margin: 0 0 14px;
  color: #e9c47f;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.coach-light-hover ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.coach-light-hover li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 17px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.coach-light-hover li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: #e9c47f;
  font-weight: 900;
}

.coach-light-card:hover .coach-light-photo img,
.coach-light-card:focus-within .coach-light-photo img {
  transform: scale(1.045);
  filter: brightness(0.74);
}

.coach-light-card:hover .coach-light-hover,
.coach-light-card:focus-within .coach-light-hover {
  opacity: 1;
  transform: translateY(0);
}

.coach-light-info {
  position: relative;
  padding: 24px 26px 26px;
  background: #ffffff;
}

.coach-light-number {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.coach-light-info h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 900;
  line-height: 1.2;
}

.coach-light-info h3 span {
  font-size: 0.9em;
}

.coach-light-info p:not(.coach-light-number) {
  margin: 0;
  color: var(--color-text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.7;
}

.coach-light-note {
  max-width: 980px;
  margin: 24px auto 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 980px) {
  .coach-light-section {
    padding: 24px 22px 72px;
  }

  .coach-light-grid {
    gap: 24px;
  }

  .coach-light-photo {
    height: 390px;
  }

  .coach-light-hover {
    padding: 26px 22px;
  }

  .coach-light-hover li {
    font-size: 0.88rem;
  }
}

@media (max-width: 760px) {
  .coach-light-section {
    padding: 20px 16px 60px;
  }

  .coach-light-intro {
    margin-bottom: 24px;
  }

  .coach-light-intro h2 {
    font-size: 1.65rem;
  }

  .coach-light-intro p:not(.section-eyebrow) {
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .coach-light-grid {
    grid-template-columns: 1fr;
    max-width: 430px;
  }

  .coach-light-photo {
    height: 390px;
  }

  .coach-light-hover {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    padding: 22px 20px 24px;
    background: var(--color-primary);
  }

  .coach-light-card:hover .coach-light-photo img,
  .coach-light-card:focus-within .coach-light-photo img {
    transform: none;
    filter: none;
  }

  .coach-light-info {
    padding: 22px 22px 24px;
  }

  .coach-light-note {
    display: none;
  }
}

/* =========================
   FAQ 頁：乾淨單欄手風琴版
   修正 FAQ 版面跑掉問題；不使用照片或深色背景
========================= */

.faq-clean-section,
.faq-clean-section * {
  box-sizing: border-box;
}

.faq-clean-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px 88px;
  background: var(--color-bg);
}

.subpage-title-block + .faq-clean-section {
  padding-top: 0;
}

.faq-clean-inner {
  max-width: 980px;
  margin: 0 auto;
}

.faq-clean-panel {
  padding: 42px 48px;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.faq-clean-group + .faq-clean-group {
  margin-top: 34px;
}

.faq-clean-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.faq-clean-heading span {
  color: var(--color-accent);
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.faq-clean-heading h2 {
  margin: 0;
  padding: 0;
  border-bottom: none;
  color: var(--color-primary);
  font-size: clamp(1.38rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.25;
}

.faq-clean-list {
  display: grid;
  gap: 0;
}

.faq-clean-item {
  border-bottom: 1px solid rgba(30, 47, 79, 0.12);
}

.faq-clean-item:first-child {
  border-top: 0;
}

.faq-clean-item summary {
  min-height: 64px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}

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

.faq-clean-question {
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.45;
}

.faq-clean-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(30, 47, 79, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-clean-icon i {
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}

.faq-clean-item[open] .faq-clean-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.faq-clean-item[open] .faq-clean-icon i {
  transform: rotate(180deg);
}

.faq-clean-answer {
  padding: 0 52px 20px 0;
}

.faq-clean-answer p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.78;
}

.faq-clean-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 28px 32px;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.1);
  border-left: 5px solid var(--color-accent);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.faq-clean-contact h2 {
  margin: 0 0 8px;
  padding: 0;
  border-bottom: none;
  color: var(--color-primary);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 900;
  line-height: 1.25;
}

.faq-clean-contact p:not(.section-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--color-text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.72;
}

.faq-clean-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.faq-clean-actions a {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(30, 47, 79, 0.18);
  color: var(--color-primary);
  background: #f7f8fb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.96rem;
  font-weight: 900;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.faq-clean-actions a:hover,
.faq-clean-actions a:focus {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* 防止舊 faq-row markup 在快取或部分頁面中變成瀏覽器預設 details 樣式 */
.faq-row-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px 88px;
  background: var(--color-bg);
}

@media (max-width: 760px) {
  .faq-clean-section {
    padding: 0 16px 58px;
  }

  .faq-clean-panel {
    padding: 28px 22px;
  }

  .faq-clean-group + .faq-clean-group {
    margin-top: 28px;
  }

  .faq-clean-heading {
    gap: 10px;
  }

  .faq-clean-heading h2 {
    font-size: 1.42rem;
  }

  .faq-clean-item summary {
    min-height: 58px;
    padding: 16px 0;
  }

  .faq-clean-question {
    font-size: 0.98rem;
  }

  .faq-clean-answer {
    padding: 0 0 18px;
  }

  .faq-clean-answer p {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .faq-clean-contact {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }

  .faq-clean-actions {
    justify-content: stretch;
  }

  .faq-clean-actions a {
    flex: 1 1 100%;
  }
}

/* =========================
   FAQ 頁：faq-row 相容層
   若舊版 faq.html 仍使用 faq-row-* class，也會維持乾淨橫條樣式
========================= */

.faq-row-section,
.faq-row-section * {
  box-sizing: border-box;
}

.faq-row-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px 88px;
  background: var(--color-bg);
}

.faq-row-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 48px;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.faq-row-group + .faq-row-group {
  margin-top: 34px;
}

.faq-row-group-heading {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.faq-row-group-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--color-primary);
  font-size: clamp(1.38rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.25;
}

.faq-row-list {
  display: grid;
}

.faq-row-item {
  border-bottom: 1px solid rgba(30, 47, 79, 0.12);
}

.faq-row-item summary {
  min-height: 64px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}

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

.faq-row-question {
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.45;
}

.faq-row-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(30, 47, 79, 0.14);
  border-radius: 999px;
  color: var(--color-accent);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-row-icon i {
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}

.faq-row-item[open] .faq-row-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.faq-row-item[open] .faq-row-icon i {
  transform: rotate(180deg);
}

.faq-row-answer {
  padding: 0 0 20px;
  background: #ffffff;
}

.faq-row-answer p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.78;
}

@media (max-width: 760px) {
  .faq-row-section {
    padding: 0 16px 58px;
  }

  .faq-row-inner {
    padding: 28px 22px;
  }

  .faq-row-group + .faq-row-group {
    margin-top: 28px;
  }

  .faq-row-item summary {
    min-height: 58px;
    padding: 16px 0;
  }

  .faq-row-question {
    font-size: 0.98rem;
  }

  .faq-row-answer p {
    font-size: 0.94rem;
    line-height: 1.72;
  }
}

/* =========================
   課程照片頁：自然比例定稿版
   重點：照片區比例更自然；影片維持桌機橫排三格
========================= */

.gallery-natural-section,
.gallery-natural-video-section,
.gallery-natural-reels-section,
.gallery-natural-section *,
.gallery-natural-video-section *,
.gallery-natural-reels-section * {
  box-sizing: border-box;
}

.gallery-natural-section,
.gallery-natural-video-section,
.gallery-natural-reels-section {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--color-bg);
}

.gallery-natural-section {
  padding: 22px 28px 48px;
}

.gallery-natural-inner,
.gallery-natural-video-inner,
.gallery-natural-reels-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.gallery-natural-inner {
  position: relative;
  padding: 42px;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.gallery-natural-inner::before {
  content: "GALLERY";
  position: absolute;
  right: 28px;
  top: 18px;
  color: rgba(30, 47, 79, 0.04);
  font-family: "Oswald", sans-serif;
  font-size: clamp(4.6rem, 12vw, 8.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.gallery-natural-head,
.gallery-natural-video-head,
.gallery-natural-reels-head {
  position: relative;
  z-index: 2;
  margin-bottom: 26px;
}

.gallery-natural-head h2,
.gallery-natural-video-head h2,
.gallery-natural-reels-head h2 {
  max-width: 620px;
  margin: 0;
  padding-bottom: 14px;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 900;
  line-height: 1.25;
}

.gallery-natural-head p:not(.section-eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.78;
}

.gallery-natural-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: clamp(360px, 42vw, 500px);
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(30, 47, 79, 0.98),
    rgba(15, 23, 42, 0.98)
  );
}

.gallery-natural-showcase::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.gallery-natural-main,
.gallery-natural-side figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.gallery-natural-main {
  grid-row: 1 / 3;
  min-height: 0;
}

.gallery-natural-side {
  display: contents;
}

.gallery-natural-side figure {
  min-height: 0;
}

.gallery-natural-main img,
.gallery-natural-side img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.02);
  transition: transform 0.34s ease;
}

.gallery-natural-main img {
  object-position: center 44%;
}

.gallery-natural-side figure:first-child img {
  object-position: center 42%;
}

.gallery-natural-side figure:last-child img {
  object-position: center 52%;
}

.gallery-natural-main:hover img,
.gallery-natural-side figure:hover img {
  transform: scale(1.035);
}

.gallery-natural-main::after,
.gallery-natural-side figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(8, 15, 31, 0.48));
  pointer-events: none;
}

.gallery-natural-main figcaption,
.gallery-natural-side figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.gallery-natural-main figcaption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.gallery-natural-main figcaption span {
  color: #e9c47f;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.gallery-natural-marquee {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  overflow: hidden;
  padding: 12px 0;
  background: #f7f8fb;
  border: 1px solid rgba(30, 47, 79, 0.08);
}

.gallery-natural-marquee::before,
.gallery-natural-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 3;
  width: 70px;
  height: 100%;
  pointer-events: none;
}

.gallery-natural-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #f7f8fb, transparent);
}

.gallery-natural-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #f7f8fb, transparent);
}

.gallery-natural-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0 12px;
  animation: join-gallery-natural-marquee 34s linear infinite;
}

.gallery-natural-marquee:hover .gallery-natural-track {
  animation-play-state: paused;
}

.gallery-natural-track img {
  flex: 0 0 auto;
  display: block;
  width: 150px;
  height: 92px;
  object-fit: cover;
  filter: saturate(0.95);
}

@keyframes join-gallery-natural-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

.gallery-natural-video-section {
  padding: 8px 28px 54px;
}

.gallery-natural-video-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.gallery-natural-video-card {
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.065);
  overflow: hidden;
}

.gallery-natural-video-frame {
  aspect-ratio: 9 / 16;
  margin: 10px 10px 0;
  overflow: hidden;
  background: #0f172a;
  position: relative;
}

.gallery-natural-video-frame::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  width: 4px;
  height: 30%;
  background: var(--color-accent);
  pointer-events: none;
}

.gallery-natural-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
}

.gallery-natural-video-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 16px 18px 18px;
}

.gallery-natural-video-caption span {
  color: var(--color-accent);
  font-family: "Oswald", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.gallery-natural-video-caption h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.38;
}

.gallery-natural-reels-section {
  padding: 2px 28px 86px;
}

.gallery-natural-reels-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-natural-reel-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-natural-reel-card:hover,
.gallery-natural-reel-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
}

.gallery-natural-reel-cover {
  position: relative;
  aspect-ratio: 9 / 16;
  margin: 10px 10px 0;
  overflow: hidden;
  background: #0f172a;
}

.gallery-natural-reel-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.44));
  pointer-events: none;
}

.gallery-natural-reel-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-natural-reel-cover span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.46);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-natural-reel-cover i {
  font-size: 1.25rem;
}

.gallery-natural-reel-card h3 {
  margin: 0;
  min-height: 92px;
  padding: 16px 18px 18px;
  color: var(--color-primary);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .gallery-natural-section,
  .gallery-natural-video-section,
  .gallery-natural-reels-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .gallery-natural-inner {
    padding: 36px 30px;
  }

  .gallery-natural-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: 1.1fr 0.72fr 0.72fr;
    height: auto;
  }

  .gallery-natural-main {
    grid-row: auto;
    min-height: 360px;
  }

  .gallery-natural-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-natural-side figure {
    min-height: 220px;
  }

  .gallery-natural-video-row,
  .gallery-natural-reels-row {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .gallery-natural-section {
    padding: 18px 16px 42px;
  }

  .gallery-natural-inner {
    padding: 30px 20px 28px;
  }

  .gallery-natural-inner::before {
    right: 8px;
    top: 28px;
    font-size: 4.7rem;
  }

  .gallery-natural-head h2,
  .gallery-natural-video-head h2,
  .gallery-natural-reels-head h2 {
    font-size: 1.7rem;
  }

  .gallery-natural-head p:not(.section-eyebrow) {
    font-size: 0.94rem;
    line-height: 1.76;
  }

  .gallery-natural-showcase {
    padding: 12px;
    gap: 12px;
  }

  .gallery-natural-showcase::before {
    inset: 12px;
  }

  .gallery-natural-main {
    min-height: 280px;
  }

  .gallery-natural-side {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-natural-side figure {
    min-height: 190px;
  }

  .gallery-natural-track img {
    width: 128px;
    height: 80px;
  }

  .gallery-natural-video-section {
    padding: 8px 16px 44px;
  }

  .gallery-natural-video-row,
  .gallery-natural-reels-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .gallery-natural-video-card,
  .gallery-natural-reel-card {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: center;
  }

  .gallery-natural-reels-section {
    padding: 0 16px 58px;
  }

  .gallery-natural-reel-card h3 {
    min-height: auto;
  }
}

/* =========================
   FAQ 頁：前端精修版
   保留乾淨單欄，增加分類快速導覽、縮窄閱讀寬度、強化分類層級
========================= */

.faq-clean-section,
.faq-clean-section * {
  box-sizing: border-box;
}

.faq-clean-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px 88px;
  background: var(--color-bg);
}

.subpage-title-block + .faq-clean-section {
  padding-top: 0;
}

.faq-clean-inner {
  max-width: 900px;
  margin: 0 auto;
}

.faq-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
}

.faq-quick-nav a {
  min-height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.12);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.faq-quick-nav a:hover,
.faq-quick-nav a:focus {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.faq-clean-panel {
  padding: 40px 44px;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.faq-clean-group {
  scroll-margin-top: 108px;
}

.faq-clean-group + .faq-clean-group {
  margin-top: 36px;
}

.faq-clean-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.faq-clean-heading span {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 32px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--color-accent);
  font-family: "Oswald", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.faq-clean-heading h2 {
  margin: 0;
  padding: 0;
  border-bottom: none;
  color: var(--color-primary);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  line-height: 1.25;
}

.faq-clean-list {
  display: grid;
  gap: 0;
}

.faq-clean-item {
  border-bottom: 1px solid rgba(30, 47, 79, 0.12);
}

.faq-clean-item summary {
  min-height: 66px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}

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

.faq-clean-question {
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.45;
}

.faq-clean-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(30, 47, 79, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.faq-clean-icon i {
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}

.faq-clean-item[open] .faq-clean-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.faq-clean-item[open] .faq-clean-icon i {
  transform: rotate(180deg);
}

.faq-clean-answer {
  padding: 0 52px 22px 0;
}

.faq-clean-answer p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.78;
}

.faq-clean-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding: 28px 32px;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.1);
  border-left: 5px solid var(--color-accent);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.faq-clean-contact h2 {
  margin: 0 0 8px;
  padding: 0;
  border-bottom: none;
  color: var(--color-primary);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 900;
  line-height: 1.25;
}

.faq-clean-contact p:not(.section-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--color-text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.72;
}

.faq-clean-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.faq-clean-actions a {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(30, 47, 79, 0.18);
  color: var(--color-primary);
  background: #f7f8fb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.96rem;
  font-weight: 900;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.faq-clean-actions a:hover,
.faq-clean-actions a:focus {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .faq-clean-section {
    padding: 0 16px 58px;
  }

  .faq-clean-inner {
    max-width: 100%;
  }

  .faq-quick-nav {
    gap: 8px;
    margin-bottom: 14px;
  }

  .faq-quick-nav a {
    flex: 1 1 calc(50% - 8px);
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .faq-clean-panel {
    padding: 28px 22px;
  }

  .faq-clean-group + .faq-clean-group {
    margin-top: 30px;
  }

  .faq-clean-heading {
    gap: 10px;
  }

  .faq-clean-heading span {
    min-width: 38px;
    min-height: 30px;
    font-size: 0.84rem;
  }

  .faq-clean-heading h2 {
    font-size: 1.4rem;
  }

  .faq-clean-item summary {
    min-height: 58px;
    padding: 16px 0;
  }

  .faq-clean-question {
    font-size: 0.98rem;
  }

  .faq-clean-answer {
    padding: 0 0 18px;
  }

  .faq-clean-answer p {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .faq-clean-contact {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }

  .faq-clean-actions {
    justify-content: stretch;
  }

  .faq-clean-actions a {
    flex: 1 1 100%;
  }
}

/* =========================
   Gallery 檢查修正：移除課堂照片卡片內層 GALLERY 浮水印
   保留頁面最上方分頁標題的大 GALLERY
========================= */

.gallery-natural-inner::before {
  content: none !important;
  display: none !important;
}

/* =========================
   FAQ 檢查修正：分類錨點固定導覽列避讓
========================= */

.faq-clean-group {
  scroll-margin-top: 108px;
}

/* =========================
   Gallery 微調：課堂照片下方跑馬燈加大版
========================= */

.gallery-natural-marquee {
  margin-top: 18px;
  padding: 16px 0;
}

.gallery-natural-track {
  gap: 14px;
  padding: 0 14px;
  animation-duration: 40s;
}

.gallery-natural-track img {
  width: 220px;
  height: 136px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .gallery-natural-marquee {
    padding: 14px 0;
  }

  .gallery-natural-track img {
    width: 190px;
    height: 118px;
  }
}

@media (max-width: 760px) {
  .gallery-natural-marquee {
    margin-top: 14px;
    padding: 12px 0;
  }

  .gallery-natural-track {
    gap: 10px;
    padding: 0 10px;
    animation-duration: 34s;
  }

  .gallery-natural-track img {
    width: 168px;
    height: 104px;
  }
}

/* =========================
   課程介紹頁：統一照片比例＋固定文字卡疊層版
   目的：
   1. 四張課程照片統一長寬比例與尺寸邏輯
   2. 四張課程介紹文字卡統一視覺尺寸
   3. 保留原本左右交錯與一前一後的疊層感
========================= */

.program-flow-list {
  gap: 76px;
}

.program-flow-card,
.program-flow-card:nth-child(even) {
  --course-photo-width: clamp(420px, 42vw, 520px);
  --course-panel-width: clamp(540px, 54vw, 650px);
  --course-panel-height: 382px;

  display: grid;
  align-items: center;
  min-height: 430px;
}

.program-flow-card {
  grid-template-columns: var(--course-photo-width) minmax(0, 1fr);
}

.program-flow-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) var(--course-photo-width);
}

.program-flow-card:nth-child(odd) .program-flow-image {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.program-flow-card:nth-child(odd) .program-flow-panel {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.program-flow-card:nth-child(even) .program-flow-image {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.program-flow-card:nth-child(even) .program-flow-panel {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.program-flow-image {
  width: var(--course-photo-width);
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
  background-size: cover;
  background-position: center;
}

.program-flow-panel {
  width: var(--course-panel-width);
  height: var(--course-panel-height);
  min-height: 0;
  display: flex;
  align-items: center;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.program-flow-card:nth-child(odd) .program-flow-panel {
  margin-left: -56px;
  padding: 0;
}

.program-flow-card:nth-child(even) .program-flow-panel {
  margin-right: -56px;
  padding: 0;
}

.program-flow-inner {
  width: 100%;
  padding: 28px 38px;
}

.program-flow-panel::before {
  inset: 22px;
}

.program-flow-label {
  margin-bottom: 10px;
}

.program-flow-title {
  margin-bottom: 12px;
}

.program-flow-title i {
  font-size: 1.8rem;
}

.program-flow-number {
  font-size: 1.05rem;
}

.program-flow-title h3 {
  font-size: clamp(1.45rem, 2.7vw, 2rem);
}

.program-flow-tag {
  margin-bottom: 14px;
  padding: 5px 11px;
  font-size: 0.86rem;
}

.program-flow-copy {
  max-width: none;
}

.program-flow-copy h4 {
  margin: 12px 0 6px;
  padding: 3px 9px;
  font-size: 0.88rem;
}

.program-flow-copy p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.62;
}

.program-flow-copy p:last-child {
  margin-bottom: 0;
}

@media (min-width: 981px) {
  .program-flow-card:nth-child(odd) .program-flow-panel,
  .program-flow-card:nth-child(even) .program-flow-panel {
    transform: translateY(14px);
  }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .program-flow-card,
  .program-flow-card:nth-child(even) {
    --course-photo-width: 420px;
    --course-panel-width: 560px;
    --course-panel-height: 392px;
  }

  .program-flow-inner {
    padding: 28px 34px;
  }

  .program-flow-copy p {
    font-size: 0.88rem;
    line-height: 1.58;
  }
}

@media (max-width: 980px) {
  .program-flow-list {
    gap: 40px;
  }

  .program-flow-card,
  .program-flow-card:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .program-flow-card:nth-child(odd) .program-flow-image,
  .program-flow-card:nth-child(even) .program-flow-image {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
  }

  .program-flow-card:nth-child(odd) .program-flow-panel,
  .program-flow-card:nth-child(even) .program-flow-panel {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    margin: 0;
    transform: none;
  }

  .program-flow-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .program-flow-panel {
    width: 100%;
    height: auto;
    min-height: auto;
  }

  .program-flow-inner {
    padding: 34px 36px;
  }

  .program-flow-panel::before {
    inset: 20px;
  }

  .program-flow-copy p {
    font-size: 0.94rem;
    line-height: 1.68;
  }
}

@media (max-width: 700px) {
  .program-flow-list {
    gap: 30px;
  }

  .program-flow-image {
    aspect-ratio: 4 / 3;
  }

  .program-flow-inner {
    padding: 30px 24px;
  }

  .program-flow-panel::before {
    inset: 14px;
  }

  .program-flow-copy h4 {
    font-size: 0.9rem;
  }

  .program-flow-copy p {
    font-size: 0.92rem;
    line-height: 1.7;
  }
}

/* =========================
   首頁：得獎紀錄 Awards Slider
   修正版：卡片、照片、文字區統一尺寸
========================= */

.awards-section,
.awards-section * {
  box-sizing: border-box;
}

.awards-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 28px 76px;
  overflow: hidden;
  background: #f7f8fb;
}

.awards-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.awards-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.awards-heading h2 {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
}

.awards-heading p:not(.section-eyebrow) {
  margin: 0;
  color: var(--color-text);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.82;
}

.awards-slider-wrap {
  position: relative;
}

.awards-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 47, 79, 0.35) transparent;
}

.awards-track::-webkit-scrollbar {
  height: 8px;
}

.awards-track::-webkit-scrollbar-track {
  background: transparent;
}

.awards-track::-webkit-scrollbar-thumb {
  background: rgba(30, 47, 79, 0.28);
  border-radius: 999px;
}

/* 卡片統一寬度：第一張不再特別放大 */
.award-card,
.award-card-featured {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(30, 47, 79, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.award-card:hover,
.award-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

/* 照片區統一高度 */
.award-image {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #e5eaf1;
}

.award-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.46));
  pointer-events: none;
}

.award-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.award-card:hover .award-image img,
.award-card:focus-within .award-image img {
  transform: scale(1.035);
}

/* 115 混雙冠軍雙圖卡 */
.award-image-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.award-image-duo img {
  min-width: 0;
}

/* 文字區維持同一視覺高度 */
.award-info {
  min-height: 164px;
  padding: 22px 24px 24px;
  border-top: 4px solid var(--color-accent);
}

.award-year {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--color-accent);
  font-family: "Oswald", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.award-info h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.35;
}

.award-info p {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
}

.awards-arrow {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(30, 47, 79, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.awards-arrow:hover,
.awards-arrow:focus {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.awards-arrow-prev {
  left: -20px;
}

.awards-arrow-next {
  right: -20px;
}

@media (max-width: 760px) {
  .awards-section {
    padding: 20px 16px 58px;
  }

  .awards-heading {
    margin-bottom: 22px;
  }

  .awards-heading h2 {
    font-size: 1.8rem;
  }

  .awards-heading p:not(.section-eyebrow) {
    font-size: 0.95rem;
    line-height: 1.74;
  }

  .awards-track {
    gap: 16px;
    padding-bottom: 14px;
  }

  .award-card,
  .award-card-featured {
    flex-basis: min(82vw, 330px);
  }

  .award-image {
    height: 240px;
  }

  .award-info {
    min-height: 150px;
    padding: 20px 20px 22px;
  }

  .award-info h3 {
    font-size: 1.15rem;
  }

  .award-info p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .awards-arrow {
    display: none;
  }
}

/* =========================
   全站固定社群按鈕
   半透明輕量版
========================= */

.floating-socials {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-socials a {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(30, 47, 79, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.18rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.floating-socials a:hover,
.floating-socials a:focus {
  background: rgba(200, 155, 90, 0.88);
  border-color: rgba(200, 155, 90, 0.9);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

@media (max-width: 700px) {
  .floating-socials {
    right: 16px;
    bottom: 74px;
    gap: 8px;
  }

  .floating-socials a {
    width: 44px;
    height: 44px;
    font-size: 1.08rem;
    background: rgba(255, 255, 255, 0.78);
  }
}

/* =========================
   Gallery RWD 修正版 v1
   修正項目：
   1. 手機版分頁背景英文字不再被右側裁切
   2. 手機版課堂照片區改為橫向滑動卡片，避免照片比例被拉得很怪
   3. 手機版課堂照片白色外框與深色照片容器縮小，降低壓迫感
========================= */

@media (max-width: 760px) {
  .subpage-title-block {
    padding: 38px 18px 48px;
    overflow: hidden;
  }

  .subpage-title-block::before {
    left: auto;
    right: 12px;
    top: 70px;
    width: auto;
    height: auto;
    overflow: visible;
    font-size: clamp(3.6rem, 15vw, 4.8rem);
    line-height: 0.9;
    letter-spacing: 0.01em;
    text-align: right;
    transform: none;
  }

  .subpage-title-inner {
    max-width: 100%;
    margin-bottom: 0;
  }

  .subpage-title-block h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.8vw, 2.45rem);
    line-height: 1.22;
  }

  .subpage-title-block p:not(.section-eyebrow) {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .gallery-natural-section {
    padding: 10px 16px 38px;
  }

  .gallery-natural-inner {
    padding: 28px 18px 24px;
    overflow: visible;
  }

  .gallery-natural-head {
    margin-bottom: 18px;
  }

  .gallery-natural-head h2,
  .gallery-natural-video-head h2,
  .gallery-natural-reels-head h2 {
    font-size: clamp(1.65rem, 7.2vw, 2rem);
    line-height: 1.25;
  }

  .gallery-natural-showcase {
    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 12px;
    height: auto;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-natural-showcase::before {
    inset: 12px;
  }

  .gallery-natural-main,
  .gallery-natural-side figure {
    flex: 0 0 min(78vw, 310px);
    width: min(78vw, 310px);
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
  }

  .gallery-natural-side {
    display: contents;
  }

  .gallery-natural-main img,
  .gallery-natural-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-natural-main figcaption,
  .gallery-natural-side figcaption {
    left: 14px;
    bottom: 12px;
    font-size: 0.86rem;
  }

  .gallery-natural-main figcaption {
    padding: 7px 10px;
  }

  .gallery-natural-marquee {
    margin-top: 12px;
  }

  .gallery-natural-track img {
    width: 150px;
    height: 94px;
  }
}

@media (max-width: 430px) {
  .subpage-title-block::before {
    right: 8px;
    top: 74px;
    font-size: clamp(3.1rem, 14vw, 4.05rem);
  }

  .subpage-title-block h1 {
    font-size: clamp(1.72rem, 8.2vw, 2.15rem);
  }

  .gallery-natural-main,
  .gallery-natural-side figure {
    flex-basis: min(76vw, 292px);
    width: min(76vw, 292px);
  }
}
/* =========================
   Gallery 桌機與手機微調版
   目的：
   1. 三張主照片區塊縮小一點
   2. 下方跑馬燈照片放大一點
   3. 保留原本自然比例與深藍框設計
========================= */

/* 桌機版：縮小三張主照片整體尺寸 */
.gallery-natural-showcase {
  max-width: 1040px;
  height: clamp(320px, 34vw, 430px);
  margin: 0 auto;
}

/* 桌機版：白色外框不要太高，讓區塊更緊湊 */
.gallery-natural-inner {
  padding: 42px 46px 38px;
}

/* 桌機版：下方跑馬燈加大 */
.gallery-natural-marquee {
  max-width: 1040px;
  margin: 20px auto 0;
  padding: 18px 0;
}

.gallery-natural-track {
  gap: 16px;
  padding: 0 16px;
  animation-duration: 44s;
}

.gallery-natural-track img {
  width: 260px;
  height: 160px;
  object-fit: cover;
}

/* 平板版：主照片不要太高，跑馬燈仍保留存在感 */
@media (max-width: 980px) {
  .gallery-natural-showcase {
    max-width: 100%;
    height: auto;
  }

  .gallery-natural-main {
    min-height: 300px;
  }

  .gallery-natural-side figure {
    min-height: 190px;
  }

  .gallery-natural-marquee {
    max-width: 100%;
    padding: 16px 0;
  }

  .gallery-natural-track img {
    width: 220px;
    height: 136px;
  }
}

/* 手機版：主照片維持滑動卡，跑馬燈再稍微加大 */
@media (max-width: 760px) {
  .gallery-natural-inner {
    padding: 28px 18px 24px;
  }

  .gallery-natural-showcase {
    display: flex;
    gap: 12px;
    height: auto;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-natural-main,
  .gallery-natural-side figure {
    flex: 0 0 min(76vw, 292px);
    width: min(76vw, 292px);
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
  }

  .gallery-natural-side {
    display: contents;
  }

  .gallery-natural-marquee {
    margin-top: 14px;
    padding: 14px 0;
  }

  .gallery-natural-track {
    gap: 12px;
    padding: 0 12px;
    animation-duration: 36s;
  }

  .gallery-natural-track img {
    width: 178px;
    height: 110px;
  }
}

/* 小手機：避免跑馬燈太大造成壓迫 */
@media (max-width: 430px) {
  .gallery-natural-main,
  .gallery-natural-side figure {
    flex-basis: min(74vw, 280px);
    width: min(74vw, 280px);
  }

  .gallery-natural-track img {
    width: 164px;
    height: 102px;
  }
}
