/*
 * Family Friends — original-page presentation refresh, v1.
 *
 * Scoped to the fourteen original pages rendered by the child theme page.php.
 * No database edits, replaced shortcodes, form endpoints, gallery engines, new
 * content or front-page changes. Refine after local Playwright screenshots.
 */

/* The canonical homepage stylesheet supplies the shared brand, frame and shell.
   These rules apply ONLY to the subpage template. */
body.ff-subpage {
  --ff-page-frame: min(1004px, calc(100% - 48px));
  margin: 0 !important;
  min-width: 320px;
  color: var(--ff-ink, #1f2922);
  background: var(--ff-viewport-bg, #e8e3da) !important;
  font-family: var(--ff-sans, 'Plus Jakarta Sans', sans-serif);
  line-height: 1.65;
}
body.ff-subpage *,
body.ff-subpage *::before,
body.ff-subpage *::after { box-sizing: border-box; }
body.ff-subpage :is(button, input, textarea, select) { font-family: inherit; }
body.ff-subpage a:focus-visible,
body.ff-subpage button:focus-visible,
body.ff-subpage input:focus-visible,
body.ff-subpage textarea:focus-visible {
  outline: 3px solid var(--ff-sage, #4f6854);
  outline-offset: 3px;
}

/* Shared homepage-inspired header; original WordPress nav menu retains all
   its destinations and nested service groups. */
.ff-subpage .ff-site-header { isolation: isolate; }
.ff-subpage .ff-header-inner { gap: 15px; }
.ff-subpage .ff-brand { flex-shrink: 0; }
.ff-subpage .ff-subpage-nav {
  margin-left: auto;
  margin-right: 16px;
  flex: 1 1 auto;
  min-width: 0;
}
.ff-subpage .ff-subpage-nav-list,
.ff-subpage .ff-subpage-nav-list .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ff-subpage .ff-subpage-nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 27px);
}
.ff-subpage .ff-subpage-nav-list li { position: relative; margin: 0; padding: 0; }
.ff-subpage .ff-subpage-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #38423a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.ff-subpage .ff-subpage-nav-list > li > a:hover,
.ff-subpage .ff-subpage-nav-list > li.current-menu-item > a,
.ff-subpage .ff-subpage-nav-list > li.current-menu-ancestor > a { color: var(--ff-green, #55715b); }
.ff-subpage .ff-subpage-nav-list > li.menu-item-has-children > a::after {
  content: '⌄'; font-size: 13px; margin-left: 6px; transform: translateY(-2px);
}
.ff-subpage .ff-subpage-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: -15px;
  width: max-content;
  min-width: 212px;
  max-width: min(320px, 90vw);
  padding: 9px;
  background: #fff;
  border: 1px solid var(--ff-line, #e3e1d9);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(31, 41, 34, .11);
  z-index: 100;
}
.ff-subpage .ff-subpage-nav-list li:hover > .sub-menu,
.ff-subpage .ff-subpage-nav-list li:focus-within > .sub-menu { display: block; }
.ff-subpage .ff-subpage-nav-list .sub-menu .sub-menu { left: calc(100% - 4px); top: 0; }
.ff-subpage .ff-subpage-nav-list .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #38423a;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  text-decoration: none;
}
.ff-subpage .ff-subpage-nav-list .sub-menu a:hover,
.ff-subpage .ff-subpage-nav-list .sub-menu a:focus-visible { background: #eff4f0; color: #374a3b; }
.ff-subpage .ff-header-cta { margin-left: 0; flex-shrink: 0; }

/* ==========================================================================
   V2 full-height subpage hero
   ========================================================================== */
/* This component is deliberately separate from the legacy Divi first section.
   There is no dark photo overlay: the photograph stays at its source brightness. */
.ff-subpage .ff-page-hero {
  position: relative;
  width: 100%;
  height: calc(100svh - 83px);
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: #e8e3da;
}
.ff-subpage .ff-page-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}
.ff-subpage .ff-page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 82px), 1004px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 0 0 clamp(110px, 15vh, 170px);
}
.ff-subpage .ff-page-hero-copy {
  width: min(590px, 54%);
}
.ff-subpage .ff-page-hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  color: #fff;
  font-family: var(--ff-serif, Georgia, serif);
  font-size: clamp(54px, 6vw, 86px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(21, 29, 23, .38);
}
.ff-subpage .ff-page-hero-description {
  max-width: 570px;
  margin: 24px 0 0;
  color: #fff;
  font-family: var(--ff-sans, sans-serif);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(21, 29, 23, .42);
}
.ff-subpage .ff-page-hero-handwriting {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 3.6vw, 58px);
  top: 17%;
  width: min(245px, 22vw);
  margin: 0;
  color: #fff;
  font-family: var(--ff-hand, "Caveat", "Segoe Print", cursive);
  font-size: clamp(34px, 3.7vw, 58px);
  font-weight: 500;
  line-height: .98;
  text-align: center;
  transform: rotate(-5deg);
  text-shadow: 0 2px 7px rgba(21, 29, 23, .28);
}
.ff-subpage .ff-page-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  display: block;
  width: 100%;
  height: clamp(105px, 13vw, 178px);
  max-width: none;
  pointer-events: none;
}

