/**
 * Shared Website Page Builder renderer layouts.
 * Scoped under .wp-page — does not restyle the rest of the site.
 */

.wp-page {
  --wp-max: 1120px;
  --wp-pad: clamp(1.15rem, 3vw, 1.5rem);
  --wp-section-gap: clamp(1.6rem, 3vw, 2.4rem);
  --wp-split-gap: clamp(2rem, 3.4vw, 2.75rem); /* 32–44px between image and text */
  --wp-split-gap-tablet: 1.75rem;
  --wp-split-gap-mobile: 1.25rem;
  --wp-hero-height: 440px;
  --wp-hero-height-tablet: 360px;
  --wp-hero-height-mobile: 280px;
  container-type: inline-size;
  container-name: wppage;
}

@supports (width: 1cqi) {
  .wp-page {
    --wp-pad: clamp(1.15rem, 3cqi, 1.5rem);
    --wp-section-gap: clamp(1.6rem, 3cqi, 2.4rem);
  }
}

.wp-page .ec-wrap,
.wp-page .wp-sec .ec-wrap {
  width: min(var(--wp-max), calc(100% - (var(--wp-pad) * 2)));
  margin-inline: auto;
}

/* Text Block — full useful container width (not a 50% / 54ch column) */
.wp-page .wp-sec--text,
.wp-page .ec-section.wp-sec--text {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  overflow-x: hidden;
}
.wp-page .wp-sec--text > .ec-wrap,
.wp-page .wp-sec--text .wp-text-wrap {
  width: min(var(--wp-section-max, 1240px), calc(100% - (var(--wp-pad) * 2)));
  max-width: none;
  margin-inline: auto;
}
.wp-page .wp-sec--text .wp-typo-heading,
.wp-page .wp-sec--text .ec-h1,
.wp-page .wp-sec--text .ec-h2,
.wp-page .wp-sec--text .ec-h3,
.wp-page .wp-sec--text .ec-lead,
.wp-page .wp-sec--text .wp-typo-desc,
.wp-page .wp-sec--text .ec-lead p,
.wp-page .wp-sec--text .wp-typo-desc p {
  max-width: none;
  width: 100%;
}
.wp-page .wp-sec--text .ec-lead,
.wp-page .wp-sec--text .wp-typo-desc {
  font-size: var(--wp-desc-size, 1.05rem);
  line-height: var(--wp-desc-lh, 1.85);
}
.wp-page .wp-sec--text .wp-typo-heading,
.wp-page .wp-sec--text .ec-h1,
.wp-page .wp-sec--text .ec-h2,
.wp-page .wp-sec--text .ec-h3,
.wp-page .wp-sec--text .wp-typo-sub,
.wp-page .wp-sec--text .ec-kicker {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wp-page .wp-sec--text.wp-designed[style*="--wp-heading-mb:"] .wp-typo-heading,
.wp-page .wp-sec--text.wp-designed[style*="--wp-heading-mb:"] .ec-h1,
.wp-page .wp-sec--text.wp-designed[style*="--wp-heading-mb:"] .ec-h2,
.wp-page .wp-sec--text.wp-designed[style*="--wp-heading-mb:"] .ec-h3 {
  margin-bottom: var(--wp-heading-mb);
}
.wp-page .wp-sec--text.wp-designed[style*="--wp-sub-mb:"] .wp-typo-sub,
.wp-page .wp-sec--text.wp-designed[style*="--wp-sub-mb:"] .ec-kicker {
  margin-bottom: var(--wp-sub-mb);
}

@media (max-width: 720px) {
  .wp-page .wp-sec--text > .ec-wrap,
  .wp-page .wp-sec--text .wp-text-wrap {
    width: calc(100% - 32px);
    max-width: none;
  }
  .wp-page .wp-sec--text .ec-lead,
  .wp-page .wp-sec--text .wp-typo-desc {
    font-size: var(--wp-desc-size-mobile, var(--wp-desc-size, 1rem));
    line-height: var(--wp-desc-lh, 1.8);
  }
  .wp-page .wp-sec--text.wp-text-heading-auto .wp-typo-heading,
  .wp-page .wp-sec--text.wp-text-heading-auto .ec-h1,
  .wp-page .wp-sec--text.wp-text-heading-auto .ec-h2,
  .wp-page .wp-sec--text.wp-text-heading-auto .ec-h3 {
    font-size: clamp(18px, 5.2vw, var(--wp-heading-size, 28px)) !important;
  }
  .wp-page .wp-sec--text.wp-text-sub-auto .wp-typo-sub,
  .wp-page .wp-sec--text.wp-text-sub-auto .ec-kicker {
    font-size: clamp(14px, 4vw, var(--wp-sub-size, 20px)) !important;
  }
}

.wp-page .wp-sec.ec-section,
.wp-page .ec-section.wp-designed {
  padding-top: var(--wp-pad-top, var(--wp-section-py, var(--wp-section-space-desktop, var(--wp-section-gap))));
  padding-bottom: var(--wp-pad-bottom, var(--wp-section-py, var(--wp-section-space-desktop, var(--wp-section-gap))));
  padding-inline: 0;
}

.wp-page .wp-sec.ec-section.wp-designed {
  border-radius: var(--wp-section-radius, 0);
}

.wp-page .wp-sec__head {
  margin-bottom: clamp(0.85rem, 2vw, 1.35rem);
  max-width: 40rem;
}

.wp-page .wp-sec--video .wp-sec__head {
  margin-bottom: var(--wp-media-gap, clamp(1.5rem, 3vw, 2.25rem));
}

/* Design tokens from builder */
.wp-page section.wp-designed,
.wp-page .ec-section.wp-designed {
  background-color: var(--wp-section-bg, transparent);
  color: var(--wp-section-text, inherit);
  text-align: var(--wp-section-align, inherit);
}

.wp-page .wp-typo-heading,
.wp-page .wp-typo-desc,
.wp-page .ec-h1,
.wp-page .ec-h2,
.wp-page .ec-h3,
.wp-page .ec-lead,
.wp-page .wp-typo-heading *,
.wp-page .wp-typo-desc *,
.wp-page .ec-lead * {
  font-family: inherit !important;
}

.wp-page .wp-typo-desc mark,
.wp-page .ec-lead mark,
.wp-page .wp-typo-heading mark,
.wp-page mark.about-hl,
.wp-page .about-hl {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.wp-page .wp-designed .wp-typo-heading,
.wp-page .wp-designed .ec-h1,
.wp-page .wp-designed .ec-h2 {
  color: var(--wp-heading-color, inherit);
  font-size: var(--wp-heading-size, inherit);
  font-weight: var(--wp-heading-weight, inherit);
  text-align: var(--wp-heading-align, inherit);
  line-height: var(--wp-heading-lh, inherit);
  font-style: var(--wp-heading-style, inherit);
}

.wp-page .wp-designed .wp-typo-sub,
.wp-page .wp-designed .ec-kicker,
.wp-page .wp-designed .ec-hero__brand {
  font-family: inherit;
  color: var(--wp-sub-color, inherit);
  font-size: var(--wp-sub-size, inherit);
  font-weight: var(--wp-sub-weight, inherit);
  text-align: var(--wp-sub-align, inherit);
  line-height: var(--wp-sub-lh, inherit);
}

.wp-page .wp-designed .wp-typo-desc,
.wp-page .wp-designed .ec-lead {
  color: var(--wp-desc-color, inherit);
  font-size: var(--wp-desc-size, inherit);
  font-weight: var(--wp-desc-weight, inherit);
  text-align: var(--wp-desc-align, inherit);
  line-height: var(--wp-desc-lh, inherit);
  font-style: var(--wp-desc-style, inherit);
  text-indent: 0;
  padding-inline: 0;
  margin-inline: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  direction: rtl;
  unicode-bidi: isolate;
}
.wp-page .wp-designed .wp-typo-desc p,
.wp-page .wp-designed .ec-lead p {
  text-indent: 0;
  padding-inline: 0;
  margin-inline: 0;
  margin-block: 0 0.65rem;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-align: inherit;
  line-height: inherit;
}
.wp-page .wp-designed .wp-typo-desc p:last-child,
.wp-page .wp-designed .ec-lead p:last-child {
  margin-bottom: 0;
}
.wp-page .wp-designed[style*="--wp-desc-align:justify"] .wp-typo-desc,
.wp-page .wp-designed[style*="--wp-desc-align: justify"] .wp-typo-desc,
.wp-page .wp-designed[style*="--wp-desc-align:justify"] .ec-lead,
.wp-page .wp-designed[style*="--wp-desc-align: justify"] .ec-lead,
.wp-page .wp-designed[style*="--wp-heading-align:justify"] .wp-typo-heading,
.wp-page .wp-designed[style*="--wp-heading-align: justify"] .wp-typo-heading {
  text-align: justify;
  text-align-last: right;
  text-justify: inter-word;
}

.wp-page .wp-designed .wp-typo-desc h1,
.wp-page .wp-designed .wp-typo-desc h2,
.wp-page .wp-designed .wp-typo-desc h3 {
  margin: 0 0 0.45rem;
  line-height: 1.35;
}
.wp-page .wp-designed .wp-typo-desc ul,
.wp-page .wp-designed .wp-typo-desc ol {
  margin: 0.35rem 0 0.75rem 1.2rem;
  padding: 0;
}
.wp-page .wp-designed .wp-typo-desc a {
  color: inherit;
  text-decoration: underline;
}

.wp-page .wp-designed .wp-media-img {
  display: block;
  width: var(--wp-img-width, auto);
  max-width: min(100%, var(--wp-img-max, 100%));
  aspect-ratio: var(--wp-img-aspect, auto);
  object-fit: var(--wp-img-fit, cover);
  border-radius: var(--wp-img-radius, 14px);
  margin-top: 1rem;
  margin-inline: var(--wp-img-margin, unset);
  height: auto;
}

.wp-page .wp-designed .wp-cta-btn,
.wp-page .wp-designed .ec-btn--primary {
  background: var(--wp-cta-bg, #f97316) !important;
  color: var(--wp-cta-color, #fff) !important;
  border-radius: var(--wp-cta-radius, 10px) !important;
  min-height: var(--wp-cta-min-h, 48px);
}

.wp-page .wp-designed.wp-cta--outline .wp-cta-btn {
  background: transparent !important;
  color: var(--wp-cta-bg, #f97316) !important;
  border: 1px solid var(--wp-cta-bg, #f97316) !important;
}

/* ═══════════════════════════════════════════
   HERO — one image only (no bg + img duplicate)
   ═══════════════════════════════════════════ */
.wp-page .ec-hero.wp-designed,
.wp-page .wp-sec--hero.wp-designed {
  height: var(--wp-hero-height, 440px) !important;
  min-height: var(--wp-hero-height, 440px) !important;
  max-height: var(--wp-hero-height, 440px) !important;
  padding: 0 !important;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  border-bottom: 0;
  background-color: var(--wp-section-bg, #f8fafc);
  /* Classic desktop: NO section background image (media column owns the image) */
  background-image: none;
  border-radius: var(--wp-hero-radius, 0);
}

.wp-page .ec-hero.wp-designed.wp-hero--classic {
  background-image: none !important;
}

.wp-page .wp-hero-classic,
.wp-page .ec-hero.wp-designed .ec-hero__grid {
  width: min(var(--wp-max), calc(100% - (var(--wp-pad) * 2)));
  margin-inline: auto;
  height: 100%;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.wp-page .ec-hero.wp-designed .ec-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  height: 100%;
  box-sizing: border-box;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  min-width: 0;
  text-align: var(--wp-hero-align, right);
  max-width: var(--wp-hero-text-max, 40rem);
}

.wp-page .ec-hero.wp-designed .ec-hero__copy .ec-h1 {
  max-width: min(100%, 700px);
}

.wp-page .ec-hero.wp-designed .ec-h1 {
  color: var(--wp-heading-color, #fff);
  font-size: var(--wp-heading-size, 36px);
  font-weight: var(--wp-heading-weight, 700);
  line-height: var(--wp-heading-lh, 1.25);
  letter-spacing: -0.015em;
}

.wp-page .ec-hero.wp-designed .ec-hero__brand {
  order: 1;
  margin: 8px 0 0;
  color: var(--wp-sub-color, #fff) !important;
  font-family: inherit;
  font-size: var(--wp-sub-size, clamp(18px, 2vw, 22px));
  font-weight: var(--wp-sub-weight, 700);
  text-align: var(--wp-sub-align, inherit);
  line-height: var(--wp-sub-lh, 1.4);
}

.wp-page .ec-hero.wp-designed .ec-h1 { order: 0; }

.wp-page .ec-hero.wp-designed .ec-lead,
.wp-page .ec-hero.wp-designed .wp-typo-desc {
  order: 2;
  max-width: min(100%, 38rem);
  margin: 12px 0 0;
  color: var(--wp-desc-color, #fff) !important;
  font-size: var(--wp-desc-size, clamp(16px, 1.6vw, 18px));
  line-height: var(--wp-desc-lh, 1.75);
}

.wp-page .ec-hero.wp-designed .ec-actions {
  order: 3;
  margin-top: 22px;
}

.wp-page .ec-hero.wp-designed .ec-actions .ec-btn {
  color: var(--wp-cta-color, #fff) !important;
}

/* Single media slot — kill legacy 2-column media grid that looked like a duplicate */
.wp-page .wp-hero-media,
.wp-page .ec-hero.wp-designed .ec-hero__media {
  display: block !important;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  max-height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #e2e8f0;
  grid-template-columns: none !important;
  gap: 0 !important;
}

.wp-page .wp-hero-media picture,
.wp-page .wp-hero-media img,
.wp-page .wp-hero-media video,
.wp-page .ec-hero.wp-designed .ec-hero__media picture,
.wp-page .ec-hero.wp-designed .ec-hero__media img,
.wp-page .ec-hero.wp-designed .ec-hero__media video,
.wp-page .ec-hero.wp-designed .ec-hero__media figure,
.wp-page .ec-hero.wp-designed .ec-hero__media figure:first-child,
.wp-page .ec-hero.wp-designed .ec-hero__media figure:first-child img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: var(--wp-hero-bg-size, cover) !important;
  object-position: var(--wp-hero-bg-pos, center center);
  margin: 0;
  border: 0;
  border-radius: inherit;
  grid-row: auto !important;
}

/* Panoramic / Full Width — Global Hero shell (english-conversation standard) */
.wp-page .ec-hero.wp-designed.wp-hero--panoramic {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  left: auto;
  right: auto;
  background-image: var(--wp-hero-bg-image, none) !important;
  background-size: var(--wp-hero-bg-size, cover) !important;
  background-position: var(--wp-hero-bg-pos, center center) !important;
  background-repeat: no-repeat !important;
}

.wp-page .ec-hero.wp-designed.wp-hero--panoramic::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Bottom-weighted shade: faces stay clear, copy stays readable. */
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 34%,
    color-mix(
      in srgb,
      var(--wp-hero-overlay-color, #0f172a)
      calc(var(--wp-hero-overlay-opacity, 0.45) * 50%),
      transparent
    ) 58%,
    color-mix(
      in srgb,
      var(--wp-hero-overlay-color, #0f172a)
      calc(var(--wp-hero-overlay-opacity, 0.45) * 175%),
      transparent
    ) 100%
  );
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.wp-page .wp-hero-pano {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Default overlay copy sits in the lower third, not over faces. */
  justify-content: flex-end;
  box-sizing: border-box;
  padding-top: clamp(4.75rem, 14vh, 7.5rem);
  padding-bottom: clamp(1.6rem, 4.2vw, 2.85rem);
}

.wp-page .wp-hero-pano__copy {
  width: min(100%, var(--wp-hero-text-max, 40rem));
  height: auto;
  min-height: 0;
  max-width: var(--wp-hero-text-max, 40rem);
  text-align: var(--wp-hero-align, right);
  color: #fff;
}

.wp-page .ec-hero.wp-designed.wp-hero--panoramic .ec-hero__copy,
.wp-page .ec-hero.wp-designed.wp-hero--panoramic .wp-hero-pano__copy {
  height: auto;
  min-height: 0;
  justify-content: flex-end;
  padding-block: 0;
}

.wp-page .ec-hero.wp-designed.wp-hero-valign-top .wp-hero-pano {
  justify-content: flex-start;
  padding-top: clamp(1.6rem, 4.2vw, 2.85rem);
  padding-bottom: clamp(4.75rem, 14vh, 7.5rem);
}

.wp-page .ec-hero.wp-designed.wp-hero-valign-center .wp-hero-pano,
.wp-page .ec-hero.wp-designed.wp-hero-valign-bottom .wp-hero-pano {
  justify-content: flex-end;
}

.wp-page .ec-hero.wp-designed.wp-hero--classic.wp-hero-valign-top .ec-hero__copy { justify-content: flex-start; }
.wp-page .ec-hero.wp-designed.wp-hero--classic.wp-hero-valign-center .ec-hero__copy { justify-content: center; }
.wp-page .ec-hero.wp-designed.wp-hero--classic.wp-hero-valign-bottom .ec-hero__copy { justify-content: flex-end; }
.wp-page .ec-hero.wp-designed.wp-hero-align-right .wp-hero-pano__copy {
  margin-right: 0;
  margin-left: auto;
}

.wp-page .ec-hero.wp-designed.wp-hero-align-center .wp-hero-pano__copy {
  margin-inline: auto;
}

.wp-page .ec-hero.wp-designed.wp-hero-align-left .wp-hero-pano__copy {
  margin-right: auto;
  margin-left: 0;
}

.wp-page .ec-hero.wp-designed.wp-hero-align-center .ec-actions {
  justify-content: center;
}

.wp-page .ec-hero.wp-designed.wp-hero-align-left .ec-actions {
  justify-content: flex-end;
}

.wp-page .ec-hero.wp-designed.wp-hero-align-right .ec-actions {
  justify-content: flex-start;
}

.wp-page .ec-hero.wp-designed.wp-hero-align-center .ec-hero__copy {
  margin-inline: auto;
}

.wp-page .ec-hero.wp-designed.wp-hero-align-left .ec-hero__copy {
  margin-inline: 0 auto;
}

.wp-page .wp-hero-pano__copy .ec-lead,
.wp-page .wp-hero-pano__copy .wp-typo-desc {
  color: var(--wp-desc-color, #fff) !important;
}

.wp-page .ec-hero.wp-designed.wp-hero--panoramic .wp-hero-media,
.wp-page .ec-hero.wp-designed.wp-hero--panoramic .ec-hero__media {
  display: none !important;
}

/* ═══════════════════════════════════════════
   IMAGE + TEXT — 2 col desktop / 1 col mobile
   ═══════════════════════════════════════════ */
.wp-page .wp-split {
  display: grid;
  grid-template-columns: var(--wp-split-cols, minmax(0, 1fr) minmax(0, 1fr));
  gap: var(--wp-media-gap, 1.15rem);
  column-gap: var(--wp-media-gap, 1.15rem);
  row-gap: var(--wp-media-gap, 1.15rem);
  align-items: center;
}

.wp-page .wp-split--cols-third {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.wp-page .wp-split--cols-half {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.wp-page .wp-split--cols-wide {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.wp-page .wp-split--media-start {
  direction: ltr;
}
.wp-page .wp-split--media-start > * {
  direction: rtl;
}

.wp-page .wp-split__media {
  margin: 0;
  margin-inline: var(--wp-img-margin, 0);
  border-radius: var(--wp-img-radius, 18px);
  overflow: hidden;
  background: transparent;
  width: var(--wp-img-width, 100%);
  max-width: min(100%, var(--wp-img-max, 100%));
  max-height: var(--wp-img-height, none);
  height: auto;
  justify-self: var(--wp-img-justify, stretch);
}

.wp-page .wp-sec--split .wp-split__media {
  aspect-ratio: var(--wp-img-aspect, auto);
}

.wp-page .wp-sec--split .wp-split__media img {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  max-height: var(--wp-img-height, none);
  object-fit: var(--wp-img-fit, contain) !important;
  object-position: center;
  display: block;
}

.wp-page .wp-designed[style*="--wp-img-fit:cover"] .wp-sec--split .wp-split__media,
.wp-page .wp-designed[style*="--wp-img-fit: cover"] .wp-sec--split .wp-split__media {
  background: #f1f5f9;
  height: var(--wp-img-height, auto);
  aspect-ratio: var(--wp-img-aspect, auto);
}

.wp-page .wp-designed[style*="--wp-img-fit:cover"] .wp-sec--split .wp-split__media img,
.wp-page .wp-designed[style*="--wp-img-fit: cover"] .wp-sec--split .wp-split__media img {
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: cover !important;
}

.wp-page .wp-split__copy {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

/*
 * Image + Text only (.wp-sec--split). Video+Text keeps the generic .wp-split rules.
 *
 * Root cause of the large empty band: equal 1fr/1fr columns plus an image whose
 * --wp-img-width is < 100%. Default justify-self/stretch left the leftover
 * width BETWEEN the copy and the photo (especially in RTL image-right).
 * Pull media toward the copy and give the text column enough width to wrap less.
 */
.wp-page .wp-sec--split .wp-split:not(.wp-split--video) {
  grid-template-columns: var(--wp-split-cols, minmax(240px, 0.9fr) minmax(0, 1.15fr));
  gap: var(--wp-media-gap, var(--wp-split-gap));
  column-gap: var(--wp-media-gap, var(--wp-split-gap));
  row-gap: var(--wp-media-gap, var(--wp-split-gap));
  align-items: center;
  justify-content: stretch;
}

.wp-page .wp-sec--split .wp-split__media {
  justify-self: var(--wp-img-justify, end);
}

.wp-page .wp-sec--split .wp-split__copy {
  max-width: none;
}

.wp-page .wp-sec--split .wp-split__copy .ec-lead,
.wp-page .wp-sec--split .wp-split__copy .wp-typo-desc,
.wp-page .wp-sec--split .wp-split__copy .ec-h1,
.wp-page .wp-sec--split .wp-split__copy .ec-h2,
.wp-page .wp-sec--split .wp-split__copy .wp-typo-heading {
  max-width: none;
}

.wp-page .wp-feature-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.wp-page .wp-feature-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.wp-page .wp-feature-list__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.1rem;
}

.wp-page .wp-feature-list__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-page .wp-feature-list p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Kill legacy ec-split fighting the new layout on builder pages */
.wp-page .ec-split {
  display: contents;
}

/* ═══════════════════════════════════════════
   FEATURES / CARD GRID
   Desktop columns come from --wp-cards-cols (2 or 3, default 3).
   Tablet always 2. Mobile always 1.
   ═══════════════════════════════════════════ */
.wp-page .wp-cards {
  display: grid;
  grid-template-columns: repeat(var(--wp-cards-cols, 3), minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.wp-page .wp-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  height: 100%;
  text-align: start;
}

.wp-page .ec-section--soft .wp-card {
  background: #fff;
}

.wp-page .wp-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.wp-page .wp-card__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.15rem;
  line-height: 1;
}

.wp-page .wp-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-page .wp-card__body {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 0.28rem;
}

.wp-page .wp-card h3,
.wp-page .wp-card .ec-h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wp-page .wp-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.wp-page .wp-card__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.75rem;
  border-radius: 9px;
  background: #f97316;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  max-width: 100%;
}

.wp-page .wp-cards__cta {
  margin-top: 1.1rem;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.wp-page .wp-cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: var(--wp-section-bg, #fff);
}

.wp-page .wp-cta-banner--dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

.wp-page .wp-cta-banner__copy {
  flex: 1 1 280px;
  min-width: 0;
  display: grid;
  gap: 0.5rem;
}

.wp-page .wp-cta-banner .ec-actions {
  flex: 0 0 auto;
}

/* ═══════════════════════════════════════════
   VIDEO
   ═══════════════════════════════════════════ */
.wp-page .wp-video {
  border-radius: var(--wp-img-radius, 18px);
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: var(--wp-img-aspect, 16 / 9);
  width: var(--wp-img-width, auto);
  max-width: min(100%, var(--wp-img-max, 920px));
  margin-inline: var(--wp-img-margin, unset);
}

.wp-page .wp-video video,
.wp-page .wp-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--wp-img-fit, cover);
}

.wp-page .wp-video__link {
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   VIDEO + TEXT — split layout (new block only)
   ═══════════════════════════════════════════ */
.wp-page .wp-split--video .wp-split__media {
  aspect-ratio: auto;
  max-height: none;
  background: transparent;
  overflow: visible;
}

.wp-page .wp-split--video .wp-video {
  width: var(--wp-img-width, 100%);
  max-width: min(100%, var(--wp-img-max, 100%));
  aspect-ratio: var(--wp-img-aspect, 16 / 9);
  border-radius: var(--wp-img-radius, 18px);
  margin-inline: var(--wp-img-margin, 0);
}

.wp-page .wp-split--video .wp-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ═══════════════════════════════════════════
   GALLERY — masonry / flexible columns
   Each photo keeps its real aspect-ratio (no shared box, no crop).
   ═══════════════════════════════════════════ */
.wp-page .wp-gallery {
  display: block;
  column-count: var(--wp-gal-cols, 3);
  column-gap: var(--wp-gal-gap, 0.75rem);
  column-fill: balance;
}

.wp-page .wp-gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 var(--wp-gal-gap, 0.75rem);
  min-width: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  overflow: hidden;
  border-radius: var(--wp-img-radius, 12px);
  background: #f1f5f9;
}

.wp-page .wp-gallery__item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wp-page .wp-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.wp-page .wp-gallery__media {
  display: block;
}

.wp-page .wp-gallery--masonry .wp-gallery__media img {
  height: auto;
}

.wp-page .wp-gallery.wp-gallery--justified {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-count: auto;
  column-gap: 0;
  column-fill: auto;
  gap: 0;
}

.wp-page .wp-gallery--justified .wp-gallery__item {
  break-inside: auto;
  -webkit-column-break-inside: auto;
  margin: 0;
}

.wp-page .wp-gallery--justified .wp-gallery__media {
  overflow: hidden;
  border-radius: inherit;
  background: #f1f5f9;
}

.wp-page .wp-gallery--justified .wp-gallery__media img,
.wp-page .wp-gallery--justified .wp-gallery__item img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.wp-page .wp-gallery__caption {
  padding: 0.45rem 0.55rem 0.6rem;
  font-size: 0.82rem;
  color: var(--wp-desc-color, #475569);
}

/* ═══════════════════════════════════════════
   COURSE LEVELS
   ═══════════════════════════════════════════ */
.wp-page .wp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.wp-page .wp-tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  min-height: 38px;
  padding: 0.35rem 0.9rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.wp-page .wp-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.wp-page .wp-level {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
  padding: 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.wp-page .wp-level[hidden] { display: none !important; }

.wp-page .wp-level__cover {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 3 / 4;
}

.wp-page .wp-level__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-page .wp-level__body {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.wp-page .wp-level__body .ec-h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 0;
}

.wp-page .wp-level__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wp-page .wp-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.wp-page .wp-level__list {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: #475569;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   FAQ — full-width minimal accordion (+ / −)
   ═══════════════════════════════════════════ */
.wp-page .wp-faq-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  width: 100%;
}

.wp-page .wp-faq-layout__head {
  max-width: 40rem;
  margin-bottom: 0;
}

.wp-page .wp-faq {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  border-top: 0;
}

.wp-page .wp-faq__item,
.wp-page .wp-sec--faq .wp-faq__item,
.wp-page details.wp-faq__item {
  border: 1px solid #93c5fd !important;
  border-radius: 12px !important;
  background: #dbeafe !important;
  background-color: #dbeafe !important;
  padding: 0 1.1rem !important;
  margin: 0;
  overflow: hidden;
  box-shadow: none;
}

.wp-page .wp-faq__item[open],
.wp-page details.wp-faq__item[open] {
  background: #bfdbfe !important;
  background-color: #bfdbfe !important;
  border-color: #60a5fa !important;
}

.wp-page .wp-faq__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  color: var(--wp-heading-color, #0f172a);
  transition: color 0.2s ease;
}

.wp-page .wp-faq__summary::-webkit-details-marker { display: none; }
.wp-page .wp-faq__summary::marker { content: ""; }

.wp-page .wp-faq__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.wp-page .wp-faq__q {
  font-weight: 700;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  min-width: 0;
}

.wp-page .wp-faq__icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 1px solid #93c5fd;
  background: #fff;
  color: #1d4ed8;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wp-page .wp-faq__icon::before,
.wp-page .wp-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.wp-page .wp-faq__icon::before {
  width: 12px;
  height: 1.5px;
}

.wp-page .wp-faq__icon::after {
  width: 1.5px;
  height: 12px;
}

.wp-page .wp-faq__item[open] .wp-faq__icon {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.wp-page .wp-faq__item[open] .wp-faq__icon::after {
  opacity: 0;
}

.wp-page .wp-faq__item[open] .wp-faq__q {
  color: var(--wp-heading-color, #0f172a);
}

.wp-page .wp-faq__summary:hover .wp-faq__icon {
  border-color: #2563eb;
}

.wp-page .wp-faq__body {
  padding: 0 0 1.15rem;
  color: var(--wp-desc-color, #475569);
  font-size: 0.98rem;
  line-height: 1.9;
  max-width: none;
  border-top: 1px solid rgba(147, 197, 253, 0.45);
}

.wp-page .wp-faq__body p {
  margin: 0;
  padding-top: 0.85rem;
  padding-left: 0;
}

@media (max-width: 720px) {
  .wp-page .wp-faq__summary {
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .wp-page .wp-faq__body p {
    padding-left: 0;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 980px) {
  .wp-page .ec-hero.wp-designed,
  .wp-page .wp-sec--hero.wp-designed {
    height: auto !important;
    min-height: var(--wp-hero-height-tablet, 360px) !important;
    max-height: none !important;
    overflow: visible;
  }

  .wp-page .wp-hero-pano {
    width: 100%;
    justify-content: flex-end;
    padding: clamp(4.5rem, 16vh, 7rem) 20px clamp(1.5rem, 4vw, 2.4rem);
  }

  .wp-page .wp-hero-pano__copy {
    width: 100%;
    max-width: 100%;
  }

  .wp-page .wp-hero-classic,
  .wp-page .ec-hero.wp-designed .ec-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .wp-page .ec-hero.wp-designed .ec-h1 {
    font-size: var(--wp-heading-size, 32px);
  }

  .wp-page .wp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-page .wp-level {
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  }

  .wp-page .wp-gallery:not(.wp-gallery--justified) {
    column-count: 2;
    column-gap: var(--wp-gal-gap-mobile, var(--wp-gal-gap, 0.75rem));
  }

  .wp-page .wp-sec--split .wp-split:not(.wp-split--video) {
    gap: var(--wp-media-gap, var(--wp-split-gap-tablet));
    column-gap: var(--wp-media-gap, var(--wp-split-gap-tablet));
    row-gap: var(--wp-media-gap, var(--wp-split-gap-tablet));
  }
}

@media (max-width: 720px) {
  /* Never lock Hero to a fixed height on phones — copy + panoramic image must stay visible. */
  .wp-page .ec-hero.wp-designed,
  .wp-page .wp-sec--hero.wp-designed {
    height: auto !important;
    min-height: var(--wp-hero-height-mobile, clamp(220px, 48vh, 380px)) !important;
    max-height: none !important;
    overflow: visible;
  }

  .wp-page .wp-hero-pano {
    height: auto;
    min-height: inherit;
    justify-content: flex-end;
    padding: clamp(4.75rem, 18vh, 7.25rem) 16px clamp(1.35rem, 4.5vw, 2.15rem);
  }

  /* IO reveal can miss tall mobile sections (threshold > visible %). Keep content visible. */
  .wp-page .ec-reveal,
  .wp-page.ec-page--about .ec-section:not(.ec-hero),
  .wp-page.ec-page--about .about-stat,
  .wp-page.ec-page--about .about-leaders__video,
  .wp-page.ec-page--about .about-leader,
  .wp-page.ec-page--about .about-closing__quote {
    opacity: 1 !important;
    transform: none !important;
  }

  .wp-page .ec-hero.wp-designed .ec-h1 {
    font-size: var(--wp-heading-size-mobile, var(--wp-heading-size, 26px));
  }

  .wp-page .ec-hero.wp-designed .ec-hero__brand {
    font-size: var(--wp-sub-size, clamp(18px, 5vw, 20px));
  }

  /* Classic mobile: one background image (media column hidden) — still a single visual */
  .wp-page .ec-hero.wp-designed.wp-hero--classic {
    background-image: var(--wp-hero-bg-image, none) !important;
    background-size: var(--wp-hero-bg-size, cover) !important;
    background-position: var(--wp-hero-bg-pos-mobile, var(--wp-hero-bg-pos, center)) !important;
    position: relative;
  }

  .wp-page .ec-hero.wp-designed.wp-hero--classic::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 32%,
      color-mix(
        in srgb,
        var(--wp-hero-overlay-color, #0f172a)
        calc(var(--wp-hero-overlay-opacity, 0.4) * 50%),
        transparent
      ) 58%,
      color-mix(
        in srgb,
        var(--wp-hero-overlay-color, #0f172a)
        calc(var(--wp-hero-overlay-opacity, 0.4) * 175%),
        transparent
      ) 100%
    );
    z-index: 0;
  }

  .wp-page .ec-hero.wp-designed.wp-hero--classic .wp-hero-classic,
  .wp-page .ec-hero.wp-designed.wp-hero--classic .ec-hero__grid {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr;
  }

  .wp-page .ec-hero.wp-designed.wp-hero--classic .wp-hero-media,
  .wp-page .ec-hero.wp-designed.wp-hero--classic .ec-hero__media {
    display: none !important;
  }

  .wp-page .ec-hero.wp-designed.wp-hero--classic .ec-hero__copy {
    color: #fff;
    max-width: none;
    height: auto;
    min-height: var(--wp-hero-height-mobile, clamp(220px, 48vh, 380px));
    justify-content: flex-end;
    padding-top: clamp(4.5rem, 16vh, 7rem);
    padding-bottom: clamp(1.4rem, 5vw, 2.2rem);
  }

  .wp-page .ec-hero.wp-designed.wp-hero--classic.wp-hero-valign-center .ec-hero__copy,
  .wp-page .ec-hero.wp-designed.wp-hero--classic.wp-hero-valign-bottom .ec-hero__copy {
    justify-content: flex-end;
  }

  .wp-page .ec-hero.wp-designed.wp-hero--classic .ec-hero__copy .ec-lead,
  .wp-page .ec-hero.wp-designed.wp-hero--classic .ec-hero__copy .wp-typo-desc {
    color: var(--wp-desc-color, #fff) !important;
  }

  .wp-page .wp-sec.ec-section,
  .wp-page .ec-section.wp-designed {
    padding-top: var(--wp-pad-top-mobile, var(--wp-pad-top, var(--wp-section-py, var(--wp-section-space-mobile, var(--wp-section-gap)))));
    padding-bottom: var(--wp-pad-bottom-mobile, var(--wp-pad-bottom, var(--wp-section-py, var(--wp-section-space-mobile, var(--wp-section-gap)))));
  }

  .wp-page .wp-split {
    grid-template-columns: 1fr;
    gap: var(--wp-media-gap-mobile, var(--wp-media-gap, var(--wp-split-gap-mobile, 1.15rem)));
    column-gap: var(--wp-media-gap-mobile, var(--wp-media-gap, var(--wp-split-gap-mobile, 1.15rem)));
    row-gap: var(--wp-media-gap-mobile, var(--wp-media-gap, var(--wp-split-gap-mobile, 1.15rem)));
  }

  .wp-page .wp-sec--video .wp-sec__head {
    margin-bottom: var(--wp-media-gap-mobile, var(--wp-media-gap, clamp(1.5rem, 3vw, 2.25rem)));
  }

  .wp-page .wp-split--video.wp-split--video-first .wp-split__media {
    order: -1;
  }
  .wp-page .wp-split--video.wp-split--text-first .wp-split__copy {
    order: -1;
  }

  .wp-page .wp-gallery:not(.wp-gallery--justified) {
    column-count: var(--wp-gal-cols-mobile, 1);
    column-gap: var(--wp-gal-gap-mobile, var(--wp-gal-gap, 0.75rem));
  }
  .wp-page .wp-gallery__item {
    margin-bottom: var(--wp-gal-gap-mobile, var(--wp-gal-gap, 0.75rem));
  }
  .wp-page .wp-gallery__item img {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .wp-page .wp-sec--split .wp-split__media {
    width: min(100%, var(--wp-img-width-mobile, var(--wp-img-width, 100%)));
    max-width: 100%;
    max-height: var(--wp-img-height-mobile, var(--wp-img-height, none));
    aspect-ratio: var(--wp-img-aspect, auto);
    justify-self: stretch;
  }

  .wp-page .wp-sec--split .wp-split__media img {
    max-height: var(--wp-img-height-mobile, var(--wp-img-height, none));
  }

  .wp-page .wp-designed[style*="--wp-img-fit:cover"] .wp-sec--split .wp-split__media,
  .wp-page .wp-designed[style*="--wp-img-fit: cover"] .wp-sec--split .wp-split__media {
    height: var(--wp-img-height-mobile, var(--wp-img-height, auto));
  }

  .wp-page .wp-designed .wp-typo-heading,
  .wp-page .wp-designed .ec-h1,
  .wp-page .wp-designed .ec-h2 {
    font-size: var(--wp-heading-size-mobile, var(--wp-heading-size, inherit));
  }

  .wp-page .wp-designed .wp-typo-sub,
  .wp-page .wp-designed .ec-kicker {
    font-size: var(--wp-sub-size-mobile, var(--wp-sub-size, inherit));
  }

  .wp-page .wp-designed .wp-typo-desc,
  .wp-page .wp-designed .ec-lead {
    font-size: var(--wp-desc-size-mobile, var(--wp-desc-size, inherit));
  }

  .wp-page .wp-cards {
    grid-template-columns: 1fr;
  }

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

  .wp-page .wp-level__cover {
    max-width: 200px;
  }

  .wp-page .wp-cta-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .wp-page .wp-cta-banner .ec-actions {
    width: 100%;
  }

  .wp-page .wp-cta-banner .ec-actions .ec-btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .wp-page .ec-hero.wp-designed .ec-h1,
  .wp-page .wp-sec--hero.wp-designed .ec-h1,
  .wp-page .wp-typo-title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .wp-page .wp-cards,
  .wp-page .wp-split,
  .wp-page .wp-level {
    width: 100%;
    max-width: 100%;
  }

  .wp-page .ec-table-wrap,
  .wp-page .wp-sec--table {
    max-width: 100%;
  }

  .wp-page,
  .wp-page .ec-section,
  .wp-page .wp-sec,
  .wp-page .ec-wrap {
    max-width: 100%;
    box-sizing: border-box;
  }

  .wp-page img,
  .wp-page video {
    max-width: 100%;
    height: auto;
  }

  .wp-page iframe {
    max-width: 100%;
  }

  .wp-page .wp-video video,
  .wp-page .wp-video iframe,
  .wp-page .wp-hero-media video,
  .wp-page .ec-hero__media video {
    height: 100%;
  }
}

/* Dynamic / data-driven sections — live cards from site sources */
.wp-page .wp-dyn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}
.wp-page .wp-dyn-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
}
.wp-page .wp-dyn-track > * {
  flex: 0 0 min(260px, 82%);
  scroll-snap-align: start;
}
.wp-page .wp-dyn-track--grid,
.wp-page .wp-dyn-grid.wp-dyn-track {
  display: grid;
  overflow: visible;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.wp-page .wp-dyn-track--grid > *,
.wp-page .wp-dyn-grid.wp-dyn-track > * {
  flex: none;
}
.wp-page .wp-dyn-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wp-page .wp-dyn-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}
.wp-page .wp-dyn-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-page .wp-dyn-card__body {
  padding: 1rem 1.05rem 1.15rem;
  display: grid;
  gap: 0.4rem;
}
.wp-page .wp-dyn-card__meta {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
}
.wp-page .wp-dyn-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}
.wp-page .wp-dyn-card__title a {
  color: inherit;
  text-decoration: none;
}
.wp-page .wp-dyn-card__excerpt {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.65;
}
.wp-page .wp-dyn-card__cta {
  margin-top: 0.35rem;
  color: #ea580c;
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
}
.wp-page .wp-dyn-faqs {
  display: grid;
  gap: 0.55rem;
}
.wp-page .wp-dyn-faq {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: #fff;
}
.wp-page .wp-dyn-faq summary {
  cursor: pointer;
  font-weight: 800;
}
.wp-page .wp-dyn-faq__body {
  margin-top: 0.55rem;
  color: #475569;
  line-height: 1.7;
}
.wp-page .wp-dyn-related__group {
  margin-top: 1.75rem;
}
.wp-page .wp-dyn-related__label {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}
.wp-page .st-card__more {
  display: inline-block;
  margin-top: 0.45rem;
  color: #ea580c;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
}
@media (max-width: 720px) {
  .wp-page .wp-dyn-grid,
  .wp-page .wp-dyn-track--grid {
    grid-template-columns: 1fr;
  }
}

/* Admin-set typography sizes win over theme clamps, only when the var is present. */
.wp-page .wp-designed[style*="--wp-heading-size:"] .wp-typo-heading,
.wp-page .wp-designed[style*="--wp-heading-size:"] .ec-h1,
.wp-page .wp-designed[style*="--wp-heading-size:"] .ec-h2,
.wp-page .wp-designed[style*="--wp-heading-size:"] .ec-h3 {
  font-size: var(--wp-heading-size) !important;
}
.wp-page .wp-designed[style*="--wp-sub-size:"] .wp-typo-sub,
.wp-page .wp-designed[style*="--wp-sub-size:"] .ec-kicker,
.wp-page .wp-designed[style*="--wp-sub-size:"] .ec-hero__brand {
  font-size: var(--wp-sub-size) !important;
}
.wp-page .wp-designed[style*="--wp-sub-weight:"] .wp-typo-sub,
.wp-page .wp-designed[style*="--wp-sub-weight:"] .ec-kicker,
.wp-page .wp-designed[style*="--wp-sub-weight:"] .ec-hero__brand {
  font-weight: var(--wp-sub-weight) !important;
}
.wp-page .wp-designed[style*="--wp-sub-color:"] .wp-typo-sub,
.wp-page .wp-designed[style*="--wp-sub-color:"] .ec-kicker,
.wp-page .wp-designed[style*="--wp-sub-color:"] .ec-hero__brand {
  color: var(--wp-sub-color) !important;
}
.wp-page .wp-designed[style*="--wp-sub-align:"] .wp-typo-sub,
.wp-page .wp-designed[style*="--wp-sub-align:"] .ec-kicker,
.wp-page .wp-designed[style*="--wp-sub-align:"] .ec-hero__brand {
  text-align: var(--wp-sub-align) !important;
}
.wp-page .wp-designed[style*="--wp-sub-lh:"] .wp-typo-sub,
.wp-page .wp-designed[style*="--wp-sub-lh:"] .ec-kicker,
.wp-page .wp-designed[style*="--wp-sub-lh:"] .ec-hero__brand {
  line-height: var(--wp-sub-lh) !important;
}
.wp-page .wp-designed[style*="--wp-heading-lh:"] .wp-typo-heading,
.wp-page .wp-designed[style*="--wp-heading-lh:"] .ec-h1,
.wp-page .wp-designed[style*="--wp-heading-lh:"] .ec-h2,
.wp-page .wp-designed[style*="--wp-heading-lh:"] .ec-h3 {
  line-height: var(--wp-heading-lh) !important;
}
.wp-page .wp-designed[style*="--wp-media-gap:"] .wp-split,
.wp-page .wp-designed[style*="--wp-media-gap:"] .wp-sec--video .wp-sec__head {
  gap: var(--wp-media-gap) !important;
  column-gap: var(--wp-media-gap) !important;
  row-gap: var(--wp-media-gap) !important;
}
@media (max-width: 720px) {
  .wp-page .wp-designed[style*="--wp-media-gap-mobile:"] .wp-split,
  .wp-page .wp-designed[style*="--wp-media-gap-mobile:"] .wp-sec--video .wp-sec__head {
    gap: var(--wp-media-gap-mobile) !important;
    column-gap: var(--wp-media-gap-mobile) !important;
    row-gap: var(--wp-media-gap-mobile) !important;
  }
}
.wp-page .wp-designed[style*="--wp-split-cols:"] .wp-split {
  grid-template-columns: var(--wp-split-cols) !important;
}
@media (max-width: 720px) {
  .wp-page .wp-designed[style*="--wp-split-cols:"] .wp-split {
    grid-template-columns: 1fr !important;
  }
}
.wp-page .wp-designed[style*="--wp-desc-lh:"] .wp-typo-desc,
.wp-page .wp-designed[style*="--wp-desc-lh:"] .wp-typo-desc p,
.wp-page .wp-designed[style*="--wp-desc-lh:"] .wp-typo-desc li,
.wp-page .wp-designed[style*="--wp-desc-lh:"] .ec-lead,
.wp-page .wp-designed[style*="--wp-desc-lh:"] .ec-lead p,
.wp-page .wp-designed[style*="--wp-desc-lh:"] .ec-lead li {
  line-height: var(--wp-desc-lh) !important;
}
.wp-page .wp-designed[style*="--wp-desc-size:"] .wp-typo-desc,
.wp-page .wp-designed[style*="--wp-desc-size:"] .wp-typo-desc p,
.wp-page .wp-designed[style*="--wp-desc-size:"] .ec-lead,
.wp-page .wp-designed[style*="--wp-desc-size:"] .ec-lead p {
  font-size: var(--wp-desc-size) !important;
}
@media (max-width: 768px) {
  .wp-page .wp-designed[style*="--wp-heading-size-mobile:"] .wp-typo-heading,
  .wp-page .wp-designed[style*="--wp-heading-size-mobile:"] .ec-h1,
  .wp-page .wp-designed[style*="--wp-heading-size-mobile:"] .ec-h2,
  .wp-page .wp-designed[style*="--wp-heading-size-mobile:"] .ec-h3 {
    font-size: var(--wp-heading-size-mobile) !important;
  }
  .wp-page .wp-designed[style*="--wp-sub-size-mobile:"] .wp-typo-sub,
  .wp-page .wp-designed[style*="--wp-sub-size-mobile:"] .ec-kicker,
  .wp-page .wp-designed[style*="--wp-sub-size-mobile:"] .ec-hero__brand {
    font-size: var(--wp-sub-size-mobile) !important;
  }
  .wp-page .wp-designed[style*="--wp-desc-size-mobile:"] .wp-typo-desc,
  .wp-page .wp-designed[style*="--wp-desc-size-mobile:"] .wp-typo-desc p,
  .wp-page .wp-designed[style*="--wp-desc-size-mobile:"] .ec-lead,
  .wp-page .wp-designed[style*="--wp-desc-size-mobile:"] .ec-lead p {
    font-size: var(--wp-desc-size-mobile) !important;
  }
}

.wp-page .wp-resume {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
  border-inline-start: 1px solid #e2e8f0;
}
.wp-page .wp-resume__item {
  position: relative;
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  padding-inline-start: 1.15rem;
}
.wp-page .wp-resume__item::before {
  content: "";
  position: absolute;
  inset-inline-start: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
}
.wp-page .wp-resume__when {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.5;
}
.wp-page .wp-resume__body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  color: inherit;
}
.wp-page .wp-resume__org {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
}
.wp-page .wp-resume__note {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #64748b;
  text-indent: 0;
  text-align: inherit;
}
@media (max-width: 720px) {
  .wp-page .wp-resume__item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/*
 * Page Builder canvas is not a viewport. Replay the same mobile layout when:
 *   1. the .wp-page container is narrow (@container), or
 *   2. the builder explicitly toggles Mobile (.is-preview-mobile).
 * Live site still uses the @media blocks above — these rules keep Preview
 * pixel-aligned with that same breakpoint.
 */
@container wppage (max-width: 720px) {
  .wp-sec.ec-section,
  .ec-section.wp-designed {
    padding-top: var(--wp-pad-top-mobile, var(--wp-pad-top, var(--wp-section-py, var(--wp-section-space-mobile, var(--wp-section-gap)))));
    padding-bottom: var(--wp-pad-bottom-mobile, var(--wp-pad-bottom, var(--wp-section-py, var(--wp-section-space-mobile, var(--wp-section-gap)))));
  }
  .wp-split {
    grid-template-columns: 1fr !important;
    gap: var(--wp-media-gap-mobile, var(--wp-media-gap, var(--wp-split-gap-mobile, 1.15rem)));
    column-gap: var(--wp-media-gap-mobile, var(--wp-media-gap, var(--wp-split-gap-mobile, 1.15rem)));
    row-gap: var(--wp-media-gap-mobile, var(--wp-media-gap, var(--wp-split-gap-mobile, 1.15rem)));
    width: 100%;
    max-width: 100%;
  }
  .wp-sec--split .wp-split__media {
    width: min(100%, var(--wp-img-width-mobile, var(--wp-img-width, 100%)));
    max-width: 100%;
    max-height: var(--wp-img-height-mobile, var(--wp-img-height, none));
    aspect-ratio: var(--wp-img-aspect, auto);
    justify-self: stretch;
  }
  .wp-sec--split .wp-split__media img {
    max-height: var(--wp-img-height-mobile, var(--wp-img-height, none));
  }
  .wp-designed[style*="--wp-img-fit:cover"] .wp-sec--split .wp-split__media,
  .wp-designed[style*="--wp-img-fit: cover"] .wp-sec--split .wp-split__media {
    height: var(--wp-img-height-mobile, var(--wp-img-height, auto));
  }
  .wp-designed .wp-typo-heading,
  .wp-designed .ec-h1,
  .wp-designed .ec-h2 {
    font-size: var(--wp-heading-size-mobile, var(--wp-heading-size, inherit));
  }
  .wp-designed .wp-typo-sub,
  .wp-designed .ec-kicker {
    font-size: var(--wp-sub-size-mobile, var(--wp-sub-size, inherit));
  }
  .wp-designed .wp-typo-desc,
  .wp-designed .ec-lead {
    font-size: var(--wp-desc-size-mobile, var(--wp-desc-size, inherit));
  }
  .wp-designed[style*="--wp-heading-size-mobile:"] .wp-typo-heading,
  .wp-designed[style*="--wp-heading-size-mobile:"] .ec-h1,
  .wp-designed[style*="--wp-heading-size-mobile:"] .ec-h2,
  .wp-designed[style*="--wp-heading-size-mobile:"] .ec-h3 {
    font-size: var(--wp-heading-size-mobile) !important;
  }
  .wp-designed[style*="--wp-sub-size-mobile:"] .wp-typo-sub,
  .wp-designed[style*="--wp-sub-size-mobile:"] .ec-kicker {
    font-size: var(--wp-sub-size-mobile) !important;
  }
  .wp-designed[style*="--wp-desc-size-mobile:"] .wp-typo-desc,
  .wp-designed[style*="--wp-desc-size-mobile:"] .wp-typo-desc p,
  .wp-designed[style*="--wp-desc-size-mobile:"] .ec-lead,
  .wp-designed[style*="--wp-desc-size-mobile:"] .ec-lead p {
    font-size: var(--wp-desc-size-mobile) !important;
  }
  .wp-designed[style*="--wp-media-gap-mobile:"] .wp-split {
    gap: var(--wp-media-gap-mobile) !important;
    column-gap: var(--wp-media-gap-mobile) !important;
    row-gap: var(--wp-media-gap-mobile) !important;
  }
  .wp-designed[style*="--wp-split-cols:"] .wp-split {
    grid-template-columns: 1fr !important;
  }
}

.wp-page.is-preview-mobile .wp-sec.ec-section,
.wp-page.is-preview-mobile .ec-section.wp-designed {
  padding-top: var(--wp-pad-top-mobile, var(--wp-pad-top, var(--wp-section-py, var(--wp-section-space-mobile, var(--wp-section-gap)))));
  padding-bottom: var(--wp-pad-bottom-mobile, var(--wp-pad-bottom, var(--wp-section-py, var(--wp-section-space-mobile, var(--wp-section-gap)))));
}
.wp-page.is-preview-mobile .wp-split {
  grid-template-columns: 1fr !important;
  gap: var(--wp-media-gap-mobile, var(--wp-media-gap, var(--wp-split-gap-mobile, 1.15rem)));
  column-gap: var(--wp-media-gap-mobile, var(--wp-media-gap, var(--wp-split-gap-mobile, 1.15rem)));
  row-gap: var(--wp-media-gap-mobile, var(--wp-media-gap, var(--wp-split-gap-mobile, 1.15rem)));
  width: 100%;
  max-width: 100%;
}
.wp-page.is-preview-mobile .wp-sec--split .wp-split__media {
  width: min(100%, var(--wp-img-width-mobile, var(--wp-img-width, 100%)));
  max-width: 100%;
  max-height: var(--wp-img-height-mobile, var(--wp-img-height, none));
  aspect-ratio: var(--wp-img-aspect, auto);
  justify-self: stretch;
}
.wp-page.is-preview-mobile .wp-sec--split .wp-split__media img {
  max-height: var(--wp-img-height-mobile, var(--wp-img-height, none));
}
.wp-page.is-preview-mobile .wp-designed[style*="--wp-img-fit:cover"] .wp-sec--split .wp-split__media,
.wp-page.is-preview-mobile .wp-designed[style*="--wp-img-fit: cover"] .wp-sec--split .wp-split__media {
  height: var(--wp-img-height-mobile, var(--wp-img-height, auto));
}
.wp-page.is-preview-mobile .wp-designed .wp-typo-heading,
.wp-page.is-preview-mobile .wp-designed .ec-h1,
.wp-page.is-preview-mobile .wp-designed .ec-h2 {
  font-size: var(--wp-heading-size-mobile, var(--wp-heading-size, inherit));
}
.wp-page.is-preview-mobile .wp-designed .wp-typo-sub,
.wp-page.is-preview-mobile .wp-designed .ec-kicker {
  font-size: var(--wp-sub-size-mobile, var(--wp-sub-size, inherit));
}
.wp-page.is-preview-mobile .wp-designed .wp-typo-desc,
.wp-page.is-preview-mobile .wp-designed .ec-lead {
  font-size: var(--wp-desc-size-mobile, var(--wp-desc-size, inherit));
}
.wp-page.is-preview-mobile .wp-designed[style*="--wp-heading-size-mobile:"] .wp-typo-heading,
.wp-page.is-preview-mobile .wp-designed[style*="--wp-heading-size-mobile:"] .ec-h1,
.wp-page.is-preview-mobile .wp-designed[style*="--wp-heading-size-mobile:"] .ec-h2,
.wp-page.is-preview-mobile .wp-designed[style*="--wp-heading-size-mobile:"] .ec-h3 {
  font-size: var(--wp-heading-size-mobile) !important;
}
.wp-page.is-preview-mobile .wp-designed[style*="--wp-sub-size-mobile:"] .wp-typo-sub,
.wp-page.is-preview-mobile .wp-designed[style*="--wp-sub-size-mobile:"] .ec-kicker {
  font-size: var(--wp-sub-size-mobile) !important;
}
.wp-page.is-preview-mobile .wp-sec--text.wp-text-heading-auto .wp-typo-heading,
.wp-page.is-preview-mobile .wp-sec--text.wp-text-heading-auto .ec-h1,
.wp-page.is-preview-mobile .wp-sec--text.wp-text-heading-auto .ec-h2,
.wp-page.is-preview-mobile .wp-sec--text.wp-text-heading-auto .ec-h3 {
  font-size: clamp(18px, 5.2vw, var(--wp-heading-size, 28px)) !important;
}
.wp-page.is-preview-mobile .wp-sec--text.wp-text-sub-auto .wp-typo-sub,
.wp-page.is-preview-mobile .wp-sec--text.wp-text-sub-auto .ec-kicker {
  font-size: clamp(14px, 4vw, var(--wp-sub-size, 20px)) !important;
}
.wp-page.is-preview-mobile .wp-designed[style*="--wp-desc-size-mobile:"] .wp-typo-desc,
.wp-page.is-preview-mobile .wp-designed[style*="--wp-desc-size-mobile:"] .wp-typo-desc p,
.wp-page.is-preview-mobile .wp-designed[style*="--wp-desc-size-mobile:"] .ec-lead,
.wp-page.is-preview-mobile .wp-designed[style*="--wp-desc-size-mobile:"] .ec-lead p {
  font-size: var(--wp-desc-size-mobile) !important;
}
.wp-page.is-preview-mobile .wp-designed[style*="--wp-media-gap-mobile:"] .wp-split {
  gap: var(--wp-media-gap-mobile) !important;
  column-gap: var(--wp-media-gap-mobile) !important;
  row-gap: var(--wp-media-gap-mobile) !important;
}
.wp-page.is-preview-mobile .wp-designed[style*="--wp-split-cols:"] .wp-split {
  grid-template-columns: 1fr !important;
}

/* Shared readable measure + bilingual isolate for all Website Pages */
.wp-page .wp-en {
  display: inline;
  unicode-bidi: isolate;
  direction: ltr;
  white-space: nowrap;
}
.wp-page .wp-sec--text + .wp-sec--text {
  padding-top: clamp(0.55rem, 1.2vw, 0.95rem);
}
.wp-page .wp-table-wrap,
.wp-page .ec-lead table,
.wp-page .wp-typo-desc table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wp-page .ec-lead table,
.wp-page .wp-typo-desc table,
.wp-page .wp-table-wrap table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.wp-page .ec-lead th,
.wp-page .ec-lead td,
.wp-page .wp-typo-desc th,
.wp-page .wp-typo-desc td {
  border: 1px solid #dbe4f0;
  padding: 0.65rem 0.8rem;
  text-align: right;
}
.wp-page .ec-lead th,
.wp-page .wp-typo-desc th {
  background: #eff6ff;
  font-weight: 800;
}
.wp-page .wp-faq__body {
  animation: wp-faq-in 0.2s ease;
}
@keyframes wp-faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .wp-page .ec-actions .wp-cta-btn,
  .wp-page .ec-actions .ec-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Long-form guide pages (TOEFL) — same tokens, tighter article column */
.wp-page--guide {
  --wp-section-gap: clamp(1.1rem, 2.2vw, 1.7rem);
}
.wp-page--guide .wp-sec--text > .ec-wrap,
.wp-page--guide .wp-sec--text .wp-text-wrap,
.wp-page--guide .wp-faq-layout,
.wp-page--guide .wp-sec--features .ec-wrap {
  width: min(48rem, calc(100% - (var(--wp-pad) * 2)));
}
.wp-page--guide .wp-sec--text .ec-lead,
.wp-page--guide .wp-sec--text .wp-typo-desc,
.wp-page--guide .wp-sec--text .ec-lead p,
.wp-page--guide .wp-sec--text .wp-typo-desc p {
  max-width: 48rem;
}
.wp-page--guide .wp-media-img {
  max-height: 420px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  margin-inline: auto;
}
.wp-page--guide .wp-sec--image .ec-kicker,
.wp-page--guide .wp-sec--image .ec-lead {
  max-width: 48rem;
  margin-inline: auto;
  color: #64748b;
  font-size: 0.92rem;
}
@media (prefers-reduced-motion: reduce) {
  .wp-page .wp-faq__body,
  .wp-page .ec-reveal {
    animation: none !important;
    transition: none !important;
  }
}
