/* Shared page title banner + simple content layout */

.ioipg-page-banner {
	--ioipg-page-banner-gutter: clamp(2rem, 5vw, 4rem);
}

.ioipg-page-hero {
	position: relative;
	background-color: var(--ioipg-primary-dark, #0f2d6e);
	min-height: 200px;
}

.ioipg-page-hero--has-image {
	min-height: 0;
}

.ioipg-page-hero--has-image::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	height: 45%;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 45, 110, 0.75) 100%);
	pointer-events: none;
}

.ioipg-page-hero__bg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	vertical-align: top;
}

.ioipg-page-hero__inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--ioipg-hero-title-bottom, clamp(3.5rem, 7vw, 5.5rem));
	z-index: 1;
	width: 100%;
	max-width: var(--ioipg-container, 1280px);
	margin: 0 auto;
	padding: 0 var(--ioipg-page-banner-gutter);
	box-sizing: border-box;
	pointer-events: none;
}

.ioipg-page-hero__title-anim {
	/* Inner wrapper handles the slide-up transform so the outer
	 * .ioipg-page-hero__inner keeps its layout intact. */
	display: inline-block;
	max-width: 100%;
}

.ioipg-page-hero:not(.ioipg-page-hero--has-image) .ioipg-page-hero__inner {
	bottom: 0;
	padding-bottom: var(--ioipg-hero-title-bottom, clamp(3.5rem, 7vw, 5.5rem));
}

.ioipg-page-hero__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	pointer-events: auto;
}

.ioipg-page-hero--title-hidden .ioipg-page-hero__inner {
	display: none;
}

.ioipg-page-banner__main {
	background-color: #fff;
}

.ioipg-page-banner__inner {
	max-width: var(--ioipg-container, 1280px);
	margin: 0 auto;
	padding: 3rem var(--ioipg-page-banner-gutter) 4rem;
	box-sizing: border-box;
}

/* Full-width featured image (page's featured image) shown above the content. */
.ioipg-page-banner__featured {
	display: block;
	margin: 0 0 2.5rem;
	padding: 0;
	max-width: 100%;
	text-align: center;
}

.ioipg-page-banner__featured img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.ioipg-page-banner__content {
	color: var(--ioipg-text, #1a2332);
	line-height: 1.65;
}

.ioipg-page-banner__content > :first-child {
	margin-top: 0;
}

.ioipg-page-banner__content > :last-child {
	margin-bottom: 0;
}

.ioipg-page-banner__content h2,
.ioipg-page-banner__content h3,
.ioipg-page-banner__content h4 {
	color: var(--ioipg-primary, #1a3d8f);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.ioipg-page-banner__content ul,
.ioipg-page-banner__content ol {
	padding-left: 1.35rem;
}

.ioipg-page-banner__content a {
	color: var(--ioipg-primary, #1a3d8f);
}

/* Trust & Organisation Structure pages: add a background image behind the content area.
   The image URL can be overridden from the Customizer (Appearance → Customize → Trust & Organisation Structure). */
.ioipg-page-trust-org .ioipg-page-banner__inner {
        background-image: var(--ioipg-trust-org-bg, url(http://ioireit.ircnx.com/wp-content/uploads/2026/07/Mask-group-1.png));
        background-repeat: no-repeat;
        background-position: center top;
        background-size: 100% auto;
}

/* Notes block beneath the org-structure image (Trust Organisation Structure page). */
.ioipg-trust-notes {
        color: #1F3C94;
        font-size: 13px;
        line-height: 1.55;
        padding: 16px 0 24px;
}
.ioipg-trust-notes__heading {
        font-weight: 700;
        margin: 0 0 8px;
}
.ioipg-trust-notes__list {
        margin: 0;
        padding: 0;
        list-style: none;
        counter-reset: trustnote;
}
.ioipg-trust-notes__list > li {
        counter-increment: trustnote;
        padding-left: 2.5em;
        text-indent: -2.5em;
        margin-bottom: 8px;
}
.ioipg-trust-notes__list > li::before {
        content: "(" counter(trustnote) ") ";
        font-weight: 600;
}
.ioipg-trust-notes__list > li:last-child {
        margin-bottom: 0;
}
