*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal: #3db8b0;
  --teal-dark: #2fa39c;
  --text-dark: #2b2b2b;
  --text-muted: #666666;
  --white: #ffffff;
  --max-width: 1200px;
  --section-divider: #e0e0e0;
  --navy: #1a3a5c;
  --cream: #faf8f4;
  --sky: #dceaf5;
  --mint: #f7fafa;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Section dividers */
.gallery-section,
.courses-section,
.community-banner,
.testimonials-section,
.news-section {
  border-top: 1px solid var(--section-divider);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Header */
.header {
  position: relative;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #eee;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  height: 168px;
  width: auto;
  max-width: 630px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin-block: -29px;
}

.nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav > li > a,
.nav-item > .nav-item__trigger {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-dark);
  transition: color 0.2s;
}

.nav > li > a:hover,
.nav-item:hover > .nav-item__trigger,
.nav-item:focus-within > .nav-item__trigger {
  color: var(--teal);
}

.nav-item {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-item__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.nav-item__trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
  transition: transform 0.2s;
}

.nav-item:hover .nav-item__trigger::after,
.nav-item:focus-within .nav-item__trigger::after {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  padding: 6px 0 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid #eee;
  border-radius: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-submenu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-dark);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-submenu a:hover {
  color: var(--teal);
  background: #f7fafa;
}

.nav-item--book {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.btn-contact {
  display: inline-block;
  padding: 8px 20px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-contact:hover {
  background: var(--teal-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px auto;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: clamp(220px, 42vw, 520px);
  overflow: hidden;
}

.hero__image,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Cards */
.cards-section {
  position: relative;
  margin-top: -100px;
  padding-bottom: 28px;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.cards {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--teal);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.card__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

.btn-view {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 20px;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-view:hover {
  background: var(--teal-dark);
}

.ath-btn-wrap {
  margin: 1em 0;
}

.ath-btn-wrap--center {
  text-align: center;
}

.ath-btn-wrap--right {
  text-align: right;
}

/* Gallery */
.gallery-section {
  padding: 16px 32px 28px;
  background: var(--white);
}

.gallery-section__intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a3a5c;
}

.gallery-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-batch {
  position: relative;
  margin-bottom: 8px;
}

.gallery-batch:not(.is-visible) {
  display: none;
}

.gallery-collage {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: center;
  gap: 14px 18px;
  padding: 8px 0 20px;
  overflow-x: hidden;
}

.gallery-item {
  position: relative;
  flex: 0 1 var(--gallery-w, 42%);
  max-width: 100%;
  width: var(--gallery-w, 42%);
  margin-top: var(--gallery-mt, 0);
  transform: rotate(var(--gallery-rotate, 0deg));
  border-radius: var(--gallery-radius, 12px);
  background: #ececec;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  line-height: 0;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-radius 0.25s ease-out;
}

@media (hover: hover) {
  .gallery-item:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    z-index: 4;
  }

  .gallery-item:hover img {
    transform: scale(1.12);
    filter: brightness(1.04);
  }
}

.gallery-item:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  z-index: 4;
}

.gallery-item:focus-visible img {
  transform: scale(1.12);
}

.gallery-item--badge {
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--gallery-radius, 12px);
  vertical-align: middle;
  transform-origin: center center;
  transition: transform 0.45s ease, filter 0.35s ease, border-radius 0.25s ease-out, opacity 0.35s ease;
}

.gallery-item img.js-lazy-img:not(.is-loaded) {
  opacity: 0;
}

.gallery-item img.js-lazy-img.is-loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img {
    transition: box-shadow 0.35s ease;
    border-radius: 12px;
  }
}

.gallery-more {
  display: block;
  margin: 20px auto 0;
  padding: 12px 32px;
  background: var(--teal);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-more:hover {
  background: var(--teal-dark);
}

.gallery-more.is-hidden {
  display: none;
}

.gallery-item img.is-loaded {
  z-index: 1;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 20, 35, 0.88);
  backdrop-filter: blur(4px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Courses list */
.courses-section {
  padding: 32px 32px 80px;
  background: var(--white);
}

.courses-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.courses-section__header {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  gap: 24px 48px;
  align-items: start;
  margin-bottom: 40px;
}

.courses-section__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  padding-top: 8px;
}

.courses-section__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  color: #1a3a5c;
}

.courses-list {
  border-top: 1px solid #1a3a5c;
}

.course-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr 44px;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid #1a3a5c;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.course-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.course-row:hover::before {
  transform: scaleY(1);
}

.course-row__num,
.course-row__title,
.course-row__arrow {
  position: relative;
  z-index: 1;
}

.course-row__num {
  font-size: 14px;
  font-weight: 700;
  color: #1a3a5c;
}

.course-row__title {
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 600;
  color: #1a3a5c;
}

.course-row__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a3a5c;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  transition: background 0.35s ease;
}

.course-row:hover .course-row__num,
.course-row:hover .course-row__title {
  color: var(--white);
}

.course-row:hover .course-row__arrow {
  background: var(--white);
  color: var(--teal);
}

.course-row__arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.courses-section__footer {
  margin-top: 28px;
  text-align: right;
}

.courses-section__link {
  font-size: 15px;
  font-weight: 600;
  color: #1a3a5c;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.courses-section__link:hover {
  color: var(--teal);
}

/* Community banner */
.community-banner {
  padding: 56px 32px;
  background: var(--white);
  text-align: center;
}

.community-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

.community-banner__section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  color: #1a3a5c;
  margin-bottom: 16px;
}

.community-banner__text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a3a5c;
  margin-bottom: 28px;
}

.community-banner__btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--teal);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.community-banner__btn:hover {
  background: var(--teal-dark);
}

.community-banner__btn.is-open {
  background: var(--teal-dark);
}

.community-banner__footer {
  margin: 28px 0 0;
  text-align: center;
}

.community-banner__view-all {
  display: inline-block;
  padding: 12px 28px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.community-banner__view-all:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.community-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.35s ease;
  margin-top: 0;
}

.community-panel.is-open {
  max-height: 900px;
  opacity: 1;
  margin-top: 40px;
}

.community-banner--always-open .community-panel {
  max-height: none;
  overflow-x: hidden;
  opacity: 1;
  margin-top: 40px;
}

.community-banner--always-open .community-banner__text {
  margin-bottom: 0;
}

.community-panel .news-carousel {
  max-width: var(--max-width);
  margin: 0 auto;
}

.community-panel .news-track-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.community-panel .news-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
}

.community-panel .news-card {
  flex: 0 0 auto;
}

.community-carousel .news-card__image {
  border-radius: var(--scroll-radius, 12px);
  transition: border-radius 0.25s ease-out;
}