/* Program is the first V2 prototype. The custom hero replaces the old Divi
   title banner and redundant pipe-link submenu visually; WordPress records are
   not edited and the site header still exposes the same destinations. */
.ff-subpage.page-id-15 .ff-page-hero-image {
  object-position: center center;
}
.ff-subpage.page-id-15 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(1),
.ff-subpage.page-id-15 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) {
  display: none !important;
}

/* Main content: retain and restyle the WordPress/Divi builder output in situ. */
.ff-subpage .ff-subpage-main {
  width: 100%;
  padding: 0 0 clamp(24px, 5vw, 64px);
  background: var(--ff-canvas, #fcfbf8);
  overflow: clip;
}
.ff-subpage .ff-subpage-article,
.ff-subpage .ff-wordpress-content,
.ff-subpage .et-l--post,
.ff-subpage .et-l--post > .et_builder_inner_content { width: 100%; max-width: none; }
.ff-subpage .ff-wordpress-content > p:empty { display: none; }
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section {
  margin: 0 auto;
  padding: 18px 0 !important;
  width: 100%;
  max-width: none;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child) {
  background-color: transparent !important;
  min-height: 0;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section > .et_pb_row {
  max-width: 1004px;
  width: var(--ff-page-frame) !important;
  padding: clamp(25px, 4vw, 49px) !important;
  margin: 0 auto 8px !important;
  background: #fff;
  border: 1px solid rgba(50, 65, 52, .10);
  border-radius: 24px;
  box-shadow: 0 8px 25px rgba(34, 50, 38, .035);
}
.ff-subpage .ff-wordpress-content .et_pb_row::after { content: ''; display: table; clear: both; }
.ff-subpage .ff-wordpress-content .et_pb_column { min-width: 0; }
.ff-subpage .ff-wordpress-content .et_pb_text { margin-bottom: 16px; }
.ff-subpage .ff-wordpress-content .et_pb_text:last-child { margin-bottom: 0; }
.ff-subpage .ff-wordpress-content .et_pb_text_inner { color: #313c34; font-family: var(--ff-sans, sans-serif); font-size: 16px; line-height: 1.78; }
.ff-subpage .ff-wordpress-content .et_pb_text_inner p,
.ff-subpage .ff-wordpress-content .et_pb_text_inner li { line-height: 1.78; overflow-wrap: anywhere; }
.ff-subpage .ff-wordpress-content .et_pb_text_inner p + p { margin-top: 14px; }
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child) .et_pb_text_inner :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--ff-serif, Georgia, serif) !important;
  color: #27392d !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em !important;
  text-shadow: none !important;
  padding-bottom: 0 !important;
  margin: 0 0 16px !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child) .et_pb_text_inner h1 { font-size: clamp(28px, 3.4vw, 38px) !important; }
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child) .et_pb_text_inner h2 { font-size: clamp(26px, 3.0vw, 34px) !important; }
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child) .et_pb_text_inner h3 { font-size: clamp(22px, 2.4vw, 28px) !important; }
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child) .et_pb_text_inner :is(p, li) {
  color: #313c34 !important;
  text-shadow: none !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child) .et_pb_text_inner span:not(.et_pb_contact_field_options_title) {
  color: inherit !important;
  text-shadow: none !important;
}
.ff-subpage .ff-wordpress-content .et_pb_text_inner :is(ul,ol) { padding-left: 22px; margin: 12px 0 22px; }
.ff-subpage .ff-wordpress-content .et_pb_text_inner li + li { margin-top: 9px; }
.ff-subpage .ff-wordpress-content .et_pb_image img {
  max-width: 100%; height: auto; border-radius: 18px;
}
.ff-subpage .ff-wordpress-content :is(.et_pb_button, .et_pb_contact_submit),
.ff-subpage .ff-subpage-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 45px;
  padding: 11px 22px !important;
  background: var(--ff-sage, #4f6854) !important;
  color: #fff !important;
  border: 1px solid var(--ff-sage, #4f6854) !important;
  border-radius: 999px !important;
  font: 600 13px/1.35 var(--ff-sans, sans-serif) !important;
  text-decoration: none !important;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background .18s ease, transform .18s ease;
}
.ff-subpage .ff-wordpress-content .et_pb_button::after { display: none !important; }
.ff-subpage .ff-wordpress-content :is(.et_pb_button, .et_pb_contact_submit):hover,
.ff-subpage .ff-subpage-action:hover { background: #374a3b !important; transform: translateY(-1px); }
.ff-subpage .ff-wordpress-content a:not(.et_pb_button) { color: #365e48; text-underline-offset: 3px; }
.ff-subpage .ff-wordpress-content :is(iframe, video) { max-width: 100%; }

/* Original first Divi section is the photographic title banner. Reuse its
   existing background image and headings; do not invent a replacement asset. */
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(340px, 36vw, 480px);
  padding: 44px 0 !important;
  background-color: #4f6854 !important;
  background-position: center center !important;
  background-size: cover !important;
  isolation: isolate;
  text-align: center !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child::after {
  display: none !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child > .et_pb_row {
  position: relative;
  z-index: 1;
  width: var(--ff-page-frame) !important;
  max-width: 1004px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  margin: 0 auto !important;
  text-align: center !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text,
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text_inner {
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text_inner :is(h1,h2,h3,p,span,strong) {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.95);
  text-align: center !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text_inner h1 {
  font-family: var(--ff-serif, Georgia, serif) !important;
  font-size: clamp(34px, 4.2vw, 48px) !important;
  font-weight: 500 !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em;
  margin: 0 auto;
  padding: 0;
  text-align: center !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text_inner p {
  font-size: 16px !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* V2 hero artwork refresh.
   Presentation-only: replace the legacy first-section background image on the
   eight mapped pages with face-focused framing. Text, Divi content, links and page behavior stay intact. */
.ff-subpage.page-id-19 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image: url('../images/heroes/about-suyin.webp') !important;
  background-position: center 22% !important;
}
.ff-subpage.page-id-26 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image: url('../images/heroes/parent-sharing-circles.webp') !important;
  background-position: center 18% !important;
}
.ff-subpage.page-id-38 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image: url('../images/heroes/book-a-session.webp') !important;
  background-position: 85% 14% !important;
}
.ff-subpage.page-id-41 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image: url('../images/heroes/teaching.webp') !important;
  background-position: 60% 14% !important;
}
.ff-subpage.page-id-45 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image: url('../images/heroes/upcoming-events.webp') !important;
  background-position: 85% 10% !important;
}
.ff-subpage.page-id-48 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image: url('../images/heroes/newsletter.webp') !important;
  background-position: 88% 12% !important;
}
.ff-subpage.page-id-75 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image: url('../images/heroes/events.webp') !important;
  background-position: 62% 14% !important;
}
.ff-subpage.page-id-400 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  background-image: url('../images/heroes/family-friends-mexico.webp') !important;
  background-position: 88% 18% !important;
}

