/* Header Navbar Styles */

/* Ensure navbar text styles are applied correctly */
.scroll-navbar nav a {
    font-size: 0.875rem; /* text-md */
    font-weight: 500; /* font-medium */
}

@media (min-width: 1024px) {
    .scroll-navbar nav a {
        font-size: 1.125rem; /* text-lg */
        font-weight: 500; /* font-medium */
    }
}

/* Dropdown styles - Hover functionality */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #135d91; /* nmsa-blue-700 brand color */
    border: 1px solid #144f78; /* nmsa-blue-800 brand color */
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    min-width: 200px;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff; /* white text on brand background */
    text-decoration: none;
    border-bottom: 1px solid #144f78; /* nmsa-blue-800 brand color */
    transition: all 0.2s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #144f78; /* nmsa-blue-800 brand color on hover */
    color: #ffffff;
}

/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #135d91; /* nmsa-blue-700 brand color */
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.mobile-menu-logo {
    height: 3.5rem; /* h-14 - slightly bigger than h-12 */
    width: auto;
    /* Remove filter to show original logo colors */
}

/* Mobile menu close button */
.mobile-menu-close {
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #ffffff;
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: white;
}

.mobile-dropdown {
    display: none;
    padding-left: 1rem;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown a {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.mobile-dropdown a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure hamburger button stays visible - override any conflicting styles */
#mobile-menu-button {
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Desktop logo - slightly bigger */
.scroll-navbar .desktop-logo {
    height: 3.5rem; /* h-14 - slightly bigger than h-12 */
    width: auto;
}