.community-carousel .news-card__image img {
  border-radius: var(--scroll-radius, 12px);
  transition: transform 0.35s ease, border-radius 0.25s ease-out, opacity 0.35s ease;
}

.community-carousel .news-card__image img.js-lazy-img:not(.is-loaded) {
  opacity: 0;
}

.community-carousel .news-card__image img.js-lazy-img.is-loaded {
  opacity: 1;
}

.community-carousel .news-card__body {
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .community-carousel .news-card__image,
  .community-carousel .news-card__image img {
    border-radius: 12px;
    transition: transform 0.35s ease;
  }
}

/* Testimonials */
.testimonials-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.testimonials-panel {
  background: #3f2b50;
  color: var(--white);
  padding: 56px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.testimonials-panel__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.9;
}

.testimonials-panel__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 32px;
}

.testimonials-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.testimonials-track-wrap {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.45s ease;
}

.testimonial-slide {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
}

.testimonial-slide__text {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
  opacity: 0.95;
  overflow-wrap: break-word;
}

.testimonial-slide__author {
  font-size: 16px;
  font-weight: 700;
}

.testimonials-nav {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: none;
  background: none;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.testimonials-nav:hover {
  opacity: 1;
}

.testimonials-nav svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.testimonials-dots {
  display: flex;
  gap: 8px;
  margin-top: 36px;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.testimonials-dot.is-active {
  background: var(--white);
  transform: scale(1.15);
}

.testimonials-photo {
  position: relative;
  min-height: 320px;
  background: #d9d9d9;
}

.testimonials-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* From Our Studio */
.news-section {
  padding: 72px 32px 88px;
  background: var(--white);
}

.news-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.news-section__label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-section__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  color: #1a3a5c;
  text-align: center;
  margin-bottom: 48px;
}

.news-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.news-track-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.news-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
}

.news-card {
  flex: 0 0 auto;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.news-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
}

.news-card:hover .news-card__image img {
  transform: scale(1.04);
}

.news-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.news-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a3a5c;
  margin: 0;
}

.news-card__updated {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.news-card__updated time {
  font-variant-numeric: tabular-nums;
}

.news-card__btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--teal);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 2px;
  transition: background 0.2s;
}

.news-card__btn:hover {
  background: var(--teal-dark);
}

