@media (min-width: 1024px) {
    .header-two .second-menu > .row > div:has(.main-menu) {
        align-self: stretch;
    }

    .header-two .main-menu {
        position: static;
        height: 100%;
        display: flex;
        align-items: stretch;
        justify-content: flex-end;
    }

    .header-two .main-menu nav {
        height: 100%;
    }

    .header-two .main-menu nav > ul {
        display: flex;
        align-items: stretch;
        justify-content: flex-end;
        height: 100%;
    }

    .header-two .main-menu nav > ul > li {
        display: flex;
        align-items: center;
        float: none;
    }

    .header-two .main-menu nav > ul > li > a {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .header-two .main-menu nav > ul > li.menu-item-has-children:not(.menu-item-services) > ul.sub-menu {
        top: 100%;
        margin-top: 0;
    }

    .header-two .main-menu .menu-item-services {
        position: static;
    }

    .header-two .main-menu .menu-item-services > .services-mega {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: 28px;
        row-gap: 22px;
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        width: min(1240px, 100%);
        min-width: 0;
        max-height: calc(100dvh - var(--services-mega-offset, 96px) - 12px);
        margin: 0;
        padding: 22px 28px 20px;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        background: #fff;
        border-top: 4px solid #2EBB77;
        box-shadow: 0 10px 15px rgba(25, 25, 25, 0.1);
        z-index: 30;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .header-two .main-menu .menu-item-services:hover > .services-mega,
    .header-two .main-menu .menu-item-services:focus-within > .services-mega,
    .header-two .main-menu .menu-item-services.is-open > .services-mega {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    html.services-mega-ready .header-two .main-menu .menu-item-services:hover > .services-mega {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    html.services-mega-ready .header-two .main-menu .menu-item-services.is-open > .services-mega,
    html.services-mega-ready .header-two .main-menu .menu-item-services:focus-within > .services-mega {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    html.services-mega-ready .header-two .main-menu .menu-item-services.is-dismissed > .services-mega {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .header-two .main-menu .services-mega li {
        display: block;
        float: none;
        width: auto;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border: 0;
        text-align: left;
        position: static;
    }

    .header-two .main-menu .services-mega__lead,
    .header-two .main-menu .services-mega__foot {
        grid-column: 1 / -1;
    }

    .header-two .main-menu li.services-mega__lead {
        padding-bottom: 14px;
        border-bottom: 1px solid #e3e3e3;
    }

    .header-two .main-menu .services-mega a {
        display: block;
        padding: 6px 0;
        color: #4f4f4f;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: break-word;
        text-decoration: none;
    }

    .header-two .main-menu .services-mega a:hover {
        color: #2EBB77;
        text-decoration: underline;
    }

    .header-two .main-menu .services-mega__lead a {
        padding: 0;
        color: #1e2126;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
    }

    .header-two .main-menu .services-mega__lead a:hover {
        color: #2EBB77;
        text-decoration: none;
    }

    .header-two .main-menu .services-mega__title {
        display: block;
        margin: 0 0 8px;
        padding: 0;
        color: #1e2126;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        text-decoration: none;
    }

    .header-two .main-menu a.services-mega__title:hover {
        color: #2EBB77;
        text-decoration: none;
    }

    .header-two .main-menu .services-mega__list,
    .header-two .main-menu .services-mega__sub {
        display: block;
        position: static;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    .header-two .main-menu .services-mega__sub {
        margin: 0 0 4px;
        padding-left: 12px;
    }

    .header-two .main-menu .services-mega__sub a {
        padding: 3px 0;
        color: #6b6b6b;
        font-size: 14px;
    }

    .header-two .main-menu li.services-mega__foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px 24px;
        flex-wrap: wrap;
        margin-top: 18px;
        padding-top: 22px;
        border-top: 1px solid #d7d7d7;
    }

    .header-two .main-menu .services-mega__foot p {
        margin: 0;
        color: #666666;
        font-size: 15px;
        line-height: 1.4;
    }

    .header-two .main-menu .services-mega__foot .btn {
        flex: 0 0 auto;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .header-two .main-menu .menu-item-services > .services-mega {
        column-gap: 16px;
        row-gap: 18px;
        padding: 18px 18px 16px;
    }

    .header-two .main-menu .services-mega__title {
        min-height: 2.7em;
    }
}

@media (min-width: 1440px) {
    .header-two .main-menu .menu-item-services > .services-mega {
        column-gap: 32px;
        padding: 26px 32px 22px;
    }

    .header-two .main-menu .services-mega__title {
        min-height: 2.7em;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .header-two .main-menu .menu-item-services > .services-mega {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 20px;
        padding: 18px 18px 16px;
    }
}

.mean-container .services-mega,
.mean-container .services-mega__list,
.mean-container .services-mega__sub {
    position: static;
    width: auto;
    min-width: 0;
    transform: none;
    box-shadow: none;
    border: 0;
    max-height: none;
    overflow: visible;
}

.mean-container .services-mega__title {
    display: block;
    padding: 10px 10%;
    color: #0c1923;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

.mean-container .services-mega__foot {
    padding: 12px 5% 16px;
}

.mean-container .services-mega__foot p {
    margin: 0 0 12px;
    color: #0c1923;
    font-size: 14px;
    line-height: 1.4;
}

.mean-container .services-mega__foot .btn {
    white-space: normal;
}

.mean-container .services-mega a {
    white-space: normal;
    overflow-wrap: break-word;
}
