.dropdown-submenu {
    position: relative;
  }
  
  .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
  }
  
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
  
  /* Adjust the following styles according to your design */
  .dropdown-submenu > a:after {
    content: " ▼";
    position: absolute;
    right: 15px;
    top: 10px;
  }
  
  .dropdown-submenu:hover > a:after {
    content: " ▲";
  }
  
  /* Remove the background color from the nested dropdown submenu */
  .dropdown-menu .dropdown-menu {
    background-color: transparent;
    border: none;
    box-shadow: none;
  }
  
  
  /* Base styles for desktop and mobile */
  .dropdown-submenu > a:after {
    content: " ▼";
    position: absolute;
    right: 15px;
    top: 10px;
  }
  
  /* Media query for desktop view */
  @media (min-width: 992px) {
    /* Reset the mobile-specific styles */
    .dropdown-submenu > a:after {
      content: none; /* Remove the arrow */
    }
  
    /* Adjust other styles for better desktop presentation */
    .dropdown-submenu > a {
      padding-right: 15px; /* Add spacing for readability */
    }
    
    .dropdown-menu .dropdown-menu {
      border: 1px solid #ccc; /* Add a border for nested dropdowns */
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      background-color: #fff; /* Add a background color for nested dropdowns */
    }
  }
  
  
  .dropdown-submenu .dropdown-menu .dropdown-item {
    transform: rotate(-90deg);
    transform-origin: left center;
  }