/* Navigation Bar Styling */
nav {
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    position: fixed; /* Make navbar stay at the top */
    width: 100%;
    top: 0;
    z-index: 999; /* Keep navbar above all other elements */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for better visibility */
}

nav ul {
    list-style-type: none;
    padding: 10px 0; /* Add padding for better spacing */
    margin: 0;
    display: flex; /* Ensure horizontal alignment */
}

nav ul li {
    margin: 0 15px; /* Even spacing between items */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px; /* Adjust padding for better click area */
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.3s; /* Smooth hover effect */
}

nav ul li a:hover {
    background-color: #007bff; /* Highlight on hover */
    border-radius: 4px;
}

/* Highlight the current page */
nav ul li a.current-page {
    color: #53f04e; /* Highlight color */
    border-radius: 4px;
}

/* Dropdown menu styling */
.dropdown {
    position: relative; /* Ensure proper submenu positioning */
}

.dropdown .submenu {
    display: none; /* Hide submenu by default */
    position: absolute;
    top: 100%; /* Position submenu below the parent item */
    left: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    padding: 0;
    list-style-type: none;
    border-radius: 4px;
    min-width: 150px; /* Ensure enough space for menu items */
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for dropdown */
}

.logo-img {
    width: 100px;
    height: auto;
    border-radius: 4px;
}

.dropdown:hover .submenu {
    display: block; /* Show submenu on hover */
}

.submenu li {
    margin: 0;
}

.submenu li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #555; /* Change background color on hover */
}

/* Add toggle button styling */
.toggle-button {
    display: none; /* Hidden by default */
    background-color: rgba(0, 0, 0, 0.8); /* Match navbar background */
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1000; /* Ensure it's above other elements */
}

/* Show the toggle button on smaller screens */
@media (max-width: 768px) {
    .toggle-button {
        display: block;
    }

    nav ul {
        display: none; /* Hide the menu by default */
        flex-direction: column; /* Stack items vertically */
        padding: 0;
    }

    nav ul.active {
        display: flex; /* Show the menu when active */
    }

    nav ul li {
        margin: 10px 0; /* Add vertical spacing */
    }
}
