/* =========================================================
   MTIC HEADER - FINAL CLEAN VERSION
   ========================================================= */

body {
    --mtic-header-top-height: 38px;
    --mtic-header-main-height: 86px;
    --mtic-header-logo-height: 52px;
    --mtic-header-main-height-scrolled: 64px;
    --mtic-header-logo-height-scrolled: 40px;
    --mtic-header-scroll-duration: 0.35s;
    --mtic-header-scroll-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --mtic-header-offset: calc(var(--mtic-header-top-height) + var(--mtic-header-main-height));
    --mtic-header-layout-offset: calc(var(--mtic-header-top-height) + var(--mtic-header-main-height));
    padding-top: var(--mtic-header-layout-offset);
}

body.mtic-header-padding-no-transition {
    transition: none !important;
}

body.admin-bar .mtic-header-wrapper {
    top: 32px;
}

.mtic-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================
   TOP BAR - ONE CMS MENU VERSION
   gov.bn logo | CMS top bar menu | text-size | EN | search
   ========================================================= */

.mtic-header-top-bar {
    height: var(--mtic-header-top-height);
    background: var(--mtic-teal);
    color: #ffffff;
    overflow: visible;
    transition:
        height var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease),
        opacity var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease),
        min-height var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease),
        padding var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease),
        margin var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease);
    position: relative;
    z-index: 100001;
}

.mtic-header-top-inner {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) max-content;
    align-items: center;
    column-gap: 28px;
    padding: 0 24px;
    box-sizing: border-box;
}

.mtic-header-govbn-logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.mtic-header-govbn-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mtic-header-govbn-logo img {
    display: block;
    height: 16px;
    width: auto;
}

.mtic-header-top-menu-wrap {
    height: 100%;
    min-width: 0;
    width: max-content;
    justify-self: end;
}

.mtic-topbar-menu,
.mtic-topbar-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mtic-topbar-menu {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 42px;
}

.mtic-topbar-menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mtic-topbar-menu a {
    color: #ffffff;
    text-decoration: none;
}

.mtic-topbar-menu > li > a {
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.mtic-topbar-menu > li > a:hover,
.mtic-topbar-menu > li:focus-within > a {
    color: #eafffb;
}

.mtic-topbar-menu > li > .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 260px;
    padding: 16px 0;
    background: var(--mtic-dark-green);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 100002;
}

.mtic-topbar-menu > li:hover > .sub-menu,
.mtic-topbar-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mtic-topbar-menu .sub-menu a {
    display: block;
    padding: 8px 24px;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}

.mtic-topbar-menu .sub-menu a:hover,
.mtic-topbar-menu .sub-menu a:focus {
    color: var(--mtic-teal);
    background: rgba(255, 255, 255, 0.05);
}

.mtic-header-top-tools {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.mtic-header-text-sizer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.mtic-header-size-btn {
    border: 0;
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    border-radius: 2px;
    padding: 2px 5px;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
}

.mtic-header-size-sm {
    font-size: 0.5625rem;
}

.mtic-header-size-md {
    font-size: 0.6875rem;
}

.mtic-header-size-lg {
    font-size: 0.8125rem;
}

.mtic-header-size-btn.mtic-header-active {
    background: rgba(255, 255, 255, 0.55);
    color: var(--mtic-teal);
}

.mtic-header-lang-pill {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mtic-header-lang-pill--en {
    cursor: default;
}

.mtic-header-mobile-actions {
    display: none;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mtic-header-burger {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mtic-header-burger:focus-visible {
    outline: 2px solid var(--mtic-teal);
    outline-offset: 2px;
}

.mtic-header-burger__icon,
.mtic-header-burger__icon::before,
.mtic-header-burger__icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.mtic-header-burger__icon {
    position: relative;
}

.mtic-header-burger__icon::before,
.mtic-header-burger__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.mtic-header-burger__icon::before {
    top: -7px;
}

.mtic-header-burger__icon::after {
    top: 7px;
}

/* Mobile drawer — hidden on desktop */
.mtic-mobile-nav {
    display: none;
}

.mtic-header-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.mtic-header-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.mtic-header-search-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: #777777;
}

.mtic-header-search input[type="search"] {
    width: 235px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    font-size: 0.8125rem;
    padding: 0 12px 0 34px;
    outline: none;
    box-sizing: border-box;
}

.mtic-header-search input[type="search"]::placeholder {
    color: #777777;
}

/* Text size feature affects page content, not header layout */
html.mtic-text-small #main-content,
html.mtic-text-small .site-main,
html.mtic-text-small main {
    font-size: 90%;
}

html.mtic-text-normal #main-content,
html.mtic-text-normal .site-main,
html.mtic-text-normal main {
    font-size: 100%;
}

html.mtic-text-large #main-content,
html.mtic-text-large .site-main,
html.mtic-text-large main {
    font-size: 110%;
}

@media (max-width: 1200px) {
    .mtic-header-top-inner {
        grid-template-columns: 110px 1fr;
        row-gap: 8px;
        height: auto;
        min-height: 48px;
        padding: 8px 16px;
    }

    .mtic-header-top-menu-wrap {
        overflow-x: auto;
    }

    .mtic-topbar-menu {
        justify-content: flex-start;
        gap: 24px;
        width: max-content;
    }

    .mtic-header-top-tools {
        grid-column: 1 / -1;
        justify-content: center;
        flex-wrap: wrap;
    }

    .mtic-header-search input[type="search"] {
        width: 190px;
    }
}

/* =========================================================
   MAIN NAV
   ========================================================= */

.mtic-header-main-nav,
.mtic-header-main-inner,
.mtic-header-menu-container,
.mtic-header-menu {
    overflow: visible;
}

.mtic-header-main-nav {
    height: var(--mtic-header-main-height);
    background: var(--mtic-dark-green);
    transition: height var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease);
}

.mtic-header-main-inner {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: stretch;
    padding: 0 24px;
    box-sizing: border-box;
}

.mtic-header-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    margin-right: clamp(24px, 3vw, 56px);
}

.mtic-header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mtic-header-logo {
    display: block;
    width: auto;
    height: var(--mtic-header-logo-height);
    max-width: 330px;
    object-fit: contain;
    transition:
        height var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease),
        max-width var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease);
}

