/* Match primary headings across the SCHOOL GUIDE pages. */
.postid-862 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child,
.page-id-3647 .luana-headspa-page-title,
.postid-2652 .p-instructor > h1:first-child,
.postid-742 .p-entry__body > h1:first-child,
.postid-844 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child {
  margin: 8px 0 58px !important;
  color: #4f3826 !important;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif !important;
  font-size: 40px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: .08em !important;
  text-align: center !important;
}

/* Access uses the legacy page builder; keep its visible title identical. */
.postid-844 .p-entry__body h1:not(.p-company-header__title) {
  position: relative;
  display: block !important;
  width: 100%;
  margin: 0 0 34px !important;
  padding: 0 0 18px !important;
  color: #5a2525 !important;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif !important;
  font-size: 30px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  letter-spacing: .08em !important;
  text-align: center !important;
}

.postid-844 .p-entry__body h1:not(.p-company-header__title)::before {
  display: none !important;
  content: none !important;
}

.postid-844 .p-entry__body h1:not(.p-company-header__title)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block !important;
  width: 72px;
  height: 2px;
  margin: auto;
  background: #c99754;
  content: "" !important;
}

/* Match the visible Instructor heading size. */
.postid-862 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child,
.postid-742 .p-entry__body > h1:first-child,
.postid-844 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child {
  font-size: 30px !important;
  line-height: 1.5 !important;
}

body.postid-844 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child {
  margin: 0 0 34px !important;
  padding: 0 0 18px !important;
  color: #5a2525 !important;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif !important;
  font-size: 30px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

/* Contact and booking pages: match the visible Greeting page heading. */
.postid-1932 .p-entry__body h1:not(.p-company-header__title),
.postid-2387 .p-entry__body h1:not(.p-company-header__title),
.postid-1910 .p-entry__body h1:not(.p-company-header__title),
.postid-845 .p-entry__body h1:not(.p-company-header__title) {
  position: relative;
  display: block !important;
  width: 100%;
  margin: 8px 0 58px !important;
  padding: 0 0 22px !important;
  color: #4f3826 !important;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.55 !important;
  letter-spacing: .08em !important;
  text-align: center !important;
}

.postid-1932 .p-entry__body h1:not(.p-company-header__title)::before,
.postid-2387 .p-entry__body h1:not(.p-company-header__title)::before,
.postid-1910 .p-entry__body h1:not(.p-company-header__title)::before,
.postid-845 .p-entry__body h1:not(.p-company-header__title)::before {
  display: none !important;
  content: none !important;
}

.postid-1932 .p-entry__body h1:not(.p-company-header__title)::after,
.postid-2387 .p-entry__body h1:not(.p-company-header__title)::after,
.postid-1910 .p-entry__body h1:not(.p-company-header__title)::after,
.postid-845 .p-entry__body h1:not(.p-company-header__title)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block !important;
  width: 72px;
  height: 2px;
  margin: auto;
  background: #c99754;
  content: "" !important;
}

/* Contact overview cards */
.postid-1932 .p-entry__body .well2 p[style*="text-align: center"] {
  box-sizing: border-box;
  width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0;
  padding-left: 0;
}

.postid-1932 .p-entry__body .well2 .q_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 460px !important;
  min-width: 0 !important;
  padding: 14px 24px 13px !important;
  border: 1px solid #c99754 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #c99754 !important;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  white-space: normal;
  text-align: center;
  text-decoration: none !important;
}

.postid-1932 .p-entry__body .well2 .q_button:hover,
.postid-1932 .p-entry__body .well2 .q_button:focus-visible {
  background: #c99754 !important;
  color: #fff !important;
}

/* Course reservation actions: use the site's gold pill-button treatment. */
.postid-2387 .p-entry__body .q_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  padding: 9px 20px 8px !important;
  border: 1px solid #c99754 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #c99754 !important;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
  text-align: center;
  text-decoration: none !important;
}

.postid-2387 .p-entry__body .q_button:hover,
.postid-2387 .p-entry__body .q_button:focus-visible {
  background: #c99754 !important;
  color: #fff !important;
}

/* Greeting body copy: keep desktop unchanged and slightly reduce tablet/mobile text. */
@media (max-width: 1024px) {
  .postid-862 .p-entry__body #tcd-pb-wrap p {
    font-size: 14px !important;
  }

  .page-id-3647 .elementor-3647 p {
    font-size: 14px !important;
  }

  /* Tighten the gap between the first greeting photo and the following copy. */
  .postid-862 .p-entry__body #tcd-pb-wrap .row2 {
    padding-bottom: 15px !important;
  }

  .postid-862 .p-entry__body #tcd-pb-wrap .row2 .pb-widget-image {
    margin-bottom: 15px !important;
  }

  .postid-1932 .p-entry__body .well2 .q_button {
    width: 80% !important;
    max-width: 368px !important;
  }
}

@media (max-width: 767px) {
  .postid-862 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child,
  .page-id-3647 .luana-headspa-page-title,
  .postid-2652 .p-instructor > h1:first-child,
  .postid-742 .p-entry__body > h1:first-child,
  .postid-844 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child {
    margin: 0 0 38px !important;
    font-size: 27px !important;
    line-height: 1.6 !important;
  }

  .postid-862 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child,
  .postid-742 .p-entry__body > h1:first-child,
  .postid-844 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child {
    font-size: 25px !important;
    line-height: 1.5 !important;
  }

  .postid-844 .p-entry__body h1:not(.p-company-header__title) {
    margin-bottom: 28px !important;
    padding-bottom: 16px !important;
    font-size: 25px !important;
  }

  body.postid-844 .p-entry__body #tcd-pb-wrap .row1 .widget1 > h1:first-child {
    margin-bottom: 28px !important;
    padding-bottom: 16px !important;
    font-size: 25px !important;
  }

  .postid-1932 .p-entry__body h1:not(.p-company-header__title),
  .postid-2387 .p-entry__body h1:not(.p-company-header__title),
  .postid-1910 .p-entry__body h1:not(.p-company-header__title),
  .postid-845 .p-entry__body h1:not(.p-company-header__title) {
    margin: 0 0 38px !important;
    padding-bottom: 18px !important;
    font-size: 25px !important;
    line-height: 1.5 !important;
  }

  .postid-1932 .p-entry__body .well2 .q_button {
    padding: 12px 18px 11px !important;
    font-size: 14px !important;
  }

  .postid-2387 .p-entry__body .q_button {
    min-width: 160px !important;
    padding: 7px 16px 6px !important;
    font-size: 12px !important;
  }
}
