بسم الله الرحمن الرحيم
(Fatwa: 784/782/N=08/1437)
The Shariah ruling is the one which you know. The solution to the problems mentioned in the question is that you must keep your mind free from lust and related thoughts and do not turn your mind towards the girls at all and in case sometime it diverts towards them then turn it towards other side immediately and do not talk the women or girls without severe need. If you do these things then it is hoped that your problems shall gradually be solved or reduced. May Allah redress your problems!
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband
