.over {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.35);
    }

    #header {
      padding: 20px 10px;
      width: 100%;
      position: relative;
      z-index: 99999;
      background-color: #fff;
      border-bottom: 1px solid #e2e2e2;
    }

    #header .nav a {
      text-decoration: none;
    }

    #header .logo h2 {
      color: var(--blue);
      font-size: 32px;
      font-weight: 600;
    }
    #header .sub-close{
        width: 30px !important;
        height: 30px !important;
        padding: 0;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        
    }
    #header .sub-close i{
        font-size: 45px;
    }
    #header .sub-close:hover{
        transform: rotate(90deg);
        color: var(--blue);
    }
    #header .sub-top a:hover::after{
        display: none;
    }
    #header .sub-top h2{
        color: var(--blue);
    }
    #header .login a{
        padding: 12px 24px !important;
        font-weight: 500 !important;
        background: var(--blue);
        text-decoration: none;
        color: #fff !important;
        font-size: 16px !important;
        display: block !important;
        border-radius: 8px;
        transition: .3s ease-in-out;
    }
    #header .login a:hover{
        background: #000;
        color: #fff;
    }
    }
    #header #navMenu .sub-top a{
        padding: 0 !important;
    }
    #header .sub-top{
        padding: 15px 20px !important;
        margin-bottom: 20px;
    }
    #header .sub-close-wrap{
        display: inline-block;
    }

    #header .navwrap {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .menu {
      position: relative;
    }

    .menu ul {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 35px;
    }

    .menu #navMenu li {
      list-style: none;
    }

    .menu #navMenu li a {
      text-decoration: none;
      color: #000;
      font-size: 18px;
      font-weight: 500;
      transition: .4s ease-in-out;
      position: relative;
    }
    .sub-menu{
        background-color: #efefef !important;
    }
    .menu #navMenu li a::after{
        position: absolute;
        content: "";
        bottom: 2px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--blue);
        transition: .4s ease-in-out;
    }
    .menu #navMenu li a:hover::after {
      width: 100%;
    }
    .hamburger {
      width: 28px;
      height: 22px;
      display: none;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
      z-index: 1001;
    }

    .hamburger span {
      width: 100%;
      height: 3px;
      background: var(--blue);
      border-radius: 2px;
      transition: all 0.4s ease;
    }
    .hamburger:hover span {
      background: #d82578;
    }
    .contact a{
        padding: 12px 24px;
        font-weight: 500;
        background: var(--blue);
        text-decoration: none;
        color: #fff;
        font-size: 16px;
        border-radius: 8px;
        transition: .3s ease-in-out;
    }
    .contact a:hover{
        background: #000;
        color: #fff;
    }
    .contact-link{
        display: none !important;
        padding: 12px 18px;
        font-weight: 500;
        background: #d82578;
        text-decoration: none;
        color: #fff;
        transition: .3s ease-in-out;
    }
    .contact-link:hover{
        background: #299ec3;
        color: #fff;
    }
    #navMenu li {
    position: relative;
}
#navMenu li a{
    padding: 5px 0;
}

/* Submenu - initially hidden */
.sub-menu {
    position: absolute;
    top: 150%;
    left: 0;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 15px;
    z-index: 1000;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s;
}

/* Submenu links */
.sub-menu li a {
    display: block;
    padding: 12px 16px !important;
    text-decoration: none;
    color: black !important;
    font-size: 16px !important;
    transition: background-color 0.3s ease;
}

.sub-menu li a:hover {
    color: #d82578 !important;
    background-color: #efefef;
}

/* Show submenu on parent li hover */
#navMenu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Optional: hover effect for parent link */


/* Dropdown toggle button */
.submenu-toggle {
    cursor: pointer;
    margin-left: 0;
    user-select: none;
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    color: #fff;
}

/* Rotate arrow when submenu is open */
.submenu-toggle.open {
    transform: rotate(180deg);
}

/* Show submenu when active via click */
.sub-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu-toggle i{
    color: #000;
    transition: .4s ease-in-out;
}
#navMenu li:hover .submenu-toggle i{
    transform: rotate(180deg);
    color: #003d82;
}
#navMenu li a:hover{
    color: var(--blue);
}
.sub-menu li a:hover{
    color: #d82578 !important;
}

/* Mobile Styles */
@media screen and (max-width: 991px) {
    #header{
        padding: 10px;
    }
    .hamburger {
        display: flex;
        z-index: 10001;
    }
    #navMenu li:hover .submenu-toggle i{
    transform: rotate(0);
    color: #d82578;
}
    .submenu-toggle i{
    color: #000;
    transition: .4s ease-in-out;
}
    #navMenu li:hover > a {
    color: #d82578 !important;
}
    .menu ul {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding-top: 80px;
        transition: left 0.4s ease;
        z-index: 1000;
    }

    .menu ul li {
        width: 100%;
    }

    .menu #navMenu li a {
        font-size: 16px;
        color: #000;
        padding: 15px 25px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    #header #navMenu .sub-top a{
        padding: 0 !important;
    }

    #navMenu .contact-link{
        font-size: 18px !important;
        margin-top: 20px !important;
        padding: 10px 25px !important;
        margin-left: auto;
        width: 90% !important;
        border: none;
        display: flex !important;
        text-align: center !important;
        margin-right: auto;
        justify-content: center;
    }
    #navMenu .contact-link:hover{
        color: #fff !important;
    }
    
    .menu ul.active {
        left: 0;
    }
    
    .contact{
        display: none;
    }
    
    .contact-link{
        margin-top: 0 !important;
        display: block;
        color: #fff !important;
        text-align: center;
    }
    
    .contact-link::after{
        display: none;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
        z-index: 999;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile submenu styles */
    .sub-menu {
        position: static;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        opacity: 1;
        visibility: visible;
        width: 100%;
    }
    
    .sub-menu.active {
        max-height: 500px;
    }
    
    .sub-menu li a {
        color: #000 !important;
        padding: 12px 35px !important;
        font-size: 16px !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .submenu-toggle {
        color: #000 !important;
    }
    
    /* Hide submenu on mobile by default */
    .sub-menu:not(.active) {
        display: none;
    }
    
    /* Make entire menu item clickable on mobile */
    .menu-item-with-submenu {
        cursor: pointer;
    }
}