.menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}
.menu-item {
    width: 30%;
    min-width: 220px;
    height: 180px;
    background: #007bff;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    cursor: pointer;
    transition: transform 0.2s, background 0.3s, box-shadow 0.2s;
    text-align: center;
    position: relative;
    font-size: 1.15rem;
}
.menu-item:hover {
    transform: scale(1.04);
    background: #0056b3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.icon {
    font-size: 40px;
    margin-bottom: 10px;
}
.expand-icon {
    font-size: 19px;
    margin-top: 5px;
}
.submenu-container {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    animation: fadeIn 0.35s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px);}
    to   { opacity: 1; transform: none;}
}
.submenu-item {
    width: 29%;
    min-width: 200px;
    height: 150px;
    background: #28a745;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: transform 0.16s, background 0.26s;
    text-align: center;
    margin-bottom: 10px;
}
.submenu-item:hover {
    transform: scale(1.045);
    background: #218838;
}
@media (max-width: 767px) {
    .menu-item, .submenu-item { width: 90%; min-width: 0; }
}