/* ============================================================
   FSC AFRICA — TITLE VISIBILITY SAFETY LAYER
   Loaded AFTER page-specific styles from _Layout.cshtml.

   Purpose:
   - Force headings on white / light FSC surfaces to the primary
     navy-black colour so they cannot disappear on white.
   - Preserve white headings on heroes, dark sections, image cards
     and photographic CTAs.
   ============================================================ */

/* ------------------------------------------------------------
   LIGHT SECTION H2 TITLES
   ------------------------------------------------------------ */
body.fsc-site .fsc-section:not(.fsc-section--dark):not(.fsc-section--accent):not(.fsc-section--compact):not(.about-values) .fsc-section-heading > h2,
body.fsc-site .fsc-section:not(.fsc-section--dark):not(.fsc-section--accent):not(.fsc-section--compact):not(.about-values) .fsc-split__content > h2,
body.fsc-site .fsc-section:not(.fsc-section--dark):not(.fsc-section--accent):not(.fsc-section--compact):not(.about-values) .fsc-form-card > h2,
body.fsc-site .fsc-section:not(.fsc-section--dark):not(.fsc-section--accent):not(.fsc-section--compact):not(.about-values) .fsc-contact-grid > div > h2,
body.fsc-site .fsc-schedule-year__title > h2,
body.fsc-site .fsc-simple-page__content > h2,
body.fsc-site .about-intro__copy > h2,
body.fsc-site .about-divisions .about-section-heading-split h2,
body.fsc-site .about-team .about-section-heading-split h2,
body.fsc-site .about-footprint__content > h2 {
    color: #000000 !important;
}

/* ------------------------------------------------------------
   LIGHT CARD / CONTENT H3 TITLES
   ------------------------------------------------------------ */
body.fsc-site .fsc-info-card:not(.fsc-info-card--dark) > h3,
body.fsc-site .fsc-process__step > h3,
body.fsc-site .fsc-feature-row > h3,
body.fsc-site .fsc-course-card__body > h3,
body.fsc-site .fsc-empty-state > h3,
body.fsc-site .fsc-schedule-item h3,
body.fsc-site .fsc-notice > h3,
body.fsc-site .about-profile > h3 {
    color: #000000 !important;
}

/* ------------------------------------------------------------
   DARK / IMAGE AREAS — EXPLICITLY PRESERVE WHITE TITLES
   These rules deliberately follow the light rules above.
   ------------------------------------------------------------ */
body.fsc-site .fsc-page-hero h1,
body.fsc-site .fsc-course-detail-hero h1,
body.fsc-site .fsc-hero h1,
body.fsc-site .fsc-section--dark h2,
body.fsc-site .fsc-section--dark h3,
body.fsc-site .fsc-section--accent h2,
body.fsc-site .fsc-section--accent h3,
body.fsc-site .about-values h2,
body.fsc-site .about-values h3,
body.fsc-site .fsc-info-card--dark h3,
body.fsc-site .fsc-image-card__content h3,
body.fsc-site .fsc-cta__content h2 {
    color: #ffffff !important;
}

/* Headings inside image-based About division cards are text elements
   rather than h3 in the approved layout, but keep them readable too. */
body.fsc-site .about-division-card__content strong,
body.fsc-site .about-division-card__content b {
    color: #ffffff !important;
}

/* The green accent remains visible on dark surfaces. */
body.fsc-site .fsc-section--dark .fsc-eyebrow,
body.fsc-site .fsc-section--accent .fsc-eyebrow,
body.fsc-site .about-values .fsc-eyebrow,
body.fsc-site .fsc-cta__content .fsc-eyebrow,
body.fsc-site .fsc-page-hero .fsc-eyebrow,
body.fsc-site .fsc-hero .fsc-eyebrow {
    color: var(--fsc-secondary) !important;
}
