/* ==========================================================================
   Third-level sub-dropdown menu styles
   Sub-menus open BELOW the parent item (no fly-out to avoid overflow)
   ========================================================================== */

/* Container for sub-dropdown items */
.dropdown-submenu {
    position: relative;
}

/* The nested dropdown menu - hidden by default, opens below */
.dropdown-submenu > .dropdown-menu {
    display: none;
    position: static !important;
    float: none;
    margin: 0;
    padding-left: 1rem;
    border: none;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.15);
    box-shadow: none;
}

/* Show the sub-menu on hover (desktop) */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Style for sub-menu items */
.dropdown-submenu > .dropdown-menu > li > a.dropdown-item {
    font-size: 0.9em;
    padding-left: 1.5rem;
    white-space: normal;
    word-wrap: break-word;
}

/* Arrow indicator on the parent item */
.dropdown-submenu > a.dropdown-toggle::after {
    display: inline-block;
    margin-left: .5em;
    vertical-align: middle;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}
