/*
====================================================================================================================

      ####################################### MEGA MENU   #############################################

====================================================================================================================
    */
    .hover_for_mega_menu{
        cursor:pointer;
        position: relative;
    }
    .mega_menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        position: fixed;
        left: 0;
        right: 0;
        top: 185px;
        width: 100vw;
        background: #ffffff;
        color: #0a5899;
        padding: 0;
        z-index: 9999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        max-height: 0;
    }

    .mega_menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        padding: 30px 0;
        max-height: 80vh;
    }

   .menu_container {
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu_container::-webkit-scrollbar {
        display: none;
    }

    @media (max-width: 1200px) {
        .mega_menu {
            top: 100px;
        }
    }

    @media (max-width: 991px) {
        .mega_menu {
            top: 80px;
        }
    }

    @media (max-width: 576px) {
        .mega_menu {
            padding: 20px 0 !important;
            top: 70px !important;
        }
        .mega_menu.show {
            padding: 20px 0;
        }
    }

    .services-link a {
        cursor: pointer;
    }

    .mega-menu-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
    }

    .mega-category {
        position: relative;
        max-width: 250px;
    }

    .mega-category .label_1 {
        color: #1e3c72;
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 18px;
        padding-bottom: 8px;
        border-bottom: 2px solid #2a5298;
        position: relative;
        display: flex;
        align-items: flex-start;
        min-height: 55px; 
        text-decoration: none;
    }

    .mega-category .label_1:before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 40px;
        height: 2px;
        background: #ff6b35;
    }

    .mega-links {
        list-style: none;
        padding-left: 0 !important;
        margin: 0;
    }

    .mega-links li {
        margin-bottom: -5px;
        min-height: 32px;
    }

    .mega-links a {
        color: #555;
        text-decoration: none;
        padding: 0;
        display: block;
        transition: all 0.3s ease;
        border-radius: 4px;
        padding-left: 0;
        font-size: 16px;
    }

    .mega-links a:hover {
        color: #1e3c72;
        padding-left: 6px;
        background: rgba(30, 60, 114, 0.05);
        font-weight: 500;
    }

    .sub-category {
        margin-left: 15px;
        border-left: 2px solid #e0e0e0;
        padding-left: 5px;
        margin-top: 8px;
    }
   .sub-category.open{
        margin-bottom: 10px;
   }
    .sub-category a {
        font-size: 13px;
        color: #777;
    }

    .motor-class {
        display: inline-flex !important;
        justify-content: center;
        width: auto;
        height: 25px;
        background: #f0f0f0;
        padding: 4px 8px !important;
        margin: 2px !important;
        border-radius: 3px;
        font-size: 12px;
        color: #555;
        text-decoration: none;
    }

    .motor-size {
        display: inline-flex !important;
        justify-content: center;
        width: auto;
        height: 25px;
        background: #f0f0f0;
        padding: 4px !important;
        margin: 2px !important;
        border-radius: 3px;
        font-size: 12px;
        color: #555;
        text-decoration: none;
    }

    .content-area {
        padding: 60px 20px;
        max-width: 1400px;
        margin: 0 auto;
        background: white;
        margin-top: 20px;
        border-radius: 10px;
    }


   /* caret for any label_* anchor that has submenus */
    a[class^="label_"].has-sub::after {
      content: " ⌵";
      font-size: 0.75em;
      margin-left: 6px;
      display: inline-block;
      transition: transform .25s ease;
    }

    /* rotate caret when open */
    a[class^="label_"].has-sub.open::after {
      transform: rotate(180deg);
    }

    /* pointer to indicate togglable item */
    a[class^="label_"].has-sub {
      cursor: pointer;
    }
    .sub-category_2{
        margin: 8px 0 0 0 !important;
    }
    .all-item{
        margin-left: 5px;
    }
    /* base collapse styling for sub-category blocks */
    .sub-category, .sub-category_2 {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.35s ease;
    }

    /* optional visual padding for nested lists (adjust as needed) */
    .sub-category .label_3,
    .sub-category_2 .label_4 {
      display: block;
      padding-left: 5px;
      padding-right: 5px;
    }


    @media (max-width: 1024px) {
         .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--main {
    display: block !important;
}
        .mega-menu-content {
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        .hover_for_mega_menu a{
            padding-left: 35px;
        }
        .elementor-menu-toggle{
            display: none !important;
        }
        .hover_for_mega_menu .elementor-item {
            color:#fff !important;
            font-size: 25px !important;
        }
    }


    @media (max-width: 768px) {
        .mega-menu-content {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            padding: 0 15px;
        }

        .nav-container {
            flex-direction: column;
            padding: 15px;
        }

        .nav-menu {
            margin-top: 15px;
        }

        .nav-link {
            padding: 15px 20px;
        }

        .mega-category .label_1 {
            font-size: 15px;
        }

    }

    @media (max-width: 480px) {
        .mega-menu-content {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        .mega-category {
            max-width: 100%;
        }
        .mega-category .label_1{
            min-height: auto;
        }
    }

    /* Arrow Styling */
    .arrow_span {
        font-size: 12px;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .hover_for_mega_menu .elementor-item.active .arrow_span {
        transform: rotate(180deg);
    }

    /* Overlay for better UX */
    .mega-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mega-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }