/* Main header styling */
#main-header {
    background: #fff !important;
    border-bottom: 1px solid rgba(26, 82, 118, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Orange top accent bar */
#main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f26522;
    z-index: 10;
}

/* Site title */
#main-header .site-title,
#main-header .site-title a,
#main-header .custom-logo-link,
#main-header .site-branding a {
    color: #1a5276 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.3s ease !important;
}

#main-header .site-title a:hover,
#main-header .site-branding a:hover {
    color: #f26522 !important;
}

/* Tagline */
#main-header .site-description,
#main-header .site-tagline {
    color: #1a5276 !important;
    font-weight: 600 !important;
    opacity: 0.8 !important;
}

/* Navigation links */
#main-header .header-navigation a {
    color: #0d1b2a !important;
    font-weight: 700 !important;
    position: relative !important;
    transition: color 0.3s ease !important;
}

#main-header .header-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 32px);
    height: 2px;
    background: #f26522;
    transition: transform 0.3s ease;
}

#main-header .header-navigation a:hover {
    color: #1a5276 !important;
}

#main-header .header-navigation a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Current page in nav */
#main-header .header-navigation .current-menu-item > a,
#main-header .header-navigation .current_page_item > a,
#main-header .header-navigation .current-menu-ancestor > a {
    color: #f26522 !important;
}

#main-header .header-navigation .current-menu-item > a::after,
#main-header .header-navigation .current_page_item > a::after,
#main-header .header-navigation .current-menu-ancestor > a::after {
    transform: translateX(-50%) scaleX(1);
}

/* Logo area */
#main-header .site-branding img {
    transition: opacity 0.3s ease !important;
}

#main-header .site-branding:hover img {
    opacity: 0.85;
}

/* Header icons (search, hamburger) */
#main-header .header-button,
#main-header .search-toggle-open,
#main-header .menu-toggle-open {
    color: #1a5276 !important;
    transition: color 0.3s ease !important;
}

#main-header .header-button:hover,
#main-header .search-toggle-open:hover,
#main-header .menu-toggle-open:hover {
    color: #f26522 !important;
}

/* Dropdown menus */
#main-header .sub-menu {
    background: #fff !important;
    border: none !important;
    border-top: 3px solid #f26522 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

#main-header .sub-menu li a {
    font-weight: 600 !important;
}

#main-header .sub-menu li a:hover {
    background: rgba(26, 82, 118, 0.05) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #main-header::before {
        height: 3px;
    }
}