Which is the correct way to write the underlined portion of the following sentence?

The principal announced that participating in school activities, taking education seriously, and to have a good time are all part of being a student at Rosewood High School.
A.
participating in school activities, to take education seriously, and to have a good time

B.
to participate in school activities, taking education seriously, and to have a good time

C.
participating in school activities, taking education seriously, and having a good time

D.
Correct as is