/* Dropdown menu styles for header */
.header-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header-menu > ul > li {
    position: relative;
    margin: 0 15px;
}

.header-menu ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
}

.header-menu ul li a:hover {
    color: #037dff;
}

/* Dropdown arrow for parent items */
.header-menu ul li.menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.75em;
    margin-left: 5px;
}

/* Submenu styles */
.header-menu ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 0.5rem 0;
    margin-top: 0;
}

/* Show submenu on hover */
.header-menu ul li:hover > ul.sub-menu {
    display: block;
}

.header-menu ul li ul.sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
}

.header-menu ul li ul.sub-menu li a {
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.header-menu ul li ul.sub-menu li a:hover {
    background: #f0f0f0;
    color: #037dff;
}

/* Mobile menu styles */
@media (max-width: 991px) {
    .header-menu ul {
        flex-direction: column;
    }
    
    .header-menu ul li ul.sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
        background: #f8f9fa;
    }
    
    .header-menu ul li.menu-open > ul.sub-menu {
        display: block;
    }
    
    .header-menu ul li.menu-item-has-children > a::after {
        float: right;
    }
}