Your point is well taken.  For example, molesting children is immoral, but that is secular.  If it is done by priests, then it is a mistake, to be covered up to prevent scandal to the church, a religious violation, but apparently it is not necessarily immoral from the religious standpoint, as long as no one gets caught.  Another example, one candidate spews racists, sexist and abusive speech, but says he is opposed to abortion.  He appears immoral to many, but the bishops support him, because they see the world not through secular eyes, but with the eyes of the spirit that has led them to their positions.