/*
Theme Name: MHAI Custom
Author: MHAI
Description: Bespoke theme for MHAI Mental Health Guidance
Version: 2.1
*/


/* =========================================================
   1. DESIGN SYSTEM
   ========================================================= */

:root {

    /* Colours */
    --color-bg: #FDF9F3;
    --color-bg-soft: #F1EDEA;
    --color-surface: #FFFFFF;

    --color-text: #1A1A1A;
    --color-text-soft: #4A4A4A;
    --color-text-inverse: #FFFFFF;

    --color-accent: #E2BB39;
    --color-accent-hover: #D1AA28;

    --color-border: #E4DFD7;
    --color-dark: #1A1A1A;

    /* Typography */
    --font-serif: "Times New Roman", Times, Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;

    /* Widths */
    --width-site: 1600px;
    --width-content: 1000px;
    --width-reading: 760px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    /* Borders / effects */
    --radius-small: 3px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   2. RESET & GLOBAL BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: break-word;
}

p {
    margin-top: 0;
}

ul,
ol {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--color-text);
    font-family: var(--font-serif);
    font-weight: 400;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    line-height: 1.2;
}

.page-content p a,
.page-content li a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.page-content p a:hover,
.page-content li a:hover {
    text-decoration-thickness: 2px;
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed !important;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    padding: 12px 18px;
    background: var(--color-bg);
    color: var(--color-text);
    z-index: 99999;
}


/* =========================================================
   4. GLOBAL LAYOUT UTILITIES
   ========================================================= */

.mhai-container {
    width: min(88%, var(--width-site));
    margin-inline: auto;
}

.mhai-reading-width {
    max-width: var(--width-reading);
}

.mhai-kicker,
.mhai-eyebrow,
.uppercase-accent {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.intro-lead,
.mhai-lead {
    max-width: var(--width-reading);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.55;
    color: var(--color-text);
}


/* =========================================================
   5. HEADER
   ========================================================= */

.mhai-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.mhai-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(88%, var(--width-site));
    max-width: 100%;
    margin-inline: auto;
    min-height: 88px;
}

.mhai-header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mhai-header-cta .btn {
    white-space: nowrap;
}


/* =========================================================
   6. LOGO
   ========================================================= */

.mhai-brand-logo {
    min-width: 0;
}

.mhai-brand-logo > a {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-text);
}

.mhai-brand-logo .logo-accent {
    display: block;
    margin-top: 5px;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    line-height: 1.15;
    color: var(--color-accent);
    white-space: nowrap;
}


/* =========================================================
   7. NAVIGATION
   ========================================================= */

.mhai-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mhai-menu-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mhai-menu-list > li {
    position: relative;
}

.mhai-menu-list a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.mhai-menu-list a:hover {
    color: var(--color-accent-hover);
}


/* Dropdown */

.mhai-menu-list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: -1rem;
    z-index: 1200;
    min-width: 260px;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.mhai-menu-list .sub-menu li {
    width: 100%;
    margin: 0;
}

.mhai-menu-list .sub-menu a {
    display: block;
    width: 100%;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
}

.mhai-menu-list .sub-menu a:hover {
    background: var(--color-bg);
    color: var(--color-accent-hover);
}

@media (min-width: 769px) {

    .mhai-menu-list .menu-item-has-children:hover > .sub-menu,
    .mhai-menu-list .has-dropdown:hover > .sub-menu {
        display: block;
    }

}


/* =========================================================
   8. HAMBURGER
   ========================================================= */

.mhai-hamburger {
    display: none;
    flex: 0 0 28px;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 19px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
}


/* =========================================================
   9. BUTTONS
   ========================================================= */

.btn,
.mhai-button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 48px;
    padding: 0.8rem 1.6rem;
    border: 0;
    border-radius: var(--radius-small);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.btn-primary,
.page-content .wp-block-button__link {
    background: var(--color-accent);
    color: var(--color-text);
}

.btn-primary:hover,
.page-content .wp-block-button__link:hover {
    background: var(--color-accent-hover);
}

.mhai-button:hover,
.btn:hover {
    transform: translateY(-2px);
}


/* =========================================================
   10. HOMEPAGE HERO
   ========================================================= */

.hero {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 88px);
    overflow: hidden;
}

.hero-text-content {
    display: flex;
    flex: 0 0 55%;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 5% 6%;
}

.hero-headline {
    margin-bottom: 1.5rem;
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 1.06;
}

.hero-headline .accent-text {
    color: var(--color-accent);
}