.news-nav {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: none;
  background: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.news-nav:hover:not(:disabled) {
  opacity: 1;
}

.news-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.news-nav svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Footer */
.site-footer {
  background: #3f2b50;
  color: var(--white);
}

.site-footer a {
  color: var(--white);
}

.site-footer__main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 32px 16px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr auto 1.15fr;
  gap: 28px 24px;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__brand a {
  display: block;
  line-height: 0;
  max-width: 252px;
}

.site-footer__brand .logo {
  display: block;
  max-width: 100%;
}

.site-footer__desc {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.92;
  max-width: 320px;
  margin: 0;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__links a {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.site-footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__map-col {
  align-self: start;
}

.site-footer__map {
  display: block;
  width: 240px;
  max-width: 100%;
  height: 168px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 0;
  transition: border-color 0.2s, transform 0.2s;
}

.site-footer__map:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.site-footer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.site-footer__contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
}

.site-footer__contact svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.site-footer__contact a {
  color: inherit;
}

.site-footer__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.site-footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.site-footer__social a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.site-footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.site-footer__chat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

.site-footer__chat-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.site-footer__chat-btn--zalo {
  background: #0068ff;
}

.site-footer__chat-btn--whatsapp {
  background: #25d366;
}

.site-footer__chat-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 32px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  opacity: 0.85;
}

/* Responsive — tablet */
@media (max-width: 1024px) {
  .nav {
    gap: 16px;
  }

  .nav > li > a,
  .nav-item > .nav-item__trigger {
    font-size: 15px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-section {
    margin-top: -60px;
  }

  .gallery-wrap {
    max-width: 680px;
    padding: 0 20px;
  }

  .gallery-collage {
    gap: 12px 14px;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
}

/* Responsive — phone */
@media (max-width: 768px) {
  .header__inner {
    padding: 0 16px;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .header__left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo {
    height: auto;
    max-height: 72px;
    width: auto;
    max-width: min(160px, 42vw);
    flex-shrink: 1;
    margin-block: -10px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 99;
    flex: none;
    justify-content: flex-start;
    padding: 80px 24px 32px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .nav-wrapper.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav > li,
  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav > li > a,
  .nav-item > .nav-item__trigger {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    width: 100%;
  }

  .nav-item__trigger::after {
    display: none;
  }

  .nav-item--book {
    display: list-item;
  }

  .nav-item--book > a {
    color: var(--teal);
    font-weight: 600;
  }

  .nav-submenu {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0 0 8px 12px;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-submenu li {
    border-bottom: none;
  }

  .nav-submenu a {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
  }

  .nav-submenu a:hover {
    background: transparent;
  }

  .header__actions {
    gap: 4px;
  }

  .btn-contact {
    padding: 10px 14px;
    font-size: 13px;
  }

  .cards-section {
    margin-top: 0;
    padding: 24px 0 24px;
  }

  .cards {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    gap: 16px;
  }

  .card {
    padding: 22px 20px 26px;
  }

  .card__title {
    font-size: 20px;
  }

  .btn-view {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .gallery-section {
    padding: 12px 20px 20px 16px;
  }

  .gallery-wrap {
    padding: 0 16px;
  }

  .gallery-collage {
    gap: 10px 12px;
    padding-bottom: 12px;
  }

  .gallery-item {
    flex-basis: min(var(--gallery-w, 46%), 100%);
    width: min(var(--gallery-w, 46%), 100%);
  }

  .gallery-section__intro {
    margin-bottom: 28px;
    font-size: 22px;
  }

  .courses-section {
    padding: 24px 16px 64px;
  }

  .courses-section__inner {
    padding: 0 8px;
  }

  .courses-section__header {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  .courses-section__label {
    padding-top: 0;
  }

  .course-row {
    grid-template-columns: 48px 1fr 40px;
    gap: 12px;
    padding: 20px 0;
  }

  .course-row__arrow {
    width: 36px;
    height: 36px;
  }

  .community-banner {
    padding: 40px 20px;
  }

  .community-banner__text {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .community-panel.is-open {
    margin-top: 28px;
  }

  .testimonials-section {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .testimonials-panel {
    padding: 32px 16px 28px;
    order: 2;
    overflow-x: hidden;
    min-width: 0;
  }

  .testimonials-panel__heading {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .testimonials-slider {
    gap: 4px;
  }

  .testimonials-photo {
    min-height: 280px;
    order: 1;
  }

  .testimonials-nav {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .testimonials-nav svg {
    width: 24px;
    height: 24px;
  }

  .testimonial-slide__text {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .testimonials-dots {
    margin-top: 24px;
  }

  .news-section {
    padding: 48px 16px 64px;
  }

  .news-section__heading {
    margin-bottom: 32px;
  }

  .news-carousel {
    gap: 4px;
  }

  .news-nav {
    width: 44px;
    height: 44px;
  }

  .news-nav svg {
    width: 28px;
    height: 28px;
  }

  .news-track {
    gap: 16px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    padding: 22px 20px 14px;
    gap: 18px;
  }

  .site-footer__brand a {
    max-width: 220px;
  }

  .site-footer__brand .logo {
    max-height: 72px;
    margin-block: -10px;
  }

  .site-footer__bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 20px 10px;
  }
}

@media (max-width: 400px) {
  .logo {
    max-height: 64px;
    max-width: min(140px, 40vw);
    margin-block: -8px;
  }

  .btn-contact {
    padding: 8px 10px;
    font-size: 12px;
  }

  .cards {
    padding: 0 10px;
  }
}

/* About page */
.about-page {
  background: #faf8f4;
}

.about-section {
  padding: 56px 24px;
  border-top: 1px solid var(--section-divider);
}

.about-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  color: #1a3a5c;
  margin-bottom: 24px;
}

.about-banner {
  width: 100%;
  height: clamp(200px, 38vw, 480px);
  overflow: hidden;
  border-bottom: 1px solid var(--section-divider);
}

.about-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-team {
  background: var(--white);
}

.about-team .about-section__title {
  text-align: center;
  margin-bottom: 40px;
}

.about-team__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.teacher-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: #faf8f4;
  border-radius: 8px;
  border: 1px solid #eee;
}

.teacher-card__photo {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #e8e8e8;
}

.teacher-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.teacher-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 6px;
}

.teacher-card__role {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.teacher-card__links {
  font-size: 13px;
  font-weight: 600;
}

.teacher-card__links a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.teacher-card__links a:hover {
  color: var(--teal-dark);
}

.teacher-card__sep {
  margin: 0 6px;
  color: var(--text-muted);
}

.about-team__faq {
  margin-top: 36px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

.about-team__faq a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.about-split--reverse .about-split__content {
  order: 1;
}

.about-split--reverse .about-split__media {
  order: 2;
}

.about-split__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.about-studio-life {
  background: var(--white);
}

.about-prose {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dark);
}

.about-prose p {
  margin-bottom: 1.2em;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-prose a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-prose a:hover {
  color: var(--teal-dark);
}

.about-prose--center {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-story-inline {
  padding-top: 48px;
  background: #faf8f4;
}

.about-visit {
  background: var(--white);
}

.about-visit__list {
  list-style: none;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-visit__list a {
  color: var(--teal);
  font-weight: 600;
}

.about-visit__list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-visit__partners {
  font-size: 13px;
  color: var(--text-muted);
}

.about-visit__map {
  border-radius: 8px;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid #eee;
}

.about-visit__map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

@media (max-width: 900px) {
  .about-team__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-split,
  .about-split--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-split--reverse .about-split__content,
  .about-split--reverse .about-split__media {
    order: unset;
  }

}

@media (max-width: 520px) {
  .about-section {
    padding: 40px 16px;
  }

  .teacher-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .teacher-card__photo {
    max-width: 200px;
    margin: 0 auto;
  }

  .about-section__title {
    text-align: center;
  }

  .about-split__content .about-section__title {
    text-align: left;
  }
}

/* Courses page — Learning Pathways */
.courses-page {
  background: #faf8f4;
}

.courses-hero {
  padding: 48px 24px 40px;
  background: var(--white);
  border-bottom: 1px solid var(--section-divider);
}

.courses-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.courses-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a3a5c;
  margin-bottom: 12px;
}

.courses-hero__subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
}

.pathways-section {
  padding: 48px 24px 64px;
}

.pathways-section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.pathways-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pathway {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
}

.pathway__header {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr 44px;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.pathway__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.pathway__header:hover::before,
.pathway.is-open .pathway__header::before {
  transform: scaleY(1);
}

.pathway__media {
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--white);
}

.pathway__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

.pathway__intro {
  position: relative;
  z-index: 1;
  padding: 24px 0;
}

.pathway__num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  transition: color 0.35s ease;
}

.pathway__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  color: #1a3a5c;
  margin-bottom: 10px;
  transition: color 0.35s ease;
}

.pathway__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
  max-width: 52ch;
  transition: color 0.35s ease;
}

.pathway__meta {
  font-size: 13px;
  font-weight: 600;
  color: #1a3a5c;
  opacity: 0.65;
}

.pathway__chevron {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 20px;
  border-radius: 50%;
  background: #1a3a5c;
  color: var(--white);
  transition: transform 0.35s ease, background 0.35s ease;
  justify-self: end;
}

.pathway__header:hover .pathway__num,
.pathway.is-open .pathway__header .pathway__num,
.pathway__header:hover .pathway__title,
.pathway.is-open .pathway__header .pathway__title,
.pathway__header:hover .pathway__desc,
.pathway.is-open .pathway__header .pathway__desc,
.pathway__header:hover .pathway__meta,
.pathway.is-open .pathway__header .pathway__meta {
  color: var(--white);
}

.pathway__header:hover .pathway__chevron,
.pathway.is-open .pathway__chevron {
  background: var(--white);
  color: var(--teal);
}

.pathway.is-open .pathway__chevron {
  transform: rotate(180deg);
}

.pathway__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease;
  border-top: 1px solid transparent;
}

.pathway.is-open .pathway__panel {
  max-height: 720px;
  opacity: 1;
  border-top-color: #eee;
}

@media (hover: hover) {
  .pathway:hover .pathway__panel {
    max-height: 720px;
    opacity: 1;
    border-top-color: #eee;
  }
}

.pathway__detail {
  padding: 20px 24px 28px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.pathway__detail p + p {
  margin-top: 12px;
}

.pathway__detail-link {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.pathway__detail-link .pathway__course-link {
  padding: 14px 16px;
  margin: 0 -16px;
}

.pathway__courses {
  list-style: none;
  padding: 8px 24px 20px;
  margin: 0;
}

.pathway__courses--after-detail {
  padding-top: 0;
  border-top: 1px solid #eee;
}

.pathway__course-link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 36px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid #f0ece4;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.pathway__course-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.pathway__course-link:hover::before {
  transform: scaleY(1);
}

.pathway__course-link:last-child {
  border-bottom: none;
}

.pathway__course-title {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: #1a3a5c;
  transition: color 0.35s ease;
}

.pathway__course-arrow {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a3a5c;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  transition: background 0.35s ease;
}

.pathway__course-link:hover .pathway__course-title {
  color: var(--white);
}

.pathway__course-link:hover .pathway__course-arrow {
  background: var(--white);
  color: var(--teal);
}

.pathway__course-arrow svg {
  width: 16px;
  height: 16px;
}

.courses-benefits {
  padding: 48px 24px;
  background: var(--white);
  border-top: 1px solid var(--section-divider);
}

.courses-benefits__inner {
  max-width: 720px;
  margin: 0 auto;
}

.courses-benefits__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: #1a3a5c;
  margin-bottom: 20px;
  text-align: center;
}

.courses-benefits__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.courses-benefits__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.courses-benefits__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.courses-cta {
  padding: 56px 24px 72px;
  text-align: center;
  border-top: 1px solid var(--section-divider);
}

.courses-cta__inner {
  max-width: 520px;
  margin: 0 auto;
}

.courses-cta__text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  color: #1a3a5c;
  margin-bottom: 24px;
}

.courses-cta__btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: background 0.2s;
}

.courses-cta__btn:hover {
  background: var(--teal-dark);
}

.courses-cta__links {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.courses-cta__links a {
  color: #1a3a5c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.courses-cta__links a:hover {
  color: var(--teal);
}

.courses-cta__links span {
  margin: 0 8px;
  opacity: 0.5;
}

.courses-cta__note {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.courses-cta__note s {
  opacity: 0.6;
}

.courses-cta__note strong {
  color: #1a3a5c;
}

/* Kids courses page */
.courses-intro {
  padding: 32px 24px 40px;
  background: var(--white);
  border-bottom: 1px solid var(--section-divider);
}

.courses-intro__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.courses-intro__inner p + p {
  margin-top: 14px;
}

.courses-intro__tag {
  font-size: 14px;
  font-style: italic;
  color: #1a3a5c;
  margin-bottom: 16px;
}

.courses-schedule {
  padding: 48px 24px;
  background: var(--white);
  border-top: 1px solid var(--section-divider);
}

.courses-schedule__inner {
  max-width: 820px;
  margin: 0 auto;
}

.courses-schedule__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: #1a3a5c;
  margin-bottom: 20px;
  text-align: center;
}

.courses-schedule__table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.courses-schedule__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.courses-schedule__caption {
  caption-side: top;
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.courses-schedule__table th,
.courses-schedule__table td {
  padding: 10px 12px;
  border: 1px solid #d8dde6;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.courses-schedule__section-row th {
  background: #faf8f4;
  font-weight: 700;
  color: #1a3a5c;
  text-align: center;
}

.courses-schedule__days-row th,
.courses-schedule__price-head th {
  background: #dceaf5;
  font-weight: 600;
  color: #1a3a5c;
}

.courses-schedule__times-row td {
  font-size: 13px;
  color: var(--text-dark);
}

.courses-schedule__location {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.courses-schedule__location a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.courses-teachers {
  padding: 48px 24px;
  border-top: 1px solid var(--section-divider);
}

.courses-teachers__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.courses-teachers__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: #1a3a5c;
  margin-bottom: 16px;
}

.courses-teachers__inner p + p {
  margin-top: 12px;
}

.courses-teachers__inner a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kids-gallery {
  padding: 0 24px 48px;
}

.kids-gallery__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kids-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 3 / 2;
  background: #eee;
}

.kids-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .courses-hero {
    padding: 40px 16px 36px;
  }

  .pathways-section {
    padding: 32px 16px 48px;
  }

  .pathway__header {
    grid-template-columns: 1fr 40px;
    grid-template-rows: auto auto;
    gap: 0;
  }

  .pathway__media {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .pathway__intro {
    grid-column: 1;
    padding: 20px 0 20px 20px;
  }

  .pathway__chevron {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin-right: 16px;
  }

  .pathway__courses {
    padding: 4px 20px 16px;
  }

  .courses-benefits,
  .courses-cta,
  .courses-intro,
  .courses-schedule,
  .courses-teachers {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kids-gallery {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kids-gallery__inner {
    grid-template-columns: 1fr;
  }
}

/* Individual course page */
.course-page {
  background: #faf8f4;
}

.course-page__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.course-page--not-found .course-page__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  color: #1a3a5c;
  margin-bottom: 16px;
}

.course-breadcrumb {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.course-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.course-breadcrumb__list li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: #c4bfb5;
}

.course-breadcrumb__list a {
  color: var(--teal);
  text-decoration: none;
}

.course-breadcrumb__list a:hover {
  text-decoration: underline;
}

.course-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.course-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.course-hero__content {
  padding: 32px 32px 32px 0;
}

.course-hero__pathway {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-hero__pathway a {
  color: var(--teal);
  text-decoration: none;
}

.course-hero__pathway a:hover {
  text-decoration: underline;
}

.course-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  color: #1a3a5c;
  margin: 0 0 12px;
}

.course-hero__sessions {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1a3a5c;
  background: #efcc55;
  border-radius: 999px;
}

.course-hero__intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}

.course-gallery {
  margin-bottom: 32px;
}

.course-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.course-gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}

.course-gallery__item--wide {
  grid-column: 1 / -1;
}

.course-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.course-gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #1a3a5c;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.course-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.course-block {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 28px 32px;
}

.course-block__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: #1a3a5c;
  margin: 0 0 12px;
}

.course-block__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
}

.course-block__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
}

.course-block__list li + li {
  margin-top: 8px;
}

.course-sessions {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 28px 32px;
}

.course-sessions__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #1a3a5c;
  margin: 0 0 20px;
}

