/*
Theme Name: YUGA Yoga
Theme URI: https://www.syyuga.com/
Author: YUGA Yoga
Description: 为 YUGA 瑜伽定制的响应式内容管理主题，锁定布局并开放文字、图片、课程、课表和文章管理。
Version: 1.0.0
Requires at least: 6.9
Requires PHP: 8.3
Text Domain: yuga
*/

:root {
  --yuga-primary: #533e77;
  --yuga-primary-dark: #3d2a62;
  --yuga-primary-soft: #8f80a8;
  --yuga-accent: #ef5b00;
  --yuga-gold: #d6a944;
  --yuga-text: #54595f;
  --yuga-muted: #89858f;
  --yuga-bg: #ffffff;
  --yuga-bg-soft: #f7f5f8;
  --yuga-line: #e9e4ee;
  --yuga-success: #05c969;
  --yuga-danger: #dd3e4a;
  --yuga-container: 1200px;
  --yuga-reading: 820px;
  --yuga-base-size: 16px;
  --yuga-heading-weight: 300;
  --yuga-body-font: "YUGA Sans";
  --yuga-heading-font: "YUGA Serif";
  --yuga-shadow: 0 20px 55px rgba(62, 42, 94, 0.12);
  --yuga-radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* `hidden` makes the document an overflow container and prevents the
     top-level sticky header from sticking in Chromium. `clip` keeps the
     horizontal guard without changing the document scroll container. */
  overflow-x: clip;
}

body {
  background: var(--yuga-bg);
  color: var(--yuga-text);
  font-family: var(--yuga-body-font), "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: var(--yuga-base-size);
  line-height: 1.75;
  margin: 0;
  overflow-x: clip;
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: var(--yuga-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--yuga-accent);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--yuga-primary);
  font-family: var(--yuga-heading-font), "Microsoft YaHei", serif;
  font-weight: var(--yuga-heading-weight);
  line-height: 1.28;
  margin: 0 0 0.7em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.2em;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--yuga-primary);
  display: block;
  height: auto;
  left: 10px;
  padding: 12px 18px;
  top: 10px;
  width: auto;
  z-index: 100000;
}

.yuga-container,
.yuga-reading-width {
  margin-inline: auto;
  width: min(calc(100% - 40px), var(--yuga-container));
}

.yuga-reading-width {
  width: min(calc(100% - 40px), var(--yuga-reading));
}

.yuga-section {
  padding: clamp(72px, 8vw, 125px) 0;
}

.yuga-section--tint {
  background: var(--yuga-bg-soft);
}

.yuga-button {
  align-items: center;
  background: var(--yuga-accent);
  border: 2px solid var(--yuga-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  min-height: 46px;
  padding: 12px 26px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.yuga-button:hover,
.yuga-button:focus-visible {
  background: var(--yuga-gold);
  border-color: var(--yuga-gold);
  color: #fff;
  transform: translateY(-1px);
}

.yuga-button--outline {
  background: transparent;
  border-color: var(--yuga-primary);
  color: var(--yuga-primary);
}

/* Header */
.yuga-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(83, 62, 119, 0.06);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 1000;
}

.admin-bar .yuga-header {
  top: 32px;
}

.yuga-header__inner {
  align-items: center;
  display: grid;
  gap: clamp(18px, 2.2vw, 38px);
  grid-template-columns: 220px minmax(0, 1fr) auto;
  margin-inline: auto;
  min-height: 88px;
  padding-inline: 20px;
  width: min(100%, 1240px);
}

.yuga-brand {
  align-items: center;
  display: flex;
  min-width: 0;
}

.yuga-brand img {
  height: auto;
  max-height: 66px;
  object-fit: contain;
  object-position: left center;
  width: 210px;
}

.yuga-menu,
.yuga-mobile-menu,
.yuga-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yuga-nav .yuga-menu {
  align-items: center;
  display: flex;
  gap: clamp(18px, 1.8vw, 31px);
  justify-content: flex-end;
}

.yuga-nav .yuga-menu > li {
  position: relative;
}

.yuga-nav .yuga-menu > li > a {
  color: var(--yuga-primary);
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 88px;
  white-space: nowrap;
}

.yuga-nav .current-menu-item > a,
.yuga-nav a:hover,
.yuga-nav a:focus-visible {
  color: var(--yuga-accent) !important;
}

.yuga-nav .sub-menu {
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--yuga-shadow);
  left: -20px;
  list-style: none;
  margin: 0;
  min-width: 210px;
  opacity: 0;
  padding: 12px 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 1px);
  transform: translateY(8px);
  transition: 0.2s ease;
}

