(8) Order that the minor perform community service work in a public entity or any private nonprofit entity, for not more than 50 hours over a period of 60 days, during times other than his or her hours of school attendance or employment. Work performed pursuant to this paragraph shall not exceed 30 hours during any 30-day period. The timeframes established by this paragraph shall not be modified except in unusual cases where the interests of justice would best be served. When the order to work is made by a referee or a juvenile hearing officer, it shall be approved by a judge of the juvenile court. For purposes of this paragraph, a judge, referee, or juvenile hearing officer shall not, without the consent of the minor, order the minor to perform work with a private nonprofit entity that is affiliated with any religion.