/* =========================================================
   MASSTECH GLOBAL — MASTER STYLESHEET
   masstechglobal.com
   Last cleaned: 2026-05-02

   SECTIONS:
   01. CSS VARIABLES / BRAND TOKENS
   02. GLOBAL BASE / RESET
   03. TYPOGRAPHY
   04. HEADER / NAV — DESKTOP
   05. HEADER / NAV — MOBILE DRAWER
   06. HERO SECTIONS (mt-hero, mt-hero-title, mt-hero-subtitle)
   07. HERO ANIMATIONS & KEYFRAMES
   08. BUTTON SYSTEM
   09. CARDS & COMPONENTS
       - Event Cards (.mt-event-card)
       - Marketing Cards (.mt-marketing-card)
       - Product Cards (.mt-prod-card)
       - Precision/Application Cards (.mt-precision-card)
       - IB Cards (.mt-ib-card)
       - Support Cards (.mt-support-card)
       - Contact Cards (.mt-contact-card)
       - Config Cards (.mt-config-card)
       - Software Cards (.mt-software-card)
       - Resource Feature Cards (.mt-resource-feature-card)
       - Spec Cards (.mt-specs-card)
   10. PAGE TITLE HEADERS (per-page surgical headers)
   11. PUBLICATIONS & POSTERS LOOPS
   12. VIDEO GALLERY (vgbVideoGallery)
   13. VIDEO FEATURE BLOCK (.mt-video-feature)
   14. FORMS (WPForms, Events Form, Search Filter)
   15. FOOTER
   16. UTILITIES & MISC COMPONENTS
   17. PLUGIN OVERRIDES (w3eden, WPDM, Sliderberg, Spectra Tabs)
   18. MOBILE / RESPONSIVE (all breakpoints)
   ========================================================= */


/* =========================================================
   01. CSS VARIABLES / BRAND TOKENS
   ========================================================= */