.course-sessions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.course-session__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.course-session__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
}

@media (max-width: 768px) {
  .course-breadcrumb {
    padding: 20px 16px 0;
  }

  .course-article {
    padding: 24px 16px 40px;
  }

  .course-hero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .course-hero__content {
    padding: 24px 20px 28px;
  }

  .course-block,
  .course-sessions {
    padding: 24px 20px;
  }

  .course-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .course-gallery__item--wide {
    grid-column: 1 / -1;
  }
}

/* Pricing / Programs page */
.pricing-page {
  background: #faf8f4;
}

.pricing-hero {
  padding: 48px 24px 40px;
  background: var(--white);
  border-bottom: 1px solid var(--section-divider);
}

.pricing-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.pricing-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a3a5c;
  margin-bottom: 20px;
}

.pricing-hero__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.pricing-hero__text + .pricing-hero__text {
  margin-top: 12px;
}

.pricing-hero__text--lead {
  font-size: 18px;
  color: var(--text-dark);
}

.pricing-hero__faq {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-hero__faq a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-programs {
  padding: 48px 24px 64px;
  background: var(--white);
}

.pricing-programs__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.pricing-list {
  border-top: 1px solid #1a3a5c;
}

.pathway--pricing {
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.pathway--pricing .pricing-row__header {
  display: grid;
  grid-template-columns: 72px 1fr 44px;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 26px 0;
  border: none;
  border-bottom: 1px solid #1a3a5c;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.pathway--pricing .pricing-row__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.pathway--pricing .pricing-row__header:hover::before,
.pathway--pricing.is-open .pricing-row__header::before {
  transform: scaleY(1);
}

.pricing-row__num,
.pricing-row__title,
.pricing-row__chevron {
  position: relative;
  z-index: 1;
}

.pricing-row__num {
  font-size: 14px;
  font-weight: 700;
  color: #1a3a5c;
  transition: color 0.35s ease;
}

.pricing-row__title {
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 600;
  color: #1a3a5c;
  transition: color 0.35s ease;
}

.pricing-row__chevron {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a3a5c;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.pathway--pricing .pricing-row__header:hover .pricing-row__num,
.pathway--pricing.is-open .pricing-row__header .pricing-row__num,
.pathway--pricing .pricing-row__header:hover .pricing-row__title,
.pathway--pricing.is-open .pricing-row__header .pricing-row__title {
  color: var(--white);
}

.pathway--pricing .pricing-row__header:hover .pricing-row__chevron,
.pathway--pricing.is-open .pricing-row__chevron {
  background: var(--white);
  color: var(--teal);
}

.pathway--pricing.is-open .pricing-row__chevron {
  transform: rotate(180deg);
}

.pathway--pricing .pathway__panel {
  max-height: none;
  opacity: 1;
  border-top: none;
  overflow: visible;
}

.pathway--pricing.is-open .pathway__panel,
.pathway--pricing:hover .pathway__panel {
  max-height: none;
  border-top-color: transparent;
}

.pricing-panel__desc {
  margin: 0;
  padding: 20px 0 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.pricing-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  font-size: 16px;
}

.pricing-item:nth-child(odd) {
  background: var(--white);
}

.pricing-item:nth-child(even) {
  background: #f3f1ec;
}

.pricing-item__title {
  font-weight: 600;
  color: #1a3a5c;
}

.pricing-item__price {
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.pricing-single {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 24px;
  font-size: 16px;
  background: var(--white);
}

.pricing-single__label {
  font-weight: 600;
  color: #1a3a5c;
}

.pricing-single__price {
  font-weight: 700;
  color: var(--text-dark);
}

.pricing-panel__footer {
  padding: 20px 0 8px;
}

.pricing-panel__btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--teal);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.pricing-panel__btn:hover {
  background: var(--teal-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  padding: 28px 28px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card--featured {
  border-color: #efcc55;
  background: linear-gradient(180deg, #fffdf6 0%, var(--white) 100%);
}

.pricing-card--residency {
  max-width: 480px;
  margin: 0 auto;
}

.pricing-card__badge {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a3a5c;
  opacity: 0.65;
}

.pricing-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: #1a3a5c;
  margin-bottom: 12px;
}

.pricing-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.pricing-card__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.75;
}

.pricing-card__tag::before {
  content: '— ';
}

.pricing-card__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.pricing-card__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-card__features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dark);
}

.pricing-card__features li {
  position: relative;
  padding-left: 14px;
}

.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.pricing-card__btn {
  display: block;
  margin-top: auto;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--teal);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.pricing-card__btn:hover {
  background: var(--teal-dark);
}

.pricing-solo {
  margin: 48px 0 32px;
  text-align: center;
  color: var(--text-muted);
}

.pricing-solo__heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.pricing-solo__text {
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: 40px 16px 36px;
  }

  .pricing-programs {
    padding: 32px 16px 48px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card {
    padding: 24px 20px 20px;
  }

  .pricing-card--residency {
    max-width: none;
  }

  .pathway--pricing .pricing-row__header {
    grid-template-columns: 48px 1fr 40px;
    gap: 12px;
    padding: 20px 0;
  }

  .pricing-row__chevron {
    width: 36px;
    height: 36px;
  }

  .pricing-panel__desc {
    padding-top: 16px;
  }

  .pricing-item,
  .pricing-single {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pricing-panel__footer {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Experience / workshop pages */
.experience-page {
  background: #faf8f4;
}

.experience-page__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.experience-page--not-found .experience-page__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  color: #1a3a5c;
  margin-bottom: 16px;
}

.experience-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.experience-hero {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.experience-hero__media img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.experience-hero__content {
  padding: 32px;
}

.experience-hero__category {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.experience-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  color: #1a3a5c;
  margin: 0 0 8px;
}

.experience-hero__subtitle {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
}

.experience-hero__price {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #1a3a5c;
}

.experience-hero__price-note {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.experience-hero__intro {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}

.experience-hero__btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: background 0.2s;
}

.experience-hero__btn:hover {
  background: var(--teal-dark);
}

.experience-meta {
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 24px 32px;
}

.experience-meta__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px 32px;
  margin: 0;
}

.experience-meta__item dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.experience-meta__item dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
}

.experience-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .experience-article {
    padding: 24px 16px 40px;
  }

  .experience-hero__content {
    padding: 24px 20px;
  }

  .experience-meta {
    padding: 20px;
  }
}

/* Workshop pages — native Gutenberg blocks inside .experience-article */
.experience-article .wp-block-group.experience-hero {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.experience-article .experience-hero__media .wp-block-image {
  margin: 0;
}

.experience-article .experience-hero__media img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.experience-article .wp-block-group.experience-hero__content {
  padding: 32px;
}

.experience-article .wp-block-group.experience-meta {
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px 32px;
}

.experience-article .experience-meta__item {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
}

.experience-article .experience-meta__item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.experience-article .wp-block-group.experience-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.experience-article .wp-block-group.course-block {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 24px 28px;
}

.experience-article .wp-block-group.course-gallery {
  margin-bottom: 32px;
}

.experience-article .wp-block-group.course-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.experience-article .wp-block-group.course-gallery__item {
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}

.experience-article .course-gallery__item .wp-block-image {
  margin: 0;
}

.experience-article .course-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.experience-article .wp-block-group.courses-cta {
  margin-top: 8px;
}

.experience-article .courses-cta__inner {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .experience-article .wp-block-group.course-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-article .wp-block-group.experience-hero__content {
    padding: 24px 20px;
  }

  .experience-article .wp-block-group.experience-meta {
    padding: 20px;
  }
}

/* Course detail pages — native Gutenberg blocks inside .course-article */
.course-article .wp-block-group.course-hero {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.course-article .course-hero__media .wp-block-image {
  margin: 0;
}

.course-article .course-hero__media img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  display: block;
}

.course-article .wp-block-group.course-hero__content {
  padding: 32px;
}

.course-article .wp-block-group.course-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.course-article .wp-block-group.course-block {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 24px 28px;
}

.course-article .wp-block-group.course-gallery {
  margin-bottom: 32px;
}

.course-article .wp-block-group.course-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.course-article .wp-block-group.course-gallery__item {
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}

.course-article .wp-block-group.course-gallery__item--wide {
  grid-column: 1 / -1;
}

.course-article .course-gallery__item .wp-block-image {
  margin: 0;
}

.course-article .course-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.course-article .wp-block-group.course-sessions {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 24px 28px;
}

.course-article .wp-block-group.course-session {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8e4dc;
}

.course-article .wp-block-group.course-session:first-of-type {
  margin-top: 12px;
}

.course-article .wp-block-group.courses-cta {
  margin-top: 8px;
}

.course-article .courses-cta__inner {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .course-article .wp-block-group.course-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-article .wp-block-group.course-hero__content {
    padding: 24px 20px;
  }
}

/* Calendar page */
.calendar-schedule {
  padding: 40px 24px 64px;
  background: var(--cream);
  --calendar-font: 14px;
  --calendar-font-sm: 13px;
  --calendar-font-lg: 15px;
}

.calendar-schedule__inner {
  max-width: 960px;
  margin: 0 auto;
}

.calendar-schedule__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.calendar-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(26, 58, 92, 0.06);
  overflow: hidden;
}

.calendar-panel__title {
  margin: 0;
  padding: 10px 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  background: var(--cream);
  border-bottom: 1px solid #d8dde6;
}

.calendar-panel__body {
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar-art-calendar #art-calendar:empty::before {
  content: 'Loading timetable…';
  display: block;
  padding: 32px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.calendar-panel__body .calendar-schedule__table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.calendar-panel .calendar-schedule__table,
.calendar-panel .tablepress,
.calendar-panel .art-timetable {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: var(--calendar-font);
  line-height: 1.45;
  background: var(--white);
}

.calendar-panel .calendar-schedule__table {
  table-layout: fixed;
}

.calendar-panel .calendar-schedule__table td,
.calendar-panel .calendar-schedule__table th,
.calendar-panel .tablepress td,
.calendar-panel .tablepress th,
.calendar-panel .art-timetable td,
.calendar-panel .art-timetable th {
  padding: 4px 6px;
  border: 1px solid #d8dde6;
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
  font-size: inherit;
}

.calendar-panel .art-timetable {
  table-layout: fixed;
}

.calendar-panel .art-timetable .art-student {
  display: block;
  line-height: 1.35;
  margin: 0;
  padding: 0;
  font-size: var(--calendar-font);
}

.calendar-panel .art-timetable .art-student + .art-student {
  margin-top: 2px;
}

.calendar-panel .art-timetable td:empty {
  padding: 2px 3px;
}

.calendar-panel .calendar-schedule__table thead td,
.calendar-panel .tablepress thead td,
.calendar-panel .art-timetable th {
  background: var(--sky);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  font-size: var(--calendar-font-sm);
  line-height: 1.35;
  padding: 5px 6px;
}

.calendar-panel .art-timetable .time-col,
.calendar-panel .tablepress tbody tr td:first-child {
  font-weight: 700;
  color: var(--navy);
  background: var(--sky);
  white-space: nowrap;
  font-size: var(--calendar-font-sm);
}

.calendar-panel .art-timetable .time-col {
  width: 80px;
  padding: 4px 5px;
}

.calendar-panel .calendar-schedule__table tbody tr td:first-child {
  width: 12%;
  padding: 4px 6px;
  font-size: var(--calendar-font-sm);
}

.calendar-panel .calendar-schedule__table tbody tr:nth-child(odd) td:not(:first-child),
.calendar-panel .tablepress tbody tr:nth-child(odd) td:not(:first-child),
.calendar-panel .art-timetable tbody tr:nth-child(odd) td:not(.time-col) {
  background: var(--white);
}

.calendar-panel .calendar-schedule__table tbody tr:nth-child(even) td:not(:first-child),
.calendar-panel .tablepress tbody tr:nth-child(even) td:not(:first-child),
.calendar-panel .art-timetable tbody tr:nth-child(even) td:not(.time-col) {
  background: var(--cream);
}

.calendar-panel .calendar-schedule__table tbody tr:hover td:not(:first-child),
.calendar-panel .tablepress tbody tr:hover td:not(:first-child),
.calendar-panel .art-timetable tbody tr:hover td:not(.time-col) {
  background: var(--mint);
}

.calendar-panel .calendar-schedule__table strong,
.calendar-panel .tablepress strong {
  color: var(--navy);
  font-weight: 700;
  font-size: var(--calendar-font-lg);
  line-height: 1.35;
}

.calendar-panel .tablepress-table-caption {
  display: none;
}

@media (max-width: 768px) {
  .calendar-schedule {
    padding: 32px 16px 48px;
  }

  .calendar-panel .calendar-schedule__table,
  .calendar-panel .tablepress,
  .calendar-panel .art-timetable {
    min-width: 420px;
  }

  .calendar-schedule {
    --calendar-font: 13px;
    --calendar-font-sm: 12px;
    --calendar-font-lg: 14px;
  }

  .calendar-panel .calendar-schedule__table td,
  .calendar-panel .calendar-schedule__table th,
  .calendar-panel .tablepress td,
  .calendar-panel .tablepress th,
  .calendar-panel .art-timetable td,
  .calendar-panel .art-timetable th {
    padding: 4px 6px;
  }

  .calendar-panel .calendar-schedule__table tbody tr td:first-child,
  .calendar-panel .tablepress tbody tr td:first-child,
  .calendar-panel .art-timetable .time-col {
    white-space: normal;
  }
}

/* Book page — tabbed Fluent Forms */
.book-page__body {
  padding: 0 24px 80px;
}

.book-page__inner {
  max-width: 920px;
  margin: 0 auto;
}

.book-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(26, 107, 107, 0.15);
  padding-bottom: 4px;
}

.book-tabs__tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-text, #2c2c2c);
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.book-tabs__tab:hover {
  color: var(--color-teal, #1a6b6b);
  background: rgba(26, 107, 107, 0.06);
}

.book-tabs__tab.is-active {
  color: #fff;
  background: var(--color-teal, #1a6b6b);
  border-color: var(--color-teal, #1a6b6b);
}

.book-panel__intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted, #555);
  margin: 0 0 28px;
  max-width: 720px;
}

.book-panel__note {
  margin: 28px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted, #555);
}

.book-panel__note a {
  color: var(--color-teal, #1a6b6b);
  font-weight: 600;
  text-decoration: none;
}

.book-panel__note a:hover {
  text-decoration: underline;
}

.book-workshops {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .book-workshops {
    grid-template-columns: repeat(2, 1fr);
  }
}

.book-workshops__item {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid rgba(26, 107, 107, 0.12);
  border-radius: 8px;
}

.book-workshops__title {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.book-workshops__desc {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-muted, #555);
}

.book-workshops__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal, #1a6b6b);
  text-decoration: none;
}

.book-workshops__link:hover {
  text-decoration: underline;
}

/* Workshops hub — Gutenberg blocks on default page template */
.generic-page__content .wp-block-group.workshops-hub__card {
  padding: 24px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
}

.generic-page__content .workshops-hub__card-title {
  margin: 0 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: #1a3a5c;
}

.generic-page__content .workshops-hub__card-desc {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.generic-page__content .workshops-hub__card-meta {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
}

.generic-page__content .workshops-hub__card-meta strong {
  color: var(--teal);
  font-weight: 700;
}

.generic-page__content .workshops-hub__card-link {
  margin: 8px 0 0;
}

.generic-page__content .workshops-hub__card-link a {
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}

.generic-page__content .workshops-hub__card-link a:hover {
  text-decoration: underline;
}

.book-form-section__inner {
  max-width: 100%;
}

.book-form-section__fallback {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
}

.book-form-section__fallback a {
  color: var(--color-teal, #1a6b6b);
}

@media (max-width: 640px) {
  .book-tabs {
    gap: 6px;
  }

  .book-tabs__tab {
    padding: 10px 14px;
    font-size: 0.8125rem;
  }
}

/* Thank you page */
.thank-you-page__hero {
  padding-bottom: 40px;
}

.thank-you-page__badge {
  margin-bottom: 20px;
}

.thank-you-page__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.thank-you-page__icon--pending {
  background: #c8860a;
}

.thank-you-page__lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.thank-you-page__body {
  padding: 0 24px 80px;
}

.thank-you-page__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.thank-you-page__payment {
  text-align: left;
  background: var(--white);
  border: 1px solid rgba(26, 107, 107, 0.18);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.thank-you-page__payment-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  text-align: center;
}

.thank-you-page__payment-lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

.thank-you-page__bank-details {
  margin: 0 0 24px;
}

.thank-you-page__bank-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 107, 107, 0.08);
  font-size: 15px;
  line-height: 1.5;
}

.thank-you-page__bank-row:last-child {
  border-bottom: 0;
}

.thank-you-page__bank-row dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.thank-you-page__bank-row dd {
  margin: 0;
  color: var(--navy);
}

.thank-you-page__qr-wrap {
  margin: 0;
  text-align: center;
}

.thank-you-page__qr-image {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(26, 107, 107, 0.12);
}

.thank-you-page__details {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.thank-you-page__steps {
  text-align: left;
  background: var(--mint);
  border: 1px solid rgba(26, 107, 107, 0.12);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.thank-you-page__steps-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.thank-you-page__steps-list {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.thank-you-page__steps-list li + li {
  margin-top: 4px;
}

.thank-you-page__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.thank-you-page__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thank-you-page__link:hover {
  color: var(--teal);
}

/* Students' Artworks hub */
.students-artworks-page {
  background: var(--white);
}

.students-artworks-grid-section {
  padding: 48px 32px 64px;
}

.students-artworks-grid-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.students-artworks-grid-section__empty {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

.students-artworks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.students-artworks-grid .news-card {
  flex: unset;
  height: 100%;
}

.students-artworks-grid .news-card__image {
  border-radius: var(--scroll-radius, 12px);
  transition: border-radius 0.25s ease-out;
}

.students-artworks-grid .news-card__image img {
  border-radius: var(--scroll-radius, 12px);
  transition: transform 0.35s ease, border-radius 0.25s ease-out, opacity 0.35s ease;
}

.students-artworks-grid .news-card__image img.js-lazy-img:not(.is-loaded) {
  opacity: 0;
}

.students-artworks-grid .news-card__image img.js-lazy-img.is-loaded {
  opacity: 1;
}

.students-artworks-grid .news-card__body {
  gap: 8px;
}

.students-artworks-grid .news-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a3a5c;
}

@media (prefers-reduced-motion: reduce) {
  .students-artworks-grid .news-card__image,
  .students-artworks-grid .news-card__image img {
    border-radius: 12px;
    transition: transform 0.35s ease;
  }
}

@media (max-width: 1024px) {
  .students-artworks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .students-artworks-grid-section {
    padding: 36px 20px 48px;
  }

  .students-artworks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Generic page.php — editor content */
.generic-page {
  background: var(--white);
}

.generic-page__body {
  padding: 48px 32px 64px;
}

.generic-page__inner {
  max-width: 820px;
  margin: 0 auto;
}

.generic-page__content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.generic-page__content > :first-child {
  margin-top: 0;
}

.generic-page__content p {
  margin-bottom: 1em;
}

.generic-page__content h2,
.generic-page__content h3,
.generic-page__content h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  margin: 1.75em 0 0.75em;
  line-height: 1.3;
}

.generic-page__content h2 {
  font-size: clamp(22px, 3vw, 28px);
}

.generic-page__content h3 {
  font-size: clamp(18px, 2.5vw, 22px);
}

.generic-page__content ul,
.generic-page__content ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.generic-page__content li + li {
  margin-top: 0.35em;
}

.generic-page__content a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.generic-page__content a:hover {
  color: var(--navy);
}

.generic-page__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.generic-page__content .wp-block-image {
  margin: 1.5em 0;
}

.generic-page__content .wp-block-separator,
.generic-page__content hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--section-divider);
}

.generic-page__content .wp-block-button__link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--teal);
  color: var(--white) !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.generic-page__content .wp-block-button__link:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.generic-page__content a.btn-view,
.generic-page__content a.btn-contact,
.generic-page__content a.courses-cta__btn {
  color: var(--white);
  text-decoration: none;
}

.generic-page__content a.btn-view:hover,
.generic-page__content a.btn-contact:hover,
.generic-page__content a.courses-cta__btn:hover {
  color: var(--white);
}

.generic-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}

.generic-page__content th,
.generic-page__content td {
  border: 1px solid var(--section-divider);
  padding: 10px 12px;
  text-align: left;
}

.generic-page__content th {
  background: #e7f2fb;
  font-weight: 600;
}

.generic-page__content iframe {
  max-width: 100%;
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 8px;
}

.generic-page--art-supplies .generic-page__content > h1:first-child,
.generic-page--art-supplies .generic-page__content > .wp-block-heading:first-child {
  display: none;
}

@media (max-width: 640px) {
  .generic-page__body {
    padding: 36px 20px 48px;
  }
}

/* More links hub */
.links-page {
  background: var(--white);
}

.links-page__body {
  padding: 48px 32px 64px;
}

.links-page__inner {
  max-width: 720px;
  margin: 0 auto;
}

.links-page__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links-page__partner a {
  display: block;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.links-page__partner a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.links-page__partner img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  width: auto;
}

.links-page__divider {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--section-divider);
}

.links-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.links-page__item {
  font-size: 17px;
  line-height: 1.5;
}

.links-page__prefix {
  display: block;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.links-page__link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.links-page__link--em {
  font-style: italic;
  font-weight: 500;
}

.links-page__link:hover {
  color: var(--navy);
}

@media (max-width: 640px) {
  .links-page__body {
    padding: 36px 20px 48px;
  }

  .links-page__partners {
    gap: 20px 24px;
  }

  .links-page__partner img {
    max-height: 44px;
  }
}

/* Student artwork — single post */
.student-artwork-page {
  padding-bottom: 48px;
}

.student-artwork-page__article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.student-artwork-page__hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--section-divider);
}

.student-artwork-page__portrait {
  border-radius: 8px;
  overflow: hidden;
  background: var(--mint);
  aspect-ratio: 1 / 1;
}

.student-artwork-page__portrait-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-artwork-page__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 12px;
}

.student-artwork-page__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
}

.student-artwork-page__body {
  padding: 40px 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.student-artwork-page__body > :first-child {
  margin-top: 0;
}

.student-artwork-page__body p {
  margin-bottom: 1em;
}

.student-artwork-page__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.student-artwork-page__body .sgpg-gallery,
.student-artwork-page__body .sgpg-gallery ul {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 !important;
  padding: 0 !important;
  list-style: none;
}

.student-artwork-page__body .sgpg-gallery li,
.student-artwork-page__body .sgpg-gallery a {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

.student-artwork-page__body .sgpg-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Comments block embedded in post content */
.student-artwork-page__body .wp-block-comments-pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 32px;
}

.student-artwork-page__body .wp-block-comments-pagination-numbers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  width: auto !important;
  height: auto !important;
}

.student-artwork-page__body .wp-block-comments-pagination-numbers .page-numbers,
.student-artwork-page__body .wp-block-comments-pagination-numbers a,
.student-artwork-page__body .wp-block-comments-pagination-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  color: var(--navy);
  border-radius: 4px;
}

