/* DESKTOP */
@media only screen and (min-width: 982px) {

    .menu-item-has-children.menu-item-85142>ul.sub-menu {
        position: absolute !important;
        width: min(1400px, calc(100vw - 40px)) !important;
        left: 50% !important;
        top: 50%;
        transform: translateX(-37%) !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 10px !important;
        overflow: visible;
        box-shadow: none !important;
        z-index: 99999 !important;
    }

    .menu-item-has-children.menu-item-85142>ul.sub-menu>li {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Main container */
    #mega-menu-wrapper .services-meni-section {
        padding: 0;
    }

    #mega-menu-wrapper .services-container {
        width: 100%;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    }

    #mega-menu-wrapper .desktop-services {
        display: flex;
        width: 100%;
        min-height: 330px;
    }

    /* LEFT SIDEBAR */
    #mega-menu-wrapper .services-sidebar {
        width: 391px;
        flex: 0 0 391px;
        background: #333333;
        padding: 24px 0;
        padding-left: 24px;
    }

    #mega-menu-wrapper .services-label {
        display: inline-block;
        margin: 0 0px 30px;
        padding: 8px 20px;
        border-radius: 30px;
        background: rgba(33, 150, 83, 0.18);
        border: 1px solid rgba(196, 196, 196, 0.26);
        color: #FFFFFF;
        font-size: 14px;
        line-height: 18px;
        font-weight: 500;
    }

    #mega-menu-wrapper .service-nav {
        width: 100%;
    }

    #mega-menu-wrapper .service-nav-item {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 15px 16px;
        color: #fff;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        cursor: pointer;
        font-size: 18px;
        line-height: 25px;
        font-weight: 500;
        transition: background .25s ease, padding-left .25s ease;
    }

    #mega-menu-wrapper .service-nav-item:hover {
        background: rgba(255, 255, 255, .06);
    }

    #mega-menu-wrapper .service-nav-item.active {
        background: #219653;
    }

    #mega-menu-wrapper .service-nav-item.active:hover {
        background: #219653;
    }

    #mega-menu-wrapper .service-nav-icon {
        width: 32px;
        height: 32px;
    }

    /* RIGHT */

    #mega-menu-wrapper .services-content {
        flex: 1;
        min-width: 0;
        padding: 23px 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: #fff;
    }

    #mega-menu-wrapper .panels-wrapper {
        width: 100%;
    }

    #mega-menu-wrapper .service-panel {
        display: none;
    }

    #mega-menu-wrapper .service-panel.active {
        display: block;
    }

    /* animation */
    #mega-menu-wrapper .panel-animate {
        animation:
            megaPanelFade .35s ease;
    }

    @keyframes megaPanelFade {

        from {
            opacity: 0;
            transform: translateY(7px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* SERVICE CARDS */

    #mega-menu-wrapper .service-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    #mega-menu-wrapper .service-card {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px !important;
        border: 1px solid rgba(149, 157, 165, 0.2);
        border-radius: 8px;
        background: #fff;
        color: #333333 !important;
        font-size: 16px !important;
        line-height: 24px !important;
        font-weight: 600 !important;
        transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
    }

    #mega-menu-wrapper .service-card.featured {
        background: rgba(149, 157, 165, 0.2);
    }

    #mega-menu-wrapper .service-card:hover {
        background: rgba(149, 157, 165, 0.2) !important;
        opacity: 1 !important;
        box-shadow: none !important
    }

    /* Remove old dot styles */
    #mega-menu-wrapper .service-card::before {
        display: none !important;
    }

    .et-fixed-header #mega-menu-wrapper .service-card {
        color: #333333 !important;
    }

    /* CARD ICONS */
    .service-card .service-card-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        flex: 0 0 48px;
    }

    .service-card .service-card-icon img {
        display: block;
        width: 48px;
        height: 48px;
        max-width: none;
        object-fit: contain;
    }

    /* BOTTOM */
    .service-panel-inner-container {
        height: 485px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .digital-marketing-setvice-bottom {
        display: flex;
        justify-content: start !important;
        align-items: center !important;
        gap: 50px !important;
    }

    #mega-menu-wrapper .service-bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    #mega-menu-wrapper .audit-box {
        padding: 18px;
        border-radius: 12px;
        background: #333333;
        color: #fff;
    }

    #mega-menu-wrapper .audit-box .audit-box-titel {
        margin: 0 0 4px;
        padding: 0;
        color: #fff;
        font-size: 16px;
        line-height: 24px;
        text-transform: uppercase;
        font-weight: 600;
    }

    #mega-menu-wrapper .audit-box .audit-box-text {
        margin: 0 0 12px;
        padding: 0;
        color: #fff;
        font-size: 14px;
        line-height: 20px;
        font-weight: 400;
    }

    #mega-menu-wrapper .audit-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 13px !important;
        border-radius: 30px;
        background: #219653;
        color: #fff !important;
        font-size: 14px !important;
        line-height: 20px !important;
        text-decoration: none;
        font-weight: 600;
        width: auto;
        margin-top: 10px !important;
        transition: .25s ease;
    }

    #mega-menu-wrapper .audit-btn span {
        position: relative;
        top: 3px;
    }

    #mega-menu-wrapper .audit-btn:hover {
        background: #18894b !important;
        color: #fff !important;
    }

    #mega-menu-wrapper .service-stats {
        display: flex;
        gap: 30px;
        align-items: end;
    }

    .stat-number-item {
        display: flex;
        align-items: center;
        margin-top: 5px;
    }

    #mega-menu-wrapper .stat-number {
        color: #333;
        font-size: 24px;
        line-height: 16px;
        font-weight: 700;
    }

    #mega-menu-wrapper .stat-text {
        margin-left: 5px;
        color: #333;
        font-size: 16px;
        line-height: 16px;
        font-weight: 500;
    }

    .digital-marketing-audit-box {
        display: flex;
        align-items: center;
        gap: 22px;
    }

    .digital-marketing-audit-box .audit-btn {
        margin-top: 10px;
    }

    #mega-menu-wrapper .audit-box.digital-marketing-audit-box {
        width: 51%;
        max-width: 530px;
    }

    .branding-audit-box {
        background: url('https://ecomgiantz.com/wp-content/uploads/2026/09/ecommerce-website-design.svg') !important;
        background-position: center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        height: 165px;
        width: 100% !important;
        max-width: 454px;
        align-items: center;
        display: flex;
    }

    .branding-service-bottom {
        align-items: center !important;
    }

    .branding-service-stats {
        border: 1px solid rgba(149, 157, 165, 0.2);
        padding: 20px;
        border-radius: 12px;
        height: 165px !important;
        align-items: center !important;
    }

    .branding-service-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 40px;
        justify-content: space-between;
        width: 100%;
    }

    #mega-menu-wrapper .branding-service-stats .audit-btn:hover {
        background: #18894b !important;
        color: #fff !important;
    }

}


