.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    position: relative;
}

.menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background 0.3s ease;
}

.menu a:hover {
    background: #f5f5f5;
}

.submenu {
    list-style: none;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.submenu li a {
    font-size: 14px;
    padding: 8px 15px;
}

.has-submenu.active .submenu {
    max-height: 200px;
}

.arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.has-submenu.active .arrow {
    transform: rotate(45deg);
}