Keep Line Together in Scrivener

For your subheadings, use Format > Paragraph > Keep with Next.

All the best,
Keith