What groups of people was the ancient Indian society divided into?

India itself in ancient times was a rather interesting and even fabulous state (for foreigners who have not been here). There were also specific religious beliefs (Brahmanism, Hinduism) that divided the entire Indian society into separate castes. There were 4 castes in total: brahmanas, kshatriyas, vaisyas and sudras. In addition, hermits also lived in Indian society, who belonged to the 0 caste, they were called untouchables.

One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.