:root {
    --mt-red:         #D52322;
    --mt-red-hover:   #B01F1F;
    --mt-red-glow:    rgba(213, 35, 34, 0.08);
    --mt-ink:         #0F172A;
    --mt-slate:       #475569;
    --mt-muted:       #64748B;
    --mt-bg:          #F8FAFC;
    --mt-bg-soft:     #F1F5F9;
    --mt-border:      rgba(15, 23, 42, 0.08);
    --mt-border-soft: rgba(15, 23, 42, 0.06);
    --mt-shadow:      0 12px 34px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   02. GLOBAL BASE / RESET
   ========================================================= */

html,
body {
    overflow-x: clip !important;
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-display: swap;
}

.wp-block-columns {
    flex-wrap: wrap;
}

.wp-block-post {
    transition: transform .15s ease, box-shadow .15s ease;
}

.wp-block-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.wp-block-post:last-child {
    border-bottom: none;
}

.wp-block-post-title a {
    text-decoration: none;
}

.wp-block-post-title a:hover {
    text-decoration: underline;
}

.wp-lightbox-overlay img {
    cursor: zoom-out !important;
}

.wp-block-image a {
    cursor: zoom-in !important;
}

.wp-block-image .wp-lightbox-container__button,
.wp-block-image button.wp-lightbox-container__button,
.wp-block-image button[aria-label*="Enlarge"],
.wp-block-image button[aria-label*="enlarge"] {
    opacity: 0 !important;
    pointer-events: none !important;
}

.mt-event-ribbon.is-hidden {
    display: none !important;
}


/* =========================================================
   03. TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4 {
    color: var(--mt-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 18px;
    font-weight: 600;
}

p {
    font-size: 16px;
}

.wp-block-cover p {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

/* Eyebrow labels */
.mt-eyebrow,
.mt-poster-eyebrow,
.mt-resource-feature-label {
    display: block;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: var(--mt-red) !important;
    margin-bottom: 12px !important;
}

/* List header accent */
body .mt-list-header {
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    color: #0f172a !important;
    border-bottom: 3px solid #D52322 !important;
    display: inline-block !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
}

/* Technical list */
body .mt-tech-list ul,
body ul.mt-tech-list {
    list-style-type: none !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

body .mt-tech-list li {
    list-style-type: none !important;
    position: relative !important;
    padding: 16px 0 16px 45px !important;
    border-bottom: 1px solid #E2E8F0 !important;
    color: #334155 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .mt-tech-list li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 3px !important;
    background-color: #D52322 !important;
    border-radius: 1px !important;
}

body .mt-tech-list li:hover {
    background-color: #F8FAFC !important;
    padding-left: 55px !important;
    color: #0F172A !important;
}

body .mt-tech-list li:last-child {
    border-bottom: none !important;
}

/* Description / standout blocks */
.mt-description-block {
    max-width: 800px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-top: 35px;
    margin-bottom: 50px;
}

.mt-standout-hook {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 25px !important;
    line-height: 1.4 !important;
}

.mt-technical-body {
    border-left: 2px solid #e2e8f0;
    padding-left: 25px;
}

.mt-technical-body p {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    color: #475569 !important;
    margin-bottom: 20px !important;
}

.mt-title-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    text-align: left !important;
    max-width: 650px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-top: 35px !important;
    margin-bottom: 50px !important;
}

/* Spec row */
.mt-spec-row {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.mt-spec-label {
    font-weight: 700 !important;
    color: #0f172a !important;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Spec PDF download link */
.mt-spec-download {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.mt-spec-download a {
    font-weight: 600;
    text-decoration: none;
    color: #1f2937;
    position: relative;
}

.mt-spec-download a::after {
    content: "→";
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.mt-spec-download a:hover {
    color: #D52322;
}

.mt-spec-download a:hover::after {
    transform: translateX(4px);
}


/* =========================================================
   04. HEADER / NAV — DESKTOP
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Announcement bar above nav */
.uagb-block-63504299 {
    border-radius: 16px !important;
}

.uagb-block-63504299::before {
    content: "" !important;
    position: absolute !important;
    left: 14px !important;
    right: 14px !important;
    top: 0 !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(
        90deg,
        rgba(213,35,34,0.00),
        rgba(213,35,34,0.65),
        rgba(213,35,34,0.25),
        rgba(213,35,34,0.65),
        rgba(213,35,34,0.00)
    ) !important;
    opacity: 0.95 !important;
    pointer-events: none !important;
    z-index: 3 !important;
}

.uagb-block-63504299::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: -80px !important;
    width: 720px !important;
    height: 280px !important;
    transform: translateX(-50%) !important;
    background: radial-gradient(
        circle,
        rgba(213,35,34,0.18),
        rgba(176,31,31,0.10),
        rgba(213,35,34,0.00) 70%
    ) !important;
    filter: blur(16px) !important;
    opacity: 0.80 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Desktop nav links */
.site-header .main-header-menu a {
    color: #1F2937 !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    position: relative !important;
    transition: color 160ms ease, opacity 160ms ease !important;
}

.site-header .main-header-menu a::after {
    content: "" !important;
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 2px !important;
    height: 2px !important;
    border-radius: 2px !important;
    background: linear-gradient(
        90deg,
        rgba(213,35,34,0.00),
        rgba(213,35,34,0.80),
        rgba(213,35,34,0.00)
    ) !important;
    opacity: 0 !important;
    transform: translateY(2px) !important;
    transition: opacity 160ms ease, transform 160ms ease !important;
}

.main-header-menu a:hover {
    color: #D52322 !important;
}

.main-header-menu a:hover::after {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.main-header-menu .current-menu-item > a {
    color: #0F172A !important;
    font-weight: 400 !important;
}

.main-header-menu .current-menu-item > a::after {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.main-header-menu a[href="#"] {
    pointer-events: none;
    cursor: default;
    opacity: 0.7;
}

/* Clean menu system — desktop */
.main-header-menu,
.main-header-menu .menu-item,
.main-header-menu .menu-item > a {
    border-bottom: none !important;
    box-shadow: none !important;
}

.main-header-menu .menu-item > a::before,
.main-header-menu .menu-item > a::after,
.ast-menu-item-background {
    display: none !important;
    content: none !important;
}

@media (min-width: 922px) {
    /* Normal menu items */
    .main-header-menu > .menu-item:not(.menu-login):not(.menu-register):not(.menu-logout) > a {
        color: #0f172a !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        letter-spacing: 0.1px !important;
        text-decoration: none !important;
    }

    .main-header-menu > .menu-item:not(.menu-login):not(.menu-register):not(.menu-logout):hover > a,
    .main-header-menu > .current-menu-item:not(.menu-login):not(.menu-register):not(.menu-logout) > a,
    .main-header-menu > .current-menu-ancestor:not(.menu-login):not(.menu-register):not(.menu-logout) > a {
        color: #d83a3a !important;
    }

    /* Auth group */
    .main-header-menu > .menu-login,
    .main-header-menu > .menu-logout {
        margin-left: 20px !important;
    }

    .main-header-menu > .menu-register {
        margin-left: 12px !important;
    }

    .main-header-menu > .menu-login > a,
    .main-header-menu > .menu-logout > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 30px !important;
        padding: 0 13px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 4px !important;
        background: transparent !important;
        color: #64748b !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
        line-height: 1 !important;
        text-decoration: none !important;
    }

    .main-header-menu > .menu-login > a:hover,
    .main-header-menu > .menu-logout > a:hover {
        border-color: #d83a3a !important;
        color: #0f172a !important;
    }

    .main-header-menu > .menu-register > a {
        display: inline-flex !important;
        align-items: center !important;
        height: 30px !important;
        padding: 0 !important;
        color: #94a3b8 !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
        line-height: 1 !important;
        text-decoration: none !important;
    }

    .main-header-menu > .menu-register > a:hover {
        color: #d83a3a !important;
    }
}


/* =========================================================
   05. HEADER / NAV — MOBILE DRAWER
   ========================================================= */

@media (max-width: 768px) {
    .main-header-menu {
        position: relative;
        background-color: #FFFFFF;
        width: 100%;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .main-header-menu::before {
        content: "";
        display: block;
        height: 3px;
        background: linear-gradient(
            90deg,
            rgba(213,35,34,0.0),
            rgba(213,35,34,0.55),
            rgba(213,35,34,0.0)
        );
    }

    .main-header-menu a {
        color: #0F172A;
        font-weight: 500;
        padding: 14px 20px;
        display: block;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .main-header-menu a:hover {
        background-color: #F8FAFC;
        color: #D52322;
    }

    .main-header-menu .current-menu-item > a {
        background-color: #F1F5F9;
        color: #0F172A;
    }

    .main-header-menu li {
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .main-header-menu li:last-child {
        border-bottom: none;
    }

    .site-header .main-header-menu a::after {
        display: none !important;
    }
}

/* Mobile header bar */
@media (max-width: 921px) {
    .ast-mobile-header-wrap,
    .ast-mobile-header-wrap .main-header-bar,
    .ast-mobile-header-wrap .ast-mobile-header-container,
    .ast-mobile-header-wrap .ast-builder-grid-row {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        background: #ffffff !important;
    }

    .site-header,
    .ast-mobile-header-wrap {
        background: #ffffff !important;
    }

    .site-header-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Mobile drawer */
@media (max-width: 921px) {
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-inner {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .ast-mobile-popup-inner {
        min-height: 100vh !important;
        background: #ffffff !important;
        padding: 32px 28px !important;
        transform: translateY(-24px);
        opacity: 0;
    }

    .ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
        animation: mtSlideDownSmooth 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes mtSlideDownSmooth {
        from { transform: translateY(-24px); opacity: 0; }
        to   { transform: translateY(0);     opacity: 1; }
    }

    .ast-mobile-popup-content {
        text-align: left !important;
    }
}

/* Mobile menu items */
@media (max-width: 921px) {
    .ast-mobile-popup-content .ast-builder-menu-mobile,
    .ast-mobile-popup-content .main-navigation,
    .ast-mobile-popup-content .main-header-menu {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    .ast-mobile-popup-content .ast-builder-layout-element {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .ast-mobile-popup-content .main-header-menu > .menu-item {
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    }

    .ast-mobile-popup-content .main-header-menu > .menu-item > a {
        padding: 15px 0 !important;
    }
}

/* Mobile auth items */
@media (max-width: 921px) {
    .ast-mobile-popup-content .main-header-menu > .menu-item:nth-last-child(4) {
        border-bottom: none !important;
    }

    .ast-mobile-popup-content .main-header-menu > .menu-login,
    .ast-mobile-popup-content .main-header-menu > .menu-logout {
        border-top: none !important;
        margin-top: 14px !important;
        padding-top: 14px !important;
        border-bottom: none !important;
    }

    .ast-mobile-popup-content .main-header-menu > .menu-register {
        border-top: none !important;
        border-bottom: none !important;
    }

    .ast-mobile-popup-content .main-header-menu > .menu-item {
        border-bottom-color: rgba(15, 23, 42, 0.06) !important;
    }

    .ast-mobile-popup-content .main-header-menu > .menu-login > a,
    .ast-mobile-popup-content .main-header-menu > .menu-logout > a {
        display: inline-flex !important;
        width: auto !important;
        max-width: fit-content !important;
        padding: 0 14px !important;
        height: 34px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 4px !important;
        background: #ffffff !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 0.8px !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
    }

    .ast-mobile-popup-content .main-header-menu > .menu-login > a:hover,
    .ast-mobile-popup-content .main-header-menu > .menu-logout > a:hover {
        border-color: #d83a3a !important;
        color: #0f172a !important;
    }

    .ast-mobile-popup-content .main-header-menu > .menu-register > a {
        margin-top: 6px !important;
        padding: 0 !important;
        font-size: 11px !important;
        letter-spacing: 0.8px !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }
}

/* Mobile social icons */
@media (max-width: 921px) {
    .ast-mobile-popup-content .ast-header-social-1-area {
        margin-top: 28px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex !important;
        justify-content: flex-start !important;
    }

    .ast-mobile-popup-content .ast-header-social-1-area .ast-social-stack-none {
        gap: 18px !important;
    }
}

/* Mobile drawer animation — smooth slide down */
@media (max-width: 921px) {
    .ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
        transform-origin: top center !important;
        animation: mtMobileMenuDrop 520ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
        will-change: transform, opacity, clip-path !important;
    }

    @keyframes mtMobileMenuDrop {
        0%   { opacity: 0; transform: translateY(-32px); clip-path: inset(0 0 100% 0); }
        100% { opacity: 1; transform: translateY(0);     clip-path: inset(0 0 0 0); }
    }

    .ast-mobile-popup-drawer.active .main-header-menu > .menu-item {
        opacity: 0;
        transform: translateY(-6px);
        animation: mtMobileItemReveal 420ms ease forwards !important;
    }

    @keyframes mtMobileItemReveal {
        to { opacity: 1; transform: translateY(0); }
    }

    .ast-mobile-popup-drawer.active .main-header-menu > .menu-item:nth-child(1) { animation-delay: 120ms !important; }
    .ast-mobile-popup-drawer.active .main-header-menu > .menu-item:nth-child(2) { animation-delay: 165ms !important; }
    .ast-mobile-popup-drawer.active .main-header-menu > .menu-item:nth-child(3) { animation-delay: 210ms !important; }
    .ast-mobile-popup-drawer.active .main-header-menu > .menu-item:nth-child(4) { animation-delay: 255ms !important; }
    .ast-mobile-popup-drawer.active .main-header-menu > .menu-item:nth-child(5) { animation-delay: 300ms !important; }
    .ast-mobile-popup-drawer.active .main-header-menu > .menu-item:nth-child(6) { animation-delay: 345ms !important; }
    .ast-mobile-popup-drawer.active .main-header-menu > .menu-item:nth-child(7) { animation-delay: 390ms !important; }
    .ast-mobile-popup-drawer.active .main-header-menu > .menu-item:nth-child(8) { animation-delay: 435ms !important; }
}

/* Mobile close button */
@media (max-width: 921px) {
    .ast-mobile-popup-header {
        position: fixed !important;
        top: 32px !important;
        right: 58px !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        z-index: 999999 !important;
    }

    .ast-mobile-popup-header .menu-toggle-close,
    .ast-mobile-popup-header button,
    .ast-mobile-popup-header .ast-mobile-menu-trigger-outline {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #1f2937 !important;
    }

    .ast-mobile-popup-header svg,
    .ast-mobile-popup-header path,
    .ast-mobile-popup-header .ast-icon {
        color: #1f2937 !important;
        fill: #1f2937 !important;
        stroke: #1f2937 !important;
    }
}


/* =========================================================
   06. HERO SECTIONS
   ========================================================= */

/* Base hero block */
.mt-hero {
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(120, 200, 255, 0.25);
    justify-content: flex-start;
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative; /* needed for ::before scrim */
}

.mt-hero .wp-block-cover__inner-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 5%;
    text-align: left;
}

.mt-hero h1,
.mt-hero h2,
.mt-hero p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    max-width: 800px;
}

.mt-hero h1,
.mt-hero h2,
.mt-hero p,
.mt-hero .wp-block-heading {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.mt-hero .wp-block-group,
.mt-hero .wp-block-cover__inner-container,
.mt-hero .spectra-container,
.mt-hero .uagb-container-inner {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Hero paragraph */
.mt-hero p {
    max-width: 580px !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.2px;
}

/* Red top accent bar on hero */
.mt-hero::after {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background-color: #D52322;
    z-index: 5 !important;
}

/* Glass scrim */
.mt-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Cover block hero sizing */
.wp-block-cover.mt-hero {
    min-height: 50vh !important;
    padding-top: 96px !important;
    padding-bottom: 96px !important;
}

/* Cover buttons */
.wp-block-cover.mt-hero .wp-block-button__link {
    font-size: 16px !important;
    padding: 14px 22px !important;
    border-radius: 12px !important;
}

/* Hero title and subtitle z-index above scrim */
.mt-hero-title,
.mt-hero-subtitle,
.mt-hero p {
    position: relative;
    z-index: 2;
}

/* Hero title */
.mt-hero-title {
    display: inline-block !important;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    animation: mtTitleReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    font-size: clamp(2.8rem, 5vw, 4.2rem) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
    color: #ffffff !important;
    max-width: 700px !important;
    margin-bottom: 1rem !important;
}

.mt-hero-title::after {
    content: "";
    display: block;
    width: 0;
    height: 4px;
    background: #D52322;
    margin-top: 10px;
    animation: underscoreExpand 0.8s 0.6s ease-out forwards;
}

/* Hero subtitle */
.mt-hero-subtitle {
    opacity: 0;
    transform: translateY(16px);
    animation: mtSubtitleReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
    font-size: clamp(1rem, 1.6vw, 1.25rem) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    max-width: 520px !important;
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
}

/* Locked hero grid + positioning */
.wp-block-cover.mt-hero {
    position: relative;
    display: flex !important;
    align-items: flex-end !important;
    height: 75vh !important;
    min-height: 75vh !important;
}

.wp-block-cover.mt-hero .wp-block-cover__inner-container {
    padding-left: 80px !important;
    max-width: 700px !important;
    margin-bottom: 14vh !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Home video hero */
.mt-home-video-hero .wp-block-cover__video-background,
.mt-home-video-hero video.wp-block-cover__video-background {
    display: block !important;
}

/* Hero image/video subtle zoom animation */
.mt-hero img,
.mt-hero video {
    animation: mt-hero-zoom 22s ease-in-out infinite alternate;
}

/* Scientific video frame accent */
.scientific-video-frame {
    border-left: 6px solid #D52322;
    position: relative;
}


/* =========================================================
   07. HERO ANIMATIONS & KEYFRAMES
   ========================================================= */

@keyframes mtTitleReveal {
    0%   { opacity: 0; transform: translateY(30px); filter: blur(8px); letter-spacing: 0.2em; }
    100% { opacity: 1; transform: translateY(0);    filter: blur(0);   letter-spacing: -0.03em; }
}

@keyframes underscoreExpand {
    to { width: 80px; }
}

@keyframes mtSubtitleReveal {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes mt-hero-zoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.03); }
}

@keyframes mtSurgicalFloat {
    0%, 100% { transform: scale(1.0); }
    50%       { transform: scale(1.08) translateX(15px); }
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}


/* =========================================================
   08. BUTTON SYSTEM
   ========================================================= */

/* Global button base */
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
a.button,
.ast-button,
.ast-custom-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    line-height: 1.1 !important;
}

/* Button visual style */
.wp-block-button__link,
.wp-element-button,
.ast-button,
.ast-custom-button,
a.button {
    background-color: #ffffff !important;
    border: none !important;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.14),
        0 4px 10px rgba(15, 23, 42, 0.10) !important;
    transform: translateY(0);
    transition:
        box-shadow 180ms ease,
        transform 160ms ease,
        background-color 160ms ease;
}

/* Broader button reset incl. native buttons */
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
a.button,
.ast-button,
.ast-custom-button,
button:not(.menu-toggle):not(.ast-mobile-menu-trigger) {
    background-color: #ffffff !important;
    color: #D52322 !important;
    border: none !important;
    padding: 12px 18px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease,
        transform 160ms ease !important;
}

/* Hover */
.wp-block-button__link:hover,
.wp-element-button:hover,
.ast-button:hover,
.ast-custom-button:hover,
a.button:hover {
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.18),
        0 6px 14px rgba(15, 23, 42, 0.12) !important;
    transform: translateY(-2px);
}

.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="submit"]:hover,
a.button:hover,
.ast-button:hover,
.ast-custom-button:hover,
button:not(.menu-toggle):not(.ast-mobile-menu-trigger):hover {
    background-color: rgba(213, 35, 34, 0.08) !important;
    color: #D52322 !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12) !important;
}

/* Active */
.wp-block-button__link:active,
.wp-element-button:active,
.ast-button:active,
.ast-custom-button:active,
a.button:active {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18) inset !important;
    transform: translateY(0);
}

.wp-block-button__link:active,
.wp-element-button:active,
input[type="submit"]:active,
a.button:active,
.ast-button:active,
.ast-custom-button:active,
button:not(.menu-toggle):not(.ast-mobile-menu-trigger):active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10) inset !important;
}

/* Focus */
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible,
input[type="submit"]:focus-visible,
a.button:focus-visible,
.ast-button:focus-visible,
.ast-custom-button:focus-visible,
button:not(.menu-toggle):not(.ast-mobile-menu-trigger):focus-visible {
    outline: none !important;
    box-shadow:
        0 0 0 3px rgba(213, 35, 34, 0.25),
        0 12px 26px rgba(15, 23, 42, 0.12) !important;
}

/* Buttons with border style (spectra base) */
.wp-block-button__link, .wp-element-button, .ast-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.wp-block-button__link, .wp-element-button {
    background: #ffffff !important;
    color: var(--mt-red) !important;
    border-color: var(--mt-red) !important;
}

.wp-block-button__link:hover, .wp-element-button:hover {
    background: var(--mt-red-glow) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(213, 35, 34, 0.12) !important;
}

/* Hero CTA button */
.hero-cta .wp-block-button__link {
    font-size: 16px !important;
    padding: 14px 30px !important;
}

/* PRIMARY BUTTON */
.mt-btn-primary .wp-block-button__link,
.wp-block-button.mt-btn-primary .wp-block-button__link,
a.mt-btn-primary,
.hero-cta .wp-block-button__link {
    background-color: #B01F1F !important;
    color: #FFFFFF !important;
    border-color: #B01F1F !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.14) !important;
}

.mt-btn-primary .wp-block-button__link:hover,
.wp-block-button.mt-btn-primary .wp-block-button__link:hover,
a.mt-btn-primary:hover,
.hero-cta .wp-block-button__link:hover {
    background-color: #8E1A1A !important;
    border-color: #8E1A1A !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18) !important;
}

/* mt-btn-primary spectra/flat override */
.wp-block-button.mt-btn-primary .wp-block-button__link {
    background-color: #D52322 !important;
    color: #ffffff !important;
    border: 1px solid #D52322 !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

.wp-block-button.mt-btn-primary .wp-block-button__link:hover {
    background-color: #b01b1a !important;
    border-color: #8F1F1F !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(213, 35, 34, 0.2) !important;
}

/* PRIMARY button wrapper */
.mt-btn-primary.wp-block-buttons {
    justify-content: center !important;
    display: flex !important;
}

/* PRIMARY button sizing lock */
.mt-btn-primary .wp-block-button__link {
    width: auto !important;
    min-width: 180px !important;
    text-align: center !important;
    padding: 14px 24px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}

.mt-btn-primary .wp-block-button__link span {
    margin: 0 auto !important;
    display: inline-block !important;
}

/* Paired button system — equal size */
.wp-block-buttons {
    display: flex !important;
    gap: 12px !important;
    align-items: center;
}

.wp-block-button.mt-btn-primary,
.wp-block-button.mt-btn-secondary {
    display: inline-flex !important;
}

.wp-block-button.mt-btn-primary .wp-block-button__link,
.wp-block-button.mt-btn-secondary .wp-block-button__link {
    width: 180px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease !important;
}

.wp-block-button.mt-btn-secondary .wp-block-button__link {
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.wp-block-button.mt-btn-primary .wp-block-button__link:focus-visible,
.wp-block-button.mt-btn-secondary .wp-block-button__link:focus-visible {
    outline: 3px solid rgba(176, 42, 42, 0.25) !important;
    outline-offset: 3px !important;
}

/* SECONDARY button */
.mt-btn-primary .wp-block-button__link,
.hero-cta .wp-block-button__link {
    background: var(--mt-red) !important;
    color: #ffffff !important;
    border-color: var(--mt-red) !important;
}

.mt-btn-primary .wp-block-button__link:hover,
.hero-cta .wp-block-button__link:hover {
    background: var(--mt-red-hover) !important;
    border-color: var(--mt-red-hover) !important;
    box-shadow: 0 12px 30px rgba(213, 35, 34, 0.25) !important;
}

/* OUTLINE button */
.mt-btn-outline .wp-block-button__link {
    background: transparent !important;
    border: 1px solid #D52322 !important;
    color: #D52322 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mt-btn-outline .wp-block-button__link:hover {
    background: #D52322 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(213, 35, 34, 0.15) !important;
    transform: translateY(-2px);
}

/* CTA section button */
.mt-cta-section {
    background-color: #f8fafc !important;
    padding: 100px 20px !important;
    text-align: center !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 80px !important;
}

.mt-cta-section h2 {
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 30px !important;
}

.mt-cta-section .wp-block-button__link {
    background-color: #D52322 !important;
    color: #ffffff !important;
    padding: 18px 45px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    box-shadow: 0 10px 30px rgba(213, 35, 34, 0.2) !important;
    transition: all 0.3s ease !important;
}

.mt-cta-section .wp-block-button__link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(213, 35, 34, 0.3) !important;
    background-color: #b01b1a !important;
}

/* Post grid button override — no transform */
.wp-block-uagb-post-grid .wp-block-button__link,
.wp-block-uagb-post-grid .wp-element-button {
    transform: none !important;
}

/* Topic pill buttons */
.wp-block-button.mt-topic-btn .wp-block-button__link {
    background: #ffffff !important;
    color: #B12A2A !important;
    border: 1px solid rgba(177,42,42,0.28) !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    min-height: 42px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.wp-block-button.mt-topic-btn .wp-block-button__link:hover {
    background: rgba(177,42,42,0.08) !important;
    color: #8F1F1F !important;
    border-color: rgba(177,42,42,0.55) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 18px rgba(15,23,42,0.08) !important;
}


/* =========================================================
   09. CARDS & COMPONENTS
   ========================================================= */

/* ── Event Cards ── */
.mt-event-card {
    position: relative !important;
    background-color: #ffffff !important;
    border-radius: 10px 40px 10px 40px !important;
    text-align: left !important;
    border: 1px solid rgba(213, 35, 34, 0.15) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
    padding: 30px !important;
    height: auto !important;
    display: block !important;
}

.mt-event-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background-color: #D52322 !important;
    opacity: 0 !important;
    transform: scaleX(0) !important;
    transition: all 0.4s ease !important;
    z-index: 10 !important;
}

.mt-event-card h1,
.mt-event-card h2,
.mt-event-card h3,
.mt-event-card h4,
.mt-event-card p,
.mt-event-card .wp-block-button {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.mt-event-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.mt-event-card p {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #475569;
}

.mt-event-card h2,
.mt-event-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #0F172A;
}

.mt-event-card .wp-block-buttons {
    margin-top: 12px;
}

.mt-event-card:hover {
    transform: translateY(-5px) !important;
    border: 1px solid rgba(213, 35, 34, 0.5) !important;
    box-shadow: 0 20px 40px rgba(213, 35, 34, 0.12) !important;
}

.mt-event-card:hover::before {
    opacity: 1 !important;
    transform: scaleX(1) !important;
}

/* Shared card base (event, ib, resource-feature, support) */
.mt-event-card, .mt-ib-card, .mt-resource-feature-card, .mt-support-card {
    background: #ffffff !important;
    border: 1px solid var(--mt-border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: var(--mt-shadow) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    overflow: hidden;
}

.mt-event-card:hover, .mt-ib-card:hover, .mt-support-card:hover {
    transform: translateY(-8px);
    border-color: rgba(213, 35, 34, 0.2) !important;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12) !important;
}

.mt-card-accent::before, .mt-event-card::before {
    content: "";
    position: absolute;
    left: 0; top: 24px; bottom: 24px;
    width: 4px;
    background: var(--mt-red);
    border-radius: 0 4px 4px 0;
    opacity: 0.8;
}

/* ── Marketing Cards ── */
.mt-marketing-card {
    position: relative !important;
    background-color: #ffffff !important;
    border-radius: 10px 40px 10px 40px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 35px !important;
    text-align: left !important;
    overflow: hidden !important;
}

.mt-marketing-card img {
    border-radius: 12px 30px 12px 30px !important;
    transition: transform 0.6s ease !important;
}

.mt-marketing-card:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(213, 35, 34, 0.3) !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08) !important;
}

.mt-marketing-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background-color: #D52322;
    transform: scaleX(0);
    transition: transform 0.4s ease !important;
}

.mt-marketing-card:hover::before {
    transform: scaleX(1);
}

.mt-marketing-card .wp-block-button__link {
    background-color: transparent !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
}

.mt-marketing-card:hover .wp-block-button__link {
    background-color: #D52322 !important;
    color: #ffffff !important;
    border-color: #D52322 !important;
}

/* ── Product Cards ── */
.mt-prod-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 40px 0 40px !important;
    padding: 35px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
}

.mt-prod-card img {
    border-radius: 0 25px 0 25px !important;
    margin-bottom: 25px !important;
    transition: transform 0.6s ease !important;
    width: 100% !important;
    height: auto !important;
}

.mt-prod-card p {
    flex-grow: 1 !important;
    font-size: 0.95rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
}

.mt-prod-card .wp-block-buttons,
.mt-prod-card .wp-block-button {
    margin-top: auto !important;
}

.mt-prod-card:hover {
    transform: translateY(-10px) !important;
    border-color: #D52322 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12) !important;
}

.mt-prod-card:hover img {
    transform: scale(1.03) !important;
}

.mt-prod-card h3 {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 12px !important;
}

/* ── Precision / Application Cards ── */
.mt-precision-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #ffffff !important;
    padding: 25px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px 45px 8px 8px !important;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
}

