/* Shared homepage H2 typography — mirrors the “Why Train With Us?” treatment. */
body h2 {
    font-family: var(--font-heading, 'Manrope', Arial, sans-serif) !important;
    font-weight: 800;
    letter-spacing: -.055em;
}

body h2 .home-h2-accent {
    position: relative;
    display: inline-block;
    z-index: 0;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    color: var(--theme-gold, #edc540) !important;
    font-family: 'Times New Roman', Times, serif !important;
    font-style: italic;
    font-weight: 400 !important;
    letter-spacing: -.045em;
    line-height: .98;
    text-transform: none;
    transition: none !important;
}

body h2 .home-h2-accent:not(.home-h2-accent--no-underline)::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: -.17em;
    width: 92%;
    height: .22em;
    background:
        linear-gradient(176deg, transparent 36%, currentColor 39%, currentColor 47%, transparent 50%) 0 0 / 100% 55% no-repeat,
        linear-gradient(178deg, transparent 36%, currentColor 39%, currentColor 47%, transparent 50%) 10% 100% / 82% 55% no-repeat;
    content: '';
    opacity: .96;
    pointer-events: none;
}

/* The reference heading already has its own hand-drawn SVG underline. */
.service-cards-wrapper .main-title {
    font-family: var(--font-heading, 'Manrope', Arial, sans-serif) !important;
    font-weight: 800;
}

.service-cards-wrapper .main-title .italic-text {
    font-family: 'Times New Roman', Times, serif !important;
    font-weight: 400 !important;
}

/* Explicit reference headings requested across the homepage. */
body h2.home-reference-title {
    font-family: var(--font-heading, 'Manrope', Arial, sans-serif) !important;
    font-weight: 800 !important;
    letter-spacing: -.06em !important;
}

#about-sec .certified-heading__title.home-reference-title {
    line-height: 1;
}

#about-sec .certified-heading__title.home-reference-title .certified-heading__main {
    font-family: var(--font-heading, 'Manrope', Arial, sans-serif);
}

#about-sec .certified-heading__title.home-reference-title > .home-h2-accent {
    display: block;
    width: max-content !important;
    max-width: 100%;
    margin-top: 2px !important;
}

.mm-overview__about .mm-overview-editorial-heading h2.home-reference-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 .16em;
    font-size: clamp(48px, 5vw, 66px);
    line-height: 1.03;
}

.mm-overview__about .mm-overview-editorial-heading h2.home-reference-title > .home-h2-accent {
    font-size: 1.1em;
}

.who-we-are-content h2.home-reference-title .text-with {
    display: block;
    width: max-content !important;
    max-width: 100%;
    margin-top: .08em !important;
}

.who-we-are-content .who-we-are-underline,
.dl-student-heading .dl-success-heading-line,
.dl-team-heading .dl-team-heading-line,
.motion-card__heading .motion-card__underline-svg {
    display: none;
}

.dl-student-heading h2.home-reference-title .home-h2-accent {
    display: inline-block;
}

.motion-card__title.home-reference-title {
    font-size: clamp(42px, 5vw, 72px);
    line-height: .92;
}

.motion-card__title.home-reference-title .home-h2-accent {
    margin-top: .08em !important;
}

.motion-card__heading .motion-card__subtitle {
    top: 0;
    margin-top: .32em;
}

@media (max-width: 767px) {
    body h2 {
        letter-spacing: -.045em;
    }

    body h2 .home-h2-accent {
        letter-spacing: -.035em;
    }

    .mm-overview__about .mm-overview-editorial-heading h2.home-reference-title {
        gap: 0 .13em;
        font-size: clamp(40px, 12vw, 52px);
    }

    .motion-card__title.home-reference-title {
        font-size: clamp(38px, 11vw, 52px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body h2 .home-h2-accent::after {
        animation: none !important;
        transition: none !important;
    }
}
