In today’s world in which we are no longer god-fearing, and which we are not afraid of a permanent hell/afterlife, what is the purpose of religion?
Aesthetic.
For example, going to church/mass is a luxury. Getting dressed up, being social, and appreciating the peace and quiet and aesthetics of mass is a luxury.