@media (max-width: 768px) {
  .ff-subpage.page-id-38 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
    background-position: 72% 14% !important;
  }
  .ff-subpage.page-id-41 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
    background-position: 64% 14% !important;
  }
  .ff-subpage.page-id-45 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
    background-position: 74% 12% !important;
  }
  .ff-subpage.page-id-48 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
    background-position: 78% 14% !important;
  }
  .ff-subpage.page-id-75 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
    background-position: 64% 14% !important;
  }
  .ff-subpage.page-id-400 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
    background-position: 72% 24% !important;
  }
}

/* Original secondary navigation transformed into modern pill chips.
   Scoped to sections with links, excluding contact (page 51). */
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) {
  padding: 16px 0 6px !important;
}
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) > .et_pb_row {
  padding: 10px 18px !important;
  background: #f4f6f4;
  border: 1px solid #dae4dc;
  border-radius: 999px;
  box-shadow: none;
  max-width: 1004px;
  width: var(--ff-page-frame) !important;
  margin: 0 auto !important;
}
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text {
  margin: 0 !important;
}
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner,
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner p,
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner span {
  font-size: 0 !important; /* Hides residual pipe characters */
  line-height: 1 !important;
  text-align: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner a {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #384f3e !important;
  text-decoration: none !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(85, 113, 91, 0.22) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
  transition: all 0.18s ease !important;
  white-space: nowrap !important;
  line-height: 1.35 !important;
}
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner a:hover {
  background: #374a3b !important;
  color: #ffffff !important;
  border-color: #374a3b !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
}

/* Service distinctions for secondary navigation */
.ff-subpage.ff-track-childcare:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) > .et_pb_row {
  background: #faf4f0;
  border-color: #ebdcd3;
}
.ff-subpage.ff-track-childcare:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner a:hover {
  background: #55715b !important;
  border-color: #55715b !important;
}
.ff-subpage.ff-track-counselling:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) > .et_pb_row {
  background: #f0f4f8;
  border-color: #d1dfeb;
}
.ff-subpage.ff-track-counselling:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner a {
  color: #2b455b !important;
  border-color: rgba(64, 102, 131, 0.22) !important;
}
.ff-subpage.ff-track-counselling:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner a:hover {
  background: #3a5c78 !important;
  color: #ffffff !important;
  border-color: #3a5c78 !important;
}
.ff-subpage.ff-track-counselling .ff-wordpress-content .et_pb_button {
  background: #4c728e !important;
  border-color: #4c728e !important;
}
.ff-subpage.ff-track-counselling .ff-wordpress-content .et_pb_button:hover {
  background: #3a5c78 !important;
  border-color: #3a5c78 !important;
}

