/**
 * NMA Public Website — Mobile Polish
 * Loaded last; targets ≤768px and ≤480px
 * Patches all gaps found in the existing responsive CSS and adds beautiful
 * mobile-specific aesthetics across every public page.
 */

/* ============================================================
   1. GLOBAL TOKENS & TOUCH TARGETS
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --nma-mobile-px: 1rem;        /* consistent side padding */
        --nma-mobile-section: 2.75rem; /* section vertical rhythm */
        --nma-radius: 0.85rem;
        --nma-radius-sm: 0.65rem;
    }

    /* Every interactive element: minimum 44×44px tap target */
    .nma-btn,
    .nma-portal-tile__cta,
    .nma-nav__link,
    .nma-nav__cta,
    .nma-float-contact,
    .nma-float-wa,
    .nma-scroll-top {
        min-height: 44px;
    }
}

/* ============================================================
   2. NAV — right-side drawer polish
   NOTE: Do NOT apply backdrop-filter/filter/transform to .nma-nav —
   it breaks position:fixed children (the drawer), pinning them to
   the header instead of the viewport.
   ============================================================ */
@media (max-width: 768px) {
    /* Rich red top bar on mobile — matches the desktop nav's brand red
       gradient (nma-red-theme.css) instead of a plain flat fill.
       Specificity note: nma-red-theme.css sets that gradient via
       `body.nma-page-home .nma-nav` (0-2-0) specifically for the homepage;
       matching that with `body.nma-public-body` (present on every public
       page) keeps this override reliable everywhere, not just non-homepage
       pages. The drawer stays a light overlay — only the sticky bar carries
       the brand red. */
    body.nma-public-body .nma-nav {
        background-color: var(--nma-navy);
        background-image: linear-gradient(90deg, var(--nma-navy) 0%, var(--nma-navy-mid) 100%);
        border-bottom: 3px solid var(--nma-gold);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    body.nma-public-body .nma-nav.is-scrolled {
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.35);
    }
    .nma-nav__brand,
    .nma-nav__brand:hover {
        color: var(--nma-white);
    }
    .nma-nav__brand-text small {
        color: var(--nma-gold);
    }
    .nma-nav__toggle span {
        background: var(--nma-white);
    }

    /* Hamburger toggle — bigger hit area, subtle hover */
    .nma-nav__toggle {
        width: 44px;
        height: 44px;
        border-radius: 0.5rem;
        transition: background 0.2s;
    }

    .nma-nav__toggle:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    /* Gold accent line at drawer bottom edge for polish */
    .nma-nav__menu::after {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--nma-gold, #f5b316) 0%, transparent 100%);
        margin-top: auto;
    }

    /* ——— Light drawer — complements the now-light top bar instead of the
       previous dark navy/red gradient. Red/gold accents carry the brand
       palette through borders and hover states rather than a dark fill. ——— */
    .nma-nav__menu {
        background: linear-gradient(180deg, #ffffff 0%, #fdf7ee 100%);
        border-left: 2px solid var(--nma-red);
        box-shadow: -12px 0 48px rgba(15, 39, 68, 0.18);
    }
    .nma-nav__drawer-head {
        background: var(--nma-gray-50, #f8f9fb);
        border-bottom: 1px solid var(--nma-gray-200);
    }
    .nma-nav__drawer-brand span {
        color: var(--nma-navy);
    }
    .nma-nav__drawer-brand small {
        color: var(--nma-red);
    }
    .nma-nav__close {
        background: var(--nma-gray-100, #f1f3f6);
        border: 1px solid var(--nma-gray-200);
        color: var(--nma-navy);
    }
    .nma-nav__close:hover {
        background: var(--nma-red);
        border-color: var(--nma-red);
        color: #fff;
    }
    .nma-nav__link,
    .nma-nav__dropdown-toggle {
        color: var(--nma-navy);
    }
    .nma-nav__link:hover,
    .nma-nav__dropdown-toggle:hover,
    .nma-nav__link.is-active {
        background: rgba(169, 32, 32, 0.06);
        color: var(--nma-red);
    }
    .nma-nav__link.is-active {
        background: rgba(169, 32, 32, 0.08);
        color: var(--nma-red);
        border-left: 3px solid var(--nma-gold, #f5b316);
    }
    .nma-nav__dropdown-toggle svg {
        color: var(--nma-navy);
    }
    .nma-nav__dropdown.is-open .nma-nav__dropdown-toggle svg {
        color: var(--nma-red);
    }

    /* Dropdown items inside drawer — lighter border treatment */
    .nma-nav__dropdown-menu {
        border-radius: 0.55rem !important;
        margin-inline: 0.25rem !important;
        background: var(--nma-gray-50, #f8f9fb) !important;
    }
    .nma-nav-dropdown-item {
        color: var(--nma-navy) !important;
        background: #ffffff !important;
        border-left-color: var(--nma-gray-200) !important;
    }
    .nma-nav-dropdown-item__desc {
        color: var(--nma-text-muted) !important;
    }
    .nma-nav-dropdown-item--default:hover,
    .nma-nav-dropdown-item--default.is-active {
        background: rgba(169, 32, 32, 0.06) !important;
        border-left-color: var(--nma-red) !important;
        color: var(--nma-navy) !important;
    }
    .nma-nav-dropdown-item--parent:hover {
        background: rgba(214, 158, 46, 0.12) !important;
        border-left-color: var(--nma-gold) !important;
        color: var(--nma-navy) !important;
    }
    .nma-nav-dropdown-item--student:hover {
        background: rgba(169, 32, 32, 0.08) !important;
        border-left-color: var(--nma-red) !important;
        color: var(--nma-navy) !important;
    }
    .nma-nav-dropdown-item--staff {
        background: var(--nma-gray-100, #f1f3f6) !important;
        border-left-color: var(--nma-navy) !important;
    }
    .nma-nav-dropdown-item--staff:hover {
        background: rgba(15, 39, 68, 0.08) !important;
        color: var(--nma-navy) !important;
    }

    /* CTA button extra padding */
    .nma-nav__cta {
        padding: 0.88rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

/* ============================================================
   3. HOMEPAGE HERO — beautiful mobile treatment (non-home pages)
   ============================================================ */
@media (max-width: 768px) {
    body:not(.nma-page-home) .nma-hero {
        text-align: center;
        padding-bottom: 3.5rem !important;
    }

    body:not(.nma-page-home) .nma-hero h1 {
        font-size: clamp(1.9rem, 7.5vw, 2.6rem) !important;
        letter-spacing: -0.03em;
    }

    body:not(.nma-page-home) .nma-hero__tagline {
        margin-left: auto;
        margin-right: auto;
    }

    body:not(.nma-page-home) .nma-hero__lead {
        font-size: 1rem !important;
        margin-inline: auto;
        max-width: 90%;
    }

    body:not(.nma-page-home) .nma-hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
    }

    body:not(.nma-page-home) .nma-hero__actions .nma-btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    /* Showcase card & stats */
    body:not(.nma-page-home) .nma-hero__showcase {
        max-width: 320px;
        margin-inline: auto;
    }

    body:not(.nma-page-home) .nma-hero__card {
        padding: 1.25rem !important;
    }

    body:not(.nma-page-home) .nma-hero__card img,
    body:not(.nma-page-home) .nma-hero__crest {
        width: min(220px, 72vw) !important;
        height: auto !important;
    }

    body:not(.nma-page-home) .nma-hero__stats {
        gap: 0.5rem;
    }

    body:not(.nma-page-home) .nma-hero__stat {
        padding: 0.65rem 0.5rem !important;
        border-radius: 0.65rem !important;
    }

    body:not(.nma-page-home) .nma-hero__stat strong {
        font-size: 1.1rem !important;
    }

    /* Orbs and sparkles — reduce for mobile performance */
    .nma-orb { opacity: 0.5; }
    .nma-sparkle { display: none; }
    .nma-sparkle:nth-child(-n+3) { display: block; }
}

@media (max-width: 480px) {
    body:not(.nma-page-home) .nma-hero h1 { font-size: clamp(1.65rem, 8vw, 2rem) !important; }
    body:not(.nma-page-home) .nma-hero__lead { font-size: 0.95rem !important; }
    body:not(.nma-page-home) .nma-hero__actions .nma-btn { max-width: 100%; }
}

/* ============================================================
   4. PAGE HEROES (inner pages)
   ============================================================ */
@media (max-width: 768px) {
    .nma-page-hero,
    .nma-partner-hero,
    .nma-page-hero--admissions {
        padding: 2.5rem 0 2.25rem !important;
        text-align: center;
    }

    .nma-page-hero h1,
    .nma-partner-hero h1 {
        font-size: clamp(1.65rem, 7vw, 2.2rem) !important;
    }

    .nma-page-hero p,
    .nma-partner-hero__sub {
        max-width: 100% !important;
        font-size: 0.94rem !important;
    }
}

/* ============================================================
   5. ALUMNI HERO (.nma-ah) — premium mobile
   ============================================================ */
@media (max-width: 768px) {
    body.nma-page-alumni .nma-ah {
        min-height: auto !important;
        margin-top: 0 !important;
    }

    body.nma-page-alumni .nma-ah__bg {
        background-position: center 32% !important;
        transform: none !important;
        filter: saturate(1.05) brightness(0.6) contrast(1.08);
    }

    body.nma-page-alumni .nma-ah__glow {
        opacity: 0.55;
    }

    body.nma-page-alumni .nma-ah__overlay {
        background: linear-gradient(
            180deg,
            rgba(4, 8, 18, 0.9) 0%,
            rgba(8, 12, 26, 0.84) 42%,
            rgba(24, 10, 10, 0.8) 100%
        ) !important;
    }

    body.nma-page-alumni .nma-ah__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.15rem;
        padding: calc(var(--nma-nav-h, 72px) + 1.5rem) 0 2rem !important;
        min-height: auto !important;
    }

    body.nma-page-alumni .nma-ah__left {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    body.nma-page-alumni .nma-ah__breadcrumb {
        display: none;
    }

    body.nma-page-alumni .nma-ah__logo-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 0.85rem;
        line-height: 0;
        text-decoration: none;
    }

    body.nma-page-alumni .nma-ah__logo-mobile .nma-logo--feature {
        width: min(88px, 24vw);
        height: auto;
        filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
    }

    body.nma-page-alumni .nma-ah__badge {
        margin-inline: auto;
        margin-bottom: 0.7rem;
        padding: 0.36rem 0.85rem;
        border-radius: 999px;
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    body.nma-page-alumni .nma-ah__heading {
        font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
        line-height: 1.08;
        letter-spacing: -0.035em;
        text-wrap: balance;
        margin-bottom: 0.6rem;
    }

    body.nma-page-alumni .nma-ah__lead {
        font-size: 0.92rem !important;
        line-height: 1.62;
        max-width: 22rem !important;
        margin: 0 auto 1.1rem !important;
        text-wrap: pretty;
        color: rgba(255, 255, 255, 0.82);
    }

    body.nma-page-alumni .nma-ah__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        width: 100%;
        max-width: 20rem;
        margin-inline: auto;
    }

    body.nma-page-alumni .nma-ah__actions .nma-btn,
    body.nma-page-alumni .nma-btn--alumni-red,
    body.nma-page-alumni .nma-btn--alumni-ghost {
        width: 100%;
        justify-content: center;
        text-align: center;
        border-radius: 0.7rem !important;
    }

    body.nma-page-alumni .nma-ah__card {
        width: 100%;
        margin-top: 0.15rem;
        padding: 1.15rem 1.1rem 1rem !important;
        border-radius: 1.1rem !important;
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    }

    body.nma-page-alumni .nma-ah__card-quote {
        text-align: center;
        font-size: 0.86rem !important;
        line-height: 1.55;
        margin: 0 0 0.85rem;
    }

    body.nma-page-alumni .nma-ah__stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    body.nma-page-alumni .nma-ah__stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.65rem 0.35rem !important;
        border-radius: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.nma-page-alumni .nma-ah__stat-icon {
        margin-bottom: 0.25rem;
    }

    body.nma-page-alumni .nma-ah__stat-label {
        display: none;
    }

    body.nma-page-alumni .nma-ah__stat strong {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    body.nma-page-alumni .nma-ah__stat-sub {
        font-size: 0.62rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-top: 0.1rem;
    }
}

@media (max-width: 480px) {
    body.nma-page-alumni .nma-ah__heading {
        font-size: clamp(1.72rem, 8.5vw, 2rem) !important;
    }

    body.nma-page-alumni .nma-ah__stats {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    body.nma-page-alumni .nma-ah__card-quote {
        font-size: 0.84rem !important;
    }

    body.nma-page-alumni .nma-ah__stat strong {
        font-size: 0.92rem !important;
    }
}

/* ============================================================
   6. PARTNER HERO (.nma-ph-hero) — premium centered mobile
   ============================================================ */
@media (max-width: 768px) {
    body.nma-page-partner .nma-ph-hero {
        min-height: auto !important;
        margin-top: 0 !important;
        text-align: center;
    }

    body.nma-page-partner .nma-ph-hero__bg {
        background-position: center 28% !important;
        transform: none !important;
        filter: saturate(1.05) brightness(0.6) contrast(1.08);
    }

    body.nma-page-partner .nma-ph-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(4, 8, 18, 0.92) 0%,
            rgba(10, 14, 28, 0.84) 48%,
            rgba(40, 12, 10, 0.78) 100%
        ) !important;
    }

    body.nma-page-partner .nma-ph-hero__inner {
        min-height: auto !important;
        padding: calc(var(--nma-nav-h, 72px) + 1.65rem) 0 2.35rem !important;
        align-items: center;
        justify-content: flex-start;
    }

    body.nma-page-partner .nma-ph-hero__content {
        max-width: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.nma-page-partner .nma-ph-hero__logo {
        margin-bottom: 0.95rem;
    }

    body.nma-page-partner .nma-ph-hero__logo .nma-logo--feature {
        width: min(96px, 26vw) !important;
        filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    }

    body.nma-page-partner .nma-ph-hero__content .nma-kicker {
        display: inline-flex;
        align-items: center;
        margin-bottom: 0.65rem;
        padding: 0.34rem 0.85rem;
        border-radius: 999px;
        font-size: 0.64rem;
        letter-spacing: 0.13em;
        background: rgba(245, 179, 22, 0.12);
        border: 1px solid rgba(245, 179, 22, 0.38);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    }

    body.nma-page-partner .nma-ph-hero__heading {
        font-size: clamp(1.75rem, 7.8vw, 2.2rem) !important;
        line-height: 1.12;
        letter-spacing: -0.03em;
        text-wrap: balance;
        margin-bottom: 0.75rem;
    }

    body.nma-page-partner .nma-ph-hero__lead {
        font-size: 0.92rem !important;
        line-height: 1.62;
        max-width: 22rem;
        margin: 0 auto 1.2rem !important;
        text-wrap: pretty;
        color: rgba(255, 255, 255, 0.84);
    }

    body.nma-page-partner .nma-ph-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        width: 100%;
        max-width: 20rem;
        margin-inline: auto;
    }

    body.nma-page-partner .nma-ph-hero__actions .nma-btn {
        width: 100%;
        justify-content: center;
        border-radius: 0.7rem !important;
    }

    body.nma-page-partner .nma-ph-hero .nma-btn--primary {
        box-shadow: 0 10px 26px rgba(169, 32, 32, 0.38);
    }
}

@media (max-width: 480px) {
    body.nma-page-partner .nma-ph-hero__heading {
        font-size: clamp(1.65rem, 8vw, 1.95rem) !important;
    }

    body.nma-page-partner .nma-ph-hero__logo .nma-logo--feature {
        width: min(88px, 24vw) !important;
    }
}

/* ============================================================
   7. PORTAL TILES — beautiful mobile cards
   ============================================================ */
@media (max-width: 768px) {
    .nma-portal-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .nma-portal-tile {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.1rem 1.25rem !important;
        border-radius: var(--nma-radius) !important;
    }

    .nma-portal-tile__icon {
        flex-shrink: 0;
        width: 48px !important;
        height: 48px !important;
    }

    .nma-portal-tile h3 {
        margin-bottom: 0.2rem;
        font-size: 1rem;
    }

    .nma-portal-tile p {
        font-size: 0.82rem;
        margin-bottom: 0.35rem;
    }

    .nma-portal-tile__cta {
        font-size: 0.82rem;
    }
}

/* ============================================================
   8. ICON / FEATURE CARDS — mobile
   ============================================================ */
@media (max-width: 768px) {
    body:not(.nma-page-home) .nma-icon-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    body:not(.nma-page-home) .nma-icon-card {
        padding: 1.1rem !important;
        border-radius: var(--nma-radius) !important;
    }

    body:not(.nma-page-home) .nma-icon-card h3 {
        font-size: 0.9rem;
    }

    body:not(.nma-page-home) .nma-icon-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body:not(.nma-page-home) .nma-icon-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   9. SECTION HEADS — mobile typography
   ============================================================ */
@media (max-width: 768px) {
    .nma-section__head h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
        letter-spacing: -0.02em;
        display: block !important; /* override inline-block from animations */
    }

    /* Remove animated underline ::after on mobile (too wide) */
    .nma-section__head h2::after {
        display: none !important;
    }

    .nma-section__head p {
        font-size: 0.9rem;
    }

    .nma-kicker {
        font-size: 0.68rem !important;
    }
}

/* ============================================================
   10. PARTNER PAGE — sections & form split
   ============================================================ */
@media (max-width: 768px) {
    .nma-ph-section {
        padding: 3rem 0 !important;
    }

    body.nma-page-partner .nma-ph-form {
        margin-bottom: 2rem !important;
    }

    .nma-ph-form__split {
        min-height: auto !important;
    }

    .nma-ph-form__intro-inner {
        min-height: auto !important;
        padding: 2.5rem 1.5rem 2rem !important;
    }

    .nma-ph-form__main {
        min-height: auto !important;
        padding: 2rem 1.25rem 2.5rem !important;
    }

    .nma-ph-form__heading {
        font-size: clamp(1.55rem, 6.5vw, 2rem) !important;
        max-width: 100% !important;
    }

    .nma-ph-benefits,
    .nma-ph-pillars {
        grid-template-columns: 1fr !important;
    }

    .nma-ph-form__grid {
        grid-template-columns: 1fr !important;
    }

    .nma-ph-form__field input,
    .nma-ph-form__field textarea {
        font-size: 1rem !important;
    }
}

/* ============================================================
   11. ADMISSIONS FORM — mobile
   ============================================================ */
@media (max-width: 768px) {
    body.nma-page-admissions .nma-adm-form {
        margin-bottom: 3.5rem !important;
    }

    .nma-adm-form .nma-ph-form__field input,
    .nma-adm-form .nma-ph-form__field select {
        font-size: 1rem;
        min-height: 48px;
    }
}

/* ============================================================
   12. CTA BAND — centered & beautiful on mobile
   ============================================================ */
@media (max-width: 768px) {
    .nma-section--home-cta {
        padding: 3rem 0 !important;
    }

    .nma-cta-banner {
        text-align: center;
    }

    .nma-cta-banner h2 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }

    .nma-cta-banner p {
        font-size: 0.9rem !important;
    }

    .nma-cta-banner__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        width: 100%;
    }

    .nma-cta-banner__actions .nma-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   13. STATS ROW (About/Home) — mobile
   ============================================================ */
@media (max-width: 768px) {
    .nma-stats-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    .nma-stat {
        padding: 1.25rem 1rem !important;
    }

    .nma-stat strong {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
}

@media (max-width: 480px) {
    .nma-stats-row { grid-template-columns: 1fr !important; }
}

/* ============================================================
   14. ALUMNI REGISTRATION FORM — mobile
   ============================================================ */
@media (max-width: 768px) {
    body.nma-page-alumni .nma-section--alumni-form {
        padding: 3rem 0 calc(var(--nma-footer-logo, 92px) / 2 + 3.25rem) !important;
        margin-bottom: 0 !important;
    }

    .nma-alumni-register-layout {
        grid-template-columns: 1fr !important;
        gap: 1.75rem;
        min-height: auto !important;
        padding-bottom: 0 !important;
    }

    .nma-alumni-register-intro {
        min-height: 260px !important;
        border-radius: 1rem !important;
    }

    .nma-alumni-register-intro__content {
        padding: 1.5rem 1.35rem 1.25rem !important;
    }

    .nma-alumni-register-intro h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
    }

    .nma-alumni-register-card__head {
        padding: 1.25rem 1.35rem 1rem !important;
    }

    .nma-alumni-form {
        padding: 0 1.35rem 1.35rem !important;
    }
}

/* ============================================================
   15. ALUMNI PERKS (.nma-alumni-perk) — mobile
   ============================================================ */
@media (max-width: 768px) {
    .nma-alumni-perks__grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .nma-alumni-perk {
        padding: 1.1rem !important;
    }

    .nma-alumni-perk__title {
        font-size: 0.9rem !important;
    }

    .nma-alumni-perk__text {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 480px) {
    .nma-alumni-perks__grid { grid-template-columns: 1fr !important; }
}


/* ============================================================
   17. CAMPUS GRID — mobile column + scroll pop
   ============================================================ */
@media (max-width: 768px) {
    .nma-page-hero--campuses {
        padding: calc(var(--nma-nav-h, 72px) + 1.5rem) 0 2rem !important;
    }

    .nma-page-hero--campuses p {
        font-size: 0.9rem !important;
        line-height: 1.55;
        padding-inline: 0.25rem;
    }

    .nma-section--campuses {
        padding: 2rem 0 2.5rem !important;
    }

    .nma-section--campuses .nma-container {
        width: calc(100% - 1.75rem);
    }

    .nma-section--campuses .nma-section__head {
        margin-bottom: 1.35rem;
        max-width: 22rem;
        margin-inline: auto;
    }

    .nma-section--campuses .nma-section__head h2 {
        font-size: clamp(1.3rem, 5.5vw, 1.6rem);
        line-height: 1.2;
    }

    .nma-section--campuses .nma-section__head p {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .nma-campus-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.9rem !important;
        perspective: none !important;
        padding-bottom: 0.5rem;
    }

    .nma-campus-grid > .nma-campus-tile {
        width: 100%;
        min-height: 0 !important;
        padding: 1.35rem 1.2rem 1.55rem !important;
        border-radius: 1rem !important;
    }

    .nma-campus-tile__content {
        margin-bottom: 0.15rem;
    }

    .nma-campus-tile__title {
        font-size: clamp(0.92rem, 4vw, 1.12rem) !important;
        letter-spacing: 0.03em;
        line-height: 1.28;
        word-break: break-word;
    }

    .nma-campus-tile__type {
        font-size: 0.84rem;
        margin: 0.28rem 0 0.8rem;
    }

    .nma-campus-tile__row {
        font-size: 0.84rem;
        line-height: 1.52;
        margin-bottom: 0.7rem;
        gap: 0.5rem;
    }

    .nma-campus-tile__phone-line {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .nma-campus-tile__phone-line:last-of-type {
        margin-bottom: 1rem;
    }

    .nma-campus-tile__phone {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.86rem;
        gap: 0.5rem;
    }

    .nma-campus-tile__tel {
        white-space: nowrap;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .nma-campus-tile__cta {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        margin-top: 1.25rem;
        padding-top: 1rem;
        padding-bottom: 0.1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        font-size: 0.72rem;
        letter-spacing: 0.05em;
        opacity: 0.92;
    }

    .nma-campus-tile--gold .nma-campus-tile__cta {
        border-top-color: rgba(40, 42, 97, 0.14);
    }

    /* Extra red space below phone button so footer logo does not overlap */
    .nma-section--campuses-cta {
        padding: 2.25rem 0 calc(var(--nma-footer-logo, 92px) / 2 + 3.25rem) !important;
    }

    .nma-campuses-cta {
        gap: 1rem;
    }

    .nma-campuses-cta h2 {
        font-size: clamp(1.3rem, 5.5vw, 1.55rem) !important;
    }

    .nma-campuses-cta p {
        font-size: 0.88rem;
    }

    .nma-campuses-cta .nma-cta-banner__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.6rem;
    }

    .nma-campuses-cta .nma-cta-banner__actions .nma-btn {
        width: 100%;
        justify-content: center;
    }

    /* Flat campus cards — same look as desktop (no 3D scroll tilt) */
    .nma-campus-tile,
    .nma-campus-tile[data-reveal-item],
    .nma-campus-tile--scroll-pop[data-reveal-item],
    [data-reveal-stagger] > .nma-campus-tile[data-reveal-item],
    [data-reveal-stagger].is-revealed > .nma-campus-tile[data-reveal-item],
    [data-reveal-stagger] > .nma-campus-tile--scroll-pop[data-reveal-item],
    [data-reveal-stagger].is-revealed > .nma-campus-tile--scroll-pop[data-reveal-item] {
        opacity: 1 !important;
        transform: none !important;
        transform-style: flat !important;
        backface-visibility: visible !important;
        box-shadow: 0 6px 18px rgba(15, 39, 68, 0.1) !important;
    }

    .nma-campus-tile--scroll-pop[data-reveal-item]:active {
        transform: none !important;
    }

    .nma-campus-tile::after {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .nma-campus-tile--scroll-pop[data-reveal-item],
    [data-reveal-stagger] > .nma-campus-tile--scroll-pop[data-reveal-item],
    [data-reveal-stagger].is-revealed > .nma-campus-tile--scroll-pop[data-reveal-item] {
        transform: none;
        opacity: 1;
        transition: none;
    }
}

/* ============================================================
   18. FOOTER — mobile
   ============================================================ */
@media (max-width: 768px) {
    .nma-footer {
        --nma-footer-logo: 92px;
        padding-top: calc(var(--nma-footer-logo) / 2 + 1rem) !important;
        overflow: visible !important;
    }

    .nma-footer__masthead-title {
        font-size: 1rem !important;
        letter-spacing: 0.1em !important;
    }

    .nma-footer__heading {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }

    .nma-footer__link-list a {
        font-size: 0.86rem !important;
    }

    .nma-footer__line-text {
        font-size: 0.8rem !important;
    }

    .nma-footer__bar {
        padding: 0;
    }

    .nma-footer__copy {
        font-size: 0.72rem !important;
        padding: 0.75rem 0 !important;
    }
}

/* ============================================================
   19. FLOATING BUTTONS — beautiful mobile position
   ============================================================ */
@media (max-width: 768px) {
    .nma-float-wa {
        width: 52px !important;
        height: 52px !important;
        bottom: 1.25rem !important;
        right: 1rem !important;
        border-radius: 50% !important;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
    }

    .nma-float-contact {
        bottom: 5rem !important;
        right: 1rem !important;
        width: 48px !important;
        height: 48px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        justify-content: center !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
    }

    .nma-float-contact span { display: none !important; }

    .nma-scroll-top {
        bottom: 9.5rem !important;
        right: 1rem !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* ============================================================
   20. ANIMATIONS — performance on mobile
   ============================================================ */
@media (max-width: 768px) {
    /* Tone down heavy background animations */
    .nma-section--home-cta,
    .nma-section--navy.nma-section--home-cta {
        animation: none !important;
    }

    /* Reduce stagger delay on mobile for snappier feel */
    [data-reveal-item] {
        --reveal-i: 0 !important;
        transition-duration: 0.4s !important;
    }

    /* Simplify button shimmer streaks */
    .nma-btn::before { display: none; }

    /* Reduce floating shape animations */
    .nma-shape--blob,
    .nma-shape--ring,
    .nma-shape--diamond {
        opacity: 0.25 !important;
        animation: none !important;
    }

    /* Reduce orbs */
    .nma-orb-layer { opacity: 0.5; }

    /* Hero ::before dot field — hide on mobile for performance */
    .nma-hero::before { display: none !important; }

    .nma-ah__sparkles { display: none; }

    .nma-ph-hero__logo { animation: none !important; }
}

/* ============================================================
   21. TYPOGRAPHY — baseline mobile scale
   ============================================================ */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
    h2 { font-size: clamp(1.3rem, 5.5vw, 1.75rem); }
    h3 { font-size: clamp(1rem, 4.5vw, 1.25rem); }
}

/* ============================================================
   22. BUTTONS — mobile sizing & full-width helpers
   ============================================================ */
@media (max-width: 480px) {
    .nma-btn--lg {
        padding: 0.85rem 1.35rem !important;
        font-size: 0.92rem !important;
    }

    .nma-btn {
        border-radius: 0.65rem !important;
    }
}

/* ============================================================
   23. FORM INPUTS — prevent iOS zoom (font-size ≥ 16px)
   ============================================================ */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    select,
    textarea {
        font-size: 1rem !important;
    }
}

/* ============================================================
   24. SCROLL SNAP — smooth section reveal on mobile
   ============================================================ */
@media (max-width: 640px) {
    /* Ensure sections don't have stray 1px gaps on mobile */
    .nma-section,
    .nma-hero,
    .nma-page-hero,
    .nma-ah,
    .nma-ph-hero,
    .nma-ph-form,
    .nma-adm,
    .nma-footer {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body.nma-page-partner .nma-ph-form {
        margin-bottom: 2rem !important;
        padding-bottom: 0 !important;
    }

    body.nma-page-admissions .nma-adm-form {
        margin-bottom: 3.5rem !important;
    }
}

/* ============================================================
   25. TABLET PATCH — 769–992px fixes
   ============================================================ */
@media (max-width: 992px) {
    /* Partner hero — compact on tablet/mobile (not full viewport) */
    body.nma-page-partner .nma-ph-hero {
        min-height: auto !important;
        margin-top: 0 !important;
    }

    body.nma-page-partner .nma-ph-hero__inner {
        min-height: auto !important;
        padding-top: calc(var(--nma-nav-h, 72px) + 1.75rem) !important;
    }

    body.nma-page-alumni .nma-ah__inner {
        padding-top: calc(var(--nma-nav-h, 72px) + 1.75rem) !important;
    }

    /* Section padding tablet */
    .nma-section {
        padding: 3.5rem 0 !important;
    }

    /* 2-column stats row stays nice on tablet */
    .nma-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* ============================================================
   27. ANNOUNCEMENT POPUP / MODAL — compact on mobile
   ============================================================ */
@media (max-width: 768px) {
    .nma-modal {
        padding: 0.5rem !important;
        align-items: center !important;
    }

    /* Poster-forward: near-full-width, matching the reference layout —
       the popup IS essentially the poster with a corner close button and
       edge nav arrows, no separate chrome. */
    .nma-modal__dialog {
        max-width: min(94vw, 420px) !important;
        width: 100% !important;
    }

    .nma-modal__carousel,
    .nma-modal__slides {
        max-width: 100% !important;
        width: 100% !important;
    }

    .nma-modal__slide.is-active {
        width: 100% !important;
    }

    .nma-modal__slide img {
        max-width: 100% !important;
        max-height: 76vh !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 48px rgba(11, 30, 54, 0.32) !important;
    }

    .nma-modal__close {
        width: 30px !important;
        height: 30px !important;
        font-size: 1.05rem !important;
        top: -0.5rem !important;
        right: -0.5rem !important;
    }

    .nma-modal__nav {
        width: 32px !important;
        height: 32px !important;
    }

    .nma-modal__nav .nma-icon-svg {
        width: 16px !important;
        height: 16px !important;
    }

    .nma-modal__nav--prev { left: 0.5rem !important; }
    .nma-modal__nav--next { right: 0.5rem !important; }

    /* Nav drawer dropdown panels (popover-style submenus) */
    .nma-nav__dropdown.is-open .nma-nav__dropdown-menu {
        max-height: 280px !important;
        padding: 0.35rem !important;
    }

    .nma-nav-dropdown-item {
        padding: 0.55rem 0.65rem !important;
        margin-bottom: 0.2rem !important;
    }

    .nma-nav-dropdown-item__label {
        font-size: 0.84rem !important;
    }

    .nma-nav-dropdown-item__desc {
        font-size: 0.72rem !important;
        margin-top: 0.1rem !important;
    }
}

@media (max-width: 480px) {
    .nma-modal__dialog {
        max-width: min(94vw, 380px) !important;
    }

    .nma-modal__slide img {
        max-height: 72vh !important;
    }
}

/* ============================================================
   28. ABOUT / HUB GRID — mobile
   ============================================================ */
@media (max-width: 768px) {
    .nma-about-hub-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .nma-about-hub-card {
        padding: 1.1rem !important;
        border-radius: var(--nma-radius) !important;
    }

    .nma-about-hub-card__icon {
        width: 44px !important;
        height: 44px !important;
    }
}

@media (max-width: 480px) {
    .nma-about-hub-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   30. HOME PAGE — premium mobile experience
   ============================================================ */
@media (max-width: 768px) {
    body.nma-page-home .nma-container {
        width: calc(100% - 1.75rem);
    }

    body.nma-page-home .nma-shapes__layer,
    body.nma-page-home .nma-orb-layer {
        opacity: 0.55;
    }

    body.nma-page-home .nma-shape--diamond,
    body.nma-page-home .nma-shape--ring {
        display: none;
    }

    /* Hero — immersive layout & content order */
    body.nma-page-home .nma-hero {
        min-height: auto;
        padding: calc(var(--nma-nav-h, 72px) + 1.25rem) 0 2.25rem !important;
        text-align: center;
    }

    body.nma-page-home .nma-hero__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    body.nma-page-home .nma-hero__content {
        display: contents;
    }

    body.nma-page-home .nma-hero .nma-badge {
        order: 1;
        margin-inline: auto;
        padding: 0.38rem 0.9rem;
        border-radius: 999px;
        font-size: 0.68rem;
        letter-spacing: 0.14em;
        background: rgba(214, 158, 46, 0.14);
        border: 1px solid rgba(214, 158, 46, 0.35);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(6px);
    }

    body.nma-page-home .nma-hero h1 {
        order: 2;
        margin-top: 0.65rem;
        font-size: clamp(1.9rem, 8.5vw, 2.55rem) !important;
        line-height: 1.1;
        letter-spacing: -0.035em;
        text-wrap: balance;
    }

    body.nma-page-home .nma-hero__tagline {
        order: 3;
        margin: 0.15rem auto 0.35rem;
        font-size: 0.72rem;
        letter-spacing: 0.28em;
        color: var(--nma-gold);
        text-shadow: 0 1px 12px rgba(245, 179, 22, 0.35);
    }

    body.nma-page-home .nma-hero__tagline::after {
        content: "";
        display: block;
        width: 2.75rem;
        height: 2px;
        margin: 0.55rem auto 0;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, var(--nma-gold), transparent);
    }

    body.nma-page-home .nma-hero__visual {
        order: 4;
        max-width: none;
        margin: 0.15rem 0 0;
    }

    body.nma-page-home .nma-hero__lead {
        order: 5;
        max-width: none;
        margin-bottom: 0;
        font-size: 0.96rem !important;
        line-height: 1.62;
        color: rgba(255, 255, 255, 0.9);
        padding-inline: 0.15rem;
        text-wrap: pretty;
    }

    body.nma-page-home .nma-hero__actions {
        order: 6;
        margin-top: 0.35rem;
    }

    body.nma-page-home .nma-hero__showcase {
        max-width: none;
        width: 100%;
        gap: 0.65rem;
    }

    body.nma-page-home .nma-hero__card {
        padding: 1.1rem 1rem 1rem !important;
        border-radius: 1.1rem !important;
        background: rgba(255, 255, 255, 0.11);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(8px);
    }

    body.nma-page-home .nma-hero__card img,
    body.nma-page-home .nma-hero__crest {
        width: min(168px, 48vw) !important;
        margin-bottom: 0.55rem !important;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
    }

    body.nma-page-home .nma-hero__card p {
        font-size: 0.8rem;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.82);
    }

    body.nma-page-home .nma-hero__stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem;
    }

    body.nma-page-home .nma-hero__stat {
        padding: 0.65rem 0.3rem !important;
        border-radius: 0.7rem !important;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    body.nma-page-home .nma-hero__stat strong {
        font-size: 0.98rem !important;
        color: var(--nma-gold);
    }

    body.nma-page-home .nma-hero__stat span {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    body.nma-page-home .nma-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem !important;
        width: 100%;
    }

    body.nma-page-home .nma-hero__actions .nma-btn {
        width: 100%;
        max-width: none;
        justify-content: center;
        padding: 0.92rem 1.2rem !important;
        border-radius: 0.7rem !important;
        font-size: 0.92rem !important;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    }

    body.nma-page-home .nma-hero__actions .nma-btn--primary {
        box-shadow: 0 10px 28px rgba(169, 32, 32, 0.42);
    }

    body.nma-page-home .nma-hero__actions .nma-btn--outline {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.35);
        color: #fff;
    }

    /* Portal — card stack with curved overlap */
    body.nma-page-home .nma-section--portal {
        margin-top: -1.25rem;
        padding: 2.35rem 0 2.85rem !important;
        border-radius: 1.5rem 1.5rem 0 0;
        background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
        border-top: 1px solid rgba(15, 39, 68, 0.06);
        box-shadow: 0 -16px 40px rgba(15, 39, 68, 0.08);
        position: relative;
        z-index: 2;
    }

    body.nma-page-home .nma-section--portal .nma-section__head {
        text-align: center;
        margin-inline: auto;
        margin-bottom: 1.45rem;
        max-width: 22rem;
    }

    body.nma-page-home .nma-section--portal .nma-section__head h2 {
        font-size: clamp(1.35rem, 5.8vw, 1.65rem);
        line-height: 1.2;
        text-wrap: balance;
    }

    body.nma-page-home .nma-section--portal .nma-section__head p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    body.nma-page-home .nma-section--portal .nma-kicker {
        margin-bottom: 0.4rem;
    }

    body.nma-page-home .nma-portal-grid {
        gap: 0.75rem !important;
    }

    body.nma-page-home .nma-portal-tile {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 0.8rem;
        row-gap: 0.12rem;
        padding: 0.95rem 1rem !important;
        border-radius: 0.95rem !important;
        border: 1px solid var(--nma-gray-200);
        box-shadow: 0 4px 18px rgba(15, 39, 68, 0.05);
        text-align: left;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    body.nma-page-home .nma-portal-tile:active {
        transform: scale(0.985);
    }

    body.nma-page-home .nma-portal-tile__icon {
        grid-row: 1 / span 2;
        width: 46px !important;
        height: 46px !important;
        margin-bottom: 0 !important;
        border-radius: 12px !important;
    }

    body.nma-page-home .nma-portal-tile h3 {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        font-size: 1.02rem;
        font-weight: 800;
    }

    body.nma-page-home .nma-portal-tile p {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    body.nma-page-home .nma-portal-tile__cta {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        font-size: 0.78rem;
        white-space: nowrap;
        padding: 0.35rem 0.55rem;
        border-radius: 999px;
        background: rgba(15, 39, 68, 0.06);
    }

    body.nma-page-home .nma-portal-tile__cta::after {
        content: ' →';
        font-weight: 800;
    }

    body.nma-page-home .nma-portal-tile--parent {
        border-top: none;
        border-left: 4px solid var(--nma-gold);
        background: linear-gradient(135deg, #fffdf5 0%, #fff 100%);
    }

    body.nma-page-home .nma-portal-tile--parent .nma-portal-tile__cta {
        color: var(--nma-gold-dark);
        background: rgba(214, 158, 46, 0.12);
    }

    body.nma-page-home .nma-portal-tile--student {
        border-top: none;
        border-left: 4px solid var(--nma-red);
        background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
    }

    body.nma-page-home .nma-portal-tile--student .nma-portal-tile__cta {
        color: var(--nma-red);
        background: rgba(169, 32, 32, 0.08);
    }

    body.nma-page-home .nma-portal-tile--staff {
        border-top: none;
        border-left: 4px solid var(--nma-gold);
        background: linear-gradient(145deg, #282A61 0%, #1e2049 100%);
        color: #fff;
        box-shadow: 0 10px 28px rgba(40, 42, 97, 0.28);
    }

    body.nma-page-home .nma-portal-tile--staff h3 {
        color: #fff;
    }

    body.nma-page-home .nma-portal-tile--staff p {
        color: rgba(255, 255, 255, 0.78);
    }

    body.nma-page-home .nma-portal-tile--staff .nma-portal-tile__icon {
        background: rgba(255, 180, 0, 0.15);
        color: var(--nma-gold);
        border-color: rgba(255, 180, 0, 0.35);
    }

    body.nma-page-home .nma-portal-tile--staff .nma-portal-tile__cta {
        color: var(--nma-gold);
        background: rgba(255, 180, 0, 0.14);
    }

    /* Features — premium centered cards (mobile home) */
    body.nma-page-home .nma-section--muted {
        padding: 2.35rem 0 2.5rem !important;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    }

    body.nma-page-home .nma-section--muted .nma-section__head {
        margin-bottom: 1.35rem;
        max-width: 24rem;
        margin-inline: auto;
        text-align: center;
    }

    body.nma-page-home .nma-section--muted .nma-section__head h2 {
        font-size: clamp(1.35rem, 5.8vw, 1.65rem);
        line-height: 1.2;
        letter-spacing: -0.02em;
        text-wrap: balance;
    }

    body.nma-page-home .nma-section--muted .nma-section__head p {
        font-size: 0.88rem;
        line-height: 1.55;
        color: var(--nma-text-muted);
    }

    body.nma-page-home .nma-icon-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.7rem !important;
        align-items: stretch;
    }

    body.nma-page-home .nma-icon-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        height: 100%;
        min-height: 10.25rem;
        padding: 1.125rem 1.375rem 1.25rem !important;
        border-radius: 1.375rem !important;
        border: 1px solid rgba(226, 232, 240, 0.92);
        box-shadow:
            0 1px 2px rgba(15, 39, 68, 0.04),
            0 6px 20px rgba(15, 39, 68, 0.06);
        background: #fff;
        transition: box-shadow 0.25s ease, transform 0.25s ease;
    }

    body.nma-page-home .nma-icon-card:nth-child(3n+1),
    body.nma-page-home .nma-icon-card:nth-child(3n+2),
    body.nma-page-home .nma-icon-card:nth-child(3n) {
        border-radius: 1.375rem !important;
    }

    body.nma-page-home .nma-icon-card__icon {
        width: 54px !important;
        height: 54px !important;
        margin: 0 0 0.65rem !important;
        flex-shrink: 0;
        border-radius: 50% !important;
        clip-path: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.nma-page-home .nma-icon-card__icon .nma-icon-svg {
        width: 24px;
        height: 24px;
    }

    body.nma-page-home .nma-icon-card h3 {
        font-size: 0.98rem;
        font-weight: 800;
        line-height: 1.32;
        letter-spacing: -0.015em;
        color: var(--nma-navy);
        margin: 0 0 0.35rem;
        max-width: 92%;
        text-wrap: balance;
    }

    body.nma-page-home .nma-icon-card p {
        font-size: 0.84rem;
        line-height: 1.5;
        color: var(--nma-text-muted);
        max-width: 88%;
        margin: 0 auto;
        flex: 1;
    }

    /* CTA — inset glass card; extra bottom space for overlapping footer logo */
    body.nma-page-home .nma-section--home-cta {
        padding: 2.35rem 0 calc(var(--nma-footer-logo, 92px) / 2 + 3rem) !important;
    }

    body.nma-page-home .nma-cta-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1.15rem;
        padding: 1.55rem 1.15rem;
        border-radius: 1.1rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
        position: relative;
        overflow: hidden;
    }

    body.nma-page-home .nma-cta-banner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--nma-red), var(--nma-gold), var(--nma-navy));
    }

    body.nma-page-home .nma-cta-banner h2 {
        font-size: clamp(1.45rem, 6.5vw, 1.85rem) !important;
        line-height: 1.15;
    }

    body.nma-page-home .nma-cta-banner p {
        font-size: 0.9rem !important;
        max-width: none;
        margin-inline: auto;
    }

    body.nma-page-home .nma-cta-banner__actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    body.nma-page-home .nma-cta-banner__actions .nma-btn {
        width: 100%;
        justify-content: center;
        border-radius: 0.75rem !important;
    }

    body.nma-page-home .nma-cta-banner__actions .nma-btn--primary {
        box-shadow: 0 10px 26px rgba(169, 32, 32, 0.4);
    }
}

@media (max-width: 480px) {
    body.nma-page-home .nma-hero h1 {
        font-size: clamp(1.72rem, 8.8vw, 2rem) !important;
    }

    body.nma-page-home .nma-hero__stats {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    body.nma-page-home .nma-icon-card {
        padding: 1.05rem 1.25rem 1.15rem !important;
        min-height: 9.75rem;
    }

    body.nma-page-home .nma-icon-card__icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.6rem !important;
    }

    body.nma-page-home .nma-icon-card h3 {
        font-size: 0.94rem;
        max-width: 90%;
    }

    body.nma-page-home .nma-icon-card p {
        font-size: 0.82rem;
        line-height: 1.48;
        max-width: 87%;
    }
}

/* ============================================================
   29. SCROLLBAR — final cascade (public site, loaded last)
   ============================================================ */
body.nma-public-body {
    overflow-y: auto;
    overflow-x: hidden;
}

html.nma-public-root {
    overflow: hidden;
    scrollbar-gutter: auto;
}

body.nma-public-body::-webkit-scrollbar-thumb,
body.nma-public-body .nma-nav__menu::-webkit-scrollbar-thumb {
    background: var(--nma-scrollbar-thumb);
    border: none;
    box-shadow: none;
}

body.nma-public-body::-webkit-scrollbar-button,
body.nma-public-body::-webkit-scrollbar-button:single-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
