/* -------------------- */
/* Mobile-first (default) */
/* -------------------- */

/* Menu hidden by default */
.header-widget-area {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Remove default list styling */
.header-widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Menu items */
.header-widget-area li {
    margin: 0;
}

.header-widget-area a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    color: #333; /* default link color */
}

/* Shared hover colors (same for mobile + desktop) */
.header-widget-area li:nth-child(1) a:hover { color: #46003dff; }
.header-widget-area li:nth-child(2) a:hover { color: #234862ff; }
.header-widget-area li:nth-child(3) a:hover { color: #c86442ff; }
.header-widget-area li:nth-child(4) a:hover { color: #46003dff; }
.header-widget-area li:nth-child(5) a:hover { color: #234862ff; }

/* Shared active/current page colors */
.header-widget-area li:nth-child(1).current-menu-item > a,
.header-widget-area li:nth-child(1).current_page_item > a { color: #46003dff; }

.header-widget-area li:nth-child(2).current-menu-item > a,
.header-widget-area li:nth-child(2).current_page_item > a { color: #234862ff; }

.header-widget-area li:nth-child(3).current-menu-item > a,
.header-widget-area li:nth-child(3).current_page_item > a { color: #c86442ff; }

.header-widget-area li:nth-child(4).current-menu-item > a,
.header-widget-area li:nth-child(4).current_page_item > a { color: #46003dff; }

.header-widget-area li:nth-child(5).current-menu-item > a,
.header-widget-area li:nth-child(5).current_page_item > a { color: #234862ff; }

/* Show menu when active (mobile toggle) */
.header-widget-area.active {
    display: flex;
}

/* Toggle button */
.menu-toggle {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* -------------------- */
/* Desktop layout (≥900px) */
/* -------------------- */
@media (min-width: 900px) {
    .menu-toggle {
        display: none;
    }

    .header-widget-area {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        padding: 0.75rem 0;
        background: none;
        box-shadow: none;
    }

    .header-widget-area ul {
        flex-direction: row;
        gap: 1.5rem;
    }

    .header-widget-area li {
        margin: 0;
    }

    .header-widget-area a {
        padding: 0.25rem 0;
        font-size: 1.1rem;
        border-radius: 0;
        text-decoration: none;
        color: #333;
    }

    /* Keep font-weight on active items */
    .header-widget-area .current-menu-item > a,
    .header-widget-area .current_page_item > a {
        font-weight: 700;
    }
}