.yuga-nav li:hover > .sub-menu,
.yuga-nav li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.yuga-nav .sub-menu a {
  color: var(--yuga-primary);
  display: block;
  padding: 10px 20px;
}

.yuga-header__cta {
  font-size: 15px;
}

.yuga-menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 46px;
  padding: 10px;
  width: 46px;
}

.yuga-menu-toggle span:not(.screen-reader-text) {
  background: var(--yuga-primary);
  border-radius: 2px;
  display: block;
  height: 2px;
  margin: 5px 0;
  transition: 0.2s ease;
  width: 26px;
}

.yuga-menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(7px) rotate(45deg);
}

.yuga-menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
  opacity: 0;
}

.yuga-menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.yuga-mobile-nav {
  background: #fff;
  border-top: 1px solid var(--yuga-line);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  padding: 12px 20px 28px;
}

.yuga-mobile-nav[hidden] {
  display: none;
}

.yuga-mobile-menu a {
  border-bottom: 1px solid var(--yuga-line);
  color: var(--yuga-primary);
  display: block;
  font-weight: 600;
  padding: 14px 4px;
}

.yuga-mobile-menu .sub-menu {
  list-style: none;
  padding-left: 18px;
}

.yuga-mobile-nav__cta {
  margin-top: 20px;
  width: 100%;
}

/* Floating social buttons and QR modal */
.yuga-social-rail {
  display: grid;
  gap: 10px;
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: 45%;
  transform: translateY(-50%);
  z-index: 900;
}

.yuga-social {
  align-items: center;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(31, 21, 46, 0.2);
  cursor: pointer;
  display: flex;
  height: 50px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 50px;
}

.yuga-social svg {
  height: 28px;
  width: 28px;
}

.yuga-social--douyin {
  background: #000;
  color: #fff;
}

.yuga-social--xhs {
  background: #ff2442;
}

.yuga-social--xhs img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.yuga-social--wechat {
  background: #07c160;
  color: #fff;
}

.yuga-modal {
  inset: 0;
  position: fixed;
  z-index: 10000;
}

.yuga-modal[hidden] {
  display: none;
}

.yuga-modal__backdrop {
  background: rgba(20, 14, 29, 0.65);
  inset: 0;
  position: absolute;
}

