/* Custom Navigation Enhancements */

/* Active link styling for desktop navigation */
.cs_nav_list li a.active {
    color: #AF1763 !important;
    font-weight: 600;
    position: relative;
}

.cs_nav_list li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #AF1763;
}

/* Hover effect for nav links */
.cs_nav_list li a:hover {
    color: #AF1763 !important;
    transition: color 0.3s ease;
}

/* Mobile navigation in sidebar */
.cs_mobile_nav a {
    transition: all 0.3s ease;
}

.cs_mobile_nav a:hover {
    color: #AF1763 !important;
    padding-left: 10px !important;
    transition: all 0.3s ease;
}

/* Smooth sidebar animations */
.cs_sidenav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs_sidenav_in {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs_sidenav_overlay {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Prevent body scroll when sidebar is open */
body.cs_sidenav_active {
    overflow: hidden;
}

/* Better close button visibility and interaction */
.cs_sidenav_in .cs_close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.cs_sidenav_in .cs_close:hover {
    transform: rotate(90deg);
}

/* Ensure sidebar toggle button is always visible */
.cs_sidebar_toggle_btn {
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.cs_sidebar_toggle_btn:hover {
    opacity: 0.8;
}

/* Mobile menu active state */
@media (max-width: 991px) {
    .cs_nav {
        display: none;
    }
    
    .cs_sidebar_toggle_btn {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .cs_mobile_nav {
        display: none;
    }
}