.mt-precision-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    transform: scale(1.0) !important;
    border-radius: 4px 30px 4px 4px !important;
    margin-bottom: 20px !important;
    transition: transform 0.4s ease !important;
}

.mt-precision-card p {
    flex-grow: 1 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    margin-bottom: 0 !important;
}

.mt-precision-card h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 12px !important;
}

.mt-precision-card:hover {
    transform: translateY(-5px) !important;
    border-color: #D52322 !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08) !important;
}

.mt-precision-card:hover img {
    transform: scale(1.0) !important;
    opacity: 0.95 !important;
}

/* ── IB Cards ── */
.mt-ib-card {
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    height: 100%;
}

.mt-ib-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.10);
    border-color: rgba(176, 42, 42, 0.22);
}

.mt-ib-card h1,
.mt-ib-card h2,
.mt-ib-card h3,
.mt-ib-card h4 {
    margin-bottom: 10px !important;
}

.mt-ib-card p {
    margin-bottom: 0 !important;
}

/* ── Support Cards ── */
.mt-support-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(15,23,42,0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08) !important;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease !important;
}

.mt-support-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 44px rgba(15,23,42,0.14) !important;
    border-color: rgba(15,23,42,0.14) !important;
}

.mt-support-card a {
    text-decoration: none;
}

/* ── Contact Cards ── */
.mt-contact-card {
    background: #ffffff !important;
    padding: 40px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 40px 0 40px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02) !important;
    height: 100% !important;
    justify-content: flex-start;
}

.mt-contact-card .wp-block-image,
.mt-contact-card img {
    width: 50px !important;
    height: auto !important;
    margin: 0 auto 20px auto !important;
    filter: saturate(0) brightness(0.2) !important;
    transition: all 0.4s ease !important;
}

.mt-contact-card h3 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.02em !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
}

.mt-contact-card p {
    font-size: 0.95rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    flex-grow: 1 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

.mt-contact-card a {
    color: #D52322 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-top: 15px !important;
    font-family: monospace;
    letter-spacing: 1px;
}

.mt-contact-card .wp-block-buttons {
    margin-top: auto !important;
}

.mt-contact-card:hover {
    transform: translateY(-8px) !important;
    border-color: #D52322 !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important;
}

.mt-contact-card:hover img {
    filter: saturate(1) brightness(1) !important;
    transform: scale(1.1) !important;
}

/* ── Config Cards ── */
.mt-config-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 40px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.mt-config-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: #D52322 !important;
}

.mt-config-card strong {
    color: #0f172a !important;
    font-size: 1.1rem;
}

.mt-config-card ul {
    margin: 0 !important;
    padding-left: 18px !important;
}

.mt-config-card li {
    margin-bottom: 10px !important;
}

.mt-config-card h3 {
    font-weight: 700;
    margin-bottom: 8px;
}

.mt-config-card p {
    margin-bottom: 12px;
}

/* ── Software Cards ── */
.mt-software-card h2.wp-block-heading {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 2.5rem !important;
}

.mt-software-card .wp-block-column p.wp-block-paragraph:first-of-type {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #c21d24 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.2 !important;
}

.mt-software-card .wp-block-column p.wp-block-paragraph:nth-of-type(2) {
    font-size: 1rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    min-height: 3.5rem !important;
}

.mt-software-card .wp-block-column a.wp-block-paragraph:last-of-type,
.mt-software-card .wp-block-column p.wp-block-paragraph:last-of-type a {
    display: inline-flex !important;
    align-items: center !important;
    background-color: transparent !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 2px !important;
    padding: 8px 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.mt-software-card .wp-block-column a:last-of-type:hover,
.mt-software-card .wp-block-column p.wp-block-paragraph:last-of-type a:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

/* ── Resource Feature Cards ── */
.mt-resource-feature-card {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 40px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease,
                border-color 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-align: left !important;
    position: relative !important;
}

.mt-resource-feature-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background-color: #D52322;
    transform: scaleY(0);
    transition: transform 0.3s ease !important;
}

.mt-resource-feature-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18) !important;
    border-color: #D52322 !important;
    z-index: 10 !important;
    background: #FFFFFF;
}

.mt-resource-feature-card:hover::before {
    transform: scaleY(1);
}

.mt-resource-feature-card p {
    flex-grow: 1 !important;
    color: #64748b !important;
    margin-bottom: 30px !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.mt-resource-feature-card .wp-block-buttons {
    margin-top: auto !important;
}

.mt-resource-feature-card .uagb-buttons-layout-wrap {
    margin-top: auto !important;
    padding-top: 25px !important;
}

.mt-resource-feature-card:hover img,
.mt-resource-feature-card:hover .uagb-ifb-icon {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
}

.mt-resource-feature-card .wp-block-button__link {
    white-space: nowrap;
    padding: 11px 18px !important;
}

/* ── Spec Cards ── */
.mt-specs-card li {
    display: grid;
    grid-template-columns: 160px 1fr;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--mt-border);
    font-size: 14px;
}

.mt-specs-card li strong {
    color: var(--mt-ink);
    font-weight: 700;
}

.wp-block-group.mt-specs-card .wp-block-columns {
    gap: 24px !important;
}

.wp-block-group.mt-specs-card ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.wp-block-group.mt-specs-card li strong {
    font-weight: 700 !important;
    color: #0F172A !important;
}

.wp-block-group.mt-specs-card li {
    color: rgba(15, 23, 42, 0.75) !important;
}

.wp-block-group.mt-specs-card ul li:last-child {
    border-bottom: 0 !important;
}

/* Spec card red accent line — single source of truth */
.mt-specs-accent::before,
.mt-card-accent::before {
    content: none !important;
}

.wp-block-group.mt-card.mt-specs-card::before {
    content: "" !important;
    position: absolute !important;
    left: 28px !important;
    top: 36px !important;
    bottom: 36px !important;
    width: 4px !important;
    border-radius: 4px !important;
    background: #D52322 !important;
    z-index: 1 !important;
}

.wp-block-group.mt-card.mt-specs-card {
    padding-left: 60px !important;
    border-left: none !important;
}

.wp-block-group.mt-card.mt-card-accent::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 3px;
    background: rgba(176, 42, 42, 0.22);
}

.mt-specs-accent {
    border-left: none !important;
}

/* Section card */
.mt-section-card {
    background-color: #f8fafc !important;
    border-radius: 12px !important;
    padding: 50px !important;
    border-left: 4px solid #D52322 !important;
    margin-bottom: 40px !important;
}

.mt-section-card h2 {
    margin-top: 0 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

/* Post grid card */
.wp-block-uagb-post-grid .uagb-post__inner-wrap {
    border-radius: 12px !important;
    overflow: hidden !important;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    background: #FFFFFF !important;
    transform: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
    box-shadow: 0 8px 24px rgba(15,23,42,0.10) !important;
    border: 1px solid rgba(15,23,42,0.08) !important;
}

.wp-block-uagb-post-grid .uagb-post__inner-wrap:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(15,23,42,0.12) !important;
    border-color: rgba(15,23,42,0.12) !important;
}

.wp-block-uagb-post-grid .uagb-post__image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0 !important;
    transition: none !important;
}

/* Announcement ribbon */
.mt-event-ribbon {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    width: 90% !important;
    transition: all 0.5s ease !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1) !important;
    border-left: 6px solid #D52322 !important;
    margin-top: -60px !important;
    position: relative;
    z-index: 100;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin: -60px auto 60px auto !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    padding: 25px 60px !important;
    min-height: 220px !important;
    display: flex !important;
    align-items: center !important;
}

.mt-event-ribbon:hover {
    transform: translateY(-5px) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 30px 60px rgba(213, 35, 34, 0.1) !important;
}

.mt-event-ribbon h3 {
    letter-spacing: -0.02em !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 5px !important;
}

.mt-event-ribbon .wp-block-button__link {
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px !important;
}

.mt-event-ribbon .wp-block-buttons {
    margin-top: 25px !important;
    justify-content: flex-start !important;
}

.mt-event-ribbon p:first-child {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #94a3b8 !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}

.mt-event-ribbon p:last-of-type {
    font-size: 1.1rem !important;
    color: #475569 !important;
    font-weight: 500 !important;
    margin-bottom: 25px !important;
}

.mt-event-ribbon .wp-block-column:last-child {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.mt-event-ribbon .wp-block-column:last-child img {
    max-height: 300px !important;
    width: auto !important;
    margin: 0 !important;
    transform: scale(1.1) translateX(10px);
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.2)) !important;
    z-index: 10;
}

.mt-event-ribbon:hover .wp-block-column:last-child img {
    transform: scale(1.15) translateX(15px) translateY(-5px);
}

/* Product exhibit section */
.mt-product-pop img, .mt-product-img {
    border-radius: 12px 60px 12px 60px !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(15, 23, 42, 0.05) !important;
    background-color: #ffffff !important;
}

.mt-product-pop:hover img, .mt-product-img:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow:
        0 40px 80px rgba(213, 35, 34, 0.12),
        0 0 0 1px rgba(213, 35, 34, 0.2) !important;
}

.mt-product-pop h2, .mt-product-pop h3 {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
    margin-bottom: 20px !important;
    position: relative;
    display: inline-block;
}

.mt-product-pop h2::after, .mt-product-pop h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #D52322;
    border-radius: 2px;
}

.mt-product-pop p {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
    max-width: 600px;
}

/* Info block */
.mt-info-block {
    flex: 1;
    border-left: 3px solid #D52322;
    padding-left: 25px;
}

.mt-info-label {
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 1.5px !important;
    color: #94a3b8 !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
}

.mt-info-detail {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #0f172a !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.mt-info-detail a {
    color: #D52322 !important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.mt-info-detail a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.mt-info-section {
    max-width: 900px !important;
    margin: 60px auto 0 auto !important;
    background-color: #f8fafc;
    padding: 40px 50px 60px 50px !important;
    border-radius: 12px 12px 0 0;
    display: flex;
    gap: 80px;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

/* Contact topic row */
.mt-contact-topic-row {
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 18px !important;
}

/* Map container */
.mt-map-container {
    max-width: 900px !important;
    margin: 0 auto 60px auto !important;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-top: none;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

.mt-map-container:hover {
    filter: grayscale(0%) contrast(1);
}

/* Resource section */
.mt-resources-grid {
    align-items: stretch;
}

.mt-resource-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mt-resource-card:hover {
    transform: translateY(-4px);
}

.mt-resource-feature-row {
    margin-top: 0;
    margin-bottom: 56px;
}

.mt-resource-feature-card * {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.mt-resource-feature-card p,
.mt-resource-feature-title {
    max-width: 100%;
}

.mt-resource-feature-wrap {
    width: 100%;
    box-sizing: border-box;
}

.mt-resource-feature-wrap > .uagb-container-inner-blocks-wrap,
.mt-resource-feature-wrap > .wp-block-group__inner-container,
.mt-resource-feature-wrap > .wp-block-columns {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Resource section spacing */
.mt-resource-section.mt-soft-section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
}

/* Product page section card */
.mt-product-page .mt-section-card {
    background: #F4F6FA;
    padding: 48px 48px;
    margin-bottom: 56px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.mt-product-page .mt-section-card h2 {
    margin-bottom: 24px;
}

.mt-product-page .mt-section-card ul {
    margin-top: 8px;
    line-height: 1.7;
}

/* Featured event */
.mt-featured-event {
    padding: 32px 36px !important;
}

.mt-poster-section {
    margin-bottom: 44px !important;
}

.mt-events-heading {
    margin-top: 0 !important;
}

.mt-form-section {
    margin-top: 56px !important;
    padding-top: 36px !important;
}

.mt-events-list,
.mt-upcoming-events {
    margin-top: 8px !important;
}

/* Poster placeholder */
.mt-poster-placeholder {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.mt-poster-placeholder:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 40px rgba(15,23,42,0.10),
        0 6px 14px rgba(15,23,42,0.06);
}

.mt-poster-placeholder img {
    max-height: 520px;
    object-fit: contain;
}

/* Poster caption */
.mt-poster-caption {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    font-size: 13px !important;
    color: #64748B !important;
    text-align: center !important;
}

.mt-poster-eyebrow {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    color: #B12A2A !important;
    margin-bottom: 10px !important;
}

.mt-poster-section h2 {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

.mt-poster-section p {
    color: #475569 !important;
    line-height: 1.65 !important;
}

/* Wp-block-post (read more) */
.wp-block-post-template .wp-block-read-more svg,
.wp-block-post-template .wp-block-read-more svg path {
    display: none !important;
}

.wp-block-post-template .wp-block-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    color: #D52322 !important;
    text-decoration: none !important;
    padding: 8px 14px !important;
    margin-top: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.12),
        0 2px 6px rgba(15, 23, 42, 0.06);
    transition:
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 140ms ease;
}

.wp-block-post-template .wp-block-read-more:hover,
.wp-block-post-template .wp-block-read-more:focus-visible {
    background: rgba(213, 35, 34, 0.08) !important;
    color: #B91C1C !important;
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.16),
        0 4px 10px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.wp-block-post-template .wp-block-read-more:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14) inset;
}

/* PDF chip */
.mt-pdf-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: #ffffff;
    color: #b21f1f;
    border: 1px solid rgba(178,31,31,0.25);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.08);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    line-height: 1;
}

