School teaching homophobia

In my school (Saudi Arabia) there is a stupid ass Islamic class that teaches the totally Scientific Quran. In the middle of a dumb lecture he says something along the lines of "I have a hard topic for you, it's about the lgbt in media." Then he bullshits about how disgusting and sinful lgbt is and says that Allah will curse them, this was terrifying for me at the time as I was on the AroAce spectrum. Then he asked the students their opinions and most of them say horrible stuff about the LGBT community. Teaching and praising a religion that allows pedophilia, cousin marriage and killings of apostates is fine, but teaching kids about accepting people based on their romantic interest is HARAM?