.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 136px;
  padding-bottom: 72px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: var(--space-xl);
  align-items: center;
  justify-content: start;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(24px, 5vw, 46px);
  margin-left: clamp(-46px, -3vw, -24px);
  isolation: isolate;
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(231, 224, 211, 0.96) 0%, rgba(231, 224, 211, 0.74) 48%, rgba(231, 224, 211, 0.42) 100%),
    radial-gradient(circle at 12% 78%, rgba(109, 191, 103, 0.18), transparent 18rem);
  pointer-events: none;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.9) contrast(1.02);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(86px, 18vw, 196px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-date {
  margin: var(--space-md) 0 0;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.cert-card,
.map-frame,
.pricing-card,
.schedule-card,
.enroll-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.cert-card {
  margin: 0;
  overflow: hidden;
}

.cert-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f7f4ec;
}

.cert-card figcaption {
  padding: var(--space-lg);
  display: grid;
  gap: 4px;
}

.cert-card figcaption span {
  color: var(--text-secondary);
  font-size: 14px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.schedule-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 var(--space-lg);
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.38);
}

.schedule-toggle-btn {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  color: var(--text-primary);
  padding: 9px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.schedule-toggle-btn.is-active {
  background: var(--brand-green);
  color: #0d0d10;
}

.schedule-card {
  overflow: hidden;
}

.schedule-card-head {
  padding: var(--space-lg);
  border-top: 5px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.schedule-card-head h3 {
  margin: 0;
  font-size: 28px;
}

.schedule-card-head p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.slot-list {
  display: grid;
}

.slot-row {
  display: grid;
  gap: 10px;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.slot-row:last-child {
  border-bottom: 0;
}

.slot-time {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 900;
}

.slot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.level-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 31px;
  border-radius: var(--radius-xl);
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.level-chip::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--level-color);
}

.level-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-lg);
}

.level-explainer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: var(--space-md);
}

.level-explainer-item {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.36);
}

.level-explainer-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.pricing-card {
  padding: var(--space-lg);
}

.pricing-card .btn {
  width: 100%;
  margin-top: var(--space-lg);
}

.pricing-card h3 {
  margin: 0 0 var(--space-lg);
  font-size: 28px;
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) max-content;
  gap: var(--space-md);
  min-height: 74px;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: default;
  font: inherit;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.price-row.has-expiry {
  cursor: pointer;
  grid-template-columns: minmax(72px, 1fr) max-content 24px;
}

.price-row.has-expiry:hover,
.price-row.has-expiry:focus-visible {
  border-color: rgba(109, 191, 103, 0.72);
  background: rgba(255, 255, 255, 0.58);
}

.price-row.has-expiry:focus-visible {
  outline: 3px solid rgba(109, 191, 103, 0.28);
  outline-offset: 2px;
}

.price-row strong {
  font-size: 17px;
  white-space: nowrap;
}

.price-row small {
  display: block;
  color: var(--text-secondary);
  margin-top: 2px;
}

.price {
  font-size: clamp(20px, 5.8vw, 23px);
  font-weight: 900;
  white-space: nowrap;
}

.save-tag {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 900;
}

.price-expiry {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.price-row.is-open .price-expiry {
  max-height: 48px;
  opacity: 1;
}

.price-expand-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(109, 191, 103, 0.14);
  color: #284d28;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.pricing-note {
  color: var(--text-secondary);
  margin: var(--space-lg) 0 0;
}

.location-info address {
  margin: var(--space-lg) 0;
  color: var(--text-primary);
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.location-actions {
  margin-bottom: var(--space-lg);
}

.wechat-card {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.42);
}

.wechat-card img {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}

.wechat-card strong,
.wechat-card span {
  display: block;
}

.wechat-card span {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.contact-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: #172418;
  border-bottom: 2px solid var(--brand-green);
  font-size: 13px;
  font-weight: 900;
}

.wechat-card.large {
  margin-top: var(--space-lg);
}

.wechat-card.large img {
  width: 112px;
  height: 112px;
}