.mt-pdf-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16), 0 6px 14px rgba(15, 23, 42, 0.10);
    border-color: rgba(178,31,31,0.40);
}

.mt-posters-loop .mt-pdf-chip {
    position: static !important;
    align-self: flex-start !important;
    margin-top: 12px !important;
    display: inline-flex !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #D52322 !important;
    border: 1px solid rgba(213,35,34,0.25) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.08) !important;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease !important;
}

.mt-posters-loop .mt-pdf-chip:hover {
    background: rgba(213,35,34,0.08) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16), 0 6px 14px rgba(15, 23, 42, 0.10) !important;
}

/* Spacer */
@media (max-width: 768px) {
    .wp-block-spacer {
        height: 32px !important;
    }
}

/* ============================================================
   1. SECTION HEADER (Matching the Masstech Precision Style)
   ============================================================ */
.mt-events-section h2 {
    text-align: center !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #0f172a !important;
    margin-bottom: 50px !important;
    text-transform: none !important;
}

/* ============================================================
   2. THE PREMIUM CARD DESIGN
   ============================================================ */
.mt-events-grid {
    display: flex !important;
    gap: 32px !important;
    padding-bottom: 60px !important;
}

.mt-event-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Subtle gray border */
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01) !important;
}

/* Precision Hover State */
.mt-event-card:hover {
    transform: translateY(-10px) !important;
    border-color: #c21d24 !important; /* Branded Red Edge on hover */
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1) !important;
}

/* ============================================================
   3. CONTENT HIERARCHY (Clean & Minimalist)
   ============================================================ */

