/* SIDEBAR */
body {
    overflow-x: hidden;
}
.sidebar {
    position: fixed;
     top: 95px;
    right: -260px;
    width: 260px;
    height: calc(100% - 70px);
    background: #7A1C1C;
    color: white;
    transition: 0.3s;
    z-index: 1001;
    padding: 20px;
    padding-top: 60px;
    
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    cursor: pointer;
    font-size: 20px;
    padding-top: 30px;
    padding-right: 15px;
}

.sidebar a {
    display: block;
    margin: 15px 0;
    color: white;
    text-decoration: none;
    font-size: 18px;
}


.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 🔥 MAIN FIX */

    z-index: 1000;
    transition: 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* 🔥 only when active */
}