.yuga-modal__panel {
  background: #fff;
  border-radius: var(--yuga-radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 34px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 430px;
}

.yuga-modal__panel h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.yuga-modal__panel img {
  margin: 20px auto 0;
  max-height: 330px;
  object-fit: contain;
  width: 100%;
}

.yuga-modal__close {
  background: transparent;
  border: 0;
  color: var(--yuga-primary);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  padding: 8px;
  position: absolute;
  right: 8px;
  top: 6px;
}

/* Homepage hero */
.yuga-hero {
  background: linear-gradient(110deg, rgba(248, 213, 193, 0.88), rgba(83, 62, 119, 0.93) 62%), var(--yuga-hero-image) center/cover no-repeat;
  background-attachment: scroll, fixed;
  color: #fff;
  min-height: 660px;
  overflow: hidden;
  position: relative;
}

.yuga-hero::before {
  background: var(--yuga-hero-image) center/cover no-repeat;
  background-attachment: fixed;
  content: "";
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.7;
  position: absolute;
}

.yuga-hero__inner {
  align-items: center;
  display: flex;
  min-height: 610px;
  padding-bottom: 50px;
  position: relative;
  z-index: 1;
}

.yuga-hero__content {
  max-width: 580px;
  padding-left: 30px;
  position: relative;
}

.yuga-hero__content::before {
  background: #ff5b5f;
  content: "";
  height: 118px;
  left: 0;
  position: absolute;
  top: 6px;
  width: 5px;
}

.yuga-hero h1 {
  color: #fff;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: var(--yuga-heading-weight);
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin-bottom: 32px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.yuga-hero__description p {
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
}

.yuga-hero__english {
  line-height: 1.55;
  margin: 26px 0 30px;
  max-width: 530px;
}

.yuga-hero__curve {
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  bottom: -75px;
  height: 120px;
  left: -5%;
  position: absolute;
  width: 110%;
}

/* About */
.yuga-about__grid {
  align-items: center;
  display: grid;
  gap: clamp(45px, 6vw, 90px);
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
}

.yuga-about__media img {
  aspect-ratio: 4 / 5;
  border-radius: var(--yuga-radius);
  object-fit: cover;
  width: 100%;
}

.yuga-about__content h2 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.28;
}

.yuga-check-list {
  list-style: none;
  margin: 25px 0;
  padding: 0;
}

.yuga-check-list li {
  color: var(--yuga-accent);
  font-weight: 600;
  padding: 5px 0 5px 24px;
  position: relative;
}

.yuga-check-list li::before {
  color: var(--yuga-gold);
  content: "✓";
  left: 0;
  position: absolute;
}

.yuga-stats {
  background: var(--yuga-primary);
  border-radius: var(--yuga-radius);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
  padding: 20px;
}

.yuga-stats > div {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 16px;
  text-align: center;
}

.yuga-stats > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.yuga-stats strong {
  font-family: var(--yuga-heading-font), serif;
  font-size: 36px;
  font-weight: 400;
}

.yuga-stats span {
  font-size: 13px;
}

/* Section headings and cards */
.yuga-section-heading {
  align-items: end;
  display: grid;
  gap: 0 30px;
  grid-template-columns: 1fr auto;
  margin-bottom: 42px;
}

.yuga-section-heading .yuga-kicker {
  grid-column: 1 / -1;
}

.yuga-section-heading h2 {
  font-size: clamp(36px, 4vw, 50px);
  margin: 0;
}

.yuga-section-heading > a {
  font-weight: 600;
  padding-bottom: 8px;
}

.yuga-kicker {
  color: var(--yuga-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.yuga-card-grid {
  display: grid;
  gap: 30px;
}

.yuga-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yuga-card {
  background: #fff;
  border-radius: var(--yuga-radius);
  box-shadow: var(--yuga-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.yuga-card__image {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #ece8f1, #d8cfe2);
  display: block;
  overflow: hidden;
}

.yuga-card__image img,
.yuga-card__placeholder {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.yuga-card__placeholder {
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,.65), transparent 30%), linear-gradient(135deg, #eadbe0, #776391);
  display: block;
}

.yuga-card:hover .yuga-card__image img {
  transform: scale(1.035);
}

.yuga-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 28px;
}

.yuga-card h3 {
  display: -webkit-box;
  font-size: 25px;
  line-height: 1.35;
  margin: 13px 0 10px;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yuga-card h3 a {
  color: inherit;
}

.yuga-card__subtitle,
.yuga-card__meta {
  color: var(--yuga-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.yuga-card__summary {
  display: -webkit-box;
  line-height: 1.7;
  margin-bottom: 22px;
  min-height: 5.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.yuga-teacher-team__intro {
  margin: 0 auto 42px;
  max-width: var(--yuga-reading);
  text-align: center;
}

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

.yuga-teacher-card {
  align-self: stretch;
  background: #fff;
  border: 1px solid rgba(83, 60, 119, 0.08);
  border-radius: var(--yuga-radius);
  box-shadow: var(--yuga-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.yuga-teacher-card__image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #ece8f1, #d8cfe2);
  overflow: hidden;
}

.yuga-teacher-card__image img,
.yuga-teacher-card__image .yuga-card__placeholder {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.yuga-teacher-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 28px 32px;
}

.yuga-teacher-card h2 {
  color: var(--yuga-primary);
  font-size: 30px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.yuga-teacher-card__label {
  color: var(--yuga-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
}

.yuga-teacher-card__credentials ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yuga-teacher-card__credentials li {
  line-height: 1.65;
  overflow-wrap: anywhere;
  padding-left: 22px;
  position: relative;
}

.yuga-teacher-card__credentials li::before {
  color: var(--yuga-accent);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
  top: 0;
}

.yuga-teacher-card__credentials > :last-child {
  margin-bottom: 0;
}

.yuga-card__more {
  font-weight: 600;
  margin-top: auto;
}

/* Dedicated mind-and-body topic archive, matched to the legacy page. */
.yuga-topic-shell {
  margin-inline: auto;
  width: min(calc(100% - 40px), 1140px);
}

.yuga-topic-hero {
  align-items: center;
  background: linear-gradient(90deg, rgba(45, 30, 67, 0.44), rgba(45, 30, 67, 0.32)), var(--yuga-inner-parallax-image) center/cover no-repeat;
  background-attachment: scroll, fixed;
  color: #fff;
  display: flex;
  min-height: 450px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.yuga-topic-hero::before {
  content: none;
}

.yuga-topic-hero::after {
  content: none;
}

.yuga-topic-hero .yuga-topic-shell {
  position: relative;
  z-index: 1;
}

.yuga-topic-hero h1 {
  color: #fff;
  font-size: clamp(48px, 5vw, 60px);
  font-weight: var(--yuga-heading-weight);
  margin: 0;
}

.yuga-topic-hero__wave {
  bottom: -1px;
  color: #fff;
  height: 82px;
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.yuga-topic-content {
  padding: 82px 0 120px;
}

.yuga-topic-intro {
  margin-bottom: 82px;
}

.yuga-topic-kicker {
  border-left: 1px solid var(--yuga-gold);
  color: var(--yuga-gold);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  padding-left: 15px;
  text-transform: uppercase;
}

.yuga-topic-intro h2 {
  font-size: clamp(36px, 4.2vw, 50px);
  line-height: 1.12;
  margin-bottom: 28px;
  max-width: 1080px;
}

.yuga-topic-intro > p:last-child {
  line-height: 1.65;
  margin: 0;
  max-width: 1110px;
}

.yuga-topic-group + .yuga-topic-group {
  margin-top: 72px;
}

.yuga-topic-group > h2 {
  color: var(--yuga-accent);
  font-family: var(--yuga-body-font), "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 28px;
}

.yuga-topic-group--past > h2 {
  color: var(--yuga-primary);
}

.yuga-topic-grid {
  align-items: stretch;
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yuga-topic-card {
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
}

.yuga-topic-card__image {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #ece8f1, #d8cfe2);
  display: block;
  overflow: hidden;
}

.yuga-topic-card__image img,
.yuga-topic-card__image .yuga-card__placeholder {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.yuga-topic-card:hover .yuga-topic-card__image img {
  transform: scale(1.035);
}

.yuga-topic-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 14px 20px;
}

.yuga-topic-card h3 {
  display: -webkit-box;
  font-family: var(--yuga-body-font), "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 9px;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yuga-topic-card h3 a {
  color: var(--yuga-primary);
}

.yuga-topic-card__body p {
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  min-height: 3.3em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yuga-topic-single .yuga-article__footer {
  padding-bottom: 80px;
}

.yuga-status {
  align-self: flex-start;
  background: rgba(5, 201, 105, 0.12);
  border-radius: 999px;
  color: #05954f;
  display: inline-block;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 11px;
  white-space: nowrap;
}

.yuga-status--upcoming {
  background: rgba(214, 169, 68, 0.16);
  color: #9a7215;
}

.yuga-status--full,
.yuga-status--cancelled {
  background: rgba(221, 62, 74, 0.12);
  color: var(--yuga-danger);
}

.yuga-admin-placeholder,
.yuga-empty {
  background: #fff;
  border: 1px dashed #cfc5da;
  border-radius: var(--yuga-radius);
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
}

/* Page and article */
.yuga-page-hero {
  background: linear-gradient(90deg, rgba(45, 30, 67, 0.44), rgba(45, 30, 67, 0.32)), var(--yuga-inner-parallax-image) center/cover no-repeat;
  background-attachment: scroll, fixed;
  color: #fff;
  overflow: hidden;
  padding: clamp(76px, 8vw, 118px) 0;
  position: relative;
  text-align: center;
}

.yuga-page-hero::before {
  content: none;
}

.yuga-page-hero > .yuga-container {
  position: relative;
  z-index: 1;
}

.yuga-page-hero h1 {
  color: #fff;
  font-size: clamp(42px, 5vw, 64px);
  margin-bottom: 12px;
}

.yuga-page-hero p:not(.yuga-kicker) {
  margin: 0 auto;
  max-width: 700px;
}

.yuga-page-hero--image {
  background: linear-gradient(90deg, rgba(45, 30, 67, 0.44), rgba(45, 30, 67, 0.32)), var(--yuga-inner-parallax-image) center/cover no-repeat;
  background-attachment: scroll, fixed;
}

.yuga-page-hero--image h1 {
  color: #fff;
}

.yuga-article__header {
  background: var(--yuga-bg-soft);
  padding: clamp(70px, 8vw, 112px) 0 55px;
  text-align: center;
}

.yuga-article__header h1 {
  font-size: clamp(38px, 4.7vw, 60px);
}

.yuga-article__meta {
  color: var(--yuga-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
}

.yuga-article__cover {
  margin-top: -2px;
  padding-top: 55px;
}

.yuga-article__cover img {
  aspect-ratio: 16 / 9;
  border-radius: var(--yuga-radius);
  object-fit: cover;
  width: 100%;
}

.yuga-entry-content {
  font-size: clamp(16px, 1.5vw, 18px);
  overflow: hidden;
  padding-bottom: 70px;
  padding-top: 55px;
}

.yuga-entry-content > * {
  max-width: 100%;
}

.yuga-entry-content h2 {
  font-size: clamp(30px, 3vw, 40px);
  margin-top: 1.7em;
}

.yuga-entry-content h3 {
  font-size: clamp(24px, 2.5vw, 31px);
  margin-top: 1.5em;
}

.yuga-entry-content img {
  border-radius: 14px;
}

.yuga-entry-content table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.yuga-entry-content th,
.yuga-entry-content td {
  border: 1px solid var(--yuga-line);
  padding: 12px 15px;
}

.yuga-managed-page > :where(h2, h3, h4, p, ul, ol, blockquote, .wp-block-image, .yuga-content-box) {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--yuga-reading);
}

.yuga-managed-page > .yuga-card-grid {
  margin-bottom: 45px;
  margin-top: 35px;
}

.yuga-content-box {
  background: var(--yuga-bg-soft);
  border-radius: var(--yuga-radius);
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 42px);
}

.yuga-about-story {
  margin: 0 auto;
  max-width: 980px;
}

.yuga-about-story h2 {
  color: var(--yuga-primary);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.35;
  margin: 0 0 32px;
}

.yuga-about-story p {
  font-size: 17px;
  line-height: 1.95;
  margin: 0 0 22px;
}

.yuga-about-story .yuga-about-story__lead {
  color: var(--yuga-primary-dark);
  font-size: 20px;
  font-weight: 500;
}

.yuga-about-story__statement {
  background: linear-gradient(135deg, var(--yuga-bg-soft), #eee8f4);
  border-left: 5px solid var(--yuga-accent);
  border-radius: 0 var(--yuga-radius) var(--yuga-radius) 0;
  color: var(--yuga-primary);
  margin: 42px 0 24px;
  padding: clamp(28px, 5vw, 46px);
}

.yuga-about-story__statement strong,
.yuga-about-story__statement span {
  display: block;
}

.yuga-about-story__statement strong {
  font-family: var(--yuga-heading-font), "Noto Serif SC", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 12px;
}

.yuga-about-story__statement span {
  font-size: 18px;
}

.yuga-about-story__values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.yuga-about-story__values span {
  background: #fff;
  border: 1px solid var(--yuga-line);
  border-radius: 999px;
  color: var(--yuga-primary);
  font-size: 14px;
  padding: 8px 18px;
}

.yuga-booking-intro {
  font-size: 18px;
  margin-bottom: 45px;
  text-align: center;
}

.yuga-venue-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yuga-venue-card {
  background: linear-gradient(145deg, #fff, var(--yuga-bg-soft));
  border: 1px solid var(--yuga-line);
  border-radius: var(--yuga-radius);
  box-shadow: var(--yuga-shadow);
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
}

.yuga-venue-card__map {
  aspect-ratio: 30 / 19;
  background: #e8e5ec;
  border: 1px solid var(--yuga-line);
  border-radius: 14px;
  display: block;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.yuga-venue-card__map-image {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

.yuga-venue-card__map:hover .yuga-venue-card__map-image,
.yuga-venue-card__map:focus-visible .yuga-venue-card__map-image {
  transform: scale(1.015);
}

.yuga-map-pin {
  background: var(--yuga-accent);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 5px 14px rgba(45, 30, 67, 0.35);
  height: 30px;
  left: var(--yuga-map-x);
  position: absolute;
  top: var(--yuga-map-y);
  transform: translate(-50%, -100%) rotate(-45deg);
  width: 30px;
  z-index: 2;
}

.yuga-map-pin::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 9px;
  left: 8px;
  position: absolute;
  top: 8px;
  width: 9px;
}

.yuga-map-label {
  background: #fff;
  border: 1px solid rgba(83, 62, 119, 0.18);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(45, 30, 67, 0.18);
  color: var(--yuga-primary);
  font-size: 13px;
  font-weight: 600;
  left: var(--yuga-map-x);
  line-height: 1;
  padding: 7px 11px;
  position: absolute;
  top: var(--yuga-map-y);
  transform: translate(-50%, 10px);
  white-space: nowrap;
  z-index: 2;
}

.yuga-venue-card h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.yuga-venue-card p {
  display: grid;
  gap: 6px;
  grid-template-columns: 58px minmax(0, 1fr);
  margin-bottom: 16px;
}

.yuga-venue-card p strong {
  color: var(--yuga-primary);
}

.yuga-venue-card p a,
.yuga-venue-card p span {
  overflow-wrap: anywhere;
}

.yuga-venue-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.yuga-entry-content blockquote {
  border-left: 4px solid var(--yuga-gold);
  color: var(--yuga-primary);
  font-family: var(--yuga-heading-font), serif;
  font-size: 1.25em;
  margin: 2em 0;
  padding: 12px 0 12px 24px;
}

.yuga-article__footer {
  border-top: 1px solid var(--yuga-line);
  padding: 30px 0 80px;
}

.yuga-tags {
  margin-bottom: 24px;
}

.yuga-tags a {
  background: var(--yuga-bg-soft);
  border-radius: 999px;
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 6px 12px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 50px;
}

.nav-links .page-numbers {
  align-items: center;
  border: 1px solid var(--yuga-line);
  border-radius: 50%;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 8px;
}

.nav-links .current {
  background: var(--yuga-primary);
  border-color: var(--yuga-primary);
  color: #fff;
}

/* Course detail */
.yuga-course-detail__head {
  align-items: center;
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr minmax(300px, 460px);
  text-align: left;
}

.yuga-course-detail__image img {
  aspect-ratio: 3 / 2;
  border-radius: var(--yuga-radius);
  object-fit: cover;
  width: 100%;
}

.yuga-course-detail__layout {
  align-items: start;
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  grid-template-columns: minmax(0, 1fr) 330px;
  padding-bottom: 100px;
}

.yuga-course-facts {
  background: var(--yuga-primary);
  border-radius: var(--yuga-radius);
  color: #fff;
  margin-top: 55px;
  padding: 30px;
  position: sticky;
  top: 110px;
}

.yuga-course-facts h2 {
  color: #fff;
  font-size: 28px;
}

.yuga-course-facts > div {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 5px;
  padding: 14px 0;
}

.yuga-course-facts span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.yuga-course-facts .yuga-button {
  margin-top: 20px;
  width: 100%;
}

/* Schedule */
.yuga-month-filter {
  align-items: end;
  background: var(--yuga-bg-soft);
  border-radius: var(--yuga-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
  padding: 24px;
}

.yuga-month-filter label {
  color: var(--yuga-primary);
  font-weight: 700;
  width: 100%;
}

.yuga-month-filter input {
  background: #fff;
  border: 1px solid #cfc7d8;
  border-radius: 10px;
  min-height: 46px;
  padding: 9px 14px;
}

.yuga-schedule {
  border: 1px solid var(--yuga-line);
  border-radius: var(--yuga-radius);
  overflow: hidden;
}

.yuga-schedule__header,
.yuga-schedule__row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1.15fr 1fr 1.8fr 1fr 1.1fr 0.8fr;
  padding: 15px 20px;
}

.yuga-schedule__header {
  background: var(--yuga-primary);
  color: #fff;
  font-weight: 700;
}

.yuga-schedule__row:nth-child(odd) {
  background: var(--yuga-bg-soft);
}

.yuga-schedule__row + .yuga-schedule__row {
  border-top: 1px solid var(--yuga-line);
}

.yuga-schedule__course strong,
.yuga-schedule__course small {
  display: block;
}

.yuga-schedule__course small {
  color: var(--yuga-muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

/* Footer */
.yuga-footer {
  background: linear-gradient(115deg, #5b437d, #9d91ad 56%, #c9c2cf);
  color: #fff;
  overflow: hidden;
  padding-top: 90px;
  position: relative;
}

.yuga-footer__wave {
  background: #fff;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  height: 70px;
  left: -5%;
  position: absolute;
  top: 0;
  width: 110%;
}

.yuga-footer__grid {
  display: grid;
  gap: clamp(32px, 4vw, 58px);
  grid-template-columns: 1.1fr 0.8fr 1fr 1fr;
  padding-bottom: 62px;
  padding-top: 50px;
}

.yuga-footer h2 {
  color: #fff;
  font-family: var(--yuga-body-font), sans-serif;
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 20px;
}

.yuga-footer p,
.yuga-footer li {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 8px;
}

.yuga-footer a {
  color: #fff;
}

.yuga-footer a:hover,
.yuga-footer a:focus-visible {
  color: #fff1c8;
}

.yuga-footer__brand img {
  height: auto;
  margin-bottom: 24px;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
  width: 250px;
}

.yuga-footer-menu li {
  margin: 0;
}

.yuga-footer-menu a {
  display: block;
  font-weight: 600;
  padding: 4px 0 4px 18px;
  position: relative;
}

.yuga-footer-menu a::before {
  content: "›";
  left: 0;
  position: absolute;
}

.yuga-venue__wechat {
  background: var(--yuga-success);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 8px 18px;
}

.yuga-footer__bottom {
  background: rgba(45, 31, 66, 0.22);
  font-size: 13px;
  padding: 15px 0;
}

.yuga-error-page {
  align-items: center;
  display: flex;
  min-height: 62vh;
  padding: 70px 0;
  text-align: center;
}

.yuga-error-page__code {
  color: var(--yuga-gold);
  font-family: var(--yuga-heading-font), serif;
  font-size: clamp(90px, 16vw, 180px);
  line-height: 0.8;
  margin-bottom: 30px;
}

/* Tablet */
@media (max-width: 1180px) {
  .yuga-header__inner {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  .yuga-brand img {
    width: 185px;
  }

  .yuga-nav .yuga-menu {
    gap: 16px;
  }

  .yuga-nav .yuga-menu > li > a {
    font-size: 14px;
  }

  .yuga-header__cta {
    padding-inline: 20px;
  }
}

@media (max-width: 991px) {
  .admin-bar .yuga-header {
    top: 32px;
  }

  .yuga-header__inner {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .yuga-brand img {
    max-height: 58px;
    width: 190px;
  }

  .yuga-nav,
  .yuga-header__cta {
    display: none;
  }

  .yuga-menu-toggle {
    display: block;
  }

  .yuga-hero {
    min-height: 610px;
  }

  .yuga-hero__inner {
    min-height: 570px;
  }

  .yuga-about__grid {
    grid-template-columns: minmax(260px, 38%) 1fr;
  }

  .yuga-about__content h2 {
    font-size: 38px;
  }

  .yuga-stats {
    grid-template-columns: 1fr;
  }

  .yuga-stats > div {
    flex-direction: row;
    justify-content: space-between;
  }

  .yuga-stats > div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .yuga-card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .yuga-course-detail__layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

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

/* Mobile */
@media (max-width: 767px) {
  .admin-bar .yuga-header {
    top: 46px;
  }

  .yuga-container,
  .yuga-reading-width {
    width: min(calc(100% - 32px), var(--yuga-container));
  }

  .yuga-section {
    padding: 72px 0;
  }

  .yuga-topic-shell {
    width: min(calc(100% - 32px), 1140px);
  }

  .yuga-topic-hero {
    min-height: 250px;
  }

  .yuga-topic-hero h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .yuga-topic-hero__wave {
    height: 46px;
  }

  .yuga-topic-content {
    padding: 55px 0 80px;
  }

  .yuga-topic-intro {
    margin-bottom: 58px;
  }

  .yuga-topic-intro h2 {
    font-size: clamp(30px, 8.5vw, 38px);
  }

  .yuga-topic-grid {
    grid-template-columns: 1fr;
  }

  .yuga-topic-card {
    margin-inline: auto;
    max-width: 520px;
    width: 100%;
  }

  .yuga-topic-card h3,
  .yuga-topic-card__body p {
    min-height: 0;
  }

  .yuga-social-rail {
    right: max(8px, env(safe-area-inset-right));
  }

  .yuga-social {
    height: 44px;
    width: 44px;
  }

  .yuga-social svg {
    height: 25px;
    width: 25px;
  }

  .yuga-hero {
    background-attachment: scroll, scroll;
    background-position: center;
    min-height: 590px;
  }

  .yuga-hero::before,
  .yuga-page-hero::before,
  .yuga-topic-hero::before {
    background-attachment: scroll;
  }

  .yuga-page-hero,
  .yuga-page-hero--image,
  .yuga-topic-hero {
    background-attachment: scroll, scroll;
  }

  .yuga-hero__inner {
    align-items: flex-start;
    min-height: 550px;
    padding-top: 80px;
  }

  .yuga-hero__content {
    max-width: calc(100% - 35px);
    padding-left: 22px;
  }

  .yuga-hero__content::before {
    height: 94px;
    width: 4px;
  }

  .yuga-hero h1 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 1.02;
    margin-bottom: 26px;
  }

  .yuga-hero__description p,
  .yuga-hero__english {
    font-size: 14px;
  }

  .yuga-hero__english {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .yuga-about__grid,
  .yuga-course-detail__head,
  .yuga-course-detail__layout {
    grid-template-columns: 1fr;
  }

  .yuga-about__media {
    margin-inline: auto;
    max-width: 430px;
    width: 100%;
  }

  .yuga-about__content h2 {
    font-size: 34px;
    text-align: center;
  }

  .yuga-card-grid--3 {
    grid-template-columns: 1fr;
  }

  .yuga-venue-grid {
    grid-template-columns: 1fr;
  }

  .yuga-venue-card__map {
    aspect-ratio: 30 / 19;
  }

  .yuga-card {
    margin-inline: auto;
    max-width: 520px;
    width: 100%;
  }

  .yuga-card h3,
  .yuga-card__summary {
    min-height: 0;
  }

  .yuga-section-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .yuga-section-heading > a {
    margin-top: 14px;
  }

  .yuga-course-detail__head {
    text-align: center;
  }

  .yuga-course-detail__image {
    margin-inline: auto;
    max-width: 520px;
  }

  .yuga-course-facts {
    margin-top: 0;
    position: static;
  }

  .yuga-schedule {
    border: 0;
    overflow: visible;
  }

  .yuga-schedule__header {
    display: none;
  }

  .yuga-schedule__row,
  .yuga-schedule__row:nth-child(odd) {
    background: #fff;
    border: 1px solid var(--yuga-line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(62, 42, 94, 0.08);
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    margin-bottom: 16px;
    padding: 14px 18px;
  }

  .yuga-schedule__row + .yuga-schedule__row {
    border-top: 1px solid var(--yuga-line);
  }

  .yuga-schedule__row > * {
    align-items: baseline;
    border-bottom: 1px solid var(--yuga-line);
    display: grid;
    gap: 15px;
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 9px 0;
  }

  .yuga-schedule__row > *:last-child {
    border-bottom: 0;
  }

  .yuga-schedule__row > *::before {
    color: var(--yuga-muted);
    content: attr(data-label);
    font-size: 13px;
    font-weight: 400;
  }

  .yuga-schedule__course small {
    grid-column: 2 / -1;
  }

  .yuga-footer__grid {
    grid-template-columns: 1fr;
  }

  .yuga-footer__brand img {
    width: 230px;
  }
}

@media (max-width: 991px) {
  .yuga-teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .yuga-teacher-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: auto;
    max-width: 600px;
  }

  .yuga-teacher-card__body {
    padding: 24px 24px 28px;
  }
}

@media (max-width: 575px) {
  .yuga-header__inner {
    min-height: 70px;
    padding-inline: 14px;
  }

  .yuga-brand img {
    max-height: 52px;
    width: 170px;
  }

  .yuga-page-hero {
    padding: 70px 0;
  }

  .yuga-page-hero h1,
  .yuga-article__header h1 {
    font-size: 38px;
  }

  .yuga-modal__panel {
    padding: 28px 20px 22px;
  }

  .yuga-month-filter {
    display: grid;
  }

  .yuga-month-filter input,
  .yuga-month-filter .yuga-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .yuga-hero,
  .yuga-page-hero,
  .yuga-page-hero--image,
  .yuga-topic-hero {
    background-attachment: scroll, scroll;
  }

  .yuga-hero::before,
  .yuga-page-hero::before,
  .yuga-topic-hero::before {
    background-attachment: scroll;
  }
}
