Looking to create some unique CSS rules for formatting interview transcripts. The format I have in mind is as follows:
<h2 class="interviewer">Alice: [00:00:00]</h2>
<p>Is it ok if I ask you a question now?</p>
<h2 class="interviewee">Bob: [00:00:03]</h2>
<p>Sure go ahead.</p>
I was wondering if there is a way to change the color of the paragraph based on the class of the preceding heading. This would streamline the HTML markup significantly.