/* Existing plugins stay in control of their own behavior. Style safe wrappers
   and form controls, but never force a new layout on Modula's computed tiles. */
.ff-subpage .ff-wordpress-content .et_pb_code_inner { max-width: 100%; }
.ff-subpage .ff-wordpress-content :is(.modula-gallery, .modula) { max-width: 100%; margin-inline: auto; }
.ff-subpage .ff-wordpress-content .modula-gallery img { max-width: 100%; }
.ff-subpage .ff-wordpress-content .et_pb_contact_form_container { max-width: 760px; margin-inline: auto; }
.ff-subpage .ff-wordpress-content :is(.et_pb_contact_field input, .et_pb_contact_field textarea),
.ff-subpage #mc_embed_signup :is(input[type='text'], input[type='email']) {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 15px !important;
  background: #fff !important;
  color: #253428 !important;
  border: 1px solid #cdd9cf !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  box-shadow: none !important;
}
.ff-subpage .ff-wordpress-content .et_pb_contact_field textarea { min-height: 140px; resize: vertical; }
.ff-subpage .ff-wordpress-content .et_pb_contact_field { margin-bottom: 14px; }
.ff-subpage .ff-wordpress-content .et-pb-contact-message { color: #34463a; }
.ff-subpage #mc_embed_signup,
.ff-subpage #mc_embed_signup form {
  max-width: 680px;
  background: transparent !important;
  margin-inline: auto;
}
.ff-subpage #mc_embed_signup :is(label, .indicates-required) { color: #34463a; }
.ff-subpage #mc_embed_signup input[type='submit'] {
  background: #4f6854 !important;
  color: #fff !important;
  min-height: 44px;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 24px !important;
}
.ff-subpage #mc_embed_signup :is(input[type='hidden'], [aria-hidden='true'] input) { display: none; }
.ff-subpage .ff-wordpress-content iframe[src*='google.com/maps'] {
  display: block;
  width: 100% !important;
  min-height: 320px;
  border: 0;
  border-radius: 18px;
}
/* Button-only rows (e.g. Email & WhatsApp on About Ezra and About Suyin) */
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper):not(:has(.et_pb_text)) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 14px 0 10px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
}
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper):not(:has(.et_pb_text)) > .et_pb_column {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}
.ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:has(.et_pb_row:has(.et_pb_button_module_wrapper):not(:has(.et_pb_text))) {
  padding: 8px 0 !important;
}

