/* Shared component styles (moved from the PHP files named below so browsers can cache them). */

/* ==== Inner page banner and layout (pages/inner-template.php) ==== */
    .nh-inner-hero {
        position: relative;
        min-height: clamp(260px, 24vw, 340px);
        display: flex;
        align-items: center;
        overflow: hidden;
        border-radius: 0 0 20px 20px;
        /* Clean, image-free banner: light surface, the content does the work. */
        background: #f2f4f3;
    }

    .nh-inner-content {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 75%;
        min-width: 0;
        margin-right: auto;
        padding: 22px 0 64px;
        text-align: left;
    }

    .nh-inner-content h1,
    .nh-inner-content .nh-inner-title {
        margin: 0;
        color: #15122b;
        font-family: 'Manrope', sans-serif;
        font-weight: 800;
        /* Shared scale - see --hero-title-size in includes/header.php. */
        font-size: var(--hero-title-size);
        line-height: 1.1;
        overflow-wrap: break-word;
    }

    .nh-inner-content p {
        margin: 18px 0 0;
        color: #4f5e8c;
        font-size: var(--hero-lead-size);
        line-height: 1.5;
        overflow-wrap: break-word;
    }

    /*
     * Detail hero = the article header: eyebrow, the page's only level-one
     * heading, meta, over the article's own picture. Blog and program detail
     * share this structure exactly.
     */
    .nh-inner-content h1.nh-detail-title {
        margin: 14px 0 0;
        /* Same size as every other hero; only the measure is capped, because
           article titles are sentences rather than one-word labels. */
        max-width: 22ch;
    }

    .nh-inner-content .nh-inner-eyebrow {
        margin: 0;
        font-family: 'Manrope', sans-serif;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .nh-inner-content .nh-inner-eyebrow a {
        color: var(--accent-color, #48317f);
        text-decoration: none;
    }

    .nh-inner-content .nh-inner-eyebrow a:hover,
    .nh-inner-content .nh-inner-eyebrow a:focus-visible {
        text-decoration: underline;
    }

    /* The hero summary: readable measure, never a wall of text. */
    .nh-inner-content p.nh-inner-lead {
        max-width: 56ch;
        margin-top: 16px;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .nh-inner-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 14px;
        margin-top: 16px;
    }

    .nh-inner-metaitem {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #008f6b; /* same green as the breadcrumb "Home" link */
        font-size: 0.9rem;
        font-weight: 600;
    }

    .nh-inner-metaitem i {
        color: inherit;
    }

    .nh-inner-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 26px;
    }

    .nh-inner-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 12px 22px;
        border-radius: var(--radius-md, 16px);
        text-decoration: none;
        font-weight: 900;
    }

    .nh-inner-actions a:first-child {
        background: #00c896;
        color: #ffffff;
    }

    .nh-inner-actions a:last-child {
        background: #ffffff;
        border: 1px solid #d9eceb;
        color: #15122b;
    }

    /*
     * Breadcrumb trail, inside the banner above the title. Always one line:
     * ancestors stay intact and the current page's title truncates.
     */
    .nh-breadcrumb-bar {
        position: relative;
        z-index: 1;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        max-width: 100%;
        padding-top: clamp(28px, 4vw, 44px);
        color: #15122b;
        font-size: 0.95rem;
        line-height: 1.4;
        overflow: hidden;
    }

    .nh-breadcrumb-bar .crumb {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        /* Ancestor crumbs are short - never let them be the thing that shrinks. */
        flex: 0 0 auto;
        white-space: nowrap;
        color: #008f6b;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s ease;
    }

    /* The page's own title is the only crumb allowed to give way. */
    .nh-breadcrumb-bar .crumb.is-current {
        flex: 0 1 auto;
        min-width: 0;
        color: #15122b;
        font-weight: 700;
    }

    .nh-breadcrumb-bar .crumb.is-current .crumb-label {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .nh-breadcrumb-bar a.crumb:hover,
    .nh-breadcrumb-bar a.crumb:focus-visible {
        color: #48317f;
    }

    .nh-breadcrumb-bar a.crumb:hover .crumb-label {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .nh-breadcrumb-bar .crumb-sep {
        flex: 0 0 auto;
        color: #8a8fa0;
        font-size: 1.15em;
        line-height: 1;
    }

    .nh-inner-body {
        padding: 72px 0 90px;
        background: #f9f9f9;
        border-radius: 20px 20px 0 0;
    }

    @media (max-width: 767.98px) {
        .nh-inner-hero {
            min-height: 0;
        }

        .nh-inner-content {
            margin: 0;
            max-width: 100%;
            padding: 18px 0 48px;
        }

        /* No font-size override here: --hero-title-size already floors at
           2.1rem, and a second scale is exactly what made hero sizing
           inconsistent between pages. Only the measure narrows. */
        .nh-inner-content h1,
        .nh-inner-content .nh-inner-title {
            max-width: 350px;
        }

        .nh-inner-content p {
            max-width: 350px;
        }

        .nh-inner-body {
            padding-top: 56px;
        }
    }

/* ==== Footer (includes/footer.php) ==== */
    /* ---- Footer: light canvas, floating admissions card, white card ---- */
    .nh-site-footer {
        position: relative;
        overflow: hidden;
        padding: clamp(150px, 15vw, 230px) 0 clamp(40px, 5vw, 64px);
        background: #fff;
        color: #4a4560;
    }

    /* Full-width photo band behind the top half of the admissions card */
    .nh-footer-photo {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 0;
        height: clamp(280px, 26vw, 400px);
        background-position: center 36%;
        background-size: cover;
        background-repeat: no-repeat;
        /* Mute the photo's own colours so the brand tint reads evenly. */
        filter: saturate(0.55);
        pointer-events: none;
    }

    /* Flat brand-purple wash over the photo (solid colour, no gradient). */
    .nh-footer-photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(72, 49, 127, 0.55);
    }

    .nh-footer-shell { position: relative; z-index: 1; }

    /* ---- Floating admissions card -------------------------------- */
    .nh-footer-cta {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: center;
        gap: clamp(24px, 4vw, 56px);
        width: min(100%, 1000px);
        margin: 0 auto -150px;
        padding: clamp(28px, 4vw, 52px) clamp(24px, 4.5vw, 64px);
        background: #48317f;
        border-radius: 22px;
        box-shadow: 0 30px 60px rgba(58, 39, 104, 0.28);
        color: #fff;
    }

    .nh-footer-cta-art {
        position: relative;
        display: grid;
        place-items: center;
        min-height: 200px;
    }
    .nh-footer-cta-ring {
        position: absolute;
        width: 236px;
        height: 236px;
        border-radius: 50%;
        border: 1.5px dashed rgba(255, 255, 255, 0.28);
        animation: nh-footer-spin 40s linear infinite;
    }
    .nh-footer-cta-mark {
        position: relative;
        display: grid;
        place-items: center;
        width: 156px;
        height: 156px;
        overflow: hidden;
        border-radius: 50%;
        border: 5px solid #fff;
        background: #fff;
        box-shadow: 0 18px 40px rgba(21, 18, 43, 0.25);
    }
    /* Admissions team photo filling the circle, framed on the face. */
    .nh-footer-cta-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
    .nh-footer-cta-chip {
        position: absolute;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 12px;
        border-radius: 999px;
        background: #fff;
        color: #15122b;
        font-size: 0.78rem;
        font-weight: 700;
        box-shadow: 0 10px 22px rgba(21, 18, 43, 0.18);
    }
    .nh-footer-cta-chip i { color: #00c896; }
    .nh-footer-cta-chip--a { top: 14px; left: 8%; }
    .nh-footer-cta-chip--b { bottom: 18px; right: 10%; }

    .nh-footer-cta-copy h2 {
        margin: 0 0 22px;
        color: #fff;
        font-family: 'Manrope', sans-serif;
        font-size: clamp(1.4rem, 2.3vw, 1.95rem);
        font-weight: 700;
        line-height: 1.3;
    }
    .nh-footer-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
    .nh-footer-cta-call {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 0.8rem 1.4rem;
        border: 1.5px solid rgba(255, 255, 255, 0.45);
        border-radius: 8px;
        color: #fff;
        font-weight: 700;
        text-decoration: none;
        transition: background-color 0.2s, border-color 0.2s;
    }
    .nh-footer-cta-call:hover,
    .nh-footer-cta-call:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
    .nh-footer-cta-copy p { margin: 18px 0 0; max-width: 42ch; color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }

    @keyframes nh-footer-spin { to { transform: rotate(360deg); } }

    /* ---- White footer card --------------------------------------- */
    .nh-footer-card {
        position: relative;
        z-index: 1;
        /* Not boxed: the columns sit straight on the grey footer, clear of the floating card. */
        padding: calc(150px + clamp(36px, 4vw, 56px)) 0 0;
    }

    .nh-footer-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
        gap: clamp(28px, 4vw, 56px);
        padding-bottom: clamp(32px, 4vw, 48px);
    }

    .nh-footer-logo-link { display: inline-block; }
    .nh-footer-logo {
        display: block;
        width: auto;
        max-width: 100%;
        height: 56px;
        object-fit: contain;
        object-position: left center;
    }
    .nh-footer-about { max-width: 380px; margin: 18px 0 22px; color: #5d5873; font-size: 0.93rem; line-height: 1.7; }

    .nh-footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
    .nh-footer-social a {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #f2f3f5;
        color: #48317f;
        text-decoration: none;
        transition: background-color 0.2s, color 0.2s, transform 0.2s;
    }
    .nh-footer-social a:hover,
    .nh-footer-social a:focus-visible { background: #00c896; color: #fff; transform: translateY(-2px); }

    .nh-footer-heading {
        margin: 0 0 18px;
        color: #15122b;
        font-family: 'Manrope', sans-serif;
        font-size: 1rem;
        font-weight: 800;
    }

    .nh-footer-links,
    .nh-footer-contact { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
    .nh-footer-links a,
    .nh-footer-contact a { color: #4a4560; text-decoration: none; transition: color 0.2s; }
    .nh-footer-links a:hover,
    .nh-footer-links a:focus-visible,
    .nh-footer-contact a:hover,
    .nh-footer-contact a:focus-visible { color: #008f6b; }

    .nh-footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.93rem; line-height: 1.5; }
    .nh-footer-contact li i { flex: 0 0 auto; color: #00c896; font-size: 1.15rem; line-height: 1.3; }
    .nh-footer-contact li span { display: grid; gap: 4px; min-width: 0; }
    /* Long email addresses wrap instead of running past the card edge. */
    .nh-footer-contact a { overflow-wrap: anywhere; }
    .nh-footer-col { min-width: 0; }

    .nh-footer-bottom {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px 24px;
        padding: 22px 0 0;
        border-top: 1px solid #dfe1e6;
        font-size: 0.88rem;
    }
    .nh-footer-bottom p { margin: 0; color: #6f6a85; }
    .nh-footer-bottom a { color: #4a4560; text-decoration: none; }
    .nh-footer-bottom a:hover,
    .nh-footer-bottom a:focus-visible { color: #008f6b; }
    .nh-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }

    @media (max-width: 991.98px) {
        .nh-footer-cta { grid-template-columns: 1fr; text-align: center; margin-bottom: -120px; }
        .nh-footer-cta-art { min-height: 170px; }
        .nh-footer-cta-ring { width: 170px; height: 170px; }
        .nh-footer-cta-mark { width: 128px; height: 128px; }
        .nh-footer-cta-actions { justify-content: center; }
        .nh-footer-cta-copy p { margin-inline: auto; }
        .nh-footer-card { padding-top: calc(120px + 40px); }
        .nh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .nh-footer-col-brand { grid-column: 1 / -1; }
    }
    @media (max-width: 575.98px) {
        .nh-footer-grid { grid-template-columns: 1fr; }
        .nh-footer-cta-chip { display: none; }
        .nh-footer-bottom { flex-direction: column; align-items: flex-start; }
    }
    @media (prefers-reduced-motion: reduce) {
        .nh-footer-cta-ring { animation: none; }
    }

/* ==== Support widget (bot.php) ==== */
    #nh-support {
        --nh-support-brand: var(--primary-color, #00c896);
        --nh-support-ink: #15122b;
        --nh-support-line: #e4ecf7;
        position: fixed;
        right: 22px;
        bottom: 22px;
        z-index: 10040;
        font-family: 'Inter', sans-serif;
    }

    /* Launcher */
    .nh-support-launcher {
        position: relative;
        display: grid;
        place-items: center;
        width: 60px;
        height: 60px;
        margin-left: auto;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--nh-support-brand);
        color: #ffffff;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: 0 14px 30px rgba(21, 18, 43, 0.28);
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .nh-support-launcher:hover { transform: translateY(-2px); }
    .nh-support-launcher:focus-visible { outline: 3px solid rgba(0, 200, 150, 0.45); outline-offset: 3px; }
    .nh-support-launcher-close { display: none; }
    #nh-support.is-open .nh-support-launcher-open { display: none; }
    #nh-support.is-open .nh-support-launcher-close { display: block; }
    #nh-support.is-open .nh-support-launcher { background: var(--nh-support-ink); }

    .nh-support-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        min-width: 20px;
        height: 20px;
        display: grid;
        place-items: center;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--accent-color, #eb4863);
        color: #ffffff;
        font-size: 0.68rem;
        font-weight: 800;
        line-height: 1;
    }
    #nh-support.is-open .nh-support-badge,
    #nh-support.is-seen .nh-support-badge { display: none; }

    /* Teaser */
    .nh-support-teaser {
        position: relative;
        width: min(268px, calc(100vw - 44px));
        margin: 0 0 12px auto;
        padding: 14px 30px 14px 16px;
        background: #ffffff;
        border: 1px solid var(--nh-support-line);
        border-radius: 4px;
        box-shadow: 0 16px 34px rgba(21, 18, 43, 0.14);
    }

    .nh-support-teaser p {
        margin: 0;
        color: var(--nh-support-ink);
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .nh-support-teaser-close {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #8fa0c4;
        font-size: 0.95rem;
        cursor: pointer;
    }
    .nh-support-teaser-close:hover { background: #f2f6fd; color: var(--nh-support-ink); }

    /* Panel */
    .nh-support-panel {
        width: min(348px, calc(100vw - 32px));
        margin: 0 0 14px auto;
        overflow: hidden;
        background: #f4f7fc;
        border: 1px solid var(--nh-support-line);
        border-radius: 4px;
        box-shadow: 0 26px 60px rgba(21, 18, 43, 0.24);
    }

    .nh-support-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: var(--nh-support-brand);
        color: #ffffff;
    }

    .nh-support-avatar {
        display: grid;
        place-items: center;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        font-size: 1.15rem;
    }

    .nh-support-ident { flex: 1; min-width: 0; }
    .nh-support-name { margin: 0; font-weight: 800; font-size: 0.98rem; line-height: 1.2; }
    .nh-support-status {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 3px 0 0;
        font-size: 0.74rem;
        color: rgba(255, 255, 255, 0.85);
    }
    .nh-support-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #5ff0a5;
        box-shadow: 0 0 0 3px rgba(95, 240, 165, 0.25);
    }

    .nh-support-close {
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        font-size: 0.8rem;
        cursor: pointer;
    }
    .nh-support-close:hover { background: rgba(255, 255, 255, 0.3); }

    .nh-support-body { display: grid; gap: 10px; padding: 14px; }

    .nh-support-greeting {
        padding: 14px;
        background: #ffffff;
        border: 1px solid var(--nh-support-line);
        border-radius: 3px;
        color: var(--nh-support-ink);
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .nh-support-action {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 14px;
        background: #ffffff;
        border: 1px solid var(--nh-support-line);
        border-radius: 3px;
        text-decoration: none;
        transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
    .nh-support-action:hover,
    .nh-support-action:focus-visible {
        border-color: var(--nh-support-brand);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(21, 18, 43, 0.10);
        outline: none;
    }

    .nh-support-icon {
        display: grid;
        place-items: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border-radius: 3px;
        font-size: 1.05rem;
    }
    .nh-support-icon-whatsapp { background: #e7f8ee; color: #1faa5a; }
    .nh-support-icon-call     { background: #e8f1fd; color: #2478c4; }
    .nh-support-icon-book     { background: #e9f7f7; color: #00a87e; }

    .nh-support-copy { flex: 1; min-width: 0; }
    .nh-support-action-title {
        display: block;
        color: var(--nh-support-ink);
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.25;
    }
    .nh-support-action-note {
        display: block;
        margin-top: 2px;
        color: #7180ad;
        font-size: 0.75rem;
    }
    .nh-support-arrow { color: #b8c4de; font-size: 0.85rem; }
    .nh-support-action:hover .nh-support-arrow { color: var(--nh-support-brand); }

    .nh-support-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0;
        padding: 12px;
        background: #ffffff;
        border-top: 1px solid var(--nh-support-line);
        color: #7180ad;
        font-size: 0.75rem;
        font-weight: 600;
    }

    @media (max-width: 575.98px) {
        /* Clear the sticky app nav. */
        #nh-support { right: 14px; bottom: calc(var(--nh-appnav-height, 64px) + 14px); }
        .nh-support-launcher { width: 54px; height: 54px; font-size: 1.35rem; }
    }

    @media (prefers-reduced-motion: reduce) {
        .nh-support-launcher,
        .nh-support-action { transition: none; }
    }

/* ==== Mobile bottom navigation (includes/mobile-nav.php) ==== */
    .nh-appnav { display: none; }

    @media (max-width: 991.98px) {
        :root { --nh-appnav-height: 64px; }

        .nh-appnav {
            position: fixed;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 1045;
            display: flex;
            align-items: center;
            justify-content: space-around;
            height: calc(var(--nh-appnav-height) + env(safe-area-inset-bottom, 0px));
            padding-bottom: env(safe-area-inset-bottom, 0px);
            background: rgba(255, 255, 255, 0.97);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--line-soft, #d9eceb);
            box-shadow: 0 -8px 26px rgba(21, 18, 43, 0.08);
        }

        .nh-appnav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            min-width: 0;
            padding: 6px 2px;
            color: var(--muted-blue, #7180ad);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .nh-appnav-icon { font-size: 1.15rem; line-height: 1; }

        .nh-appnav-label {
            font-size: 0.66rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            white-space: nowrap;
        }

        .nh-appnav-item:hover,
        .nh-appnav-item:focus-visible,
        .nh-appnav-item.is-current { color: var(--primary-color, #00c896); }

        /* Admissions: the one action worth lifting out of the row. */
        .nh-appnav-item.is-primary { color: var(--text-main, #15122b); }

        .nh-appnav-item.is-primary .nh-appnav-icon {
            display: grid;
            place-items: center;
            width: 44px;
            height: 44px;
            margin-top: -22px;
            border: 3px solid #ffffff;
            border-radius: 50%;
            background: #00c896;
            color: #ffffff;
            font-size: 1.25rem;
            box-shadow: 0 8px 18px rgba(21, 18, 43, 0.22);
        }

        .nh-appnav-item.is-primary .nh-appnav-label { color: var(--text-main, #15122b); }

        /* Nothing may sit under the bar. */
        body { padding-bottom: calc(var(--nh-appnav-height) + env(safe-area-inset-bottom, 0px)); }
        .scroll-to-top { bottom: calc(var(--nh-appnav-height) + 78px) !important; }
    }

    @media (prefers-reduced-motion: reduce) {
        .nh-appnav-item { transition: none; }
    }

/* ==== Cookie consent (includes/cookie-consent.php) ==== */
    .cookie-consent {
        --cookie-green: #00c896;
        --cookie-green-dark: #00a87e;
        --cookie-lime: #48317f;
        --cookie-ink: #23332e;
        --cookie-muted: #64736e;
        --cookie-line: #dce7e3;
        position: relative;
        z-index: 12000;
        text-transform: none;
    }
    .cookie-banner {
        position: fixed;
        left: 50%;
        bottom: 18px;
        width: min(1180px, calc(100vw - 32px));
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 20px 22px;
        border: 1px solid rgba(0, 200, 150, 0.15);
        border-radius: var(--radius-section, 28px);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 60px rgba(20, 50, 41, 0.2);
        backdrop-filter: blur(12px);
    }
    .cookie-banner-copy {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        max-width: 720px;
    }
    .cookie-shield {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: grid;
        place-items: center;
        border-radius: var(--radius-control, 14px);
        color: #fff;
        background: var(--cookie-green);
        font-size: 1.2rem;
    }
    .cookie-banner h2,
    .cookie-preferences h2 {
        margin: 0;
        color: var(--cookie-green);
        font-family: 'Manrope', sans-serif;
        font-size: 1.12rem;
        line-height: 1.25;
    }
    .cookie-banner p {
        margin: 5px 0 0;
        color: var(--cookie-muted);
        font-size: 0.86rem;
        line-height: 1.55;
    }
    .cookie-banner a {
        color: var(--cookie-green);
        font-weight: 700;
    }
    .cookie-actions,
    .cookie-modal-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 9px;
        flex-wrap: wrap;
    }
    .cookie-btn {
        min-height: 42px;
        padding: 9px 17px;
        border-radius: 999px;
        border: 1px solid transparent;
        font-size: 0.82rem;
        font-weight: 800;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .cookie-btn:hover,
    .cookie-btn:focus-visible {
        transform: translateY(-1px);
        outline: 3px solid rgba(72, 49, 127, 0.28);
        outline-offset: 2px;
    }
    .cookie-btn-primary {
        color: #fff;
        background: var(--cookie-green);
    }
    .cookie-btn-primary:hover {
        background: var(--cookie-green-dark);
    }
    .cookie-btn-muted {
        color: var(--cookie-green);
        background: #edf5f2;
    }
    .cookie-btn-outline {
        color: var(--cookie-green);
        border-color: rgba(0, 200, 150, 0.28);
        background: #fff;
    }
    .cookie-modal-backdrop {
        position: fixed;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 20px;
        background: rgba(10, 31, 25, 0.58);
        backdrop-filter: blur(5px);
    }
    .cookie-preferences {
        width: min(620px, 100%);
        max-height: min(760px, calc(100vh - 40px));
        overflow-y: auto;
        padding: 28px;
        border-radius: var(--radius-section, 28px);
        background: #fff;
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    }
    .cookie-preferences-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
    }
    .cookie-kicker {
        display: block;
        margin-bottom: 5px;
        color: var(--cookie-lime);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
    .cookie-close {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 999px;
        color: var(--cookie-green);
        background: #edf5f2;
        cursor: pointer;
    }
    .cookie-intro {
        margin: 15px 0 20px;
        color: var(--cookie-muted);
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .cookie-category {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
        margin-bottom: 12px;
        padding: 17px;
        border: 1px solid var(--cookie-line);
        border-radius: var(--radius-card, 18px);
        background: #fbfdfc;
    }
    .cookie-category strong {
        display: block;
        margin-bottom: 3px;
        color: var(--cookie-ink);
    }
    .cookie-category p {
        margin: 0;
        color: var(--cookie-muted);
        font-size: 0.8rem;
        line-height: 1.45;
    }
    .cookie-required {
        flex: 0 0 auto;
        color: var(--cookie-green);
        font-size: 0.72rem;
        font-weight: 800;
    }
    .cookie-switch {
        position: relative;
        flex: 0 0 46px;
        width: 46px;
        height: 26px;
    }
    .cookie-switch input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    .cookie-switch span {
        position: absolute;
        inset: 0;
        border-radius: 999px;
        background: #cbd7d3;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    .cookie-switch span::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
        transition: transform 0.2s ease;
    }
    .cookie-switch input:checked + span {
        background: var(--cookie-green);
    }
    .cookie-switch input:checked + span::after {
        transform: translateX(20px);
    }
    .cookie-switch input:focus-visible + span {
        outline: 3px solid rgba(72, 49, 127, 0.35);
        outline-offset: 3px;
    }
    .cookie-modal-actions {
        margin-top: 20px;
    }
    body.cookie-modal-open {
        overflow: hidden;
    }
    @media (max-width: 767.98px) {
        .cookie-banner {
            align-items: stretch;
            flex-direction: column;
            gap: 12px;
            bottom: 10px;
            width: min(320px, calc(100vw - 24px));
            max-height: min(58vh, 430px);
            overflow-y: auto;
            padding: 14px;
        }
        .cookie-banner-copy {
            gap: 12px;
        }
        .cookie-shield {
            width: 38px;
            height: 38px;
            flex-basis: 38px;
            border-radius: var(--radius-control, 14px);
        }
        .cookie-banner h2 {
            font-size: 1rem;
        }
        .cookie-banner p {
            font-size: 0.8rem;
            line-height: 1.45;
        }
        .cookie-actions {
            display: grid;
            grid-template-columns: 1fr;
        }
        .cookie-btn {
            min-height: 40px;
            padding: 8px 12px;
        }
        .cookie-actions .cookie-btn-primary {
            grid-column: 1 / -1;
        }
        .cookie-preferences {
            padding: 22px 18px;
        }
        .cookie-category {
            align-items: flex-start;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        .cookie-btn,
        .cookie-switch span,
        .cookie-switch span::after {
            transition: none;
        }
    }

/* ==== "Not ready to call?" popup (pages/sections/pop-up.php) ==== */
.nh-concerns-trigger {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 10030;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid #48317f;
    border-radius: 999px;
    background: #fff;
    color: #48317f;
    font-family: 'Manrope', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(21, 18, 43, .16);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.nh-concerns-trigger:hover,
.nh-concerns-trigger:focus-visible { background: #48317f; color: #fff; }

.nh-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(21, 18, 43, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .3s ease;
}
.nh-popup-overlay.is-visible { opacity: 1; }

.nh-popup-card {
    display: flex;
    flex-direction: column;
    width: min(600px, 100%);
    max-height: calc(100vh - 36px);
    padding: clamp(22px, 3.4vw, 34px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 40px 90px rgba(21, 18, 43, .35);
    transform: translateY(14px);
    transition: transform .3s ease;
}
.nh-popup-overlay.is-visible .nh-popup-card { transform: none; }

.nh-popup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.nh-popup-head h3 {
    margin: 0;
    color: #15122b;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
}

.nh-popup-close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #dfe1e6;
    border-radius: 8px;
    background: #fff;
    color: #15122b;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.nh-popup-close:hover,
.nh-popup-close:focus-visible { background: #48317f; border-color: #48317f; color: #fff; outline: none; }

.nh-concerns-list { display: grid; gap: 10px; }

.nh-concern {
    border: 1px solid #dfe1e6;
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s;
}
.nh-concern[open] { border-color: #00c896; }

.nh-concern summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 12px 12px 16px;
    color: #15122b;
    font-size: .95rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.nh-concern summary::-webkit-details-marker { display: none; }
.nh-concern summary::after {
    content: "";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #48317f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform .2s, background-color .2s;
}
.nh-concern[open] summary::after { background-color: #00c896; transform: rotate(180deg); }
.nh-concern summary:focus-visible { outline: 2px solid #00c896; outline-offset: 2px; border-radius: 8px; }

.nh-concern p {
    margin: 0;
    padding: 0 16px 14px;
    color: #6f7378;
    font-size: .9rem;
    line-height: 1.65;
}

.nh-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.nh-popup-actions a { flex: 1 1 200px; }

@media (max-width: 991.98px) {
    .nh-concerns-trigger {
        left: 14px;
        bottom: calc(var(--nh-appnav-height, 64px) + 14px);
        padding: 9px 15px;
        font-size: .82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nh-popup-overlay,
    .nh-popup-card { transition: none; }
}

/* ==== Treatment menu: pillars with their programs (includes/header.php) ==== */
.mega-pillar { margin-bottom: 10px; }
.mega-pillar-link { font-weight: 700; }
.mega-pillar-programs { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 0 12px 0 34px; }
.mega-pillar-programs a { color: #6f7378; font-size: .82rem; line-height: 1.5; text-decoration: none; }
.mega-pillar-programs a:hover, .mega-pillar-programs a:focus-visible { color: #008f6b; text-decoration: underline; }
