/* WordPress Menu Compatibility */
/* Map WordPress menu classes to original theme classes */

/* WordPress generates these classes by default */
.menu-item {
    position: relative;
}

.menu-item a {
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s;
}

.menu-item a:hover {
    color: #38bdf8;
}

/* Sub-menu (WordPress dropdown) */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0f172a;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    list-style: none;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu-item {
    display: block;
    margin: 0;
}

.sub-menu .menu-item a {
    display: block;
    padding: 12px 25px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.sub-menu .menu-item a:hover {
    background-color: rgba(56, 189, 248, 0.05);
    color: #38bdf8;
    padding-left: 30px;
}

/* Current menu item highlighting */
.current-menu-item>a,
.current_page_item>a {
    color: #38bdf8;
}

/* Mobile Menu Adjustments for WordPress */
@media (max-width: 768px) {
    .sub-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 10px 0;
        min-width: 100%;
    }

    .menu-item-has-children:hover .sub-menu {
        display: block;
    }

    .sub-menu .menu-item a {
        text-align: center;
        padding: 10px 0;
        border: none;
    }

    .sub-menu .menu-item a:hover {
        padding-left: 0;
        background: transparent;
    }
}