/* Apply styles only to the nav with custom-nav class */
.custom-nav {
    background-color: #5b95f6;
    padding: 10px 0;
    border-radius: 5px;
}

/* General styling for nav items */
.custom-nav .nav-link {
    color: #fff !important;
    font-size: 16px;
    padding: 10px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Hover effect for all nav links */
.custom-nav .nav-link:hover {
    background-color: #156bc8;
    color: #fff;
    border-radius: 5px;
}

/* Active state for nav link */
.custom-nav .nav-link.active {
    background-color: #156bc8;
    color: #fff !important;
    border-radius: 5px;
}

/* Disabled state for nav link */
.custom-nav .nav-link.disabled {
    color: rgba(255, 255, 255, 0.5);
}

/* Dropdown toggle styling */
.custom-nav .nav-item.dropdown .nav-link.dropdown-toggle {
    color: white !important;
    font-size: 16px;
    padding: 10px 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* Hover effect for dropdown toggle */
.custom-nav .nav-item.dropdown:hover .nav-link.dropdown-toggle {
    background-color: #156bc8;
    color: #fff;
}

/* Styling for dropdown menu */
.custom-nav .dropdown-menu {
    position: absolute;
    z-index: 1050; /* Ensure dropdown is above other content */
    display: none;
    background-color: #5b95f6;
    padding: 0;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Show dropdown when active */
.custom-nav .nav-item.dropdown.show .dropdown-menu {
    display: block;
}

/* Dropdown menu items */
.custom-nav .dropdown-item {
    color: #fff;
    padding: 10px 20px;
    text-align: left;
    transition: background-color 0.3s ease;
}

/* Hover effect for dropdown items */
.custom-nav .dropdown-item:hover {
    background-color: #156bc8;
    color: #fff;
    border-radius: 5px;
}

/* Adjust the search form alignment */
.custom-nav .d-flex {
    margin-left: 10px;
}

/* Responsive: Stack the menu on smaller screens */
@media (max-width: 767px) {
    .custom-nav .nav {
        flex-direction: column; /* Stack the menu vertically on small screens */
    }

    .custom-nav .nav-item {
        text-align: center;
        margin-bottom: 5px;
    }

    /* Optional: Adjust the width of the search form for smaller screens */
    .custom-nav .d-flex {
        width: 100%;
    }
}

/* Optional: Adjust search form styling */
.custom-nav .searchbar {
    width: 200px;
    display: flex;
}

.custom-nav .search_input {
    width: 100%;
    padding: 8px;
    border-radius: 25px;
    border: 1px solid #ccc;
}

.custom-nav .search_icon {
    background-color: #5b95f6;
    color: white;
    border-radius: 25px;
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    transition: background-color 0.3s ease;
}

.custom-nav .search_icon:hover {
    background-color: #156bc8;
}
/* Show dropdown menu on hover */
.custom-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}
/* Optional: Make sure the dropdown stays above content */