.hero-text-content p,
.hero-text-content a {
    max-width: 100%;
}

.hero-text-content a {
    overflow-wrap: anywhere;
    word-break: normal;
}

.hero-image-content {
    position: relative;
    flex: 0 0 45%;
    min-width: 0;
    background: var(--color-bg-soft);
}

.hero-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   11. STANDARD INNER PAGE HERO
   ========================================================= */

.page-hero {
    width: 100%;
    max-width: 100%;
    padding: 5rem 6% 4rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.page-hero-inner {
    max-width: 850px;
}

.page-hero h1 {
    margin-bottom: 1.4rem;
}


/* =========================================================
   12. STANDARD PAGE CONTENT
   ========================================================= */

.page-content {
    width: min(88%, var(--width-content));
    margin-inline: auto;
    padding: 4rem 0 6rem;
}

.page-content h1 {
    margin-bottom: 1.5rem;
}

.page-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--color-border);
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.page-content p {
    margin-bottom: 1.35rem;
}

.page-content p.is-style-lead,
.page-content > p:first-of-type {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text);
}

.page-content ul {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.page-content ul li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    color: var(--color-text-soft);
}

.page-content ul li::before {
    content: "•";
    position: absolute;
    top: -2px;
    left: 0;
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 700;
}

/* =========================================================
   13. QUOTES / CALLOUTS
   ========================================================= */

.page-content .wp-block-quote,
.page-content .is-style-alert-box,
.mhai-callout {
    margin: 2.5rem 0;
    padding: 1.6rem 1.8rem;
    background: #FFF8E6;
    border: 1px solid var(--color-accent);
    border-left: 4px solid var(--color-accent);
}

.mhai-statement {
    margin: 3rem 0;
    padding: 2.5rem;
    background: var(--color-accent);
}

.mhai-statement p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   14. COLUMNS
   ========================================================= */

.page-content .wp-block-columns {
    margin: 2.5rem 0;
}

/* =========================================================
   15. SPLIT PAGE LAYOUT
   ========================================================= */

.page-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 4rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    padding: 4rem 6%;
}


/* =========================================================
   16. STEP CARDS
   ========================================================= */

.step-card {
    position: relative;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.025);
}

.step-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.step-number-badge {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--color-accent);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
}

.step-card h3 {
    margin: 0;
}

.step-card ul {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.step-card li {
    padding: 0.5rem 0;
    color: var(--color-text-soft);
    border-bottom: 1px dashed var(--color-border);
}

.step-card li:last-child {
    border-bottom: 0;
}
/* Step card alignment */

.step-card {
    height: 100%;
}

.step-card .uppercase-accent {
    margin-bottom: 1.25rem;
}

.step-card h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}


/* =========================================================
   17. SIDEBAR
   ========================================================= */

.sticky-sidebar {
    position: sticky;
    top: 7rem;
}

.sidebar-image-box {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
}

.sidebar-cta-card {
    padding: 2.5rem;
    background: var(--color-dark);
    color: var(--color-text-inverse);
}

.sidebar-cta-card h3 {
    margin-bottom: 1rem;
    color: var(--color-text-inverse);
}

.sidebar-cta-card p {
    margin-bottom: 2rem;
    color: #E4DFD7;
}


/* =========================================================
   18. GENERIC FEATURE GRID
   ========================================================= */

.mhai-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.mhai-feature-card {
    min-width: 0;
    padding: 2.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}


/* =========================================================
   19. A NEW APPROACH
   ========================================================= */

.mhai-new-approach {
    width: min(88%, 1200px);
    max-width: 100%;
    margin-inline: auto;
    padding-bottom: 6rem;
}


/* Hero */

.mhai-new-approach .mhai-approach-hero {
    max-width: 1200px;
    padding: 7rem 0 6rem;
}