/* Enlarged text size and enhanced geometry for contact buttons (Email, WhatsApp) across About Ezra, About Suyin, etc. */
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) .et_pb_button {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em !important;
  padding: 13px 26px !important;
  min-height: 48px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
}
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) .et_pb_button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

/* Social icons placed inline with contact info (Facebook & Instagram) */
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) .et_pb_social_media_follow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) .et_pb_social_media_follow li {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) .et_pb_social_media_follow li a.icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-size: 19px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) .et_pb_social_media_follow li a.icon:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2) !important;
  filter: brightness(1.08) !important;
}
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) .et_pb_social_media_follow .et-social-instagram a.icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}
.ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) .et_pb_social_media_follow .et-social-facebook a.icon {
  background-color: #1877f2 !important;
}

/* Eliminate standalone social section box if rendered separately without buttons or text */
.ff-subpage .ff-wordpress-content .et_pb_section:has(.et_pb_social_media_follow):not(:has(.et_pb_button_module_wrapper)):not(:has(.et_pb_text)) {
  display: none !important;
}

/* Booking action button on /book-a-session/ */
.ff-subpage .ff-email-booking {
  text-align: center;
  margin: 28px auto 8px;
}

/* Page-specific editorial refinements without replacing a single WordPress
   paragraph, image, gallery, or form. */

/* Option 1: Suppress redundant in-card page title headings that duplicate the compact hero banner */
.ff-subpage:is(
  .page-id-19,
  .page-id-35,
  .page-id-23,
  .page-id-75,
  .page-id-26,
  .page-id-29,
  .page-id-32,
  .page-id-38,
  .page-id-41,
  .page-id-45,
  .page-id-400
) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child) .et_pb_text_2:has(h1),
.ff-subpage.page-id-51 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child) .et_pb_text_1:has(h1) {
  display: none !important;
}
/* On Gallery (page 32), the section holding the duplicate title was standalone; hide the entire empty section */
.ff-subpage.page-id-32 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:has(.et_pb_text_2) {
  display: none !important;
}

