/* ============================================================
   AlphaTelecom — Navigation Dropdown Styles
   Loaded AFTER alpha-legacy.css
   ============================================================ */

/* ============ Desktop Support Dropdown ============ */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-toggle {
    /*display: inline-flex;*/
    /*align-items: center;*/
    gap: 6px;
    color: #2b3345;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    transition: color .15s;
}

.nav-dropdown:hover .dropdown-toggle,
.nav-dropdown:focus-within .dropdown-toggle {
    color: var(--brand);
}

.nav-dropdown .dropdown-toggle .fa-chevron-down {
    font-size: 10px;
    transition: transform .25s ease;
}

.nav-dropdown:hover .dropdown-toggle .fa-chevron-down,
.nav-dropdown:focus-within .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--line, #ececf1);
    border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(26, 79, 212, .28), 0 4px 12px -4px rgba(0, 0, 0, .06);
    padding: 8px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    z-index: 200;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* Small caret arrow above dropdown */
.nav-dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid var(--line, #ececf1);
    border-left: 1px solid var(--line, #ececf1);
    border-radius: 2px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown .dropdown-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink, #0f1729);
    text-decoration: none;
    transition: background .15s, color .15s, padding .15s;
    white-space: nowrap;
}

.nav-dropdown .dropdown-menu a .fa {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--brand, #1a4fd4);
    transition: transform .15s;
}

.nav-dropdown .dropdown-menu a:hover {
    background: var(--brand-soft, #e8efff);
    color: var(--brand, #1a4fd4);
    padding-left: 18px;
}

.nav-dropdown .dropdown-menu a:hover .fa {
    transform: scale(1.15);
}

/* ============ Mobile Support Accordion ============ */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--line, #ececf1);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink, #0f1729);
    text-align: left;
    cursor: pointer;
    transition: color .15s;
}

.mobile-dropdown-toggle:hover {
    color: var(--brand, #1a4fd4);
}

.mobile-dropdown-toggle .fa-chevron-down {
    font-size: 12px;
    color: var(--muted, #5a6577);
    transition: transform .25s ease;
}

.mobile-dropdown.open .mobile-dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    padding: 6px 0 10px 8px;
    margin: 0;
    background: var(--bg-soft, #f7f8fb);
    border-radius: 10px;
    margin-bottom: 10px;
    animation: mobileDropdownFade .2s ease;
}

.mobile-dropdown.open .mobile-dropdown-menu {
    display: flex;
}

@keyframes mobileDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted, #5a6577);
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.mobile-dropdown-menu a .fa {
    width: 18px;
    text-align: center;
    color: var(--brand, #1a4fd4);
    font-size: 13px;
}

.mobile-dropdown-menu a:hover,
.mobile-dropdown-menu a:active {
    background: var(--brand-soft, #e8efff);
    color: var(--brand, #1a4fd4);
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
    /* Hide desktop dropdown on mobile — mobile accordion takes over */
    .nav-dropdown {
        display: none;
    }
}

@media (min-width: 1001px) {
    /* Hide mobile accordion on desktop */
    .mobile-dropdown {
        display: none;
    }
}