.mhai-new-approach .mhai-approach-hero h1 {
    max-width: 900px;
    margin-bottom: 2rem;
    font-size: clamp(3.4rem, 7vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.mhai-new-approach .mhai-approach-hero .mhai-intro {
    max-width: 760px;
    margin-bottom: 1.25rem;
    font-size: clamp(1.3rem, 2.3vw, 1.8rem);
    line-height: 1.45;
}

.mhai-new-approach .mhai-approach-hero p:last-child {
    margin-top: 2rem;
    font-size: 1.35rem;
    font-weight: 700;
}


/* Core statement */

.mhai-new-approach .mhai-approach-statement {
    max-width: 950px;
    margin-bottom: 7rem;
    padding: 3.8rem 4rem;
    background: var(--color-accent);
}

.mhai-new-approach .mhai-approach-statement h2 {
    max-width: 780px;
    margin-bottom: 1.8rem;
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 1.03;
}

.mhai-new-approach .mhai-approach-statement p {
    max-width: 760px;
    margin-bottom: 1.1rem;
    font-size: 1.2rem;
    line-height: 1.55;
}

.mhai-new-approach .mhai-approach-statement p:last-child {
    margin-bottom: 0;
    font-weight: 700;
}


/* Four cards */

.mhai-approach-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.6rem;
    margin-bottom: 8rem;
}

.mhai-new-approach .mhai-approach-card {
    display: flex;
    min-width: 0;
    min-height: 430px;
    flex-direction: column;
    padding: 3rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.mhai-new-approach .mhai-approach-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.mhai-new-approach .mhai-card-number {
    margin-bottom: 2.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.mhai-new-approach .mhai-approach-card h2 {
    max-width: 500px;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.mhai-new-approach .mhai-approach-card p {
    margin-bottom: 1rem;
    font-size: 1.08rem;
    line-height: 1.55;
}

.mhai-new-approach .mhai-approach-card a {
    margin-top: auto;
    padding-top: 2rem;
    font-weight: 700;
}

.mhai-new-approach .mhai-approach-card a:hover {
    text-decoration: underline;
}


/* Model */

.mhai-new-approach .mhai-approach-model {
    max-width: 1000px;
    margin: 0 auto 8rem;
    text-align: center;
}

.mhai-new-approach .mhai-approach-model h2 {
    max-width: 900px;
    margin: 0 auto 2rem;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 1;
}

.mhai-new-approach .mhai-approach-model > p:not(.mhai-eyebrow) {
    max-width: 760px;
    margin: 0 auto 1.2rem;
    font-size: 1.15rem;
}


/* Process */

.mhai-new-approach .mhai-process {
    margin: 3.5rem 0;
    padding: 2.2rem;
    background: var(--color-dark);
    color: var(--color-text-inverse);
}

.mhai-new-approach .mhai-process p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
}

.mhai-new-approach .mhai-process strong {
    color: var(--color-text-inverse);
}

.mhai-new-approach .mhai-process span {
    font-size: 1.5rem;
    opacity: 0.5;
}

.mhai-new-approach .mhai-approach-model h3 {
    margin-top: 3rem;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
}


/* CTA */

.mhai-new-approach .mhai-approach-cta {
    padding: 5rem 4rem;
    background: var(--color-accent);
    text-align: center;
}

.mhai-new-approach .mhai-approach-cta h2 {
    max-width: 900px;
    margin: 0 auto 1.8rem;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1;
}

.mhai-new-approach .mhai-approach-cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
}

.mhai-new-approach .mhai-approach-cta .mhai-button {
    background: var(--color-dark);
    color: var(--color-text-inverse);
}


/* =========================================================
   20. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .page-split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sticky-sidebar {
        position: static;
    }

    .mhai-feature-grid {
        grid-template-columns: 1fr;
    }


    .mhai-new-approach .mhai-approach-card {
        min-height: 0;
    }

}


/* =========================================================
   21. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* Header */

    .mhai-nav-container {
        width: 90%;
        max-width: 90%;
        min-height: 76px;
    }

    .mhai-brand-logo {
        max-width: calc(100% - 55px);
    }

    .mhai-brand-logo > a {
        max-width: 100%;
        font-size: 1.75rem;
    }

    .mhai-brand-logo .logo-accent {
        max-width: 100%;
        font-size: 0.65rem;
    }


    /* Hamburger */

    .mhai-hamburger {
        display: flex;
    }


    /* Navigation */

    .mhai-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 1rem 6% 1.5rem;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-soft);
    }

    .mhai-nav-menu.is-active {
        display: block;
    }

    .mhai-menu-list {
        display: block;
        width: 100%;
    }

    .mhai-menu-list > li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .mhai-menu-list > li:last-child {
        border-bottom: 0;
    }

    .mhai-menu-list > li > a {
        width: 100%;
        min-height: 48px;
        padding: 0.8rem 0;
    }

    .mhai-menu-list .sub-menu {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0 0 0.75rem 1rem;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .mhai-menu-list .menu-item-has-children.open > .sub-menu,
    .mhai-menu-list .has-dropdown.open > .sub-menu {
        display: block;
    }

    .mhai-menu-list .sub-menu a {
        padding: 0.55rem 0;
        white-space: normal;
    }

    .mhai-header-cta {
        width: 100%;
        margin-top: 1rem;
    }

    .mhai-header-cta .btn {
        width: 100%;
    }


    /* Homepage */

    .hero {
        display: block;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        overflow: hidden;
    }

    .hero-text-content,
    .hero-image-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
    }

    .hero-text-content {
        display: flex;
        padding: 4rem 6%;
    }

    .hero-text-content > * {
        max-width: 100%;
    }

    .hero-text-content a {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hero-image-content {
        min-height: 380px;
    }


    /* Buttons */

    .hero-text-content .wp-block-buttons,
    .hero-text-content .wp-block-button {
        width: 100%;
        max-width: 100%;
    }

    .hero-text-content .wp-block-button__link {
        max-width: 100%;
    }


    /* Gutenberg columns */

    .page-content .wp-block-columns {
        display: block;
    }

    .page-content .wp-block-column {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }


    /* New Approach */

    .mhai-new-approach {
        width: 90%;
        max-width: 90%;
        padding-bottom: 4rem;
    }

    .mhai-new-approach .mhai-approach-hero {
        padding: 4rem 0;
    }

    .mhai-new-approach .mhai-approach-hero h1 {
        font-size: clamp(3rem, 13vw, 4.6rem);
    }

    .mhai-new-approach .mhai-approach-statement {
        margin-bottom: 5rem;
        padding: 2.5rem;
    }

    .mhai-new-approach .mhai-approach-grid {
        gap: 1.25rem;
        margin-bottom: 5rem;
    }

    .mhai-new-approach .mhai-approach-card {
        padding: 2.2rem;
    }

    .mhai-new-approach .mhai-process p {
        flex-direction: column;
    }

    .mhai-new-approach .mhai-process span {
        transform: rotate(90deg);
    }

    .mhai-new-approach .mhai-approach-model {
        margin-bottom: 5rem;
    }

    .mhai-new-approach .mhai-approach-cta {
        padding: 3.5rem 2rem;
    }
    .mhai-new-approach .mhai-approach-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   22. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .page-hero {
        padding: 3.5rem 5% 2.5rem;
    }

    .page-content {
        padding: 3rem 5% 4rem;
    }

    .hero-text-content {
        padding: 3.5rem 5%;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .step-card {
        padding: 1.5rem;
    }

    .sidebar-cta-card {
        padding: 2rem;
    }

    .mhai-new-approach .mhai-approach-statement {
        padding: 2rem;
    }

    .mhai-new-approach .mhai-approach-card {
        padding: 1.8rem;
    }

    .mhai-new-approach .mhai-approach-cta {
        padding: 3rem 1.5rem;
    }

}


/* =========================================================
   23. WORDPRESS SAFETY / OVERFLOW
   ========================================================= */

main,
.site-main,
#site-content,
.wp-site-blocks,
.wp-block-group,
.wp-block-cover,
.wp-block-media-text,
.wp-block-columns,
.wp-block-column,
.wp-block-buttons,
.wp-block-button {
    max-width: 100%;
}

.wp-block-media-text,
.wp-block-columns,
.wp-block-group {
    min-width: 0;
}


/* =========================================================
   24. FOOTER
   ========================================================= */

.mhai-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
}

.mhai-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.mhai-footer p {
    margin: 0.2rem 0;
}

.mhai-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.mhai-footer-links a {
    text-decoration: none;
    color: inherit;
}

.mhai-footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .mhai-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mhai-footer-links {
        gap: 1rem;
    }
}
/* MHAI single posts: wider article and full-width text */
main.mhai-single .mhai-insights__inner {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

main.mhai-single .mhai-single__article {
    width: 100%;
    max-width: 100%;
}

main.mhai-single .mhai-single__content,
main.mhai-single .mhai-single__footer {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
}

/* Stop aligned images squeezing the article text */
main.mhai-single .mhai-single__content .alignright,
main.mhai-single .mhai-single__content .alignleft {
    float: none !important;
    display: block;
    margin: 28px auto !important;
    max-width: 100%;
}

main.mhai-single .mhai-single__content > p,
main.mhai-single .mhai-single__content > h2,
main.mhai-single .mhai-single__content > h3 {
    max-width: none;
}

/* Keep the template's featured image above the article */
main.mhai-single .mhai-single__figure {
    float: none !important;
    width: 100%;
    max-width: 960px;
    margin: 32px auto;
}

