.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    position: relative;
}

.navbar ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 999;
}

.navbar ul li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar ul ul li {
    width: 100%;
}

.navbar ul ul li a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    /* gray-700 */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar ul ul li a:hover {
    text-decoration: none;
    border: 0 none;
    font-family: 900;
    color: rgb(61 217 232);
}

/* Submenu positioning and styling */
.navbar ul ul.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 260px;
    margin-top: 0;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    padding: 0.5rem 0;
}

.navbar ul li:hover>ul.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Category menu links styling */
.navbar ul ul li a {
    position: relative;
    overflow: hidden;
}

/* Animated pulse for "Live" status in carousel index (from previous task but useful here if reused) */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Custom scrollbar for long menus */
.submenu::-webkit-scrollbar {
    width: 4px;
}

.submenu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.submenu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.submenu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Footer link styling overrides */
footer a.no-underline {
    text-decoration: none !important;
}

footer a.no-underline:hover {
    text-decoration: none !important;
}