.ag-dropdown-menu-container .ag-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.ag-dropdown-menu .menu-item {
    position: relative;
}

.ag-dropdown-menu .menu-item a {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    padding: 10px 0;
    white-space: nowrap;
    /* Prevent text wrapping */
    flex-wrap: nowrap;
    /* Ensure internal items (text + arrow) stay together */
}


/* The Arrow */
.ag-dropdown-menu .menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.3s ease;
}

/* Hover effect on arrow */
.ag-dropdown-menu .menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}

/* Dropdown menu styling */
.ag-dropdown-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 4px;
}

.ag-dropdown-menu .menu-item:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ag-dropdown-menu .sub-menu .menu-item a {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 400;
}

.ag-dropdown-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -15px;
}