/* SIDEBAR BASE STATE */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    height: 100vh;
    background-color: #929191;
    color: rgb(0, 0, 0);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

/* OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1999;
}

.overlay.active {
    display: block;
}

/* PUSH LOGIC */
body {
    margin: 0;
    overflow-x: hidden; 
    width: 100%;
}

#main-wrapper {
    width: 100%;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-pushed {
    transform: translateX(300px); 
}

/* THE X BUTTON */
.close-btn {
    position: absolute;
    top: -10px;
    right: 2px;
    font-size: 30px;
    color: #585858;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ffffff;
}

.sidebar-links {
    list-style: none;
    padding: 20px 0;
}

.sidebar-links li a {
    display: block;
    padding: 15px 25px;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: 0.3s;
    
}


.sidebar-links h3{
    margin: 15px;
}
/* 1. The Parent Link */
.sidebar-links li a {
    position: relative; /* Essential for positioning the underline */
    text-decoration: none;
    display: inline-block;
    padding-bottom: 5px; /* Space between text and line */
}

/* 2. The Underline (Invisible by default) */
.sidebar-links li ::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff; /* Your Gold color */
    transition: width 0.3s ease-in-out; /* The animation speed */
}

/* 3. The Hover State (Grows to 100%) */
.sidebar-links li a:hover::after {
    width: 100%;
}
.head {
    margin: 20px;
    position: relative; /* REQUIRED FOR X POSITION */
}

.head p{
    color: rgb(78, 78, 78);
}