This country severely restricted the rights of its nonwhite citizens under a policy called apartheid, but since 1994 has made progress towards equality.