@media print {
/* Reset visibility — show everything inside research-content */
body * {
    visibility: hidden !important;
}
.research-content, .research-content * {
    visibility: visible !important;
}

/* Make research-content flow normally (no position absolute!) */
.research-content {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Ensure sections can break across pages */
.research-part, 
.research-body, 
.research-body * {
    page-break-inside: auto !important;
    break-inside: auto !important;
}

/* Each major section starts on a new page for clarity (optional) */
.research-part {
    page-break-before: always;
}
.research-part:first-of-type {
    page-break-before: avoid;
}

/* Make sure expanded content fully shows */
.research-body {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Optional cleanup */
.arrow, .navbar, footer, .go-top, #comment, .preloader {
    display: none !important;
}

html, body {
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
}
}