Attraction Towards Opposite Gender
What you’re describing is normal human nature. What’s required is that one be mindful of such thoughts arising in their heads and consciously act within the bounds set by God. Learning to discipline ourselves is in fact practicing taqwa. The key to achieving it is through continuous and hard self accountability.