For centuries, women of childbearing age were prohibited from entering the temple in the coastal state of Kerala.