From midlife challenges to mental well-being: the interplay between stress, menopause, & brain function