.map-frame {
  overflow: hidden;
  min-height: 420px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: var(--space-lg);
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.faq-question span:last-child {
  color: var(--brand-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
}

.faq-item.is-open .faq-answer {
  max-height: 220px;
}

.instagram-showcase-link {
  display: inline-flex;
  width: fit-content;
  margin-top: var(--space-md);
  border-bottom: 2px solid var(--brand-green);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}

.gallery-section .section-heading {
  max-width: 760px;
}

.instagram-feed {
  width: min(100%, 1280px);
  margin: var(--space-xl) auto 0;
  overflow: hidden;
}

.instagram-feed-window {
  position: relative;
  overflow: hidden;
  padding: 6px 0 18px;
  opacity: 0;
  transform: scale(0.98);
  animation: feedScaleIn 0.55s ease forwards;
}

.instagram-feed-window::before,
.instagram-feed-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 80px;
  pointer-events: none;
}

.instagram-feed-window::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), rgba(231, 224, 211, 0));
}

.instagram-feed-window::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-primary), rgba(231, 224, 211, 0));
}

.instagram-feed-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: carouselScroll 42s linear infinite;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
}

.instagram-feed-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--space-md);
  padding-right: var(--space-md);
}

.instagram-feed:hover .instagram-feed-track,
.instagram-feed:focus-within .instagram-feed-track {
  animation-play-state: paused;
}

.instagram-feed-card {
  position: relative;
  flex: 0 0 clamp(170px, 18vw, 240px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(41, 38, 42, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 44px rgba(55, 50, 42, 0.16);
}

.instagram-feed-card img,
.instagram-feed-card video,
.instagram-feed-card iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.instagram-feed-caption {
  display: none;
}

@keyframes carouselScroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

@media (hover: none) and (pointer: coarse) {
  @supports (-webkit-touch-callout: none) {
    .instagram-feed-window {
      overflow-x: auto;
      overflow-y: hidden;
      opacity: 1;
      transform: none;
      animation: none;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .instagram-feed-window::-webkit-scrollbar {
      display: none;
    }

    .instagram-feed-track {
      animation: none;
      transform: none;
      -webkit-transform: none;
      will-change: auto;
    }

    .instagram-feed-set:not(:first-child) {
      display: none;
    }
  }
}

@keyframes feedScaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.form-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: start;
}

.enroll-intro {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-self: start;
}

.enroll-intro .wechat-card.large {
  margin-top: 0;
}

.form-layout .enroll-form {
  grid-column: 2;
  grid-row: 1;
}

.enroll-contact-card {
  align-self: start;
}

@keyframes glowFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-28px, 24px, 0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .schedule-grid,
  .pricing-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-layout .section-copy,
  .form-layout .enroll-form,
  .enroll-contact-card {
    grid-column: 1;
  }

  .enroll-intro {
    display: contents;
  }

  .form-layout .section-copy {
    grid-row: 1;
  }

  .form-layout .enroll-form {
    grid-row: 2;
  }

  .enroll-contact-card {
    grid-row: 3;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    margin-left: 0;
    padding: 24px;
  }

  .level-explainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .schedule-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .schedule-toggle-btn {
    padding-inline: 10px;
  }

  .hero h1 {
    font-size: 64px;
    line-height: 0.94;
  }

  html[lang="en"] .hero h1 {
    font-size: 56px;
  }

  .hero-actions,
  .location-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .wechat-card {
    align-items: flex-start;
  }

  .wechat-card img {
    width: 72px;
    height: 72px;
  }

  .level-explainer {
    grid-template-columns: 1fr;
  }

  .schedule-card,
  .pricing-card,
  .enroll-form,
  .map-frame,
  .cert-card {
    border-radius: 10px;
  }

  .instagram-feed {
    width: 100%;
  }

  .instagram-feed-card {
    flex-basis: 190px;
  }

  .instagram-feed-window::before,
  .instagram-feed-window::after {
    width: 32px;
  }
}
