/* Mega menu for the NEST header */
@media (min-width: 992px) {
    .header-style-1 .header-bottom-bg-color {
        background-color: var(--color-brand) !important;
        border-top: 0 !important;
        border-bottom: 0 !important;
        padding: 0;
        position: relative;
        z-index: 200;
        overflow: visible !important;
    }

    .header-style-1 .header-bottom-bg-color .container,
    .header-style-1 .header-bottom-bg-color .header-wrap,
    .header-style-1 .header-bottom-bg-color .header-nav,
    .header-style-1 .header-bottom-bg-color .main-menu,
    .header-style-1 .header-bottom-bg-color .main-menu nav {
        overflow: visible !important;
    }

    .header-style-1 .header-bottom-bg-color .header-wrap {
        min-height: 50px;
    }

    .header-style-1 .header-bottom-bg-color .main-categories-wrap {
        display: none !important;
    }

    .header-style-1 .header-bottom-bg-color .hotline {
        display: none !important;
    }

    .header-style-1 .header-bottom-bg-color .header-nav,
    .header-style-1 .header-bottom-bg-color .main-menu,
    .header-style-1 .header-bottom-bg-color .main-menu nav {
        width: 100%;
    }

    .header-style-1 .header-bottom-bg-color .hotline p,
    .header-style-1 .header-bottom-bg-color .hotline p span,
    .header-style-1 .header-bottom-bg-color .hotline .hotline-call-text {
        color: #fff !important;
    }

    .header-style-1 .header-bottom-bg-color .hotline img {
        filter: brightness(0) invert(1);
        opacity: .9;
    }
}

.main-menu .mega-menu,
.main-menu .mega-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu .mega-menu {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    position: static;
}

.main-menu .mega-menu > li {
    position: static;
    margin: 0;
}

.main-menu .mega-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 50px;
    padding: 0 16px;
    border-right: 1px solid rgba(255, 255, 255, .18);
    background: transparent !important;
    color: #fff !important;
    font-family: var(--font-heading), sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease;
}

.main-menu .mega-menu > li:first-child > a {
    padding-left: 0;
}

.main-menu .mega-menu > li:last-child > a {
    border-right: 0;
}

.main-menu .mega-menu > li > a:hover,
.main-menu .mega-menu > li:focus-within > a,
.main-menu .mega-menu > li.is-open > a {
    background: rgba(255, 255, 255, .13) !important;
    color: #fff !important;
}

.main-menu .mega-menu > li > a i {
    font-size: 10px;
    line-height: 1;
    opacity: .85;
    transition: transform .18s ease;
}

.main-menu .mega-menu > li:hover > a i,
.main-menu .mega-menu > li:focus-within > a i {
    transform: rotate(180deg);
}

.main-menu .mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 22px 45px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.main-menu .mega-panel--1 {
    right: auto;
    width: 340px;
    left: 0;
}

.main-menu .mega-panel--2 {
    right: auto;
    width: 680px;
    left: 0;
}

.main-menu .mega-menu > li.has-mega:hover > .mega-panel,
.main-menu .mega-menu > li.has-mega:focus-within > .mega-panel,
.main-menu .mega-menu > li.has-mega.is-open > .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-panel__inner {
    display: grid;
    grid-template-columns: repeat(var(--mega-cols, 4), minmax(0, 1fr));
    column-gap: 34px;
    padding: 26px 30px 14px;
}

.mega-col {
    min-width: 0;
}

.mega-group {
    margin-bottom: 22px;
}

.mega-group:last-child {
    margin-bottom: 4px;
}

.mega-group__title {
    display: block;
    margin: 0 0 7px;
    color: #1d1d1d !important;
    font-family: var(--font-heading), sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.mega-group ul {
    margin: 0;
    padding: 0;
}

.mega-group ul li {
    margin: 0;
    padding: 0;
}

.mega-group ul a {
    display: block;
    padding: 3px 0;
    color: #4c4c4c !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-decoration: none;
    transition: color .15s ease;
}

.mega-group__title:hover,
.mega-group ul a:hover {
    color: var(--color-brand) !important;
}

.mega-panel a:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}
