/* mega-menu.css — FULL REPLACEMENT */

.site-header,
.site-navigation,
.site-navigation__links {
    position: relative;
    z-index: 99990;
    overflow: visible !important;
}


/* =========================================================
   EXISTING MEGA MENU
   ========================================================= */

.mega {
    position: relative;
    z-index: 99991;
}

.mega__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 99999;

    width: min(1120px, calc(100vw - 40px));

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%, 8px);

    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s ease;
}

.mega.is-hover-open > .mega__panel,
.mega:hover > .mega__panel,
.mega:focus-within > .mega__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}


/* =========================================================
   SERVICES
   ========================================================= */
/* REPLACE ONLY THE SERVICES POSITIONING BLOCK IN mega-menu.css */

.mega--services {
    position: static !important;
}

.mega--services > .mega__panel--services {
    position: fixed !important;
    top: var(--va-mega-top, 187px) !important;
    left: 50% !important;

    width: min(1380px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;

    display: block !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translate(-50%, 8px) !important;

    z-index: 100000 !important;
}

.mega--services.is-hover-open > .mega__panel--services,
.mega--services:hover > .mega__panel--services,
.mega--services:focus-within > .mega__panel--services {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) !important;
}
/* =========================================================
   SERVICES CONTENT
   ========================================================= */

.services-menu__compact {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 20px 18px 16px;
}

.services-menu__group {
    min-width: 0;
    padding: 0 16px;
    border-right: 1px solid #e5eaf0;
}

.services-menu__group:first-child {
    padding-left: 6px;
}

.services-menu__group:last-child {
    padding-right: 6px;
    border-right: 0;
}

.services-menu__group-title {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 44px;
    margin-bottom: 8px;
    padding-bottom: 8px;

    border-bottom: 1px solid #e5eaf0;
}

.services-menu__group-icon {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    border-radius: 6px;

    background: #edf5fb;
    color: #1265ad;

    font-size: 14px;
}

.services-menu__group-title strong {
    display: block;

    color: #08244a;

    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.services-menu__group-title small {
    display: block;

    margin-top: 2px;

    color: #7a899a;

    font-size: 12px;
    line-height: 1.2;
}

.services-menu__links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.services-menu__links a {
    display: flex;
    align-items: center;

    min-height: 31px;
    padding: 4px 5px;

    border: 1px solid transparent;
    border-radius: 4px;

    color: #46576b;

    font-size: 14px;
    line-height: 1.25;
    font-weight: 500;

    text-decoration: none;

    transition:
        color .15s ease,
        background .15s ease,
        border-color .15s ease;
}

.services-menu__links a i {
    width: 21px;
    margin-right: 7px;
    flex: 0 0 21px;

    color: #1265ad;

    font-size: 13px;
    text-align: center;
}

.services-menu__links a:hover {
    color: #08244a;
    background: #f3f7fb;
    border-color: #e1e8ef;
}


/* =========================================================
   VIEW ALL STANDARDS
   ========================================================= */

.services-menu__footer {
    padding: 0 18px 16px;
}

.services-menu__footer > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 48px;
    padding: 9px 15px;

    background: #08244a;
    color: #fff;

    border-radius: 6px;

    text-decoration: none;

    transition: background .15s ease;
}

.services-menu__footer > a:hover {
    background: #1265ad;
    color: #fff;
}

.services-menu__footer strong {
    display: block;

    color: #fff;

    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
}

.services-menu__footer small {
    display: block;

    margin-top: 2px;

    color: rgba(255,255,255,.62);

    font-size: 12px;
    line-height: 1.25;
}

.services-menu__footer i {
    flex: 0 0 auto;
    color: #ffbd3f;
    font-size: 15px;
}


/* =========================================================
   OTHER EXISTING MEGA MENUS
   ========================================================= */