/* Date & Location (Scientific Meta Data) */
.mt-event-meta {
    padding: 24px 24px 0 24px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.mt-event-card h3 {
    padding: 12px 24px 12px 24px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.mt-event-card p {
    padding: 0 24px 24px 24px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    flex-grow: 1 !important;
}

/* ============================================================
   4. THE "REQUEST" BUTTON (Primary Brand Action)
   ============================================================ */
.mt-event-button {
    margin: 0 24px 24px 24px !important;
    background: #c21d24 !important; /* Masstech Red */
    color: #ffffff !important;
    text-align: center !important;
    padding: 14px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    letter-spacing: 0.02em !important;
    transition: background 0.3s ease !important;
}

.mt-event-button:hover {
    background: #a8191f !important; /* Slightly deeper red */
}

/* Mobile Fix */
@media (max-width: 768px) {
    .mt-events-grid {
        flex-direction: column !important;
    }
}

/* =========================================================
   10. PAGE TITLE HEADERS (per-page surgical headers)
   ========================================================= */

/* Shared base for all surgical page headers */
.mt-contact-page-title,
.mt-app-page-title,
.mt-prod-page-title,
.mt-about-page-title,
.mt-mte-page-title,
.mt-apm-page-title {
    display: block !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 25px !important;
    position: relative !important;
    line-height: 1.1 !important;
    padding-left: 0;
}

/* All ::before tags */
.mt-contact-page-title::before,
.mt-app-page-title::before,
.mt-prod-page-title::before,
.mt-about-page-title::before,
.mt-mte-page-title::before,
.mt-apm-page-title::before {
    display: block;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: #D52322;
    margin-bottom: 20px !important;
    font-weight: 700;
}

/* Individual content tags */
.mt-contact-page-title::before { content: "SERVICE // CONNECT" !important; }
.mt-app-page-title::before     { content: "DISCOVERY // TRANSLATION" !important; }
.mt-prod-page-title::before    { content: "SYSTEMS // INSTRUMENTATION" !important; }
.mt-about-page-title::before   { content: "HERITAGE // INNOVATION" !important; }
.mt-mte-page-title::before     { content: "INSTRUMENTATION // PORTABLE MS" !important; }
.mt-apm-page-title::before     { content: "INSTRUMENTATION // ION SOURCES" !important; }

/* All ::after underlines */
.mt-contact-page-title::after,
.mt-app-page-title::after,
.mt-prod-page-title::after,
.mt-about-page-title::after,
.mt-mte-page-title::after,
.mt-apm-page-title::after {
    content: "" !important;
    display: block;
    width: 60px;
    height: 4px;
    background-color: #D52322;
    margin-top: 20px !important;
    border-radius: 2px;
}

/* Resources page title */
.mt-page-title {
    display: block !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 70px !important;
    margin-top: 0 !important;
    position: relative !important;
    line-height: 1.1 !important;
    padding-left: 20px;
}

.mt-page-title::before {
    content: "SUPPORT // KNOWLEDGE BASE" !important;
    display: block;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: #D52322;
    margin-bottom: 20px !important;
    font-weight: 700;
}

.mt-page-title::after {
    content: "" !important;
    display: block;
    width: 60px;
    height: 3px;
    background-color: #D52322;
    margin-top: 20px !important;
    border-radius: 2px;
}

/* Contact page title subtitle */
.mt-contact-page-title::after {
    content: "" !important;
    display: block;
    width: 60px;
    height: 4px;
    background-color: #D52322;
    margin-top: 20px !important;
    border-radius: 2px;
}

/* Apply to the heading with class: mt-premium-title */
.mt-premium-title {
    text-align: center !important;
    margin: 60px auto 40px auto !important;
    font-size: 34px !important;
    font-weight: 300 !important; /* Makes the lead-in sophisticated */
    color: #0f172a !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

/* This targets the text you Bold in the WordPress editor */
.mt-premium-title strong, 
.mt-premium-title b {
    font-weight: 800 !important; /* Heavy weight for the brand statement */
    color: #0f172a !important;
    position: relative;
    display: inline-block;
}

/* The "Scientific Lead" Accent */
.mt-premium-title strong::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #c21d24; /* Masstech Red */
    opacity: 0.9;
    border-radius: 2px;
}
/* =========================================================
   11. PUBLICATIONS & POSTERS LOOPS
   ========================================================= */

.mt-publications-loop {
    max-width: 920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.mt-publications-loop .wp-block-post-template {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mt-publications-loop .wp-block-post {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: static !important;
}

.mt-publications-loop .wp-block-post::before,
.mt-publications-loop .wp-block-post::after {
    content: none !important;
    display: none !important;
}

.mt-publications-loop .wp-block-post > .wp-block-group {
    position: relative !important;
    padding: 14px 20px 14px 22px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(15,23,42,0.06) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 14px rgba(15,23,42,0.04) !important;
    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease !important;
}

.mt-publications-loop .wp-block-post > .wp-block-group:hover {
    background: #FBFCFD !important;
    border-color: rgba(15,23,42,0.08) !important;
    box-shadow: 0 8px 20px rgba(15,23,42,0.06) !important;
    transform: translateY(-1px) !important;
}

.mt-publications-loop .wp-block-post > .wp-block-group::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 12px !important;
    bottom: 12px !important;
    width: 3px !important;
    border-radius: 3px !important;
    background: rgba(213,35,34,0.72) !important;
}

.mt-publications-loop .wp-block-post > .wp-block-group:hover {
    background: #F8FAFC !important;
    border-color: rgba(15,23,42,0.10) !important;
    box-shadow: 0 10px 26px rgba(15,23,42,0.07) !important;
}

.mt-publications-loop .wp-block-post-date {
    display: block !important;
    margin: 0 0 6px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    color: #94A3B8 !important;
    letter-spacing: 0.01em !important;
}

.mt-publications-loop .wp-block-post-title {
    margin: 0 0 6px 0 !important;
    line-height: 1.25 !important;
}

.mt-publications-loop .wp-block-post-title a {
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    text-decoration: none !important;
    letter-spacing: -0.01em !important;
    transition: color 140ms ease !important;
}

.mt-publications-loop .wp-block-post-title a:hover {
    color: #B12A2A !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.mt-publications-loop .wp-block-post-excerpt,
.mt-publications-loop .wp-block-post-excerpt__excerpt {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #64748B !important;
}

.mt-publications-loop .wp-block-read-more,
.mt-publications-loop .wp-block-post-excerpt__more-link,
.mt-publications-loop .wp-block-post-excerpt__more-link {
    display: none !important;
}

/* Publications preview/archive variants */
.mt-publications-loop.mt-publications-preview .wp-block-post-template > * {
    padding: 18px 24px !important;
    margin-bottom: 16px !important;
}

.mt-publications-loop.mt-publications-archive .wp-block-post-template > * {
    padding: 14px 20px !important;
    margin-bottom: 12px !important;
}

.mt-publications-loop.mt-publications-archive .wp-block-post-title a {
    font-size: 17px !important;
}

.mt-publications-loop .wp-block-post-template > * {
    position: relative !important;
    padding-left: 26px !important;
}

.mt-publications-loop .wp-block-post-template > *::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 14px !important;
    width: 4px !important;
    border-radius: 2px !important;
    background: var(--mt-red) !important;
    opacity: 0.85 !important;
}

/* Publications read more */
.mt-publications-loop .wp-block-read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: absolute !important;
    bottom: -16px !important;
    left: 14px !important;
    padding: 10px 12px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    box-shadow:
        0 16px 38px rgba(15,23,42,0.16),
        0 6px 16px rgba(15,23,42,0.10) !important;
    border: 0 !important;
}

.mt-publications-loop .wp-block-read-more:hover {
    background: rgba(213,35,34,0.08) !important;
    color: #D52322 !important;
}

/* PDF title indicator */
.mt-publications-loop .mt-pdf-title a {
    position: relative !important;
    padding-right: 22px !important;
}

.mt-publications-loop .mt-pdf-title a::after {
    content: "" !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    margin-left: 6px !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
    background-position: center !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D52322' d='M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8zm0 2.5L18.5 9H14z'/%3E%3C/svg%3E");
    opacity: 0.85 !important;
    transform: translateY(1px) !important;
}

.mt-publications-loop .mt-pdf-title a:hover::after {
    opacity: 1 !important;
}

/* Posters loop */
.mt-posters-loop {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.mt-posters-loop .wp-block-post-template > *::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 14px !important;
    bottom: 14px !important;
    width: 4px !important;
    border-radius: 2px !important;
    background: var(--mt-red) !important;
    opacity: 0.85 !important;
}

.mt-posters-loop .wp-block-post-template > *:hover {
    transform: translateY(-2px) !important;
    background: #F8FAFC !important;
    border-color: rgba(15,23,42,0.10) !important;
    box-shadow: 0 14px 32px rgba(15,23,42,0.10) !important;
}

.mt-posters-loop .wp-block-post-title {
    margin: 0 0 6px 0 !important;
    line-height: 1.35 !important;
}

.mt-posters-loop .wp-block-post-title a {
    color: #0F172A !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    letter-spacing: -0.01em !important;
}

.mt-posters-loop .wp-block-post-title a:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.mt-posters-loop .wp-block-post-excerpt,
.mt-posters-loop .wp-block-post-excerpt__excerpt {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.mt-posters-loop .wp-block-post-date {
    display: none !important;
}

.mt-posters-loop .wp-block-post-excerpt__more-link,
.mt-posters-loop .wp-block-read-more {
    display: none !important;
}

.mt-posters-loop.mt-posters-preview .wp-block-post-template > * {
    padding: 20px 24px 20px 28px !important;
}

.mt-posters-loop .wp-block-post-template > * {
    display: flex !important;
    flex-direction: column !important;
}

.mt-posters-loop .wp-block-post-excerpt {
    display: flex !important;
    flex-direction: column !important;
}

/* Posters PDF link */
.mt-posters-loop .mt-pdf-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    padding: 10px 12px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    color: #D52322 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.01em !important;
    box-shadow:
        0 16px 38px rgba(15,23,42,0.16),
        0 6px 16px rgba(15,23,42,0.10) !important;
    border: 0 !important;
}

.mt-posters-loop .mt-pdf-link::before {
    content: "" !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23D52322' d='M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8zm0 2.5L18.5 9H14z'/%3E%3Cpath fill='%23D52322' d='M8 13h2.3c1.1 0 1.9.7 1.9 1.8S11.4 16.6 10.3 16.6H9.3V19H8zm2.2 2.7c.5 0 .8-.3.8-.8s-.3-.8-.8-.8H9.3v1.6zM13 13h2c1.7 0 2.9 1.1 2.9 3s-1.2 3-2.9 3h-2zm2 4.8c1 0 1.6-.7 1.6-1.8s-.6-1.8-1.6-1.8h-.7v3.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-size: 18px 18px !important;
    background-position: center !important;
}

.mt-posters-loop .mt-pdf-link:hover {
    background: rgba(213,35,34,0.10) !important;
}

/* Doc list */
.mt-doc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mt-doc-list li {
    position: relative !important;
    padding: 14px 18px 14px 28px !important;
}

.mt-doc-list li::before {
    left: 10px !important;
    top: 12px !important;
    bottom: 12px !important;
    width: 4px !important;
    content: "";
    position: absolute;
    border-radius: 4px;
    background: #B12A2A;
}

.mt-doc-list a {
    display: block !important;
    padding-right: 0 !important;
    overflow-wrap: anywhere;
}

.mt-doc-list--pdf li {
    padding-left: 28px !important;
}

.mt-doc-list--pdf li a,
.mt-doc-list--pdf li strong a {
    font-weight: 500;
    font-size: 17px;
    line-height: 1.45;
    text-decoration: none;
    color: #1f2a33;
    letter-spacing: 0.15px;
}

.mt-doc-list--pdf li strong {
    font-weight: 500;
}

.mt-doc-list--pdf li a:hover {
    text-decoration: underline;
}

.mt-doc-list--pdf a::after {
    float: right;
    margin-left: 12px;
}

.mt-doc-list li:hover a {
    color: #B12A2A;
}

.mt-specs-accent::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 40px;
    bottom: 40px;
    width: 4px;
    border-radius: 4px;
    background: #B12A2A;
}


/* =========================================================
   12. VIDEO GALLERY (vgbVideoGallery)
   ========================================================= */

/* Hide plugin UI chrome */
.vgb_album_title_container,
.vgb-filter-container,
.vgbVideoGallery .filter {
    display: none !important;
}

/* ASMS gallery heading */
.mt-asms-gallery-section h2 {
    border-left: 5px solid #c21d24 !important;
    padding-left: 20px !important;
    margin-bottom: 32px !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
}

/* Stable grid */
.vgbVideoGallery,
.vgbVideoGallery .videoGallery,
.vgbVideoGallery .vgb_item_container {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 28px !important;
    height: auto !important;
    width: 100% !important;
    position: relative !important;
    padding-bottom: 40px !important;
}

/* Fix for canvas background */
.vgbVideoGallery .video-gallery-wrapper {
    height: auto !important;
}

/* Gallery cards */
.vgbVideoGallery .videoGallery > a.galleryItem,
.vgbVideoGallery .vgb_item_container > a.galleryItem {
    flex: 0 0 calc(33.333% - 19px) !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.vgbVideoGallery .videoGallery > a.galleryItem {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: var(--mt-shadow) !important;
    border: 1px solid var(--mt-border) !important;
}

.vgbVideoGallery .videoGallery > a.galleryItem:hover {
    transform: translateY(-8px) !important;
    border-color: #c21d24 !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1) !important;
}

/* 16:9 figure */
.vgbVideoGallery a.galleryItem figure {
    width: 100% !important;
    padding-top: 56.25% !important;
    height: 0 !important;
    position: relative !important;
    margin: 0 !important;
    background: #000 !important;
    overflow: hidden !important;
}

.vgbVideoGallery a.galleryItem img {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

.vgbVideoGallery a.galleryItem:hover img {
    transform: scale(1.05) !important;
}

/* Smoked play button */
.vgbVideoGallery a.galleryItem figure::after {
    content: "▶" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 62px !important;
    height: 62px !important;
    line-height: 62px !important;
    text-align: center !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-size: 22px !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
}

.vgbVideoGallery a.galleryItem:hover figure::after {
    background: #c21d24 !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Gallery typography */
.vgbVideoGallery a.galleryItem h3 {
    padding: 24px 24px 10px 24px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.vgbVideoGallery a.galleryItem p {
    padding: 0 24px 24px 24px !important;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}


/* =========================================================
   13. VIDEO FEATURE BLOCK (.mt-video-feature)
   ========================================================= */

.mt-video-feature .wp-block-heading,
.mt-video-feature p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mt-video-feature p:first-of-type {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 10px;
}

.mt-video-feature .wp-block-video,
.mt-video-feature figure.wp-block-video,
.mt-video-feature .wp-block-embed {
    margin-top: 18px;
}

.mt-video-feature,
.mt-video-feature > .wp-block-group__inner-container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.mt-video-feature > .wp-block-group__inner-container > .wp-block-heading,
.mt-video-feature > .wp-block-group__inner-container > p {
    padding-left: 32px;
    padding-right: 32px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.entry-content .wp-block-group.mt-video-feature figure.wp-block-video {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    box-shadow:
        0 28px 70px rgba(15,23,42,0.18),
        0 12px 28px rgba(15,23,42,0.10) !important;
    transform: translateY(0) scale(1);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.mt-video-feature figure.wp-block-video {
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(15,23,42,0.2) !important;
    overflow: hidden;
}

.entry-content .wp-block-group.mt-video-feature figure.wp-block-video::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    border-radius: inherit !important;
    background:
        radial-gradient(120% 90% at 50% 30%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.28) 70%, rgba(0,0,0,0.34) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.18), rgba(0,0,0,0.18)) !important;
    opacity: 1 !important;
    transition: opacity 220ms ease;
}

.entry-content .wp-block-group.mt-video-feature figure.wp-block-video:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow:
        0 42px 90px rgba(15,23,42,0.28),
        0 16px 34px rgba(15,23,42,0.16) !important;
    filter: brightness(1.04) contrast(1.02) saturate(1.06);
}

.entry-content .wp-block-group.mt-video-feature figure.wp-block-video:hover::after {
    opacity: 0.85 !important;
}

.entry-content .wp-block-group.mt-video-feature figure.wp-block-video::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    border-radius: inherit !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
    transition: box-shadow 220ms ease;
}

.entry-content .wp-block-group.mt-video-feature figure.wp-block-video:hover::before {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.22),
        0 0 0 1px rgba(213,35,34,0.16);
}

.mt-video-feature video,
.mt-video-feature iframe {
    display: block !important;
    width: 100% !important;
    border-radius: inherit !important;
}

/* Sliderberg hero slides */
[class*="sliderberg-slide"] {
    height: 55vh !important;
    min-height: 55vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

[class*="sliderberg-slide-content"] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 96px !important;
    padding-right: 96px !important;
    box-sizing: border-box !important;
}

[class*="sliderberg-slide-content"] h1 {
    margin-top: 0 !important;
    text-align: left !important;
}

[class*="sliderberg-slide-content"] p {
    text-align: left !important;
}

.mt-home-hero .swiper-slide-active img {
    animation: slowZoom 8s ease-out forwards;
}

.mt-home-hero .swiper-effect-fade .swiper-slide {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}


/* =========================================================
   14. FORMS
   ========================================================= */

/* Search and filter */
.searchandfilter {
    max-width: 920px;
    margin: 0 auto 18px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.searchandfilter * {
    border-radius: 10px !important;
}

.searchandfilter input[type="text"],
.searchandfilter select {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid rgba(15,23,42,0.15) !important;
    padding: 10px 12px !important;
    height: 44px !important;
    min-width: 220px;
}

.searchandfilter input[type="submit"] {
    background: #FFFFFF !important;
    color: #D52322 !important;
    border: 1px solid #D52322 !important;
}

.searchandfilter input[type="submit"]:hover {
    background-color: rgba(213,35,34,0.06) !important;
}

/* Events form wrap */
.mt-events-form-wrap {
    max-width: 860px !important;
    margin: 40px auto 56px auto !important;
    padding: 26px 32px !important;
    background: #F8FAFC !important;
    border-radius: 24px !important;
    box-shadow:
        0 14px 34px rgba(15,23,42,0.05),
        0 4px 10px rgba(15,23,42,0.04) !important;
}

.mt-events-form-wrap h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.mt-events-form-wrap > p {
    margin-bottom: 24px !important;
    color: #475569 !important;
    line-height: 1.65 !important;
}

.mt-events-form {
    max-width: 100% !important;
    margin: 0 auto !important;
}

.mt-events-form .wpforms-field {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

.mt-events-form label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    margin-bottom: 6px !important;
}

.mt-events-form input[type="text"],
.mt-events-form input[type="email"],
.mt-events-form input[type="tel"],
.mt-events-form input[type="number"],
.mt-events-form textarea,
.mt-events-form select {
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(15,23,42,0.12) !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease !important;
}

.mt-events-form input[type="text"]:focus,
.mt-events-form input[type="email"]:focus,
.mt-events-form input[type="tel"]:focus,
.mt-events-form input[type="number"]:focus,
.mt-events-form textarea:focus,
.mt-events-form select:focus {
    outline: none !important;
    border-color: #D52322 !important;
    box-shadow: 0 0 0 3px rgba(213,35,34,0.10) !important;
}

.mt-events-form input::placeholder,
.mt-events-form textarea::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

.mt-events-form .wpforms-field-name .wpforms-field-row {
    display: flex !important;
    gap: 16px !important;
}

.mt-events-form .wpforms-field-name .wpforms-field-row > div {
    width: 100% !important;
}

.mt-events-form .wpforms-field-sublabel {
    font-size: 11px !important;
    color: #94A3B8 !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
}

.mt-events-form .wpforms-layout-column .wpforms-field {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 16px !important;
}

.mt-events-form .wpforms-field-row {
    display: flex !important;
    gap: 16px !important;
}

.mt-events-form .wpforms-field-row .wpforms-field {
    flex: 1 1 0 !important;
    margin-bottom: 0 !important;
}

.mt-events-form .wpforms-field-checkbox ul {
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
}

.mt-events-form .wpforms-field-checkbox li {
    list-style: none !important;
    margin-bottom: 8px !important;
}

.mt-events-form .wpforms-field-checkbox input {
    accent-color: #D52322 !important;
    margin-right: 10px !important;
}

.mt-events-form .wpforms-field-checkbox label {
    font-weight: 500 !important;
    color: #334155 !important;
}

.mt-events-form textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

.mt-events-form .wpforms-submit-container {
    margin-top: 18px !important;
}

.mt-events-form .wpforms-submit {
    background: #D52322 !important;
    color: #FFFFFF !important;
    border: 1px solid #D52322 !important;
    border-radius: 12px !important;
    min-height: 46px !important;
    padding: 12px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-shadow: 0 12px 24px rgba(213, 35, 34, 0.18) !important;
    transition:
        transform 160ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease !important;
}

.mt-events-form .wpforms-submit:hover {
    background: #B11E1E !important;
    border-color: #B11E1E !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 16px 30px rgba(213, 35, 34, 0.24) !important;
}

.mt-events-form .wpforms-submit:focus-visible {
    outline: none !important;
    box-shadow:
        0 0 0 3px rgba(213, 35, 34, 0.20),
        0 16px 30px rgba(213, 35, 34, 0.24) !important;
}

.mt-events-form .wpforms-error {
    font-size: 12px !important;
    color: #B12A2A !important;
}

.mt-events-form input[type="number"]::-webkit-outer-spin-button,
.mt-events-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mt-events-form input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.mt-events-form .wpforms-layout-row {
    display: flex !important;
    gap: 16px !important;
}

.mt-events-form .wpforms-layout-column {
    flex: 1 1 0 !important;
}

/* WPForms name field row */
.wpforms-field-name .wpforms-field-row-block label {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.75;
}

.wpforms-field-select {
    margin-top: 10px;
    margin-bottom: 6px;
}

.wpforms-field-textarea textarea {
    min-height: 140px;
}

/* WPForms confirmation */
div.wpforms-container-full .wpforms-confirmation-container-full p {
    color: #D52322 !important;
    font-weight: 500;
    font-size: 16px;
}

div.wpforms-container-full .wpforms-confirmation-container-full:before {
    content: "✓";
    color: #D52322;
    font-weight: 700;
    font-size: 20px;
    margin-right: 8px;
}

div.wpforms-container-full .wpforms-confirmation-container-full {
    background: #ffffff !important;
    border-left: 6px solid #D52322 !important;
    border-radius: 12px !important;
    padding: 24px 28px !important;
    margin-top: 20px !important;
    box-shadow:
        0 28px 70px rgba(15,23,42,0.12),
        0 12px 28px rgba(15,23,42,0.08) !important;
}

/* Nuclear WPForms submit override */
div.wpforms-container .wpforms-form .wpforms-submit-container button.wpforms-submit.mt-btn-primary,
div.wpforms-container .wpforms-form .wpforms-submit-container .mt-btn-primary {
    background-color: #D52322 !important;
    background: #D52322 !important;
    color: #ffffff !important;
    border: 1px solid #D52322 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(213, 35, 34, 0.2) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

div.wpforms-container .wpforms-form .wpforms-submit-container button.wpforms-submit.mt-btn-primary:hover {
    background-color: #b01b1a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(213, 35, 34, 0.3) !important;
}

div.wpforms-container-full.mt-events-form .wpforms-form button[type=submit].wpforms-submit.mt-btn-primary {
    --wpforms-button-background-color: #D52322 !important;
    --wpforms-button-background-color-alt: #B11E1E !important;
    background-color: #D52322 !important;
    background: #D52322 !important;
    color: #ffffff !important;
    border: 1px solid #D52322 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 24px rgba(213, 35, 34, 0.18) !important;
    transition: all 180ms ease !important;
}

div.wpforms-container-full.mt-events-form .wpforms-form button[type=submit].wpforms-submit.mt-btn-primary:hover {
    background-color: #B11E1E !important;
    background: #B11E1E !important;
    border-color: #B11E1E !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 16px 30px rgba(213, 35, 34, 0.24) !important;
}


/* Spectra Contact Tabs */
.mt-tabs-hub .uagb-tabs__panel {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

.mt-tabs-hub .uagb-tab a {
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 11px !important;
    color: #64748b !important;
    padding: 15px 25px !important;
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.mt-tabs-hub li.uagb-tabs__active a {
    color: #0f172a !important;
    position: relative !important;
}

.mt-tabs-hub li.uagb-tabs__active a::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #D52322 !important;
    border-radius: 2px 2px 0 0;
}

.mt-tabs-hub .uagb-tabs__body-wrap {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    padding: 60px 40px !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04) !important;
}

.mt-tabs-hub .uagb-tab div,
.mt-tabs-hub .uagb-tab {
    background: transparent !important;
    border: none !important;
}

.mt-tabs-hub .uagb-tabs__body-wrap .wp-block-custom-html {
    width: 100% !important;
    max-width: 100% !important;
}

.mt-tabs-hub iframe {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    min-height: 1200px !important;
}

.mt-tabs-hub .uagb-tabs__body-wrap .wp-block-columns {
    align-items: flex-start !important;
    gap: 40px !important;
}

.mt-zoho-form-container .g-recaptcha,
.mt-zoho-form-container .cf-turnstile {
    transform: scale(0.9);
    transform-origin: 0 0;
    margin-top: 20px;
}


/* =========================================================
   15. FOOTER
   ========================================================= */

.site-footer,
.site-primary-footer-wrap {
    background-color: #F8FAFC;
    border-top: 1px solid #E5E7EB;
}

.site-footer {
    padding-top: 100px !important;
    background-color: #ffffff !important;
}

.site-footer .contact-info p {
    margin-bottom: 6px;
}

.site-footer .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
    display: block !important;
    background: #ffffff !important;
    padding: 80px 20px !important;
}

.site-footer .site-primary-footer-wrap {
    background:
        radial-gradient(900px 260px at 20% 0%, rgba(213,35,34,0.06), transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, var(--mt-bg) 100%);
    border-top: 1px solid var(--mt-border-soft);
}

.site-footer .site-primary-footer-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--mt-red),
        rgba(213,35,34,0.3),
        transparent 80%
    );
}