.student-artwork-page__body .wp-block-comments-pagination-numbers a:hover {
  color: var(--teal);
}

.student-artwork-page__body .wp-block-comments-pagination-numbers .current {
  background: var(--teal);
  color: var(--white);
}

.student-artwork-page__body .wp-block-comments-pagination-previous,
.student-artwork-page__body .wp-block-comments-pagination-next {
  flex: 0 0 auto;
}

/* Comment list — artwork image left, text right */
.student-artwork-page__body .wp-block-comments {
  max-width: 920px;
  margin: 48px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--section-divider);
}

.student-artwork-page__body .wp-block-comments-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 28px;
}

.student-artwork-page__body .wp-block-comment-template {
  list-style: none;
  margin: 0;
  padding: 0;
}

.student-artwork-page__body .wp-block-comment-template > li {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--section-divider);
}

.student-artwork-page__body .wp-block-comment-template > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.student-artwork-page__body .wp-block-comment-template .wp-block-columns {
  gap: 16px;
}

.student-artwork-page__body .wp-block-comment-template .wp-block-columns > .wp-block-column:first-child {
  flex-basis: 40px !important;
  flex-grow: 0;
}

.student-artwork-page__body .wp-block-comment-template .wp-block-avatar__image {
  border-radius: 50%;
}

