What is your "section after the detail section"? It could be a page footer or a report footer. This is subject to mis-interpretation by us, I think:
I have tried the other sections and none of them gives the desired result.
You put the page break above the sub and both in the page header? There can be a few properties at play here, such as grouping, keep with next, etc. Might be best to provide a sample copy if you can't figure it out. See How to Attach files at the top of this page.
EDIT - even the report view can matter. You're looking at this in Print Preview?
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.