/* Toeflyar 1.0.5 — narrow dark-mode contrast hotfix.
   Based on v1.0.2, deliberately excludes the problematic v1.0.3/1.0.4
   broad headings rules. Targets ACTUAL live Elementor class markup:
   heading.default can have .mz-el-heading OR one of the older service classes.
   Never rewrite Elementor documents; only theme styles are adjusted. */

/* Fix Elementor Kit primary token on the heading widget itself, not merely
   on an outer wrapper; Kit styles refer to var(--e-global-color-primary).
   Keep service badge/counters and the header/footers outside this selector. */
html[data-mz-theme="dark"] body .mz-el-section .elementor-widget-heading:is(
  .mz-el-heading, .mz-el-hero-h1,
  .mz-ielts-heading, .mz-ielts-h1,
  .mz-toefl-heading, .mz-toefl-h1,
  .mz-gre-heading, .mz-gre-h1,
  .mz-duolingo-heading, .mz-duolingo-h1
) {
  --e-global-color-primary: #f9f5ff;
}
/* The exact live page shows .mz-el-heading on a direct child of the section,
   NOT necessarily .mz-gre-title .mz-gre-heading. Match both structures. */
html[data-mz-theme="dark"] body .mz-el-section .elementor-widget-heading:is(
  .mz-el-heading, .mz-el-hero-h1,
  .mz-ielts-heading, .mz-ielts-h1,
  .mz-toefl-heading, .mz-toefl-h1,
  .mz-gre-heading, .mz-gre-h1,
  .mz-duolingo-heading, .mz-duolingo-h1
) .elementor-heading-title {
  color:#f9f5ff !important;
  -webkit-text-fill-color:#f9f5ff !important;
}
/* Reapply accents after setting the parent webkit-fill, so orange remains
   orange instead of silently inheriting white. */
html[data-mz-theme="dark"] body .mz-el-section .elementor-widget-heading .elementor-heading-title :is(.mz-hot,.tf-accent),
html[data-mz-theme="dark"] body .mz-el-section .mz-hot {
  color:#ff8a65 !important;
  -webkit-text-fill-color:#ff8a65 !important;
}
/* Subtitles/eyebrows rendered as a heading widget (and not as paragraphs). */
html[data-mz-theme="dark"] body .mz-el-section .elementor-widget-heading:is(
  .mz-el-eyebrow,.mz-ielts-eyebrow,.mz-toefl-eyebrow,
  .mz-gre-eyebrow,.mz-duolingo-eyebrow
) .elementor-heading-title {
  color:#ffae96 !important;
  -webkit-text-fill-color:#ffae96 !important;
}

/* The score CARD itself is dark in dark mode, unlike the homepage's pastel
   feature cards. V1.0.2 set #20182f !important on these labels even in dark.
   Ensure a visible score title and all four labeled result cells. */
html[data-mz-theme="dark"] body .mz-el-section :is(
 .mz-ielts-score-card,.mz-toefl-score-card,.mz-gre-score-card,.mz-duolingo-score-card
) :is(.mz-ielts-score-label,.mz-toefl-score-label,.mz-gre-score-label,.mz-duolingo-score-label) {
  color:#f9f5ff !important;
}
html[data-mz-theme="dark"] body .mz-el-section :is(
 .mz-ielts-score-card,.mz-toefl-score-card,.mz-gre-score-card,.mz-duolingo-score-card
) :is(.mz-ielts-score-label,.mz-toefl-score-label,.mz-gre-score-label,.mz-duolingo-score-label) :is(small,b,span) {
  color:#e7ddeb !important;
}
html[data-mz-theme="dark"] body .mz-el-section :is(
 .mz-ielts-score-values,.mz-toefl-score-values,.mz-gre-score-values,.mz-duolingo-score-values
) :is(b,small,span) {
  color:#f9f5ff !important;
}

/* Subheadings and explanatory copy on DARK service sections. This intentionally
   avoids form fields and light-background cards. */
html[data-mz-theme="dark"] body .mz-el-section .elementor-widget-heading:is(
 .mz-ielts-breadcrumb,.mz-toefl-breadcrumb,.mz-gre-breadcrumb,.mz-duolingo-breadcrumb
) .elementor-heading-title {color:#d8cbdf !important;-webkit-text-fill-color:#d8cbdf !important}
html[data-mz-theme="dark"] body .mz-el-section :is(
 .mz-ielts-intro,.mz-toefl-intro,.mz-gre-intro,.mz-duolingo-intro,
 .mz-ielts-score-info,.mz-toefl-score-info,.mz-gre-score-info,.mz-duolingo-score-info
) :is(p,span) {color:#ded3e7 !important}
/* Preserve original service colors while lifting tiny badges above the dark bg */
html[data-mz-theme="dark"] body .mz-el-section .mz-gre-kicker .elementor-heading-title {color:#b4f4cf !important;-webkit-text-fill-color:#b4f4cf !important}
html[data-mz-theme="dark"] body .mz-el-section .mz-duolingo-kicker .elementor-heading-title {color:#e4ccff !important;-webkit-text-fill-color:#e4ccff !important}
html[data-mz-theme="dark"] body .mz-el-section .mz-toefl-kicker .elementor-heading-title {color:#abd9ff !important;-webkit-text-fill-color:#abd9ff !important}
html[data-mz-theme="dark"] body .mz-el-section .mz-ielts-kicker .elementor-heading-title {color:#ffb9a7 !important;-webkit-text-fill-color:#ffb9a7 !important}

/* Service icon backgrounds were darkened but retained their old dark symbols.
   Only touch the SVG/icon foreground; no layout changes. */
html[data-mz-theme="dark"] body .mz-el-section .mz-gre-benefit-icon {color:#a2edc2 !important}
html[data-mz-theme="dark"] body .mz-el-section .mz-duolingo-benefit-icon {color:#dbc6ff !important}
html[data-mz-theme="dark"] body .mz-el-section .mz-toefl-benefit-icon {color:#a9d9ff !important}
html[data-mz-theme="dark"] body .mz-el-section .mz-ielts-benefit-icon {color:#ffc5ae !important}

/* Exceptions: genuinely light surfaces and native Elementor Pro white forms.
   Leave button gradients, muted text and the orange accent to existing controls. */
html[data-mz-theme="dark"] body .mz-el-section :is(
 .tf-pro-form-card,.mzui-feature-card,.mz-el-team-form
) .elementor-widget-heading .elementor-heading-title {
  color:#20182f !important;
  -webkit-text-fill-color:#20182f !important;
}
html[data-mz-theme="dark"] body .mz-el-section .mz-el-counter-number .elementor-heading-title {
  color:#ff8a65 !important;
  -webkit-text-fill-color:#ff8a65 !important;
}