.student-artwork-page__body .wp-block-comment-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.student-artwork-page__body .wp-block-comment-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.student-artwork-page__body .wp-block-comment-date a {
  color: inherit;
  text-decoration: none;
}

.student-artwork-page__body .student-comment-layout {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 24px;
  align-items: start;
}

.student-artwork-page__body .student-comment-layout__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.student-artwork-page__body .student-comment-layout__media figure {
  margin: 0;
}

.student-artwork-page__body .student-comment-layout__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.student-artwork-page__body .student-comment-layout__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dark);
}

.student-artwork-page__body .student-comment-layout__text p {
  margin: 0 0 0.75em;
}

.student-artwork-page__body .student-comment-layout__text p:last-child {
  margin-bottom: 0;
}

/* Fallback when comment filter did not run (cached HTML) */
.student-artwork-page__body .wp-block-comment-content:has(figure):not(:has(.student-comment-layout)) {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 16px 24px;
  align-items: start;
}

.student-artwork-page__body .wp-block-comment-content:has(figure):not(:has(.student-comment-layout)) > figure {
  grid-column: 1;
  margin: 0;
}

.student-artwork-page__body .wp-block-comment-content:has(figure):not(:has(.student-comment-layout)) > figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.student-artwork-page__body .wp-block-comment-content:has(figure):not(:has(.student-comment-layout)) > :not(figure) {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.student-artwork-page__body .wp-block-comment-content:not(:has(figure)) p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dark);
}

