@media (max-width: 991px) {
.mobile-navbar.mobile-only {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-items {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: space-around;
}

.nav-items li { /* Added this rule */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-items li a,
.menu-toggle button {
    color: #0885FD;
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    border: none;
    font-size: 1.5rem; /* Increased font size for icons */
    cursor: pointer;
    transition: color 0.3s;
    padding: 10px; /* Added padding for better click area */
}

.nav-items li a:hover,
.menu-toggle button:hover {
    color: #064d9a;
}

.home-icon-container a {
    background-color: #0885FD; /* Blue background */
    border-radius: 50%; /* Circular shape */
    color: white; /* White icon color */
    padding: 15px; /* Adjust padding to make the circle size appropriate */
    display: flex; /* To center the icon */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(8, 133, 253, 0.4); /* Subtle shadow */
}

.home-icon-container a:hover {
    background-color: #064d9a; /* Darker blue on hover */
    color: white;
}

.menu-toggle {
    position: relative;
}

.submenu {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 100px;
    padding: 8px 0;
}

.submenu.show {
    display: flex;
}

.submenu li a {
    padding: 12px 20px;
    color: #0885FD;
    text-align: center;
    display: block;
    font-weight: normal;
    font-size: 1rem;
}

.submenu li a:hover {
    background: rgba(8, 133, 253, 0.1);
}

/* Dark Theme Styles */
.mobile-navbar.dark-mode {
    background: #222222 !important; /* Dark background */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.mobile-navbar.dark-mode .nav-items li a,
.mobile-navbar.dark-mode .menu-toggle button {
    color: #eeeeee; /* Light text/icon color */
}

.mobile-navbar.dark-mode .nav-items li a:hover,
.mobile-navbar.dark-mode .menu-toggle button:hover {
    color: #66b3ff; /* Lighter blue on hover */
}

.mobile-navbar.dark-mode .home-icon-container a {
    background-color: #5b5b5b; /* Dodger blue for better contrast */
    color: white; /* Explicitly set color to white */
    box-shadow: none; /* Remove box-shadow to avoid "foggy" effect */
}

.mobile-navbar.dark-mode .home-icon-container a:hover {
    background-color: #007bff; /* Slightly darker blue on hover */
    color: white; /* Explicitly set color to white */
}

.mobile-navbar.dark-mode .submenu {
    background: #333333; /* Slightly lighter dark grey for submenu */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.mobile-navbar.dark-mode .submenu li a {
    color: #eeeeee; /* Light text for submenu items */
}

.mobile-navbar.dark-mode .submenu li a:hover {
    background: rgba(102, 179, 255, 0.1); /* Light blue transparent on hover */
}
}