I agree 100% that the Bible was used to condone and justify slavery. Even in the New Testament, it was unfortunately accepted as a fact of life, like blue sky, and wasn’t given a moral aspect. In the Old Testament, those passages that can be construed as condemnatory or critical of slavery are not critical of the institution as such, but of God’s people being enslaved. IOW, it wasn’t opposed to slavery, it was opposed to slavery of Jews.
However, the Bible has not a trace of racism in in anywhere, not particularly surprising since the whole concept of inferior and superior races, and indeed that “races” are important, is only a few centuries old.
Those who used the curse of Cain to say black people are intended to be slaves were/are idiots. All of Cain’s descendants died in the Flood, leaving none to populate Africa and provide a convenient source of God-approved slaves.
Yet I personally had an old guy try to convince me that the mark of Cain was real, and that all blacks had it.
Just because the Bible has not a trace of racism, doesn’t mean that a human is incapable of finding blatant racism in it.
The Shulamite is described as black, yet beautiful, as if beauty is an anomaly for anyone black...