.ff-subpage.page-id-15 .ff-wordpress-content .et_pb_contact_form_container { border-top: 1px solid #e0e7df; padding-top: 18px; }
.ff-subpage.page-id-19 .ff-wordpress-content .et_pb_image img,
.ff-subpage.page-id-35 .ff-wordpress-content .et_pb_image img { width: auto; max-width: 100%; object-fit: cover; object-position: center; border-radius: 18px; }
.ff-subpage.page-id-23 .ff-wordpress-content .et_pb_text_inner :is(h1,h2,h3,h4,strong,b) { color: #27392d !important; }
.ff-subpage.page-id-23 .ff-wordpress-content .et_pb_text_inner span { color: inherit !important; }
.ff-subpage.page-id-29 .ff-wordpress-content .et_pb_text_inner :is(strong,b) { color: #27392d; }
.ff-subpage:is(.page-id-26,.page-id-32,.page-id-75) .ff-wordpress-content .et_pb_code_inner { width: 100%; }
.ff-subpage:is(.page-id-38,.page-id-41,.page-id-45,.page-id-48,.page-id-400) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
  min-height: 200px;
}
.ff-subpage:is(.page-id-41,.page-id-45,.page-id-400) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:not(:first-child):not(:nth-child(2)) .et_pb_text_inner { max-width: 72ch; margin-inline: auto; }
.ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner { max-width: 100% !important; width: 100% !important; }

/* Contact page (page 51) framing */
.ff-subpage.page-id-51 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) > .et_pb_row {
  background: #fff !important;
  padding: clamp(25px, 4vw, 49px) !important;
  border: 1px solid rgba(50, 65, 52, .10) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 25px rgba(34, 50, 38, .035) !important;
}
.ff-subpage.page-id-51 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner {
  text-align: left !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  display: block !important;
}
.ff-subpage.page-id-51 .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner a {
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: #365e48 !important;
  text-decoration: underline !important;
}

/* Shared site footer styles are inherited from homepage-canonical.css */

@media (max-width: 1179px) {
  .ff-subpage .ff-header-inner { width: min(calc(100% - 48px), 1100px); }
  .ff-subpage .ff-brand { min-width: 205px; }
  .ff-subpage .ff-subpage-nav-list { gap: 12px; }
  .ff-subpage .ff-subpage-nav-list > li > a { font-size: 12px; }
}
@media (max-width: 980px) {
  .ff-subpage .ff-page-hero {
    height: calc(100svh - 76px);
    min-height: 500px;
  }
  .ff-subpage .ff-page-hero-inner {
    width: min(calc(100% - 48px), 1004px);
    padding-bottom: clamp(100px, 16vh, 145px);
  }
  .ff-subpage .ff-page-hero-copy {
    width: min(620px, 68%);
  }
  .ff-subpage .ff-page-hero-copy h1 {
    font-size: clamp(46px, 7vw, 68px);
  }
  .ff-subpage .ff-page-hero-description {
    font-size: clamp(17px, 2.2vw, 21px);
  }
  .ff-subpage .ff-page-hero-handwriting {
    right: 24px;
    top: 14%;
    width: min(200px, 25vw);
    font-size: clamp(30px, 4.8vw, 46px);
  }

  .ff-subpage .ff-header-inner { height: 76px; width: min(calc(100% - 36px), 1004px); }
  .ff-subpage .ff-brand { min-width: 0; margin-right: auto; }
  .ff-subpage .ff-brand-mark { width: 46px; height: 46px; }
  .ff-subpage .ff-brand-copy strong { font-size: 20px; }
  .ff-subpage .ff-mobile-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    order: 3;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #dce5dc;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }
  .ff-subpage .ff-mobile-toggle span { display: block; width: 19px; height: 2px; background: #3b5140; border-radius: 3px; }
  .ff-subpage .ff-header-cta { order: 2; width: auto; min-width: 110px; padding-inline: 15px; }
  .ff-subpage .ff-subpage-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px clamp(20px, 5vw, 50px) 22px;
    margin: 0;
    background: #fff;
    border-top: 1px solid #e7e8e2;
    border-bottom: 1px solid #e7e8e2;
    box-shadow: 0 16px 24px rgba(31,41,34,.12);
    max-height: min(78vh, 670px);
    overflow-y: auto;
  }
  .ff-subpage.ff-nav-open .ff-subpage-nav { display: block; }
  .ff-subpage .ff-subpage-nav-list { display: block; }
  .ff-subpage .ff-subpage-nav-list > li > a { display: block; padding: 10px 0; min-height: 44px; font-size: 15px; }
  .ff-subpage .ff-subpage-nav-list > li.menu-item-has-children > a::after { display: none; }
  .ff-subpage .ff-subpage-nav-list .sub-menu,
  .ff-subpage .ff-subpage-nav-list li:hover > .sub-menu,
  .ff-subpage .ff-subpage-nav-list li:focus-within > .sub-menu {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    padding: 0 0 5px 14px;
    background: transparent;
    border: none;
    border-left: 2px solid #e0e8e0;
    border-radius: 0;
    box-shadow: none;
  }
  .ff-subpage .ff-subpage-nav-list .sub-menu a { padding: 8px 12px; min-height: 38px; }
  .ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section > .et_pb_row { width: min(calc(100% - 34px), 1004px) !important; }
}
@media (max-width: 600px) {
  .ff-subpage .ff-page-hero {
    height: calc(100svh - 76px);
    min-height: 540px;
  }
  .ff-subpage .ff-page-hero-image {
    object-position: 58% center;
  }
  .ff-subpage .ff-page-hero-inner {
    width: calc(100% - 36px);
    align-items: flex-end;
    padding: 0 0 132px;
  }
  .ff-subpage .ff-page-hero-copy {
    width: 100%;
  }
  .ff-subpage .ff-page-hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(44px, 13vw, 62px);
    line-height: 1;
  }
  .ff-subpage .ff-page-hero-description {
    max-width: 30ch;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.45;
  }
  .ff-subpage .ff-page-hero-handwriting {
    top: 12%;
    right: 18px;
    width: 145px;
    font-size: 31px;
  }
  .ff-subpage .ff-page-hero-wave {
    height: 105px;
  }

  body.ff-subpage { --ff-page-frame: calc(100% - 28px); }
  .ff-subpage .ff-header-inner { width: calc(100% - 28px); gap: 10px; }
  .ff-subpage .ff-brand-copy small { font-size: 8.5px; }
  .ff-subpage .ff-header-cta { display: none; }
  .ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section { padding: 9px 0 !important; }
  .ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) > .et_pb_row {
    border-radius: 20px !important;
    padding: 10px 14px !important;
  }
  .ff-subpage:not(.page-id-51) .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:nth-child(2) .et_pb_text_inner a {
    font-size: 12px !important;
    padding: 5px 11px !important;
  }
  .ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child { min-height: 180px; padding: 24px 0 !important; }
  .ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child .et_pb_text_inner h1 { font-size: clamp(30px, 8vw, 40px) !important; line-height: 1.13 !important; }
  .ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section > .et_pb_row {
    width: var(--ff-page-frame) !important;
    padding: 25px 21px !important;
    border-radius: 19px;
  }
  .ff-subpage .ff-wordpress-content .et-l--post > .et_builder_inner_content > .et_pb_section:first-child > .et_pb_row { padding: 0 !important; }
  .ff-subpage .ff-wordpress-content .et_pb_row .et_pb_column { float: none; width: 100% !important; margin-right: 0 !important; margin-bottom: 20px; }
  .ff-subpage .ff-wordpress-content .et_pb_row .et_pb_column:last-child { margin-bottom: 0; }
  .ff-subpage .ff-wordpress-content .et_pb_text_inner { font-size: 15px; line-height: 1.7; }
  .ff-subpage .ff-wordpress-content .et_pb_text_inner h2 { font-size: 27px; }
  .ff-subpage .ff-wordpress-content .et_pb_text_inner h3 { font-size: 23px; }
  .ff-subpage .ff-wordpress-content iframe[src*='google.com/maps'] { min-height: 260px; }
  .ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) {
    gap: 12px !important;
  }
  .ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) .et_pb_button {
    font-size: 15px !important;
    padding: 12px 20px !important;
    min-height: 46px !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) > .et_pb_column {
    width: 100% !important;
    justify-content: center !important;
  }
  .ff-subpage .ff-wordpress-content .et_pb_row:has(.et_pb_button_module_wrapper) > .et_pb_column:has(.et_pb_social_media_follow) {
    width: auto !important;
    margin-top: 4px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-subpage *, .ff-subpage *::before, .ff-subpage *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
