/* Mega Menu Styles - Psychology Today Inspired */
.menu__item--dropdown {
    position: relative;
}

.menu__item--dropdown .menu__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 12px;
    min-width: 900px;
    max-width: 1000px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
    margin-top: 10px;
    border: 1px solid #e9ecef;
}

.menu__item--dropdown:hover .menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.menu__dropdown-body {
    padding: 2rem;
}

.menu__dropdown-body .row {
    margin: 0;
    justify-content: space-between;
}

.menu__dropdown-body .col-md-4 {
    padding: 0.5rem;
}

.menu__dropdown-item {
    margin: 0;
    padding: 0;
}

.menu__dropdown-item a {
    display: block;
    padding: 1rem;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.menu__dropdown-item a:hover {
    background-color: #f8f9fa;
    color: #007bff;
    border-left-color: #007bff;
    transform: translateX(4px);
}

.dropdown-arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    font-size: 10px;
    line-height: 1;
}

.menu__item--dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Add a subtle arrow pointing up */
.menu__dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.menu__dropdown::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #e9ecef;
}

/* Mobile Bootstrap Accordion Styles */
@media (max-width: 768px) {
    .menu__item--dropdown .d-md-none {
        margin-top: 0.5rem;
    }
    
    /* Mobile Nav Link Styling */
    .menu__item--dropdown .mobile-nav-link {
        background: transparent;
        border: none;
        padding: 1.25rem 1.5rem;
        font-size: 0.9rem;
        font-weight: 600;
        color: inherit;
        text-decoration: none;
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s ease;
        text-transform: uppercase;
    }
    
    .menu__item--dropdown .mobile-nav-link:hover {
        color: var(--color-primary);
    }
    
    .menu__item--dropdown .mobile-nav-link:focus {
        outline: none;
        box-shadow: none;
    }
    
    /* Mobile Arrow */
    .menu__item--dropdown .mobile-arrow {
        font-size: 12px;
        transition: transform 0.3s ease;
        color: #666;
    }
    
    .menu__item--dropdown .mobile-nav-link[aria-expanded="true"] .mobile-arrow {
        transform: rotate(180deg);
    }
    
    /* Accordion Content */
    .menu__item--dropdown .accordion-collapse {
        border: none;
        background: transparent;
    }
    
    .menu__item--dropdown .accordion-body {
        padding: 0;
        background: transparent;
    }
    
    .menu__item--dropdown .list-group {
        border: none;
        background: transparent;
    }
    
    .menu__item--dropdown .list-group-item {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        margin: 0.25rem 0 0.25rem 1.5rem;
        padding: 0.75rem 1rem;
        font-size: 14px;
        color: #333;
        text-decoration: none;
    }
    
    .menu__item--dropdown .list-group-item:hover {
        background: #f8f9fa;
        color: #007bff;
        border-color: #007bff;
    }
    
    .menu__item--dropdown .list-group-item:first-child {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }
    
    .menu__item--dropdown .list-group-item:last-child {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
}