.student-artwork-page__body .wp-block-comment-reply-link {
  display: none;
}

.student-artwork-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid var(--section-divider);
  border-bottom: 1px solid var(--section-divider);
}

.student-artwork-page__nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 280px;
  text-decoration: none;
  color: var(--navy);
}

.student-artwork-page__nav-link--next {
  margin-left: auto;
  text-align: right;
}

.student-artwork-page__nav-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.student-artwork-page__nav-name {
  font-size: 16px;
  font-weight: 600;
}

.student-artwork-page__nav-link:hover .student-artwork-page__nav-name {
  color: var(--teal);
}

.student-artwork-page__cta {
  border-top: none;
}

.student-artwork-page__comments {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 24px;
}

.student-artwork-page__comments .comment-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.student-artwork-page__comments .comment-body {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--section-divider);
}

.student-artwork-page__comments .comment-author {
  font-weight: 600;
  color: var(--navy);
}

.student-artwork-page__comments .comment-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.student-artwork-page__comments .comment-content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dark);
}

.student-artwork-page__comments .comment-content p {
  margin-bottom: 0.75em;
}

@media (max-width: 768px) {
  .student-artwork-page__hero {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .student-artwork-page__portrait {
    max-width: 280px;
    margin: 0 auto;
  }

  .student-artwork-page__subtitle {
    margin: 0 auto;
  }

  .student-artwork-page__body .sgpg-gallery,
  .student-artwork-page__body .sgpg-gallery ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .student-artwork-page__nav-link--next {
    margin-left: 0;
    text-align: left;
  }

  .student-artwork-page__body .student-comment-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .student-artwork-page__body .student-comment-layout__media {
    max-width: 320px;
  }

  .student-artwork-page__body .wp-block-comment-content:has(figure):not(:has(.student-comment-layout)) {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .student-artwork-page__body .wp-block-comment-content:has(figure):not(:has(.student-comment-layout)) > figure {
    grid-column: 1;
    max-width: 320px;
  }

  .student-artwork-page__body .wp-block-comment-content:has(figure):not(:has(.student-comment-layout)) > :not(figure) {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .student-artwork-page__body .sgpg-gallery,
  .student-artwork-page__body .sgpg-gallery ul {
    grid-template-columns: 1fr;
  }
}
