#mobile-navbar--overlay.hidden {
    display: none;
}

#mobile-navbar--overlay {
    will-change: height;
    top: 90px;
    left: 0;
    position: absolute;
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    transition: height 0.5s ease, opacity 0.4s ease; 
}

#mobile-navbar--overlay:not(.hidden) {
    height: auto;
    opacity: 1;
}
div.menu-active {
    filter: blur(4px);
    transition: filter 0.2s ease;
}

.mn-link--container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    padding-left: 10px;
}

.navbar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    overflow-y: auto;
    max-height: 70vh;
    background: var(--color-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-list li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-list li:last-child {
    border-bottom: none;
}
.navbar-list li:last-child a {
    border-bottom: none;
}

.navbar-list li a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-main, #1c1c1e);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 0;
    position: relative;
}

.navbar-list li a:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-accent, #0071e3);
    border-bottom-width: inherit;
}

.navbar-list li a:active {
    background-color: rgba(0, 0, 0, 0.08);
}

.navbar-list li a::after {
    content: '›';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

.close-btn--container {
    display: flex;
    align-self: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}
.close-btn--container:hover .close-btn {
    color: #1970FA;
}
.close-btn--container:hover {
    cursor: pointer;
}
    .close-btn {
    font-size: 40px;
    border: none;
    background: none;
    cursor: pointer;
}

.close-btn:hover {
    color: #1970FA;
}

#mobile-navbar--button {
    padding: 5px 15px;
    color: rgb(115, 115, 115);
    border: none;
    border-radius: 5px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    background: none;
    margin-left: 2vw;
}

#mobile-navbar--button:hover {
    color: rgb(115, 115, 115);
}


#mobile-navbar--button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
}

.header--hidden {
    transform: translateY(-100%);
    pointer-events: none; /* Optional: makes the element unclickable while hidden */
}