.mega__layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 26px;

    padding: 24px;

    background: #fff;
    border: 1px solid #dfe6ed;

    box-shadow: 0 22px 55px rgba(3,21,47,.18);
}

.mega__intro h3 {
    margin: 8px 0 10px;
    color: #08244a;
    font-size: 25px;
    line-height: 1.1;
}

.mega__intro p {
    margin: 0 0 16px;
    color: #667689;
    font-size: 14px;
    line-height: 1.6;
}

.mega__intro a {
    color: #1265ad;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mega__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mega__industry {
    position: relative;
    min-height: 135px;
    overflow: hidden;
    background: #08244a;
    color: #fff;
}

.mega__industry-image,
.mega__industry-image img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.mega__industry-image {
    opacity: .65;
}

.mega__industry-content {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
}

.mega__industry-content strong {
    display: block;
    font-size: 14px;
}

.mega__industry-content small {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
}

.mega__industry-content i {
    position: absolute;
    right: 0;
    bottom: 0;
    color: #ffbd3f;
}


/* =========================================================
   HERO ALWAYS BELOW MEGA MENU
   ========================================================= */

main,
.hero,
.va-hero,
[class*="hero"] {
    position: relative;
    z-index: 1;
}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media (min-width: 981px) and (max-width: 1250px) {

    .mega--services > .mega__panel--services {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
    }

    .services-menu__compact {
        padding-left: 10px;
        padding-right: 10px;
    }

    .services-menu__group {
        padding-left: 9px;
        padding-right: 9px;
    }

    .services-menu__group-title small {
        display: none;
    }

    .services-menu__links a {
        font-size: 13px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 980px) {

    .mega--services {
        position: relative !important;
    }

    .mega--services > .mega__panel--services {
        position: static !important;

        display: none !important;

        width: 100% !important;
        max-width: none !important;

        padding: 0 !important;

        transform: none !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .mega--services.is-open > .mega__panel--services {
        display: block !important;
    }

    .services-menu__compact {
        grid-template-columns: 1fr;
        padding: 8px 0;
    }

    .services-menu__group,
    .services-menu__group:first-child,
    .services-menu__group:last-child {
        padding: 12px 0;
        border-right: 0;
        border-bottom: 1px solid #e5eaf0;
    }

    .services-menu__links a {
        min-height: 40px;
        font-size: 14px;
    }

    .services-menu__footer {
        padding: 14px 0;
    }
}
/* =========================================================
   SERVICES MEGA MENU — SOLID BACKGROUND
   ========================================================= */

.mega--services > .mega__panel--services {
    background-color: #ffffff !important;
    background-image: none !important;
    isolation: isolate;
    overflow: hidden;
}

.mega--services > .mega__panel--services .services-menu__compact {
    background: #ffffff !important;
}

.mega--services > .mega__panel--services .services-menu__group {
    background: #ffffff !important;
}

.mega--services > .mega__panel--services .services-menu__footer {
    background: #ffffff !important;
}
/* =========================================================
   SERVICES MENU — CONSISTENT ARROW ICONS + COMPACT VIEW ALL
   ========================================================= */

/* Use the same arrow icon for every service link */
.mega--services .services-menu__links a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    min-width: 18px;
    height: 18px;

    margin-right: 8px;

    color: #1265ad;
    font-size: 13px;
}

/* Compact View All button */
.mega--services .services-menu__footer {
    display: flex;
    justify-content: center;
    padding: 8px 0 12px;
}

.mega--services .services-menu__footer > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 300px;
    min-height: 44px;

    padding: 7px 14px;

    gap: 18px;

    border-radius: 5px;
}

.mega--services .services-menu__footer > a > span {
    display: block;
    text-align: left;
}

.mega--services .services-menu__footer strong {
    font-size: 14px;
    line-height: 1.2;
}

.mega--services .services-menu__footer small {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.2;
}

.mega--services .services-menu__footer > a > i {
    width: 18px;
    margin: 0;

    font-size: 14px;
}