.nav-menu{
    background-color:#fff;
}
.bg-light-radial {
      background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: #000;
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}
/* Navbar drop down */

.dropdown-menu .dropdown-toggle {
    position: relative;
}

.dropdown-menu .dropdown-toggle::after {
    /* content: '\25B6';  */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Prevent this from affecting clicks */
}

.arrow-click-area {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    /* Width of clickable arrow area */
    cursor: pointer;
}

.dropdown-menu .dropdown-menu {
    /* margin-left: 0.75rem; */
    /* margin-right: 0.75rem; */
    margin-top: 0;
}

@media(min-width:768px) {
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
    }

    .navbar .dropdown-menu .dropdown-menu {
        display: none;
        position: absolute;
        top: 0;
        left: 100%;
    }

    .navbar .dropdown-menu .dropdown:hover>.dropdown-menu {
        display: block;
    }


    .navbar .dropdown-menu .dropdown-menu {
        display: none;
        position: absolute;
        top: 0;
        right: 100%;
        transition: all .4s ease;
    }
   
}
@media(max-width:767px){
    .navbar-nav {
        max-height: 600px;
        overflow: auto;
    }
    .navbar .dropdown-menu .dropdown-menu {
        position: static;
        background: #cccccc12;
      }
  }


/* Navbar drop down */

.dropdown-item {
    padding: .6rem 1rem;
    transition: all .4s ease;
    font-size: 14px;

}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #fff;
    background-color: #cd6e1d;
}
.navbar-dark .navbar-nav .nav-link:focus {
    color: #cd6e1d;
}
.dropdown-menu {
    transition: all .4s ease;
    min-width: 16rem;

}

.navbar .dropdown:hover>.dropdown-menu {
    display: block;
    padding: 0;
    transition: all .4s ease;

}





/* Dropdown menu basic styling */
.dropdown-menu {
    transition: all .4s ease;
    min-width: 16rem;
    display: block;             /* Submenu remains in the layout */
    max-height: 0;              /* Set max-height to 0 when collapsed */
    opacity: 0;                 /* Makes it invisible */
    transform: scaleY(0);       /* Collapsing effect */
    transform-origin: top;      /* Animates from the top */
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease; /* Smooth transitions */
}

/* Visible state: open and expanded */
.dropdown-menu.show {
    opacity: 1;                 /* Makes it visible */
    transform: scaleY(1);       /* Expands the submenu */
    max-height: 500px;          /* Set a max-height thatâ€™s large enough to contain the content */
}

/* For mobile, ensure submenus collapse properly without affecting layout */
@media(max-width: 767px) {
    .dropdown-menu {
      display: none;
        max-height: 0 !important; /* Collapse the dropdown menu */
    }

    .dropdown-menu.show {
        max-height: 500px !important; /* Allow the submenu to expand */
        overflow: auto;
    }
}

@media(min-width: 768px) {
    .navbar .dropdown-menu .dropdown-menu {
        display: block;
        position: absolute;
        top: 0;
        left: 100%;
        transition: all .4s ease;
    }

     .dropdown:hover > .dropdown-menu {
      display: block;
    }

     .dropdown-menu .dropdown-menu {
      display: none;
      position: absolute;
      top: 0;
      left: 100%;
    }

    .navbar .dropdown-menu .dropdown:hover > .dropdown-menu {
      display: block;
    }
    /* Custom styles to show the submenu on hover */
    .navbar .dropdown:hover > .dropdown-menu {
      display: block;
    }

    .navbar .dropdown-menu .dropdown-menu {
      display: none;
      position: absolute;
      top: 0;
      left: 100%;
    }

    .navbar .dropdown-menu .dropdown:hover > .dropdown-menu {
      display: block;
    }
}


.dropdown-menu .dropdown-toggle {
            position: relative;
        }
.dropdown-submenu .dropdown-toggle::after{
  opacity: 0;
}
        .dropdown-menu .dropdown-toggle::after {
            /* content: '\25B6';  */
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            /* Prevent this from affecting clicks */
        }
 .arrow-click-area {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 10px;
    cursor: pointer;
    /* position: relative; */
}
.dropdown-menu .dropdown-toggle{
  position: relative;
}
.arrow-click-area {
    position: absolute;
    right: 0px;
    top: 0;
    width: 50px;
    cursor: pointer;
    height: 100%;
    background: #efefef;
}
.arrow-click-area::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #000;
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.arrow-click-area.open::after {
    transform: translate(-50%, -50%) rotate(180deg);
}

@media (min-width: 768px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        transform: scaleY(1);
        max-height: 500px;
        
    }

    .navbar .dropdown-menu .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        transform: scaleY(1);
    }
}


@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0 !important;
        padding: 10px 0;
                padding-left: 10px !important;
    }
}
