/* ===========================
Variables
=========================== */
:root {
    --mm-height: 64px;
    --mm-text: #090a0b;
    --mm-text-active: #8a8a8a;
    --mm-active: #1d59d3;
    --mm-blue: #0337a1;
    --mm-font-size: 14px;
    --mm-radius: 4px;
}

/* ===========================
Header bar
=========================== */
.et-l--header {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
}

.navbar-wrapper {
    position: sticky !important;
    top: 0;
    z-index: 99999;
    background: #ffffff;
}

.mm-header {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid #D4D4D4;
}

.mm-header__inner {
    display: flex;
    align-items: center;
    height: var(--mm-height);
    margin: 0 auto;
    padding: 0 !important;
    width: 90% !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
}

/* Logo */
.mm-header__logo {
    flex-shrink: 0;
    margin-right: 36px;
    display: flex;
    align-items: center;
}

.mm-header__logo img {
    height: 20px;
    width: auto;
    display: block;
}

/* ===========================
Desktop Nav
=========================== */
.mm-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.mm-nav__list {
    display: flex;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mm-nav__item {
    position: static;
}

.mm-nav__link {
    font-size: 14px !important;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    margin: 6px 2px;
    height: calc(var(--mm-height) - 25px); 
    line-height: calc(var(--mm-height) - 25px);
    color: var(--mm-text);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.5s ease, color 0.15s ease;
    border-radius: var(--mm-radius);
}

.mm-nav__link:hover,
.mm-nav__item.is-open > .mm-nav__link {
    background-color: rgba(237, 237, 237) !important;
}

.mm-nav__chevron--default, .mm-nav__chevron--active {
    margin-left: 10px;
}

.mm-nav__chevron--active {
    display: none;
}

.mm-nav__link:hover .mm-nav__chevron--default,
.mm-nav__item.is-open > .mm-nav__link .mm-nav__chevron--default {
    display: none;
}

.mm-nav__link:hover .mm-nav__chevron--active,
.mm-nav__item.is-open > .mm-nav__link .mm-nav__chevron--active {
    display: block;
}

/* ===========================
Action items
=========================== */
.mm-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.mm-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: var(--mm-radius);
    transition: background-color 0.5s ease, color 0.15s ease;
}

.mm-search-toggle:hover {
    background-color: rgba(237, 237, 237) !important;
}

.mm-search-toggle img {
    width: 32px;
    height: 32px;
    display: block;
}

.mm-separator {
    width: 1px;
    height: 20px;
    margin-left: 15px !important;
    background: #d4d4d4;
}

.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: var(--mm-radius);
    font-size: var(--mm-font-size) !important;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.mm-btn--outline {
    border: 1px solid var(--mm-blue);
    color: var(--mm-blue);
    background: transparent;
}

.mm-btn--outline:hover {
    background: #E7F2FE;
}

.mm-btn--text {
    color: var(--mm-text);
    background: transparent;
    border: none;
    padding: 8px 8px;
    transition: background-color 0.5s ease, color 0.15s ease;
    margin: 6px 2px;
    height: calc(var(--mm-height) - 25px); 
    line-height: calc(var(--mm-height) - 25px);
    border-radius: var(--mm-radius);
}

.mm-btn--text:hover {
    background-color: rgba(237, 237, 237) !important;
}

.mm-btn--primary {
    background: var(--mm-blue);
    color: #fff;
    border: 1px solid var(--mm-blue);
}

.mm-btn--primary:hover {
    background: var(--mm-active);
}

.mm-btn--full {
    width: 100%;
    text-align: center;
}

/* ===========================
Desktop Megamenu
=========================== */
.mm-dropdown {
    position: absolute;
    top: var(--mm-height);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 9998;
}

.mm-nav__item.is-open > .mm-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mm-dropdown__inner {
    margin: 0 auto;
    padding: 48px 5% !important;
    max-width: 90% !important;
}

.mm-dropdown__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 72px;
    align-items: start;
}

.mm-dropdown__column {
    min-width: 0;
}

.mm-dropdown__col-title {
    display: block;
    margin-bottom: 28px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8A8A8A;
}

.mm-dropdown__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mm-dropdown__item {
    margin: 0;
}

.mm-dropdown__item + .mm-dropdown__item {
    margin-top: 28px;
}

.mm-dropdown__item a {
    display: block;
    text-decoration: none;
    color: var(--mm-text);
}

.mm-dropdown__item-title {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    color: #161616;
    transition: color 0.15s;
}

.mm-dropdown__item-desc {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 400;
    color: #929292;
}

.mm-dropdown__item a:hover .mm-dropdown__item-title {
    color: var(--mm-blue);
}

.mm-dropdown__column--banner {
    max-width: 426px;
}

.mm-menu-banner {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 24px 24px 0;
    background: #B6D9FC;
    color: #090a0b;
    text-decoration: none;
    overflow: hidden;
    border-radius: 4px;
}

.mm-menu-banner__subtitle {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--mm-blue);
}

.mm-menu-banner__title {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    color: #090A0B;
}

.mm-menu-banner__content {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 450;
    color: #090A0B;
}

.mm-menu-banner__button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--mm-blue);
}

.mm-menu-banner__image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 24px;
}

/* ===========================
Hamburger icon
=========================== */
.mm-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 20px;
}

.mm-hamburger img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ===========================
Mobile Overlay
=========================== */
.mm-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10000;
    overflow: hidden;
}

.mm-mobile.is-open {
    display: block;
}

.mm-mobile__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    background: #fff;
}

.mm-mobile__panel--main {
    transform: translateX(-100%);
}

.mm-mobile__panel--main.is-active,
.mm-mobile__panel--sub.is-active {
    transform: translateX(0);
}

.mm-mobile.sub-open .mm-mobile__panel--main {
    transform: translateX(-100%);
}

.mm-mobile__header {
    display: grid;
    grid-template-columns: auto 1fr 44px;
    align-items: center;
    height: var(--mm-height);
    padding: 0 16px;
    flex-shrink: 0;
    border-bottom: 1px solid #eee;
}

.mm-mobile__header .mm-header__logo {
    margin-right: 0;
}

.mm-mobile__panel-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--mm-text);
}

.mm-mobile__back,
.mm-mobile__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-mobile__back {
    justify-self: start;
}

.mm-mobile__close {
    justify-self: end;
}

.mm-mobile__back img,
.mm-mobile__close img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Main mobile menu */
.mm-mobile__list,
.mm-mobile__sub-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 18px 26px 64px !important;
}

.mm-mobile__item {
    margin: 0;
    border: 0 !important;
}

/* Mobile parent links */
.mm-mobile__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    font-size: 20px !important;;
    line-height: 1.25;
    font-weight: 400 !important;
    color: var(--mm-text);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

/* Mobile section headings */
.mm-mobile__section-title {
    display: block;
    margin: 18px 0 10px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8A8A8A;
}

.mm-mobile__sub-list > .mm-mobile__item:first-child .mm-mobile__section-title {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Mobile submenu item links */
.mm-mobile__sub-list .mm-mobile__link {
    padding: 12px 0;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
}

/* Hide descriptions on mobile by default */
.mm-mobile__item-desc {
    display: none;
}

.mm-mobile__actions {
    margin-top: auto;
    padding: 20px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===========================
Search overlay
=========================== */
.mm-search {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 0;
}

.mm-search.is-open {
    display: flex;
}

.mm-search form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    max-width: 600px;
    gap: 12px;
}

.mm-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px !important;
}

.mm-search__close {
    background: none;
    border: none;
    cursor: pointer;
}

.mm-search__close img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ===========================
Responsive
=========================== */
@media (max-width: 1366px) {
    .mm-header__inner {
        padding-left: 2% !important;
        padding-right: 2% !important;
        width: 98% !important;
    }

    .mm-dropdown__inner {
        padding: 48px 2% !important;
        max-width: 100% !important;
        width: 98% !important;
    }
}

/* 640px to 1210px */
@media (max-width: 1210px) {
    .mm-nav {
        display: none;
    }

    .mm-hamburger {
        display: flex;
    }
}

/* under 640px */
@media (max-width: 639px) {
    .mm-btn--outline,
    .mm-btn--text,
    .mm-btn--primary,
    .mm-separator {
        display: none !important;
    }

    #mm-mobile-main .mm-btn--outline,
    #mm-mobile-main .mm-btn--text,
    #mm-mobile-main .mm-btn--primary,
    #mm-mobile-main .mm-separator {
        display: block !important;
    }

    .mm-header__inner {
        max-width: none;
        padding: 0 20px !important;
        width: 100% !important;
    }

    .mm-header__logo {
        margin-right: 0;
    }
}