/* Explain: Styles for desktop dropdown and mobile accordion navigation menus. */
/* ---------- Rólunk lenyíló menü (asztali) ---------- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown-toggle i {
    transition: transform 0.25s ease;
    font-size: 0.7rem;
}

.nav-dropdown.is-open .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15rem;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(35, 37, 31, 0.12);
    z-index: 60;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu a {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--surface-color);
    color: var(--primary-color);
}

/* ---------- Rólunk almenü (mobil) ---------- */
.mobile-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0.5rem;
    border: none;
    background: none;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
}

.mobile-group-toggle:hover {
    background: var(--surface-color);
    color: var(--primary-color);
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0 0 0.4rem 1rem;
}

.mobile-submenu.is-open {
    display: flex;
}

.mobile-sublink {
    padding: 0.7rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-sublink:hover {
    background: var(--surface-color);
    color: var(--primary-color);
}