.mtic-header-menu-container {
    flex: 1 1 auto;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.mtic-header-menu {
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.mtic-header-menu > .mtic-header-menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
    min-width: 120px;           
    width: auto;  
}

.mtic-header-menu > .mtic-header-menu-item > a {
    height: 100%;
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    padding: 0 clamp(12px, 1.05vw, 24px);
    font-size: clamp(14px, 1.08vw, 18px);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        height var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease),
        font-size var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease);
}

.mtic-header-menu > .mtic-header-menu-item:not(.mtic-header-current-item):not(.mtic-header-dropdown-open) > a:hover {
    background: rgba(var(--mtic-teal-rgb), 0.12);
}

.mtic-header-current-item,
.mtic-header-dropdown-open {
    background: linear-gradient(
        180deg,
        rgba(var(--mtic-teal-rgb), 0.04) 0%,
        rgba(var(--mtic-teal-rgb), 0.10) 55%,
        rgba(var(--mtic-teal-rgb), 0.18) 100%
    );
    box-shadow: inset 0 -3px 0 var(--mtic-teal);
}

.mtic-header-current-item > a,
.mtic-header-dropdown-open > a {
    color: var(--mtic-teal) !important;
    background: transparent !important;
}

.mtic-header-home-icon-item {
    align-items: center;
}

.mtic-header-home-icon-item > a {
    width: 68px;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtic-header-home-icon {
    display: block;
    width: 20px;
    height: 22px;
    flex-shrink: 0;
    color: #ffffff;
    fill: currentColor;
    transition:
        width var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease),
        height var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease);
}


.mtic-header-dropdown-arrow {
    display: none;
}

/* =========================================================
   BASE MEGA MENU
   ========================================================= */

.mtic-header-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Only fix services mega menu positioning */
.mtic-header-menu > .mtic-header-has-children:has(.mtic-header-services-mega) {
    position: static;   
}

.mtic-header-menu > .mtic-header-has-children > .mtic-header-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1040px, calc(100vw - 40px));
    height: auto;
    min-height: 0;
    background: var(--mtic-dark-green);
    border-radius: 0 0 8px 8px;
    padding: 40px 38px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}

.mtic-header-menu > .mtic-header-has-children.mtic-header-dropdown-open > .mtic-header-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mtic-header-mega-menu > .mtic-header-mega-column {
    position: relative;
    width: 300px;
    max-width: 300px;
    min-width: 0;
}

.mtic-header-mega-menu > .mtic-header-mega-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    right: -15px;
    width: 1px;
    height: calc(100% - 16px);
    background: rgba(255, 255, 255, 0.22);
}

/* =========================================================
   BASE MEGA MENU ICONS AND CONTENT
   ========================================================= */

.mtic-header-column-icon {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 0;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mtic-teal);
}

.mtic-header-column-icon img.mtic-header-column-svg,
.mtic-header-column-icon svg.mtic-header-column-svg,
.mtic-header-column-svg {
    width: 64px;
    height: 64px;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: contain;
    fill: currentColor;
}

.mtic-header-column-heading,
.mtic-header-feature-card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
}

.mtic-header-column-heading > .mtic-header-menu-label {
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
}

.mtic-header-column-heading > .mtic-header-menu-label::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    background: var(--mtic-teal);
    margin-top: 20px;
    margin-bottom: 20px;
}

.mtic-header-feature-lockup {
    display: block;
    max-width: 245px;
    width: 100%;
}

.mtic-header-feature-lockup::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    background: var(--mtic-teal);
    margin-top: 20px;
    margin-bottom: 20px;
}

.mtic-header-feature-lockup__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mtic-header-feature-lockup__acronym {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 2.625rem;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.mtic-header-feature-lockup__name {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.mtic-header-feature-lockup__line {
    display: block;
    color: #ffffff;
    font-size: 0.5625rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mtic-header-feature-card-inner .mtic-header-menu-description {
    max-width: 245px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: justify;
}

.mtic-header-feature-card-inner .mtic-header-menu-description__date {
    white-space: nowrap;
}

.mtic-header-feature-card-inner .mtic-header-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: fit-content;
    margin-top: 22px;
    padding: 9px 16px;
    border: 1px solid var(--mtic-teal);
    border-radius: 8px;
    color: var(--mtic-teal);
    background: transparent;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
}

.mtic-header-feature-card-inner .mtic-header-read-more:hover,
.mtic-header-feature-card-inner .mtic-header-read-more:focus {
    background: var(--mtic-teal);
    color: var(--mtic-dark-green);
}

.mtic-header-read-more-arrow {
    font-size: 0.9375rem;
    line-height: 1;
}

/* =========================================================
   ABOUT MTIC + MEDIA RELEASE DROPDOWNS
   Both share one rule so they can never drift out of sync.
   Two-column grid, columns stretch to fill their track (no
   dead gutter space), single divider line between them.
   ========================================================= */

.mtic-header-menu > .mtic-header-about-menu > .mtic-header-mega-menu,
.mtic-header-menu > .mtic-header-media-release-menu > .mtic-header-mega-menu {
	width: min(760px, calc(100vw - 40px));
	min-height: 0;
	padding: 40px 38px;
	display: grid;
	grid-template-columns: repeat(2, minmax(220px, 1fr));
	gap: 30px;
	justify-content: center;
	justify-items: stretch;
	align-items: start;
}

.mtic-header-about-menu .mtic-header-mega-menu > .mtic-header-mega-column,
.mtic-header-media-release-menu .mtic-header-mega-menu > .mtic-header-mega-column {
	width: 100%;
	max-width: none;
	min-width: 0;
	justify-self: stretch;
}

.mtic-header-about-menu .mtic-header-mega-menu > .mtic-header-mega-column:not(:last-child)::after,
.mtic-header-media-release-menu .mtic-header-mega-menu > .mtic-header-mega-column:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 8px;
	right: -15px;
	width: 1px;
	height: calc(100% - 16px);
	background: rgba(255, 255, 255, 0.22);
}

/* =========================================================
   NORMAL CHILD LINKS
   ========================================================= */

.mtic-header-child-menu {
    margin-top: 18px;
}

.mtic-header-child-menu .mtic-header-sub-menu-item > a {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    align-items: center;
    column-gap: 12px;
    box-sizing: border-box;
    color: #ffffff;
    background: transparent;
    text-decoration: none;
    padding: 8px 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mtic-header-child-menu .mtic-header-sub-menu-item > a:hover {
    color: var(--mtic-teal);
    background: transparent;
}

.mtic-header-child-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mtic-teal);
}

.mtic-header-child-svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.mtic-header-child-menu .mtic-header-menu-label {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

.mtic-header-child-arrow {
    justify-self: end;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}

/* =========================================================
   ACTS DROPDOWN - 5 COLUMN DESIGN
   This overrides only the top-level Acts dropdown.
   ========================================================= */

.mtic-header-menu > .mtic-header-menu-item.mtic-header-acts-menu > .mtic-header-mega-menu {
    width: min(1180px, calc(100vw - 40px));
    min-height: 430px;
    padding: 46px 32px 48px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    background: var(--mtic-dark-green);
}

/* Equal columns */
.mtic-header-menu > .mtic-header-menu-item.mtic-header-acts-menu > .mtic-header-mega-menu > .mtic-header-mega-column {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0 24px;
    display: grid;
    grid-template-rows: 128px 1fr;
    align-items: start;
}

/* Divider between columns */
.mtic-header-menu > .mtic-header-menu-item.mtic-header-acts-menu > .mtic-header-mega-menu > .mtic-header-mega-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.22);
}

/* Acts heading area: icon + title + underline always aligned */
.mtic-header-acts-menu .mtic-header-column-heading {
    height: 128px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Acts icons */
.mtic-header-acts-menu .mtic-header-column-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    flex: 0 0 46px;
}

.mtic-header-acts-menu .mtic-header-column-icon img.mtic-header-column-svg,
.mtic-header-acts-menu .mtic-header-column-icon svg.mtic-header-column-svg,
.mtic-header-acts-menu .mtic-header-column-svg {
    width: 46px;
    height: 46px;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

/* Acts title: fixed title box so underline and list start align */
.mtic-header-acts-menu .mtic-header-column-heading > .mtic-header-menu-label {
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: flex-start;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Acts underline: same position for every column */
.mtic-header-acts-menu .mtic-header-column-heading > .mtic-header-menu-label::after {
    content: "";
    display: block;
    position: absolute;
    top: 121px;
    left: 24px;
    width: 38px;
    height: 2px;
    background: var(--mtic-teal);
    margin: 0;
}

/* Acts PDF list: every list starts on same Y position */
.mtic-header-acts-menu .mtic-header-child-menu {
    margin-top: 5px;
    padding-top: 0;
    align-self: start;
}

/* Acts PDF links */
.mtic-header-acts-menu .mtic-header-child-menu .mtic-header-sub-menu-item > a {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0 0 16px 14px;
    border-bottom: 0;
    background: transparent;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.45;
    position: relative;
}

.mtic-header-acts-menu .mtic-header-child-menu .mtic-header-sub-menu-item > a::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mtic-teal);
}

/* Hide normal About-MTIC row icons/arrows inside Acts */
.mtic-header-acts-menu .mtic-header-child-icon,
.mtic-header-acts-menu .mtic-header-child-arrow {
    display: none;
}

.mtic-header-acts-menu .mtic-header-child-menu .mtic-header-menu-label {
    display: inline;
    color: inherit;
}

.mtic-header-acts-menu .mtic-header-child-menu .mtic-header-sub-menu-item > a:hover {
    color: var(--mtic-teal);
    background: transparent;
}

/* =========================================================
   SCROLL COLLAPSE
   Top bar slides away; main nav compacts on scroll.
   ========================================================= */

/* Measurement helper — header.js toggles this while reading layout
   or during resize so animated heights don't skew the value. */
.mtic-header-wrapper.mtic-header-no-transition,
.mtic-header-wrapper.mtic-header-no-transition * {
    transition: none !important;
}

.mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-top-bar {
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-main-nav {
    height: var(--mtic-header-main-height-scrolled);
}

.mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-logo {
    height: var(--mtic-header-logo-height-scrolled);
    max-width: 280px;
}

.mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-menu > .mtic-header-menu-item:not(.mtic-header-home-icon-item) > a {
    height: var(--mtic-header-main-height-scrolled);
    font-size: clamp(13px, 1vw, 16px);
}

.mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-menu > .mtic-header-home-icon-item > a {
    height: 100%;
}

.mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-home-icon {
    width: 20px;
    height: 22px;
}

@media (prefers-reduced-motion: reduce) {
    body {
        transition: none !important;
    }

    .mtic-header-top-bar,
    .mtic-header-main-nav,
    .mtic-header-logo,
    .mtic-header-home-icon,
    .mtic-header-menu > .mtic-header-menu-item > a {
        transition: none !important;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1500px) {
    body {
        --mtic-header-top-height: 36px;
        --mtic-header-main-height: 84px;
        --mtic-header-logo-height: 50px;
        --mtic-header-main-height-scrolled: 62px;
        --mtic-header-logo-height-scrolled: 38px;
        padding-top: var(--mtic-header-layout-offset);
    }

    .mtic-header-top-bar {
        height: var(--mtic-header-top-height);
    }

    .mtic-header-top-inner {
        grid-template-columns: 105px minmax(0, 1fr) max-content;
        column-gap: 20px;
        padding: 0 18px;
    }

    .mtic-topbar-menu {
        gap: 30px;
    }

    .mtic-topbar-menu > li > a {
        font-size: 0.8125rem;
    }

    .mtic-header-search input[type="search"] {
        width: 180px;
    }

    .mtic-header-main-nav {
        height: var(--mtic-header-main-height);
    }

    .mtic-header-branding {
        flex: 0 0 auto;
    }

    .mtic-header-logo {
        height: var(--mtic-header-logo-height);
        max-width: 290px;
    }

    .mtic-header-menu > .mtic-header-menu-item > a {
        height: var(--mtic-header-main-height);
        font-size: 0.9375rem;
        padding: 0 14px;
    }

    .mtic-header-home-icon-item > a {
        width: 58px;
    }

    .mtic-header-home-icon {
        width: 1.25rem;   /* 20px */
        height: 1.375rem; /* 22px */
    }
}

@media (max-width: 1250px) {
    .mtic-header-menu > .mtic-header-has-children > .mtic-header-mega-menu {
        width: min(1040px, calc(100vw - 32px));
        grid-template-columns: repeat(3, 300px);
        gap: 30px;
        padding: 40px 38px;
    }

    .mtic-header-mega-menu > .mtic-header-mega-column {
        width: 300px;
        max-width: 300px;
    }

    .mtic-header-mega-menu > .mtic-header-mega-column:not(:last-child)::after {
        right: -15px;
    }

    .mtic-header-menu > .mtic-header-menu-item.mtic-header-acts-menu > .mtic-header-mega-menu {
        width: min(1080px, calc(100vw - 32px));
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding: 42px 26px 44px;
    }

    .mtic-header-menu > .mtic-header-menu-item.mtic-header-acts-menu > .mtic-header-mega-menu > .mtic-header-mega-column {
        width: auto;
        max-width: none;
        padding: 0 18px;
    }
}

@media (max-width: 1200px) {
    .mtic-header-top-bar {
        height: auto;
        min-height: 48px;
        padding: 8px 0;
    }

    .mtic-header-top-inner {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: center;
        gap: 8px 18px;
        padding: 0 16px;
    }

    .mtic-header-top-menu-wrap {
        min-width: 0;
        overflow-x: auto;
        overflow-y: visible;
    }

    .mtic-topbar-menu {
        width: max-content;
        justify-content: flex-start;
        gap: 24px;
    }

    .mtic-header-top-tools {
        grid-column: 1 / -1;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 782px) {
    body.admin-bar .mtic-header-wrapper {
        top: 46px;
    }
}

@media (max-width: 768px) {
    .mtic-header-top-tools {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mtic-header-search input[type="search"] {
        width: 190px;
    }
}

/* =========================================================
   ONLY ONE TOP NAV ITEM ACTIVE WHILE DROPDOWN IS OPEN
   When About MTIC / Acts is clicked, hide the WordPress current-page
   active state from other menu items until the dropdown is closed.
   ========================================================= */

.mtic-header-wrapper.mtic-header-any-dropdown-open
.mtic-header-menu > .mtic-header-current-item:not(.mtic-header-dropdown-open) {
    background: transparent;
    box-shadow: none;
}

.mtic-header-wrapper.mtic-header-any-dropdown-open
.mtic-header-menu > .mtic-header-current-item:not(.mtic-header-dropdown-open) > a {
    color: #ffffff !important;
    background: transparent !important;
}

.mtic-header-wrapper.mtic-header-any-dropdown-open
.mtic-header-menu > .mtic-header-current-item:not(.mtic-header-dropdown-open) > a:hover {
    color: #ffffff !important;
    background: rgba(var(--mtic-teal-rgb), 0.12) !important;
}

.mtic-header-wrapper.mtic-header-any-dropdown-open
.mtic-header-menu > .mtic-header-dropdown-open {
    background: linear-gradient(
        180deg,
        rgba(var(--mtic-teal-rgb), 0.04) 0%,
        rgba(var(--mtic-teal-rgb), 0.10) 55%,
        rgba(var(--mtic-teal-rgb), 0.18) 100%
    );
    box-shadow: inset 0 -3px 0 var(--mtic-teal);
}

.mtic-header-wrapper.mtic-header-any-dropdown-open
.mtic-header-menu > .mtic-header-dropdown-open > a {
    color: var(--mtic-teal) !important;
    background: transparent !important;
}

/* =========================================================
   SERVICES & MOBILE APPS DROPDOWN
   Matches base mega-menu panel size
   ========================================================= */

.mtic-header-menu > .mtic-header-services-menu > .mtic-header-services-mega {
    width: min(1100px, calc(100vw - 40px));
    min-height: 0;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0px 30px;
    list-style: none;
    box-sizing: border-box;
}

.mtic-header-services-mega__column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    width: auto;
    max-width: none;
    list-style: none;
}

.mtic-header-services-mega__column--services::after {
    content: "";
    position: absolute;
    top: 8px;
    right: -14px;
    width: 1px;
    height: calc(100% - 16px);
    background: rgba(255, 255, 255, 0.22);
}

/* Column headers — match About MTIC drawer */
.mtic-header-services-menu .mtic-header-column-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.mtic-header-services-menu .mtic-header-column-icon img.mtic-header-column-svg,
.mtic-header-services-menu .mtic-header-column-icon svg.mtic-header-column-svg,
.mtic-header-services-menu .mtic-header-column-svg {
    width: 64px;
    height: 64px;
}

.mtic-header-services-menu .mtic-header-column-heading > .mtic-header-menu-label {
    font-size: 1.0625rem;
    line-height: 1.3;
}

.mtic-header-services-menu .mtic-header-column-heading > .mtic-header-menu-label::after {
    width: 36px;
    height: 2px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.mtic-header-services-mega__list,
.mtic-header-services-mega__apps-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.mtic-header-services-mega__list {
    flex: 0 0 auto;
    margin-bottom: 13px;
}

.mtic-header-services-mega__list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mtic-header-services-mega__list-item:last-child {
    border-bottom: 0;
}

.mtic-header-services-mega__service-link {
    width: 100%;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    min-height: 32px;
    padding: 6px 0;
    box-sizing: border-box;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
}

.mtic-header-services-mega__service-link:hover,
.mtic-header-services-mega__service-link:focus {
    color: var(--mtic-teal);
    background: transparent;
}

.mtic-header-services-mega__service-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.mtic-header-services-mega__service-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.mtic-header-services-mega__service-title {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

.mtic-header-services-mega__footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 0; 
}

.mtic-header-services-mega__view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 110px;
    min-height: 36px;
    gap: 14px;
    padding: 6px 16px;
    box-sizing: border-box;
    border: 1px solid var(--mtic-teal);
    border-radius: 8px;
    background: transparent;
    color: var(--mtic-teal);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.mtic-header-services-mega__view-all:hover,
.mtic-header-services-mega__view-all:focus-visible {
    background: var(--mtic-teal);
    border-color: var(--mtic-teal);
    color: var(--mtic-dark-green);
    outline: none;
}

.mtic-header-services-mega__view-all:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--mtic-teal-rgb), 0.28);
}

.mtic-header-services-mega__view-all-arrow,
.mtic-header-services-menu .mtic-header-read-more-arrow {
    font-size: 0.9375rem;
    line-height: 1;
}

.mtic-header-services-mega__apps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.mtic-header-services-mega__app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 6px 6px;
    border: 1px solid var(--mtic-teal);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.mtic-header-services-mega__app-link:hover,
.mtic-header-services-mega__app-link:focus {
    background: rgba(1, 180, 150, 0.12);
    color: var(--mtic-teal);
}

.mtic-header-services-mega__app-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mtic-header-services-mega__app-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.mtic-header-services-mega__app-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
}