.site-footer .ast-builder-grid-row {
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 32px 56px;
    gap: 48px;
}

.site-footer .ast-builder-grid-row-container .ast-builder-grid-row > div {
    flex: 1 !important;
    min-width: 250px !important;
}

.site-footer .widget {
    margin: 0 !important;
}

.site-footer .widget *:last-child {
    margin-bottom: 0 !important;
}

.site-footer .site-primary-footer-wrap .ast-builder-grid-row {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 32px;
    column-gap: 72px;
}

.site-footer .site-primary-footer-wrap .widget-title,
.site-footer .site-primary-footer-wrap h2,
.site-footer .site-primary-footer-wrap h3 {
    color: var(--mt-ink);
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin: 0 0 14px 0 !important;
}

.site-footer .site-primary-footer-wrap p {
    margin: 0 0 10px 0 !important;
    color: var(--mt-muted);
}

.site-footer .site-primary-footer-wrap .ast-footer-html:first-child,
.site-footer .site-primary-footer-wrap .widget:first-child {
    border-left: none;
    padding-left: 0;
}

.site-footer .site-primary-footer-wrap a {
    color: var(--mt-slate);
    text-decoration: none;
    transition: color 140ms ease, transform 140ms ease, background 140ms ease;
}

.site-footer .site-primary-footer-wrap a:hover {
    color: var(--mt-red);
    text-decoration: none;
}

.site-footer .site-primary-footer-wrap ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.site-footer .site-primary-footer-wrap li {
    margin: 0 0 9px 0;
}

.site-footer .site-primary-footer-wrap li a {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
}

.site-footer .site-primary-footer-wrap li a:hover {
    background: rgba(213,35,34,0.08);
    transform: translateX(2px);
}

.site-footer .site-primary-footer-wrap .ast-footer-html {
    max-width: 420px;
}

.site-footer .ast-footer-html p {
    max-width: 420px;
    font-size: 14px;
    line-height: 22px;
}

.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mt-ink);
    margin-bottom: 14px;
}

.site-footer h4,
.site-footer .wp-block-heading {
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    color: #1a1a1a !important;
    margin-bottom: 35px !important;
    position: relative;
}

.site-footer p {
    font-size: 14px;
    line-height: 22px;
    color: var(--mt-muted);
    margin: 0;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 10px;
}

.site-footer ul li {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.site-footer ul li::before {
    content: "";
    width: 4px; height: 4px;
    background: var(--mt-red);
    border-radius: 50%;
    margin-right: 12px;
}

.site-footer ul li a {
    font-size: 14px !important;
    color: #555 !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
}

.site-footer ul li a:hover {
    color: #D52322 !important;
    transform: translateX(8px);
}

.site-footer a {
    transition: all 0.3s ease !important;
    display: inline-block;
}

.site-footer a:hover {
    color: var(--mt-red) !important;
    transform: translateX(5px);
}

.site-footer .ast-footer-copyright {
    background: #EEF2F7;
    border-top: 1px solid var(--mt-border-soft);
    padding: 16px 0;
}

.site-footer .ast-footer-copyright p {
    font-size: 12px;
    color: var(--mt-muted);
    margin: 0;
}

/* Desktop footer dividers */
@media (min-width: 769px) {
    .site-footer .ast-builder-grid-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        max-width: 1300px !important;
        margin: 0 auto !important;
        gap: 0 !important;
    }

    .site-footer .ast-builder-grid-row > div {
        flex: 1 !important;
        padding: 0 60px !important;
        position: relative;
    }

    .site-footer .ast-builder-grid-row > div:not(:first-child) {
        border-left: 1px solid rgba(213, 35, 34, 0.25) !important;
    }
}

/* Footer social icons */
#colophon .mt-footer-social,
#colophon .mt-footer-social ul,
#colophon .mt-footer-social li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#colophon .mt-footer-social li::marker {
    content: "" !important;
}

#colophon .mt-footer-social .wp-block-social-links {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 10px 0 0 0 !important;
}

#colophon .mt-footer-social .wp-social-link {
    margin: 0 !important;
}

#colophon .mt-footer-social .wp-social-link a {
    color: #334155 !important;
    opacity: 1 !important;
    transform: translateY(0);
    transition: color 160ms ease, transform 160ms ease;
}

#colophon .mt-footer-social .wp-social-link a:hover {
    color: #B02A2A !important;
    transform: translateY(-1px);
}

#colophon .mt-footer-social svg {
    width: 28px !important;
    height: 28px !important;
}

#colophon .wp-block-social-links,
#colophon .wp-block-social-links li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#colophon .wp-block-social-links li::before,
#colophon .wp-block-social-links li::after,
#colophon .wp-block-social-links li::marker {
    content: none !important;
    display: none !important;
}

#colophon .wp-block-social-links a::before,
#colophon .wp-block-social-links a::after {
    content: none !important;
    display: none !important;
}

/* Custom footer grid */
.footer-grid-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand-info p {
    font-size: 14px !important;
    line-height: 1.6;
    color: #666;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 12px !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a, .footer-column span {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #D52322;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px !important;
    color: #999;
}


/* =========================================================
   16. UTILITIES & MISC COMPONENTS
   ========================================================= */

.mt-soft-section {
    /* placeholder — border-radius applied by mobile override */
}

.mt-contact-card {
    justify-content: flex-start;
}

/* Sliderberg */
@media (max-width: 1024px) {
    [class*="sliderberg-slide"] {
        height: 50vh !important;
        min-height: 50vh !important;
    }

    [class*="sliderberg-slide-content"] {
        padding-left: 72px !important;
    }
}


/* =========================================================
   17. PLUGIN OVERRIDES
   ========================================================= */

/* w3eden / WPDM */
.w3eden .btn,
.w3eden .btn-primary,
.w3eden .wpdm-download-link {
    background-color: #ffffff !important;
    color: #D52322 !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.12),
        0 4px 10px rgba(15, 23, 42, 0.08);
    transition:
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 140ms ease;
}

.w3eden .btn:hover,
.w3eden .btn-primary:hover,
.w3eden .wpdm-download-link:hover {
    background-color: rgba(213, 35, 34, 0.08) !important;
    color: #B71C1C !important;
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.16),
        0 6px 14px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

.w3eden .btn:active,
.w3eden .btn-primary:active,
.w3eden .wpdm-download-link:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18) inset;
}

.w3eden .btn:focus-visible,
.w3eden .btn-primary:focus-visible,
.w3eden .wpdm-download-link:focus-visible {
    outline: none !important;
    box-shadow:
        0 0 0 3px rgba(213, 35, 34, 0.25),
        0 10px 24px rgba(15, 23, 42, 0.12);
}

.w3eden a,
.w3eden a:visited {
    color: var(--mt-slate) !important;
    text-decoration-color: rgba(213,35,34,0.25);
    text-underline-offset: 3px;
}

.w3eden a:hover {
    color: var(--mt-red) !important;
}

.w3eden .wpdm-download-link-title,
.w3eden .wpdm-download-link-title a,
.w3eden table a {
    color: var(--mt-ink) !important;
}

.w3eden .wpdm-category a,
.w3eden a.wpdmcat,
.w3eden .wpdm-download-category a {
    color: var(--mt-red) !important;
    text-decoration: none !important;
}

.w3eden .wpdm-category a:hover,
.w3eden a.wpdmcat:hover,
.w3eden .wpdm-download-category a:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.w3eden td img,
.w3eden .wpdm-file-icon img,
.w3eden .wpdm_icon img {
    filter: grayscale(1) brightness(0.35) sepia(1) saturate(8) hue-rotate(335deg) !important;
    opacity: 0.95 !important;
}

.w3eden tr:hover td img {
    opacity: 1 !important;
}

.w3eden table thead th {
    color: rgba(15,23,42,0.70) !important;
    letter-spacing: 0.02em !important;
}

/* WPDM download link buttons */
.wpdm-download-link.btn-primary,
.wpdm-download-button,
.wpdm_btn.wpdm_link {
    background-color: #D52322 !important;
    color: #ffffff !important;
    border: 1px solid #D52322 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    padding: 10px 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
}

.wpdm-download-link.btn-primary:hover,
.wpdm-download-button:hover {
    background-color: #b01b1a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(213, 35, 34, 0.2) !important;
}

/* WPDM pagination */
#wpdm-all-packages .pagination .page-item .page-link {
    color: #475569 !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

#wpdm-all-packages .pagination .page-item.active .page-link {
    background-color: #D52322 !important;
    border-color: #D52322 !important;
    color: #ffffff !important;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(213, 35, 34, 0.2) !important;
}

#wpdm-all-packages .pagination .page-item:not(.active) .page-link:hover {
    background-color: #f8fafc !important;
    color: #D52322 !important;
    border-color: #cbd5e1 !important;
}

#wpdm-all-packages .pagination .page-item.disabled .page-link {
    color: #cbd5e1 !important;
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}


/* =========================================================
   18. MOBILE / RESPONSIVE
   ========================================================= */

/* ── Typography ── */
@media (max-width: 768px) {
    body .entry-content h1,
    body .ast-container h1,
    body .site-content h1,
    body .wp-site-blocks h1 {
        font-size: 26px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.01em !important;
    }

    body .entry-content h2,
    body .ast-container h2,
    body .site-content h2,
    body .wp-site-blocks h2 {
        font-size: 20px !important;
        line-height: 1.30 !important;
    }

    body .entry-content h3,
    body .ast-container h3,
    body .site-content h3,
    body .wp-site-blocks h3 {
        font-size: 18px !important;
        line-height: 1.30 !important;
    }

    body .entry-content p,
    body .ast-container p,
    body .site-content p,
    body .wp-site-blocks p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    h4 { font-size: 16px; }

    .wp-block-cover p {
        font-size: 16px;
    }

    .entry-content a {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
}

/* ── Hero ── */
@media (max-width: 820px) {
    .mt-hero.wp-block-cover {
        min-height: 35vh !important;
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }

    .mt-hero h1 {
        font-size: 34px !important;
        line-height: 1.12 !important;
    }

    .mt-hero p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 1024px) {
    .wp-block-cover.mt-hero {
        min-height: 45vh !important;
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }
}

@media (max-width: 768px) {
    .wp-block-cover.mt-hero {
        min-height: 30vh !important;
        padding-top: 48px !important;
        padding-bottom: 58px !important;
    }

    .wp-block-cover.mt-hero .wp-block-button__link {
        font-size: 14px !important;
        padding: 10px 16px !important;
        border-radius: 10px !important;
    }

    .mt-hero .wp-block-cover__inner-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mt-hero h1 {
        font-size: 28px !important;
    }

    .reverse-mobile {
        flex-direction: column-reverse !important;
    }

    .mt-specs-card li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Hero title mobile */
@media (max-width: 768px) {
    .mt-hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.01em !important;
        max-width: 100% !important;
        margin-bottom: 0.75rem !important;
    }

    .mt-hero-title::after {
        height: 3px;
        animation: underscoreExpandMobile 0.8s 0.6s ease-out forwards;
    }

    @keyframes underscoreExpandMobile {
        to { width: 52px; }
    }

    .mt-hero-subtitle {
        font-size: 0.975rem !important;
        font-weight: 500 !important;
        line-height: 1.65 !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
        color: rgba(255, 255, 255, 0.90) !important;
    }

    .mt-hero::before {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.55) 0%,
            rgba(15, 23, 42, 0.25) 60%,
            transparent 100%
        );
    }

    @media (prefers-reduced-motion: reduce) {
        .mt-hero-title,
        .mt-hero-subtitle {
            animation: none !important;
            opacity: 1 !important;
            transform: none !important;
            filter: none !important;
        }

        .mt-hero-title::after {
            animation: none !important;
            width: 52px !important;
        }
    }
}

/* Hero locked grid desktop */
@media (min-width: 922px) {
    .wp-block-cover.mt-hero {
        min-height: 75vh !important;
        height: 75vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .wp-block-cover.mt-hero .wp-block-cover__inner-container {
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding-top: 5vh !important;
        padding-left: 80px !important;
        max-width: 1400px !important;
        margin: 0 !important;
    }

    .mt-hero p {
        max-width: 600px !important;
        line-height: 1.6 !important;
        opacity: 0.9;
    }

    .mt-hero-title {
        font-size: 48px !important;
        line-height: 1.1 !important;
        margin-bottom: 14px !important;
    }

    .mt-hero p {
        font-size: 18px !important;
        line-height: 1.6 !important;
        max-width: 560px !important;
        opacity: 0.9;
    }
}

/* Home video hero mobile */
@media (max-width: 768px) {
    .mt-home-video-hero {
        position: relative !important;
        min-height: 320px !important;
        overflow: hidden !important;
        background-image: url("/wp-content/uploads/2026/03/hero_slider_2.webp") !important;
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }

    .mt-home-video-hero .wp-block-cover__video-background,
    .mt-home-video-hero video.wp-block-cover__video-background {
        display: none !important;
    }

    .mt-home-video-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.28);
        z-index: 1;
        pointer-events: none;
    }

    .mt-home-video-hero .wp-block-cover__inner-container {
        position: relative !important;
        z-index: 2 !important;
    }
}

/* Mobile cover block */
@media (max-width: 768px) {
    .wp-block-cover {
        min-height: 85vh !important;
        max-height: 680px;
    }

    .wp-block-cover__inner-container {
        transform: translateY(-8%);
        position: relative;
        z-index: 2;
    }

    .wp-block-cover p {
        max-width: 240px;
        font-size: 13.5px;
        line-height: 1.45;
        margin-left: auto;
        margin-right: auto;
    }

    .wp-block-cover::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.55)
        );
        pointer-events: none;
    }
}