@media only screen and (max-width: 981px) {

    /* MAIN SERVICES OPEN / CLOSE */
    .et_mobile_menu .menu-item-85142 .mega-menu-wrapper {
        display: none !important;
    }

    .et_mobile_menu .menu-item-85142 .mega-menu-wrapper.open {
        display: block !important;
    }

    /* RESET DESKTOP LAYOUT */
    #mega-menu-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff;
        border-radius: 0;
        box-shadow: none;
    }

    #mega-menu-wrapper .services-meni-section,
    #mega-menu-wrapper .services-container,
    #mega-menu-wrapper .desktop-services,
    #mega-menu-wrapper .services-sidebar,
    #mega-menu-wrapper .service-nav,
    #mega-menu-wrapper .services-content,
    #mega-menu-wrapper .panels-wrapper {
        display: contents !important;
    }

    /* Hide desktop-only label. Your Divi menu already displays "Services". */
    #mega-menu-wrapper .services-label {
        display: none !important;
    }

    /* Hide desktop bottom section */

    #mega-menu-wrapper .service-bottom {
        display: none !important;
    }

    /*  CATEGORY */
    #mega-menu-wrapper .service-nav-item {
        position: relative;
        display: flex !important;
        width: 100%;
        align-items: center;
        padding: 13px 20px !important;
        margin: 0 !important;
        background: #fff !important;
        border: 0 !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 0 !important;
        color: #161616 !important;
        font-size: 16px !important;
        line-height: 22px !important;
        font-weight: 500 !important;
        cursor: pointer;
    }

    #mega-menu-wrapper .service-nav-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 15px 20px;
        color: #FFFFFF;
        cursor: pointer;
        font-size: 18px;
        line-height: 25px;
        font-weight: 500;
        transition: background .25s ease, padding-left .25s ease;
    }

    /* Remove desktop icon */
    #mega-menu-wrapper .service-nav-icon {
        display: none !important;
    }

    /* Arrow */
    #mega-menu-wrapper .service-nav-item::after {
        content: "";
        position: absolute;
        right: 22px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid #222;
        border-bottom: 2px solid #222;
        transform: translateY(-65%) rotate(45deg);
        transition: transform .2s ease;
    }

    #mega-menu-wrapper .service-nav-item.active::after {
        transform: translateY(-30%) rotate(225deg);
    }

    /*  PANELS */
    #mega-menu-wrapper .service-panel {
        display: none !important;
        width: 100%;
        padding: 2px 18px 12px 20px !important;
        background: #fff;
    }

    #mega-menu-wrapper .service-panel.show {
        display: block !important;
    }


    /* IMPORTANT:Pair categories + panels using CSS order */
    #mega-menu-wrapper .service-nav-item[data-target="development"] {
        order: 1;
    }

    #mega-menu-wrapper #development {
        order: 2;
    }

    #mega-menu-wrapper .service-nav-item[data-target="marketplace"] {
        order: 3;
    }

    #mega-menu-wrapper #marketplace {
        order: 4;
    }

    #mega-menu-wrapper .service-nav-item[data-target="store"] {
        order: 5;
    }

    #mega-menu-wrapper #store {
        order: 6;
    }

    #mega-menu-wrapper .service-nav-item[data-target="marketing"] {
        order: 7;
    }

    #mega-menu-wrapper #marketing {
        order: 8;
    }

    #mega-menu-wrapper .service-nav-item[data-target="ads"] {
        order: 9;
    }

    #mega-menu-wrapper #ads {
        order: 10;
    }

    #mega-menu-wrapper .service-nav-item[data-target="email"] {
        order: 11;
    }

    #mega-menu-wrapper #email {
        order: 12;
    }

    #mega-menu-wrapper .service-nav-item[data-target="seo"] {
        order: 13;
    }

    #mega-menu-wrapper #seo {
        order: 14;
    }

    #mega-menu-wrapper .service-nav-item[data-target="software"] {
        order: 15;
    }

    #mega-menu-wrapper #software {
        order: 16;
    }

    #mega-menu-wrapper .service-nav-item[data-target="branding"] {
        order: 17;
    }

    #mega-menu-wrapper #branding {
        order: 18;
    }

    /* SERVICE LINKS */
    #mega-menu-wrapper .service-grid {
        display: block !important;
        width: 100%;
    }

    #mega-menu-wrapper .service-card,
    #mega-menu-wrapper .service-card.featured {
        position: relative;
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 7px 5px 7px 18px !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #333 !important;
        font-size: 14px !important;
        line-height: 20px !important;
        font-weight: 400 !important;
        transform: none !important;
    }

    /* Hide desktop service icons */
    #mega-menu-wrapper .service-card-icon {
        display: none !important;
    }

    /* Mobile bullet */
    #mega-menu-wrapper .service-card::before {
        content: "";
        display: block !important;
        position: absolute;
        left: 2px;
        top: 14px;
        width: 6px;
        height: 6px;
        background: #333;
        border-radius: 50%;
    }

    #mega-menu-wrapper .service-card:hover {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #219653 !important;
        transform: none !important;
    }

}

@media only screen and (max-width: 981px) {
    .et_mobile_menu .menu-item-85142 #mega-menu-wrapper.open {
        display: flex !important;
        flex-direction: column;
        max-height: none !important;
        overflow: visible !important;
    }

    #mega-menu-wrapper .service-panel.active:not(.show) {
        display: none !important;
    }
}

@media only screen and (min-width: 982px) and (max-width: 1200px) {
    .menu-item-has-children.menu-item-85142>ul.sub-menu {
        position: absolute !important;
        width: min(982px, calc(100vw - 40px)) !important;
        left: 95% !important;
        top: 50%;
        transform: translateX(-37%) !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 10px !important;
        overflow: visible;
        box-shadow: none !important;
        z-index: 99999 !important;
    }

    #mega-menu-wrapper .service-bottom {
        display: none;
    }

    #mega-menu-wrapper .service-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

}
@media only screen and (min-width: 1201px) and (max-width: 1400px) {
    
.menu-item-has-children.menu-item-85142>ul.sub-menu {
    position: absolute!important;
    width: min(1300px, calc(100vw - 40px))!important;
    left: 50%!important;
    top: 50%;
    transform: translateX(-36%)!important;
}   

}