.mtic-header-services-mega__app-link:hover .mtic-header-services-mega__app-title,
.mtic-header-services-mega__app-link:focus .mtic-header-services-mega__app-title {
    color: var(--mtic-teal);
}

.mtic-header-services-mega__tagline {
    margin: 12px 0 0;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 1250px) {
    .mtic-header-menu > .mtic-header-services-menu > .mtic-header-services-mega {
        width: min(850px, calc(100vw - 32px));
        padding: 28px 32px;
        gap: 0px 24px;
    }

    .mtic-header-services-mega__column--services::after {
        right: -12px;
    }

}

@media (max-width: 1200px) {
    .mtic-header-menu > .mtic-header-services-menu > .mtic-header-services-mega {
        left: 0;
        width: min(800px, calc(100vw - 32px));
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 0px 26px;
        padding: 26px 24px;
        transform: translateX(0) translateY(10px);
    }

    .mtic-header-menu > .mtic-header-services-menu.mtic-header-dropdown-open > .mtic-header-services-mega {
        transform: translateX(0) translateY(0);
    }

    .mtic-header-services-mega__column--services::after {
        display: none;
    }

    .mtic-header-services-mega__column--apps {
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .mtic-header-services-mega__apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mtic-header-services-mega__apps-grid {
        gap: 14px;
    }

    .mtic-header-services-mega__app-link {
        padding: 10px 8px;
    }

    .mtic-header-services-mega__app-icon-wrap,
    .mtic-header-services-mega__app-icon {
        width: 36px;
        height: 36px;
    }
}

/* =========================================================
   MEDIA RELEASE / PRESS RELEASE DROPDOWN
   Two-column mega-menu (Speeches + News)
   ========================================================= */

.mtic-header-media-release-menu .mtic-header-column-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.mtic-header-media-release-menu .mtic-header-column-icon img.mtic-header-column-svg,
.mtic-header-media-release-menu .mtic-header-column-icon svg.mtic-header-column-svg,
.mtic-header-media-release-menu .mtic-header-column-svg {
    width: 64px;
    height: 64px;
}

.mtic-header-media-release-menu .mtic-header-column-heading > .mtic-header-menu-label {
    font-size: 1.0625rem;
    line-height: 1.3;
}

.mtic-header-media-release-menu .mtic-header-column-heading > .mtic-header-menu-label::after {
    width: 42px;
    height: 2px;
    margin-top: 20px;
    margin-bottom: 8px;
}

/* Tighten the gap between the heading underline and the first link */
.mtic-header-media-release-menu .mtic-header-child-menu {
    margin-top: 0;
}

/* Iconless child rows — label + chevron only */
.mtic-header-media-release-menu .mtic-header-child-menu .mtic-header-sub-menu-item > a {
    grid-template-columns: minmax(0, 1fr) 24px;
}

@media (max-width: 1200px) {
    .mtic-header-menu > .mtic-header-media-release-menu > .mtic-header-mega-menu {
        left: 0;
        width: min(700px, calc(100vw - 32px));
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 34px 28px;
        transform: translateX(0) translateY(10px);
    }

    .mtic-header-menu > .mtic-header-media-release-menu.mtic-header-dropdown-open > .mtic-header-mega-menu {
        transform: translateX(0) translateY(0);
    }
}

/* =========================================================
   MOBILE BURGER NAVIGATION (max 1200px)
   ========================================================= */

@media (max-width: 1200px) {
    body {
        --mtic-header-main-height: 58px;
        --mtic-header-logo-height: 38px;
        --mtic-header-main-height-scrolled: 48px;
        --mtic-header-logo-height-scrolled: 32px;
        --mtic-header-offset: var(--mtic-header-main-height);
        --mtic-header-layout-offset: var(--mtic-header-main-height);
        padding-top: var(--mtic-header-layout-offset);
    }

    .mtic-header-top-bar--desktop,
    .mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-top-bar--desktop {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mtic-header-main-nav {
        position: relative;
        z-index: 100001;
        height: var(--mtic-header-main-height);
    }

    .mtic-header-main-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 16px;
        height: 100%;
    }

    .mtic-header-branding {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
    }

    .mtic-header-logo {
        height: var(--mtic-header-logo-height);
        max-width: min(220px, 55vw);
    }

    .mtic-header-mobile-actions {
        display: flex;
        position: relative;
        z-index: 1;
    }

    .mtic-header-menu-container {
        display: none;
    }

    .mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-main-nav {
        height: var(--mtic-header-main-height-scrolled);
    }

    .mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-logo {
        height: var(--mtic-header-logo-height-scrolled);
    }

    /* Dropdown panel — below fixed header bar */
    .mtic-mobile-nav {
        display: block;
        position: fixed;
        top: var(--mtic-header-offset);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100dvh - var(--mtic-header-offset));
        z-index: 100000;
        background: var(--mtic-dark-green);
        color: #ffffff;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-16px);
        transition:
            top var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease),
            height var(--mtic-header-scroll-duration) var(--mtic-header-scroll-ease),
            transform 0.35s cubic-bezier(0.4, 0, 1, 1),
            opacity 0.35s cubic-bezier(0.4, 0, 1, 1),
            visibility 0s linear 0.35s;
        pointer-events: none;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav,
    html.mtic-mobile-nav-closing .mtic-mobile-nav {
        visibility: visible;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav {
        opacity: 1;
        transform: translateY(0);
        transition:
            transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 0s;
        pointer-events: auto;
    }

    html.mtic-mobile-nav-closing .mtic-mobile-nav {
        opacity: 0;
        transform: translateY(-16px);
        transition:
            transform 0.35s cubic-bezier(0.4, 0, 1, 1),
            opacity 0.35s cubic-bezier(0.4, 0, 1, 1),
            visibility 0s linear 0.35s;
        pointer-events: none;
    }

    /* Drawer content — staggered reveal on open, quick fade on close */
    .mtic-mobile-nav__footer,
    .mtic-mobile-nav__menu > .mtic-header-menu-item {
        opacity: 0;
        transition:
            opacity 0.25s cubic-bezier(0.4, 0, 1, 1),
            transform 0.25s cubic-bezier(0.4, 0, 1, 1);
        transition-delay: 0s;
    }

    .mtic-mobile-nav__menu > .mtic-header-menu-item {
        transform: translateX(12px);
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav__menu > .mtic-header-menu-item {
        opacity: 1;
        transform: translateX(0);
        transition:
            opacity 0.3s ease,
            transform 0.3s ease;
    }

    html.mtic-mobile-nav-closing .mtic-mobile-nav__footer,
    html.mtic-mobile-nav-closing .mtic-mobile-nav__menu > .mtic-header-menu-item {
        opacity: 0;
        transform: translateX(8px);
        transition-delay: 0s;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav__menu > .mtic-header-menu-item:nth-child(1) {
        transition-delay: 0.09s;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav__menu > .mtic-header-menu-item:nth-child(2) {
        transition-delay: 0.13s;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav__menu > .mtic-header-menu-item:nth-child(3) {
        transition-delay: 0.17s;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav__menu > .mtic-header-menu-item:nth-child(4) {
        transition-delay: 0.21s;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav__menu > .mtic-header-menu-item:nth-child(5) {
        transition-delay: 0.25s;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav__menu > .mtic-header-menu-item:nth-child(6) {
        transition-delay: 0.29s;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav__menu > .mtic-header-menu-item:nth-child(n+7) {
        transition-delay: 0.33s;
    }

    html.mtic-mobile-nav-open .mtic-mobile-nav__footer {
        opacity: 1;
        transition-delay: 0.35s;
    }

    /* Burger icon morph to X when open */
    .mtic-header-burger__icon,
    .mtic-header-burger__icon::before,
    .mtic-header-burger__icon::after {
        transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
    }

    html.mtic-mobile-nav-open .mtic-header-burger[aria-expanded="true"] .mtic-header-burger__icon {
        background: transparent;
    }

    html.mtic-mobile-nav-open .mtic-header-burger[aria-expanded="true"] .mtic-header-burger__icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    html.mtic-mobile-nav-open .mtic-header-burger[aria-expanded="true"] .mtic-header-burger__icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    html.mtic-mobile-nav-open {
        overflow: hidden;
    }

    html.mtic-mobile-nav-open body,
    html.mtic-mobile-nav-closing,
    html.mtic-mobile-nav-closing body {
        overflow: hidden;
    }

    .mtic-mobile-nav__inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mtic-mobile-nav__body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 24px;
    }

    .mtic-mobile-nav__divider {
        display: none;
    }

    .mtic-mobile-nav__footer {
        flex-shrink: 0;
        padding: 16px 20px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mtic-mobile-nav__tools {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .mtic-mobile-nav__tools .mtic-header-text-sizer {
        justify-content: flex-start;
    }

    .mtic-mobile-nav__search input[type="search"] {
        width: 100%;
        height: 40px;
        padding-left: 36px;
        font-size: 0.9375rem;
    }

    .mtic-mobile-nav__govbn {
        display: flex;
        justify-content: flex-end;
    }

    .mtic-mobile-nav__govbn img {
        height: 24px;
        width: auto;
    }

    /* Main menu — vertical accordion */
    .mtic-mobile-nav__menu {
        display: block;
        width: 100%;
        height: auto;
        min-width: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mtic-mobile-nav__menu > .mtic-header-menu-item {
        display: block;
        width: 100%;
        min-width: 0;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mtic-mobile-nav__menu > .mtic-header-menu-item > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        height: auto;
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
        background: transparent;
        box-sizing: border-box;
    }

    .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-header-home-icon-item > a {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-header-home-icon-item .mtic-header-home-icon {
        width: 1.25rem;   /* 20px */
        height: 1.375rem; /* 22px */
    }


    .mtic-mobile-nav__menu > .mtic-header-has-children > a::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
        flex-shrink: 0;
        margin-left: 12px;
        transition: transform 0.2s ease;
    }

    .mtic-mobile-nav__menu > .mtic-header-has-children.mtic-mobile-submenu-open > a::after {
        transform: rotate(45deg);
    }

    /* Expanded accordion block — teal gradient */
    .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-header-has-children {
        transition: background 0.3s ease;
    }

    .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-mobile-submenu-open {
        background: linear-gradient(
            180deg,
            rgba(var(--mtic-teal-rgb), 0.06) 0%,
            rgba(var(--mtic-teal-rgb), 0.14) 55%,
            rgba(var(--mtic-teal-rgb), 0.22) 100%
        );
        border-bottom: 0;
        box-shadow: none;
    }

    .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-mobile-submenu-open > a {
        background: transparent;
        color: var(--mtic-teal);
        box-shadow: none;
    }

    .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-mobile-submenu-open .mtic-header-mega-menu,
    .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-mobile-submenu-open .mtic-header-services-mega {
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    /* Mobile accordion submenus — height animated via header.js */
    .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item > .mtic-header-mega-menu,
    .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item > .mtic-header-services-mega {
        display: block;
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 0;
        height: 0;
        margin: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        background: transparent;
        grid-template-columns: none;
        gap: 0;
        z-index: auto;
        box-sizing: border-box;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-mobile-submenu-open > .mtic-header-mega-menu,
    .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-mobile-submenu-open > .mtic-header-services-mega {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .mtic-mobile-nav .mtic-header-mega-menu > .mtic-header-mega-column,
    .mtic-mobile-nav .mtic-header-mega-column {
        display: block;
        position: static;
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 0;
        margin: 0;
        grid-template-rows: none;
    }

    .mtic-mobile-nav .mtic-header-mega-column::after,
    .mtic-mobile-nav .mtic-header-mega-column:not(:last-child)::after {
        display: none;
    }

    /* Feature card (About MTIC intro) — hidden on mobile */
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-feature-card {
        display: none;
    }

    /* Section headings — icon + teal label in a row */
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-column-heading {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        height: auto;
        min-height: 0;
        padding: 14px 20px 4px;
        text-align: left;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-column-heading .mtic-header-column-icon {
        width: 40px;
        height: 40px;
        margin: 0;
        flex: 0 0 40px;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-column-heading .mtic-header-column-icon img.mtic-header-column-svg,
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-column-heading .mtic-header-column-icon svg.mtic-header-column-svg,
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-column-heading .mtic-header-column-svg {
        width: 40px;
        height: 40px;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-column-heading > .mtic-header-menu-label {
        height: auto;
        min-height: 0;
        display: block;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.3;
        color: var(--mtic-teal);
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-column-heading > .mtic-header-menu-label::after {
        display: none;
    }

    /* Child links — indented white bullet list */
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-child-menu {
        list-style: none;
        margin: 0;
        padding: 0 20px 12px 52px;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-child-menu .mtic-header-sub-menu-item > a {
        display: block;
        position: relative;
        min-height: 0;
        padding: 6px 0 6px 14px;
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.45;
        color: #ffffff;
        text-decoration: none;
        text-align: left;
        background: transparent;
        border-bottom: 0;
        grid-template-columns: unset;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-child-menu .mtic-header-sub-menu-item > a::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 6px;
        color: #ffffff;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-child-menu .mtic-header-sub-menu-item > a:hover,
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-child-menu .mtic-header-sub-menu-item > a:focus {
        color: var(--mtic-teal);
        background: transparent;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-child-icon,
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-child-arrow {
        display: none;
    }

    /* About MTIC mega — override fixed desktop panel size */
    .mtic-mobile-nav .mtic-header-about-menu > .mtic-header-mega-menu {
        height: auto;
        min-height: 0;
        padding: 0 0 16px;
    }

    /* Acts mega — single-column stack. The desktop/≤1200px rules give this
       panel a 5-column grid with 34px 28px padding and a 32px gap; those
       selectors out-rank the generic mobile reset, so re-flatten them here
       with enough specificity to match the other mobile dropdowns. */
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-menu-item.mtic-header-acts-menu > .mtic-header-mega-menu {
        display: block;
        grid-template-columns: none;
        gap: 0;
        padding: 0;
    }

    /* Override the desktop 128px fixed heading row, which would otherwise
       leave a large gap between each heading and its act list. */
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-menu-item.mtic-header-acts-menu > .mtic-header-mega-menu > .mtic-header-mega-column {
        display: block;
        grid-template-rows: none;
        padding: 0;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-acts-menu .mtic-header-child-menu .mtic-header-sub-menu-item > a {
        display: block;
        grid-template-columns: unset;
        border-bottom: 0;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-acts-menu .mtic-header-child-menu .mtic-header-sub-menu-item > a::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 4px;
        color: #ffffff;
        display: block;
    }

    /* Acts has 5 stacked category groups — tighten the per-group and
       per-item spacing so it reads as compactly as the other dropdowns. */
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-acts-menu .mtic-header-column-heading {
        padding-top: 8px;
        padding-bottom: 2px;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-acts-menu .mtic-header-child-menu {
        padding-bottom: 4px;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-acts-menu .mtic-header-child-menu .mtic-header-sub-menu-item > a {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-about-menu .mtic-header-child-menu .mtic-header-sub-menu-item > a {
        display: block;
        grid-template-columns: unset;
        border-bottom: 0;
        min-height: 0;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-about-menu .mtic-header-column-heading > .mtic-header-menu-label::after,
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-about-menu .mtic-header-feature-lockup::after {
        display: none;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-menu .mtic-header-column-heading > .mtic-header-menu-label::after {
        display: none;
    }

    /* Services mega — stack vertically */
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega {
        padding: 0 0 12px;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__column {
        width: 100%;
        padding: 0;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__column--services::after {
        display: none;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__column--services > .mtic-header-column-heading {
        display: none;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__column--apps {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        margin-top: 8px;
        padding-top: 12px;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__list {
        padding: 0 20px 8px 52px;
        margin-bottom: 0;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__list-item {
        list-style: none;
        border-bottom: 0;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__service-link {
        display: block;
        position: relative;
        min-height: 0;
        padding: 6px 0 6px 14px;
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.45;
        color: #ffffff;
        text-decoration: none;
        grid-template-columns: unset;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__service-link::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 6px;
        color: #ffffff;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__service-icon-wrap {
        display: none;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__service-link:hover,
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__service-link:focus {
        color: var(--mtic-teal);
        background: transparent;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__column--apps > .mtic-header-column-heading {
        padding-bottom: 12px;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__apps-grid {
        display: block;
        padding: 0 20px 8px 52px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__app-item {
        list-style: none;
        min-width: 0;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__app-link {
        display: block;
        position: relative;
        width: 100%;
        min-height: 0;
        padding: 6px 0 6px 14px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #ffffff;
        text-decoration: none;
        text-align: left;
        box-sizing: border-box;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__app-link::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 6px;
        color: #ffffff;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__app-icon-wrap {
        display: none;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__app-link:hover,
    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__app-link:focus {
        color: var(--mtic-teal);
        background: transparent;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__app-title {
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.45;
        min-height: 0;
        width: auto;
        text-align: left;
        color: inherit;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__tagline {
        display: none;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__footer {
        grid-column: auto;
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-top: 12px;
        padding: 14px 20px 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        box-sizing: border-box;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__apps-grid {
        border-bottom: 0;
    }

    .mtic-mobile-nav .mtic-mobile-nav__menu .mtic-header-services-mega__view-all {
        margin: 0;
    }

    /* Secondary top-bar menu */
    .mtic-mobile-nav__secondary-menu,
    .mtic-mobile-nav__secondary-menu .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mtic-mobile-nav__secondary-menu > li > a {
        display: block;
        min-height: 44px;
        padding: 10px 20px;
        font-size: 0.875rem;
        font-weight: 700;
        color: #ffffff;
        text-decoration: none;
    }

    .mtic-mobile-nav__secondary-menu > .menu-item-has-children > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mtic-mobile-nav__secondary-menu > .menu-item-has-children > a::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
        flex-shrink: 0;
        margin-left: 12px;
        transition: transform 0.2s ease;
    }

    .mtic-mobile-nav__secondary-menu > .menu-item-has-children.mtic-mobile-submenu-open > a::after {
        transform: rotate(45deg);
    }

    /* Mobile accordion submenus — height animated via header.js */
    .mtic-mobile-nav__secondary-menu > .menu-item-has-children > .sub-menu {
        display: block;
        position: static;
        height: 0;
        margin: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: none;
        background: transparent;
        box-shadow: none;
        border: 0;
        box-sizing: border-box;
    }

    .mtic-mobile-nav__secondary-menu > .menu-item-has-children.mtic-mobile-submenu-open > .sub-menu {
        pointer-events: auto;
    }

    .mtic-mobile-nav__secondary-menu .sub-menu a {
        display: block;
        min-height: 44px;
        padding: 8px 20px 8px 32px;
        font-size: 0.8125rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
    }

    .mtic-mobile-nav__secondary-menu .sub-menu a:hover,
    .mtic-mobile-nav__secondary-menu .sub-menu a:focus {
        color: var(--mtic-teal);
    }

    @media (prefers-reduced-motion: reduce) {
        .mtic-mobile-nav,
        .mtic-mobile-nav__menu > .mtic-header-menu-item,
        .mtic-mobile-nav__footer,
        .mtic-header-burger__icon,
        .mtic-header-burger__icon::before,
        .mtic-header-burger__icon::after {
            transition: none !important;
        }

        .mtic-mobile-nav,
        html.mtic-mobile-nav-closing .mtic-mobile-nav {
            transform: none;
            opacity: 1;
        }

        html.mtic-mobile-nav-open .mtic-mobile-nav {
            transform: none;
            opacity: 1;
        }

        .mtic-mobile-nav__footer,
        .mtic-mobile-nav__menu > .mtic-header-menu-item,
        html.mtic-mobile-nav-closing .mtic-mobile-nav__footer,
        html.mtic-mobile-nav-closing .mtic-mobile-nav__menu > .mtic-header-menu-item {
            opacity: 1;
            transform: none;
        }

        .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item > .mtic-header-mega-menu,
        .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item > .mtic-header-services-mega,
        .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-mobile-submenu-open > .mtic-header-mega-menu,
        .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item.mtic-mobile-submenu-open > .mtic-header-services-mega {
            transition: none !important;
            height: auto;
            padding-bottom: 12px;
        }

        .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item:not(.mtic-mobile-submenu-open) > .mtic-header-mega-menu,
        .mtic-mobile-nav .mtic-mobile-nav__menu > .mtic-header-menu-item:not(.mtic-mobile-submenu-open) > .mtic-header-services-mega {
            height: 0;
            padding: 0;
            pointer-events: none;
        }

        .mtic-mobile-nav__secondary-menu > .menu-item-has-children > .sub-menu,
        .mtic-mobile-nav__secondary-menu > .menu-item-has-children.mtic-mobile-submenu-open > .sub-menu {
            transition: none !important;
            height: auto;
            padding-bottom: 12px;
        }

        .mtic-mobile-nav__secondary-menu > .menu-item-has-children:not(.mtic-mobile-submenu-open) > .sub-menu {
            height: 0;
            padding: 0;
            pointer-events: none;
        }
    }
}

/* Override stacked/scroll rules when mobile burger is active */
@media (max-width: 1200px) {
    .mtic-header-main-inner {
        flex-direction: row;
        align-items: center;
        padding: 0 16px;
    }

    .mtic-header-branding {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .mtic-header-menu-container {
        overflow: visible;
    }

    .mtic-header-menu {
        width: 100%;
        min-width: 0;
    }

    .mtic-header-menu > .mtic-header-menu-item > a {
        height: auto;
    }

    .mtic-header-wrapper.mtic-header-hide-topbar .mtic-header-menu > .mtic-header-menu-item > a {
        height: auto;
    }
}
/* =========================================================
   DESKTOP HOVER FIX
   Allows desktop mega menus to open on hover/focus.
   Keep this near the end of the file so it overrides the
   default hidden mega-menu state.
   ========================================================= */

@media (min-width: 1201px) {
    .mtic-header-menu > .mtic-header-has-children:hover,
    .mtic-header-menu > .mtic-header-has-children:focus-within {
        background: linear-gradient(
            180deg,
            rgba(var(--mtic-teal-rgb), 0.04) 0%,
            rgba(var(--mtic-teal-rgb), 0.10) 55%,
            rgba(var(--mtic-teal-rgb), 0.18) 100%
        );
        box-shadow: inset 0 -3px 0 var(--mtic-teal);
    }

    .mtic-header-menu > .mtic-header-has-children:hover > a,
    .mtic-header-menu > .mtic-header-has-children:focus-within > a {
        color: var(--mtic-teal) !important;
        background: transparent !important;
    }

    .mtic-header-menu > .mtic-header-has-children:hover > .mtic-header-mega-menu,
    .mtic-header-menu > .mtic-header-has-children:focus-within > .mtic-header-mega-menu,
    .mtic-header-menu > .mtic-header-services-menu:hover > .mtic-header-services-mega,
    .mtic-header-menu > .mtic-header-services-menu:focus-within > .mtic-header-services-mega {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}
