D1. In any action brought pursuant to subsection D, the court, in its discretion, may award reasonable attorney fees as part of the costs (i) to a prevailing party who is the parent of a child with a disability; (ii) to a prevailing party who is the Board of Education or a local school division against the attorney of a parent who files a complaint or a subsequent cause of action that is frivolous, unreasonable, or without foundation, or against the attorney of a parent who continued to litigate after the litigation clearly became frivolous, unreasonable, or without foundation; or (iii) to a prevailing party who is the Board of Education or a local school division against the attorney of a parent, or against the parent, if the parent's complaint or subsequent cause of action was presented for any improper purpose, such as to harass, to cause unnecessary delay, or to needlessly increase the cause of litigation. Attorney fees may not be awarded relating to any meeting of the individualized education program (IEP) team unless such meeting is convened as a result of an administrative proceeding or judicial action, or, at the discretion of the State, for a mediation described in subsection B.