        .mega-menu {
            background: #fff;
            border: 1px solid #ddd;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            padding: 15px;
        }
        .submenu-item {
            padding: 10px;
        }
        .submenu-description {
            font-size: 0.9em;
            line-height: 1.4;
            margin-bottom: 0;
            color: #668eb7bf !important;
            font-size: 12px;
            
        }
        .mega-menu-featured {
            padding: 15px;
            background: #f8f8f8;
            border-left: 1px solid #ddd;
        }
        .mega-menu-featured.active .featured-image,
        .mega-menu-featured.active .featured-description {
            display: block !important;
        }
        .featured-image {
            display: none;
            margin-bottom: 10px;
        }
        .featured-description {
            display: none;
            font-size: 0.95em;
            color: #914c4c;
        }
        .mega-menu-image{
            display: block;
            transform: scale(1);
            transition: all 0.3s ease;
        }
        .mega-menu-image:hover{
            opacity: 0.8;
            transform: scale(1.05);
        
        }
    
        .mega-search-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 280px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .mega-search-menu.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .mega-search-form {
        position: relative;
        padding: 2rem;
    }

    .mega-search-form .form-control {
        height: 60px;
        border: 1px solid #e0e0e0;
        font-size: 1.2rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .mega-search-form .form-control:focus {
        border-color: #1976d2;
        box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
    }

    .mega-search-form .btn {
        height: 60px;
        border: 1px solid #e0e0e0;
        padding: 0 1.5rem;
    }

    .mega-search-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        z-index: 1001;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .mega-search-close:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #333;    
        transform: scale(1.2);    
    }

    @media (max-width: 768px) {
        .mega-search-menu {
            height: 240px;
        }
        .mega-search-form .form-control {
            height: 50px;
            font-size: 1rem;
        }
        .mega-search-form .btn {
            height: 50px;
        }
        .mega-search-close {
            top: 10px;
            right: 10px;
        }
    }

    .navbar {
        transition: all 0.3s ease;
    }
    .navbar-brand img {
        max-height: 40px;
    }
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    .dropdown-menu {
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: translateY(10px);
        opacity: 0;
        display: block;
        visibility: hidden;
    }
    .dropdown-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .mega-search-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.95);
        z-index: 1050;
        display: none;
    }
    .mega-search-menu.show {
        display: block;
    }
    .mega-search-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        background: none;
        border: none;
    }
    .category-pill {
        display: inline-block;
        padding: 0.5rem 1rem;
        background: #f8f9fa;
        border-radius: 1rem;
        text-decoration: none;
        color: #333;
        font-size: 0.9rem;
    }
    .lazy-load {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .lazy-load.loaded {
        opacity: 1;
    }
    .services-grandchild-panel { display: none; opacity: 0;
    transition: opacity 0.3s ease; }
    .services-grandchild-panel.active {  display: block;
    opacity: 1;}

    #services-submenu-list .nav-link {
        color: #222;
        border-radius: 0;
        padding: 10px 12px;
    }
    .services-grandchild-panel:first-of-type {
        display: block;
        opacity: 1;
    }
    #services-submenu-list .nav-link.active {
        background: #f8f9fa;
        font-weight: bold;
        color: #1976d2;
    }
    #services-submenu-list .nav-link span:last-child {
        color: #1976d2;
    }
    #services-submenu-list .nav-link:hover {
        background: #f8f9fa;
        color: #1976d2;
    }

    @media (max-width: 991px) {
        .navbar-nav {
            padding: 1rem;
        }
        .dropdown-menu {
            border: none;
            background: transparent;
            position: static !important;
            transform: none !important;
            opacity: 1;
            visibility: visible;
            display: none;
        }
        .dropdown-menu.show {
            display: block;
        }
        .nav-item.dropdown.position-static {
            position: relative !important;
        }
        .dropdown-toggle::after {
            display: none;
        }
        .offcanvas-body {
            max-height: calc(100vh - 60px);
            overflow-y: auto;
        }
    }

    @media (max-width: 767px) {
        .mega-search-form .input-group {
            flex-direction: column;
        }
        .mega-search-form .form-control,
        .mega-search-form .btn {
            width: 100%;
            border-radius: 2rem !important;
            margin-bottom: 0.5rem;
        }
        .mega-search-form .btn {
            margin-bottom: 0;
        }
        .navbar-brand img {
            max-height: 35px;
        }
    }

    .offcanvas {
        width: 300px;
    }

    .offcanvas .accordion-button {
        padding: 0.5rem 0;
    }

    .offcanvas .accordion-button:not(.collapsed) {
        background-color: transparent;
        box-shadow: none;
        color: var(--bs-primary);
    }

    .offcanvas .accordion-button:focus {
        box-shadow: none;
    }

    .offcanvas .accordion-button::after {
        width: 0.8rem;
        height: 0.8rem;
        background-size: 0.8rem;
    }

    .offcanvas .nav-link {
        padding: 0.5rem 0;
    }

    .offcanvas .accordion-body {
        padding: 0.5rem 0 0.5rem 1rem;
    }

    @media (min-width: 992px) {
        .offcanvas.d-lg-none {
            display: none !important;
        }
    }




    /* hover */
    /* Top Level Menu Items */
    .navbar-nav > .nav-item > .nav-link {
        position: relative;
        transition: color 0.3s ease;
    }

    .navbar-nav > .nav-item > .nav-link:before {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: #023563;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .navbar-nav > .nav-item > .nav-link:hover {
        color: #023563 !important;
    }

    .navbar-nav > .nav-item > .nav-link:hover:before {
        width: 100%;
    }

    /* Domains and Solutions Dropdown */
    .dropdown-menu .card {
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .dropdown-menu .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .dropdown-menu .card img {
        transition: all 0.3s ease;
    }

    .dropdown-menu .card:hover img {
        transform: scale(1.1);
    }

    /* Services Menu */
    #services-submenu-list .nav-link {
        transition: all 0.3s ease;
        position: relative;
        padding-left: 15px;
    }

    #services-submenu-list .nav-link:before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 0;
        background-color: #023563;
        transition: all 0.3s ease;
        transform: translateY(-50%);
    }

    #services-submenu-list .nav-link:hover {
        color: #023563 !important;
        padding-left: 20px;
    }

    #services-submenu-list .nav-link:hover:before {
        height: 80%;
    }

    /* Services Grandchild Links */
    .services-grandchild-panel .col-md-4 a {
        position: relative;
        transition: all 0.3s ease;
        padding-left: 0;
    }

    .services-grandchild-panel .col-md-4 a:before {
        content: '→';
        position: absolute;
        left: -20px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .services-grandchild-panel .col-md-4 a:hover {
        color: #023563 !important;
        padding-left: 5px;
    }

    .services-grandchild-panel .col-md-4 a:hover:before {
        left: -15px;
        opacity: 1;
    }

    /* Company Menu */
    .dropdown-menu .list-unstyled a {
        position: relative;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .dropdown-menu .list-unstyled a:after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: 0;
        left: 0;
        background-color: #023563;
        transition: all 0.3s ease;
    }

    .dropdown-menu .list-unstyled a:hover {
        color: #023563 !important;
        transform: translateX(5px);
    }

    .dropdown-menu .list-unstyled a:hover:after {
        width: 100%;
    }

    /* Success Stories */
    .dropdown-menu .col-md-3 a {
        transition: all 0.3s ease;
    }

    .dropdown-menu .col-md-3 a:hover img {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    /* Mobile Menu Hover Effects */
    @media (max-width: 991px) {
        .offcanvas-body .nav-link,
        .offcanvas-body .accordion-button {
            transition: all 0.3s ease;
        }

        .offcanvas-body .nav-link:hover,
        .offcanvas-body .accordion-button:hover {
            color: #023563 !important;
            padding-left: 1.5rem;
            background-color: #02366338;
        }

        .offcanvas-body .accordion-body a {
            transition: all 0.3s ease;
            display: block;
        }

        .offcanvas-body .accordion-body a:hover {
            color: #023563 !important;
            padding-left: 1rem;
            background-color: rgba(227, 24, 55, 0.05);
        }
    }

    /* Add these styles at the end of the file */

    @media (max-width: 991px) {
        .offcanvas {
            width: 100% !important;
            background-color: #f8f9fa;
        }

        .offcanvas-header {
            padding: 1rem;
            background-color: #fff;
            border-bottom: 1px solid #e9ecef;
        }

        .offcanvas-body {
            padding: 0;
        }

        .mobile-nav-item {
            border-bottom: 1px solid #e9ecef;
        }

        .mobile-nav-link {
            padding: 1rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #333;
            font-weight: 500;
        }

        .mobile-submenu {
            background-color: #fff;
            display: none;
        }

        .mobile-submenu.show {
            display: block;
        }

        .mobile-submenu-item {
            padding: 0.75rem 2rem;
            border-bottom: 1px solid #f0f0f0;
        }

        .mobile-submenu-item:last-child {
            border-bottom: none;
        }

        .mobile-nav-toggle {
            border: none;
            background: transparent;
            padding: 0.5rem;
            color: #666;
        }

        .mobile-nav-toggle i {
            transition: transform 0.3s ease;
        }

        .mobile-nav-toggle.expanded i {
            transform: rotate(180deg);
        }
    }
    @media (max-width: 991px) {
        .offcanvas {
            width: 100% !important;
        }

        .offcanvas-header {
            padding: 1rem;
            border-bottom: 1px solid #e9ecef;
            min-height: 60px;
        }

        .offcanvas-header.sub-header {
            display: none;
        }

        .offcanvas-header.sub-header.show {
            display: flex;
        }

        .back-button {
            display: flex;
            align-items: center;
            gap: 10px;
            background: none;
            border: none;
            padding: 0;
            color: #333;
            font-weight: 500;
        }

        .menu-level {
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            height: calc(100% - 60px);
            background: #fff;
            transition: transform 0.3s ease;
            transform: translateX(100%);
            visibility: hidden;
            padding: 1rem 0;
        }

        .menu-level.main-menu {
            transform: translateX(0);
            visibility: visible;
        }

        .menu-level.active {
            transform: translateX(0);
            visibility: visible;
        }

        .mobile-nav-item {
            border-bottom: 1px solid #e9ecef;
        }

        .mobile-nav-link {
            padding: 1rem 1.5rem;
            color: #333 !important;
            text-decoration: none;
            display: block;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
            font-weight: 500;
        }

        .mobile-nav-link:hover {
            background-color: #f8f9fa;
        }

        .mobile-nav-link i {
            color: #666;
            font-size: 0.875rem;
        }
    }