#opdModal .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Dropdown menu alignment fixes */
.navbar-nav .nav-item.dropdown {
    position: relative;
}

/* Web View: Position dropdown menus below their parent items */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important; /* Position directly below the parent */
        left: 0 !important; /* Align with the left edge of the parent */
        right: auto !important;
        transform: none !important;
        min-width: 220px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    /* Ensure dropdown menu doesn't shift around when hovering */
    .dropdown-menu[data-bs-popper] {
        left: 0 !important;
        margin-top: 0 !important;
    }
}

/* Mobile View: Stack dropdown menus vertically within the navbar */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: rgba(25, 135, 84, 0.05);
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* Fix submenu item alignment */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

/* Fix padding on dropdown items */
.dropdown-item {
    padding: 0.5rem 1rem;
}

/* Hover state for dropdown items */
.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: var(--primary-color);
    color: white;
}

/* Active state for dropdown items */
.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Fix gap between dropdown toggle and menu */
.dropdown-menu {
    margin-top: 0 !important;
}

/* Fix for News & Updates text wrapping */
.nowrap {
    white-space: nowrap;
}

/* Fix Bootstrap navbar dropdown caret alignment for About and Services menu */
.navbar .dropdown-toggle::after {
    vertical-align: 0.15em !important;
    margin-left: 0.3em;
    display: inline-block;
    float: none;
    position: static;
}

/* Prevent caret from dropping to new line on mobile or small screens */
.navbar .dropdown-toggle {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
