/*
Theme Name: Algo Trading Solution Global
Version: 1.4
*/

/* 1. RESET & LAYOUT */
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; gap: 2rem; align-items: center; }
.menu > li { position: relative; padding: 1rem 0; }

/* 2. TOP LEVEL LINKS */
.menu > li > a {
    color: #94a3b8;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.menu > li:hover > a { color: #ffffff; }

/* 3. DROPDOWN CONTAINER (Matches 'About' Page Design) */
.menu-item-has-children > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 24rem; /* Wide enough for long titles */
    
    /* Dark Background from Screenshot */
    background: #15171b; 
    
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
    z-index: 999;
}

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

/* 4. SUB MENU ITEMS */
.sub-menu li a {
    display: flex;
    align-items: center; /* Vertically center icon box */
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s;
}

.sub-menu li a:hover { 
    background: rgba(255,255,255,0.03); 
}

/* 6. TEXT LAYOUT (Title + Desc) */
.menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-title {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.menu-desc {
    display: block;
    color: #58687b; /* Muted grey/blue description */
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 1px;
}

/* 7. SECTION HEADERS (If used) */
.menu-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.menu-item.menu-header > a {
    pointer-events: none;
    cursor: default;
}

/* 8. ICON MAP (Add classes in WP Menu) */
.icon-fast > a::before      { --tw-content: "⚡"; color: #ed8936; }
.icon-chart > a::before     { --tw-content: "📊"; color: #48bb78; }
.icon-graph > a::before     { --tw-content: "📈"; color: #4299e1; }
.icon-link > a::before      { --tw-content: "🔗"; color: #a0aec0; }
.icon-telegram > a::before  { --tw-content: "✈️"; color: #0088cc; }