/* ── Buttons mobile ── */
@media (max-width: 768px) {
    .wp-block-buttons {
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .wp-block-button {
        display: flex !important;
        justify-content: center !important;
    }

    .wp-block-button__link.wp-element-button {
        padding: 10px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .ast-button:not(.menu-toggle):not(.ast-mobile-menu-trigger),
    .ast-custom-button {
        padding: 10px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .wp-block-button__link,
    .wp-element-button,
    .ast-button,
    .ast-custom-button {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }

    .hero-cta .wp-block-button__link {
        padding: 16px 26px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 820px) {
    .wp-element-button,
    .wp-block-button__link,
    .ast-button,
    .button,
    button,
    input[type="submit"] {
        font-size: 12px !important;
        padding: 8px 14px !important;
        border-radius: 10px !important;
        line-height: 1.1 !important;
    }

    .wp-block-button.mt-btn-primary .wp-block-button__link,
    .wp-block-button.mt-btn-secondary .wp-block-button__link {
        font-size: 14px !important;
        padding: 11px 14px !important;
        border-radius: 10px !important;
        box-shadow: 0 10px 24px rgba(15,23,42,0.10) !important;
    }
}

/* Paired buttons mobile */
@media (max-width: 767px) {
    .wp-block-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .wp-block-button.mt-btn-primary .wp-block-button__link,
    .wp-block-button.mt-btn-secondary .wp-block-button__link {
        width: 150px !important;
        height: 36px !important;
        font-size: 0.65rem !important;
        letter-spacing: 0.6px !important;
    }
}

/* ── Cards mobile ── */
@media (max-width: 768px) {
    .mt-event-card {
        padding: 18px;
    }

    .mt-event-card h2,
    .mt-event-card h3 {
        font-size: 18px;
    }

    .mt-event-card p {
        font-size: 14px;
    }

    .mt-contact-card {
        padding: 24px 24px 22px 24px;
        border-radius: 14px;
    }

    .mt-contact-card h3 {
        font-size: 20px !important;
        margin-bottom: 14px !important;
    }

    .mt-contact-card p {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 820px) {
    .mt-contact-card {
        padding: 24px 24px 22px 24px;
        border-radius: 14px;
    }

    .mt-contact-card h3 {
        font-size: 20px !important;
        margin-bottom: 14px !important;
    }

    .mt-contact-card p {
        margin-bottom: 20px !important;
    }

    .mt-config-card {
        padding: 22px;
    }
}

/* ── Spec cards mobile ── */
@media (max-width: 820px) {
    .wp-block-group.mt-specs-card li {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .wp-block-group.mt-card.mt-specs-card::before {
        left: 20px !important;
        top: 28px !important;
        bottom: 28px !important;
    }

    .wp-block-group.mt-card.mt-specs-card {
        padding-left: 48px !important;
    }
}

/* ── Product page section card mobile ── */
@media (max-width: 768px) {
    .mt-product-page .mt-section-card {
        padding: 32px 24px;
        margin-bottom: 40px;
    }
}

/* ── Ribbon mobile ── */
@media (max-width: 767px) {
    .mt-event-ribbon {
        margin-top: -30px !important;
        padding: 30px 20px !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
        text-align: center;
    }

    .mt-event-ribbon .wp-block-column:last-child img {
        max-height: 180px !important;
        transform: none !important;
    }
}

/* ── Video feature mobile ── */
@media (max-width: 820px) {
    .mt-video-feature {
        padding: 22px 16px;
        border-radius: 8px;
    }

    .mt-video-feature video,
    .mt-video-feature iframe {
        border-radius: 8px;
    }

    .mt-video-feature p:first-of-type {
        font-size: 10px !important;
        letter-spacing: 0.10em !important;
        margin-bottom: 6px !important;
    }

    .mt-video-feature .wp-block-heading {
        font-size: 24px !important;
        line-height: 1.15 !important;
        margin-bottom: 8px !important;
    }

    .mt-video-feature p {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .mt-video-feature > .wp-block-group__inner-container > .wp-block-heading,
    .mt-video-feature > .wp-block-group__inner-container > p {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ── Publications mobile ── */
@media (max-width: 768px) {
    .mt-publications-loop {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .mt-publications-loop .wp-block-post > .wp-block-group {
        padding: 13px 15px 13px 18px !important;
        border-radius: 10px !important;
    }

    .mt-publications-loop .wp-block-post-title a {
        font-size: 16px !important;
        line-height: 1.28 !important;
    }

    .mt-publications-loop .wp-block-post-excerpt,
    .mt-publications-loop .wp-block-post-excerpt__excerpt {
        font-size: 13.5px !important;
    }

    .mt-publications-loop .wp-block-post-template > * {
        padding: 14px 16px !important;
        border-radius: 10px !important;
    }
}

/* ── Posters mobile ── */
@media (max-width: 768px) {
    .mt-posters-loop {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .mt-posters-loop .wp-block-post-template > * {
        padding: 14px 16px 14px 20px !important;
        border-radius: 10px !important;
    }

    .mt-posters-loop .wp-block-post-title a {
        font-size: 16px !important;
    }

    .mt-posters-loop .wp-block-post-excerpt,
    .mt-posters-loop .wp-block-post-excerpt__excerpt {
        font-size: 13.5px !important;
    }

    .mt-poster-section {
        padding: 26px 20px !important;
        border-radius: 18px !important;
    }

    .mt-poster-section .wp-block-columns {
        gap: 24px !important;
    }
}

/* ── Resource section mobile ── */
@media (max-width: 768px) {
    .mt-resource-section.mt-soft-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }

    .mt-resource-feature-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }
}

/* ── Video gallery mobile ── */
@media (max-width: 768px) {
    .vgbVideoGallery .videoGallery > a.galleryItem {
        flex: 0 0 100% !important;
    }
}

/* ── Doc list mobile ── */
@media (max-width: 820px) {
    .mt-doc-list li {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .mt-doc-list a {
        font-size: 16px;
    }
}

/* ── Sliderberg mobile ── */
@media (max-width: 768px) {
    [class*="sliderberg-slide"] {
        height: 40vh !important;
        min-height: 40vh !important;
    }

    [class*="sliderberg-slide-content"] {
        padding-left: 24px !important;
    }
}

/* ── Footer mobile ── */
@media (max-width: 768px) {
    .site-footer .ast-builder-grid-row {
        padding-top: 32px;
        padding-bottom: 32px;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 80px !important;
    }

    .site-footer h2,
    .site-footer h3,
    .site-footer .widget-title {
        font-size: 14px;
    }

    .site-footer p,
    .site-footer a {
        font-size: 13px;
    }

    .site-footer {
        padding: 60px 20px 30px 20px !important;
        font-size: 13px;
    }

    .site-footer .site-primary-footer-wrap .ast-builder-grid-row {
        padding: 34px 18px;
        column-gap: 0;
        row-gap: 22px;
    }

    .site-footer .site-primary-footer-wrap .widget {
        border-left: none;
        padding-left: 0;
    }

    .site-footer .site-primary-footer-wrap {
        text-align: left;
    }

    .site-footer .site-primary-footer-wrap p {
        font-size: 13px;
        line-height: 21px;
    }

    .site-footer .site-primary-footer-wrap li {
        margin-bottom: 10px;
    }

    .site-footer .site-primary-footer-wrap .widget-title,
    .site-footer .site-primary-footer-wrap h2,
    .site-footer .site-primary-footer-wrap h3 {
        margin-bottom: 12px !important;
    }

    .site-footer .ast-builder-grid-row > div {
        border-left: none !important;
        width: 100% !important;
        padding: 0 20px !important;
    }

    .site-footer .footer-widget-area {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .site-footer .ast-builder-grid-row > .footer-widget-area,
    .site-footer .ast-builder-grid-row > div {
        width: 100% !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .site-footer .footer-widget-area .widget {
        text-align: center !important;
        margin: 0 auto !important;
    }

    .site-footer ul {
        padding: 0 !important;
        margin: 0 !important;
        display: inline-block !important;
        text-align: left !important;
    }

    .site-footer ul li {
        width: fit-content !important;
        margin: 0 auto 15px !important;
        justify-content: center !important;
    }

    .footer-grid-container {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }

    .footer-brand-info p {
        margin: 0 auto;
    }

    .site-footer .footer-widget-area h1,
    .site-footer .footer-widget-area h2,
    .site-footer .footer-widget-area h3,
    .site-footer .footer-widget-area h4 {
        text-align: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .site-footer .widget-title {
        text-align: center !important;
        width: 100% !important;
    }

    .site-footer .wp-block-social-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 10px !important;
    }

    .site-footer .wp-block-social-links li {
        margin: 0 !important;
    }

    .site-footer .wp-block-social-links .wp-social-link a {
        transform: scale(1.05);
    }

    .site-footer .ast-footer-copyright,
    .site-footer .ast-small-footer {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 14px 16px !important;
        margin: 18px 0 0 0 !important;
    }

    .site-footer .ast-footer-copyright p,
    .site-footer .ast-small-footer p {
        text-align: center !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 18px !important;
        opacity: 0.75;
    }
}

/* Footer social mobile */
@media (max-width: 768px) {
    #colophon .mt-footer-social .wp-block-social-links {
        gap: 12px !important;
    }

    #colophon .mt-footer-social svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Footer nav list mobile */
@media (max-width: 768px) {
    .site-footer .widget_nav_menu ul,
    .site-footer .widget_nav_menu ol {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .site-footer .widget_nav_menu li {
        margin: 0 !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: 14px auto !important;
        column-gap: 10px !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0 !important;
    }

    .site-footer .widget_nav_menu li::marker {
        content: "" !important;
    }

    .site-footer .widget_nav_menu li::before {
        content: "" !important;
        width: 6px !important;
        height: 6px !important;
        border-radius: 999px !important;
        background: #B02A2A !important;
        display: block !important;
    }

    .site-footer .widget_nav_menu li a {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        line-height: 18px !important;
    }

    .site-footer .ast-footer-copyright {
        width: 100% !important;
        max-width: none !important;
        margin: 24px 0 0 0 !important;
        padding: 16px 16px !important;
        border-radius: 0 !important;
    }

    .site-footer .ast-footer-copyright p {
        margin: 0 !important;
        text-align: center !important;
        font-size: 12px !important;
        line-height: 18px !important;
    }
}

/* ── Forms mobile ── */
@media (max-width: 768px) {
    .mt-events-form-wrap {
        max-width: 100% !important;
        padding: 24px 20px !important;
        border-radius: 18px !important;
    }

    .mt-events-form .wpforms-field-name .wpforms-field-row,
    .mt-events-form .wpforms-field-row {
        display: block !important;
    }

    .mt-events-form .wpforms-field-name .wpforms-field-row > div {
        margin-bottom: 12px !important;
    }

    .mt-events-form .wpforms-submit {
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    .mt-events-form .wpforms-field-name .wpforms-field-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 16px !important;
    }

    .mt-events-form .wpforms-field-name .wpforms-field-row > div {
        width: 50% !important;
        flex: 0 0 calc(50% - 8px) !important;
    }
}

/* ── Spectra tabs mobile ── */
@media (max-width: 768px) {
    .mt-tabs-hub {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .mt-tabs-hub .uagb-tabs__body-wrap {
        padding: 20px 0px !important;
        margin: 0 !important;
    }

    .mt-tabs-hub iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
    }

    .mt-tabs-hub .cf-turnstile,
    .mt-tabs-hub div[id*="cf-turnstile"] {
        transform: scale(0.8) !important;
        transform-origin: left !important;
        max-width: 100% !important;
    }

    .mt-tabs-hub .uagb-tabs__body-wrap div {
        max-width: 100% !important;
    }
}

/* ── About page info section mobile ── */
@media (max-width: 767px) {
    .mt-info-section {
        flex-direction: column !important;
        gap: 35px !important;
        padding: 35px 25px !important;
        margin: 40px 15px !important;
    }

    .mt-info-block {
        border-left-width: 2px !important;
        padding-left: 20px !important;
    }

    .mt-info-detail {
        font-size: 0.95rem !important;
    }

    .mt-info-section,
    .mt-map-container {
        max-width: none !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
}

/* ── Misc mobile ── */
@media (max-width: 768px) {
    .mt-soft-section {
        border-radius: 18px !important;
    }

    .site-footer .ast-builder-grid-row {
        gap: 80px !important;
    }
}

/* ============================================================
   MASSTECH LOGO SECTION – FINAL CLEAN VERSION
   ============================================================ */

/* Section wrapper */
.mt-logo-section {
    padding: 100px 20px !important;
    background-color: #fcfcfc !important;
}

/* Container */
.mt-logo-section .wp-block-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    gap: 50px 60px !important;
}

/* Each column */
.mt-logo-section .wp-block-column {
    flex: 0 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Logo container (visual alignment box) */
.mt-logo-section .wp-block-image {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Base logo style */
.mt-logo-section img {
    max-height: 40px;
    width: auto !important;
    object-fit: contain !important;
    filter: grayscale(100%) opacity(0.55);
    transition: all 0.25s ease;
}

/* Larger wordmark (AbbVie) */
.mt-logo-section img[src*="abbvie"] {
    max-height: 48px;
}

/* 🔥 NAVY FIX (bigger but clean) */
.mt-logo-section img[src*="navy"],
.mt-logo-section img[alt*="Navy"] {
    max-height: 62px;
    filter: grayscale(100%) opacity(0.75);
}

/* University logos */
.mt-logo-section img[src*="vanderbilt"],
.mt-logo-section img[src*="texas"] {
    max-height: 46px;
}

/* Hover effect */
.mt-logo-section .wp-block-column:hover img {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-4px);
}

/* Subtle column hover scale */
.mt-logo-section .wp-block-column:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* ============================================================
   HEADING STYLING
   ============================================================ */

.mt-logo-section h4 {
    font-family: 'IBM Plex Sans', sans-serif !important;
    font-size: 22px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.25em !important;
    color: #64748b !important;
    margin-bottom: 60px !important;
}

/* Refined underline for "Leading Research Partners" */
.mt-logo-section h4 span {
    border-bottom: 2px solid #D52322;
    padding-bottom: 2px;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .mt-logo-section {
        padding: 70px 20px !important;
    }

    .mt-logo-section .wp-block-columns {
        gap: 30px 30px !important;
    }

    .mt-logo-section .wp-block-image {
        height: 50px;
    }

    .mt-logo-section img {
        max-height: 32px;
    }

    .mt-logo-section h2 {
        font-size: 28px;
    }
}

/* =========================================================
   CUSTOMER PORTAL — NAV AUTH BUTTONS
   Controls Customer Portal / Software Access / Sign Out
   Desktop + Mobile
   ========================================================= */

/* ── DESKTOP ── */
@media (min-width: 922px) {

    /* Separator + breathing room before auth group */
    .main-header-menu > .menu-login,
    .main-header-menu > .menu-logout {
        margin-left: 28px !important;
        border-left: 1px solid rgba(15, 23, 42, 0.10) !important;
        padding-left: 28px !important;
    }

    /* Customer Portal button */
    .main-header-menu > .menu-login > a,
    .main-header-menu > .menu-login > a.menu-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 32px !important;
        padding: 0 14px !important;
        background: transparent !important;
        border: 1px solid rgba(15, 23, 42, 0.20) !important;
        border-radius: 2px !important;
        color: #475569 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-shadow: none !important;
        min-height: unset !important;
        transition: border-color 160ms ease, color 160ms ease !important;
    }

    .main-header-menu > .menu-login > a:hover,
    .main-header-menu > .menu-login > a.menu-link:hover {
        border-color: #D52322 !important;
        color: #0f172a !important;
        background: transparent !important;
    }

    /* Software Access link — quiet secondary */
    .main-header-menu > .menu-register {
        margin-left: 12px !important;
    }

    .main-header-menu > .menu-register > a,
    .main-header-menu > .menu-register > a.menu-link {
        font-size: 10px !important;
        color: #94a3b8 !important;
        font-weight: 400 !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        opacity: 0.7 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .main-header-menu > .menu-register > a:hover,
    .main-header-menu > .menu-register > a.menu-link:hover {
        color: #D52322 !important;
        opacity: 1 !important;
        background: transparent !important;
    }

    /* Sign Out button */
    .main-header-menu > .menu-logout > a,
    .main-header-menu > .menu-logout > a.menu-link {
        display: inline-flex !important;
        align-items: center !important;
        height: 32px !important;
        padding: 0 14px !important;
        background: transparent !important;
        border: 1px solid rgba(15, 23, 42, 0.15) !important;
        border-radius: 2px !important;
        color: #94a3b8 !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-shadow: none !important;
        min-height: unset !important;
        transition: all 160ms ease !important;
    }

    .main-header-menu > .menu-logout > a:hover,
    .main-header-menu > .menu-logout > a.menu-link:hover {
        border-color: rgba(213, 35, 34, 0.4) !important;
        color: #D52322 !important;
        background: transparent !important;
    }
}

/* ── MOBILE DRAWER ── */
@media (max-width: 921px) {

    /* Separator above auth group */
    .ast-mobile-popup-content .main-header-menu > .menu-login,
    .ast-mobile-popup-content .main-header-menu > .menu-logout {
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-bottom: none !important;
    }

    /* Customer Portal button — mobile */
    .ast-mobile-popup-content .main-header-menu > .menu-login > a,
    .ast-mobile-popup-content .main-header-menu > .menu-login > a.menu-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 40px !important;
        padding: 0 20px !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.20) !important;
        border-radius: 2px !important;
        color: #475569 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        box-shadow: none !important;
        min-height: unset !important;
        width: auto !important;
        max-width: fit-content !important;
    }

    .ast-mobile-popup-content .main-header-menu > .menu-login > a:hover,
    .ast-mobile-popup-content .main-header-menu > .menu-login > a.menu-link:hover {
        border-color: #D52322 !important;
        color: #0f172a !important;
    }

    /* Sign Out button — mobile */
    .ast-mobile-popup-content .main-header-menu > .menu-logout > a,
    .ast-mobile-popup-content .main-header-menu > .menu-logout > a.menu-link {
        display: inline-flex !important;
        align-items: center !important;
        height: 36px !important;
        padding: 0 16px !important;
        background: transparent !important;
        border: 1px solid rgba(15, 23, 42, 0.15) !important;
        border-radius: 2px !important;
        color: #94a3b8 !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
        box-shadow: none !important;
        min-height: unset !important;
        width: auto !important;
        max-width: fit-content !important;
    }

    /* Software Access — hidden on mobile (not needed in drawer) */
    .ast-mobile-popup-content .main-header-menu > .menu-register {
        display: none !important;
    }
}



/* =========================================================
   20. ULTIMATE MEMBER — LOGIN & REGISTER PAGES
   Surgical, modern, acquisition-ready styling
   /login/ and /register/ pages
   ========================================================= */

/* ── SHARED FORM CONTAINER — centers and constrains both forms ── */
.um-page-login .entry-content,
.um-page-register .entry-content {
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

/* ── HIDE page title (Login / Register) — replaced by eyebrow + heading below ── */
.um-page-login h1.entry-title,
.um-page-login .entry-title,
.um-page-register h1.entry-title,
.um-page-register .entry-title {
    display: none !important;
}

/* ── HIDE the UM logged-in profile widget on login page ── */
.um-page-login.logged-in .um.um-login {
    display: none !important;
}

/* ── FORM WRAPPER — card styling ── */
.um-page-login .um.um-login,
.um-page-register .um.um-register {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 4px !important;
    padding: 48px 40px !important;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.04) !important;
    margin-top: 40px !important;
    position: relative !important;
}

/* Red top accent line on form card */
.um-page-login .um.um-login::before,
.um-page-register .um.um-register::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: #D52322 !important;
    border-radius: 4px 4px 0 0 !important;
}

/* ── EYEBROW label — hidden ── */
.um-page-login .um.um-login::after,
.um-page-register .um.um-register::after {
    display: none !important;
}

/* ── Form heading injected via CSS ── */
.um-page-login .um.um-login .um-form::before {
    content: "Sign in to your account" !important;
    display: block !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
}


.um-page-register .um.um-register .um-form::before {
    content: "Request software access" !important;
    display: block !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
}
.um-page-register .um.um-register .um-form::after {
    content: "A licence key is required. Contact sales@apmaldi.com to request access." !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    letter-spacing: 0 !important;
    margin-bottom: 28px !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
}



/* ── Field labels ── */
.um-page-login .um-field-label label,
.um-page-register .um-field-label label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
}

/* ── Input fields ── */
.um-page-login .um-field-area input,
.um-page-register .um-field-area input,
.um-page-register .um-field-area select,
.um-page-register .um-field-area textarea {
    border-radius: 2px !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    font-size: 14px !important;
    padding: 11px 14px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    transition: border-color 160ms ease, box-shadow 160ms ease !important;
}

.um-page-login .um-field-area input:focus,
.um-page-register .um-field-area input:focus,
.um-page-register .um-field-area select:focus,
.um-page-register .um-field-area textarea:focus {
    border-color: #D52322 !important;
    box-shadow: 0 0 0 3px rgba(213, 35, 34, 0.08) !important;
    outline: none !important;
    background: #ffffff !important;
}

/* ── LOGIN button — red primary ── */
.um-login .um-button,
.um-login input[type="submit"],
.um-login .um-field-button {
    background-color: #D52322 !important;
    background: #D52322 !important;
    color: #ffffff !important;
    border: 1px solid #D52322 !important;
    border-radius: 2px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 14px 24px !important;
    box-shadow: 0 4px 14px rgba(213, 35, 34, 0.20) !important;
    transition: all 0.2s ease !important;
    min-height: unset !important;
    width: 100% !important;
}

.um-login .um-button:hover,
.um-login input[type="submit"]:hover {
    background-color: #b01b1a !important;
    border-color: #b01b1a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(213, 35, 34, 0.28) !important;
}

/* ── REGISTER link on login page — styled secondary button ── */
/* Override the half-width float layout: stack button + register link vertically */
.um-page-login .um-left.um-half,
.um-page-login .um-right.um-half {
    float: none !important;
    width: 100% !important;
    display: block !important;
}
/* Login button: full width red */
.um-page-login .um-left.um-half .um-button {
    width: 100% !important;
    display: block !important;
    margin-bottom: 12px !important;
}
/* Register link: subtle, centered below LOGIN */
.um-login .um-alt-link,
.um-login a.um-button.um-alt {
    display: block !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    padding: 0 !important;
    width: auto !important;
    text-align: center !important;
    margin-top: 0 !important;
    text-decoration: none !important;
}
.um-login a.um-button.um-alt::before {
    content: "Don't have an account? " !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}
.um-login a.um-button.um-alt:hover {
    color: #D52322 !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ── REGISTER submit button — red primary same as login ── */
.um-register .um-button,
.um-register input[type="submit"],
.um-register .um-field-button {
    background-color: #D52322 !important;
    background: #D52322 !important;
    color: #ffffff !important;
    border: 1px solid #D52322 !important;
    border-radius: 2px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 14px 24px !important;
    box-shadow: 0 4px 14px rgba(213, 35, 34, 0.20) !important;
    transition: all 0.2s ease !important;
    min-height: unset !important;
    width: 100% !important;
}

.um-register .um-button:hover,
.um-register input[type="submit"]:hover {
    background-color: #b01b1a !important;
    border-color: #b01b1a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(213, 35, 34, 0.28) !important;
}

/* ── LOGIN button on register page — hide it ── */
.um-register .um-alt-link,
.um-register a.um-button.um-alt {
    display: none !important;
}

/* ── Forgot password ── */
.um-login .um-forgot-pw,
.um-login .um-forgot-pw a {
    font-size: 12px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
    margin-top: 12px !important;
    display: block !important;
}

.um-login .um-forgot-pw a:hover {
    color: #D52322 !important;
}

/* ── "Keep me signed in" checkbox ── */
.um-login .um-field-checkbox label {
    font-size: 13px !important;
    color: #64748b !important;
}

/* ── Form spacing ── */
.um-page-login .um-field,
.um-page-register .um-field {
    margin-bottom: 18px !important;
}

/* ── Page-level layout — center vertically ── */
.um-page-login .site-main,
.um-page-register .site-main {
    padding-top: 40px !important;
    padding-bottom: 80px !important;
}

/* ── Hide UM icon/logo if present ── */
.um-page-login .um-header,
.um-page-register .um-header {
    display: none !important;
}



/* =========================================================
   NAV ICON OVERRIDE — Software Access + Sign Out
   Icon-only on desktop, text link on mobile
   ========================================================= */

/* ── DESKTOP: icon-only ── */
@media (min-width: 922px) {

    /* Divider + spacing */
    .main-navigation .main-header-menu > .menu-login,
    .main-navigation .main-header-menu > .menu-logout {
        margin-left: 20px !important;
        padding-left: 20px !important;
        border-left: 1px solid rgba(15, 23, 42, 0.12) !important;
        display: flex !important;
        align-items: center !important;
        position: relative !important;
    }

    /* Login icon */
    .main-navigation .main-header-menu > .menu-login > a,
    .main-navigation .main-header-menu > .menu-login > a.menu-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 6px !important;
        background-color: transparent !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 19px 19px !important;
        color: transparent !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-decoration: none !important;
        opacity: 0.65 !important;
        transition: opacity 180ms ease, background-color 180ms ease !important;
    }
    .main-navigation .main-header-menu > .menu-login > a:hover,
    .main-navigation .main-header-menu > .menu-login > a.menu-link:hover {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23D52322' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E") !important;
        background-color: rgba(213, 35, 34, 0.06) !important;
        opacity: 1 !important;
        border: none !important;
        color: transparent !important;
    }

    /* Logout icon */
    .main-navigation .main-header-menu > .menu-logout > a,
    .main-navigation .main-header-menu > .menu-logout > a.menu-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 6px !important;
        background-color: transparent !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 19px 19px !important;
        color: transparent !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-decoration: none !important;
        opacity: 0.65 !important;
        transition: opacity 180ms ease, background-color 180ms ease !important;
    }
    .main-navigation .main-header-menu > .menu-logout > a:hover,
    .main-navigation .main-header-menu > .menu-logout > a.menu-link:hover {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23D52322' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") !important;
        background-color: rgba(213, 35, 34, 0.06) !important;
        opacity: 1 !important;
        border: none !important;
        color: transparent !important;
    }

    /* Tooltip — clean dark pill, appears below icon */
    .main-navigation .main-header-menu > .menu-login::before,
    .main-navigation .main-header-menu > .menu-logout::before {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        background: #1e293b !important;
        color: #f8fafc !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
        white-space: nowrap !important;
        padding: 5px 10px !important;
        border-radius: 5px !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 150ms ease 80ms !important;
        z-index: 99999 !important;
        display: block !important;
        line-height: 1.4 !important;
    }
    .main-navigation .main-header-menu > .menu-login::before {
        content: "Software Access" !important;
    }
    .main-navigation .main-header-menu > .menu-logout::before {
        content: "Sign Out" !important;
    }
    .main-navigation .main-header-menu > .menu-login:hover::before,
    .main-navigation .main-header-menu > .menu-logout:hover::before {
        opacity: 1 !important;
    }
}

/* ── MOBILE: show as clean text link in drawer ── */
@media (max-width: 921px) {

    /* In mobile drawer: restore text, style as a simple link row */
    .ast-mobile-popup-content .main-header-menu > .menu-login,
    .ast-mobile-popup-content .main-header-menu > .menu-logout {
        margin-top: 16px !important;
        padding-top: 16px !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .ast-mobile-popup-content .main-header-menu > .menu-login > a,
    .ast-mobile-popup-content .main-header-menu > .menu-login > a.menu-link,
    .ast-mobile-popup-content .main-header-menu > .menu-logout > a,
    .ast-mobile-popup-content .main-header-menu > .menu-logout > a.menu-link {
        display: inline-flex !important;
        align-items: center !important;
        width: auto !important;
        max-width: fit-content !important;
        height: auto !important;
        padding: 8px 16px !important;
        border: 1px solid rgba(15, 23, 42, 0.15) !important;
        border-radius: 6px !important;
        background: transparent !important;
        background-image: none !important;
        color: #374151 !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        letter-spacing: 0.2px !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        opacity: 1 !important;
    }
    .ast-mobile-popup-content .main-header-menu > .menu-login > a::before,
    .ast-mobile-popup-content .main-header-menu > .menu-logout > a::before {
        content: none !important;
    }
}

