Castism existed along with the hindu religion. Even before Congress came into existance. You cant blame congress for that. Congress only supporting the underprevilaged low caste to develop into the main stream society by giving them reservations.
And about religion, BJP is the first and only political party which used religion for vote banks but failed. They're still using this tool to come into power .
Please dont blame congress for everything. Look at the histroy and you'll find India experienced economic growth only during Congress rule at center.
Please dont fall into the traps of fake patriotist like BJP. Their main agenda is to build Ram mandir where as Congress strive hard to make India a economic super power .