/* Welcome page — centered hero banner */

.ioipg-welcome {
	--ioipg-welcome-gutter: clamp(1.75rem, 4vw, 3.5rem);
}

.ioipg-welcome-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: min(72vh, 640px);
	background: #1a3a8a;
	text-align: center;
	/* Clip the slide-up entrance offset so it can't cause page overflow. */
	overflow: hidden;
}

.ioipg-welcome-hero--has-image {
	min-height: min(78vh, 720px);
}

.ioipg-welcome-hero__slider {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ioipg-welcome-hero__viewport {
	position: absolute;
	inset: 0;
}

.ioipg-welcome-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.85s ease;
	pointer-events: none;
}

.ioipg-welcome-hero__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.ioipg-welcome-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ioipg-welcome-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(0.75rem, 2vw, 1.25rem);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0 var(--ioipg-welcome-gutter);
	box-sizing: border-box;
	pointer-events: none;
}

.ioipg-welcome-hero__dots .ioipg-welcome-hero__dot {
	pointer-events: auto;
}

.ioipg-welcome-hero__dot {
	width: 32px;
	height: 4px;
	border: none;
	border-radius: 2px;
	padding: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background 0.2s ease, width 0.2s ease;
}

.ioipg-welcome-hero__dot.is-active {
	width: 40px;
	background: #ffffff;
}

.ioipg-welcome-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(8, 18, 48, 0.72) 0%,
		rgba(20, 45, 110, 0.45) 45%,
		rgba(26, 58, 138, 0.35) 100%
	);
}

.ioipg-welcome-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--ioipg-container, 1280px);
	margin: 0 auto;
	/* Local override: pull content lower than the global hero offset. */
	--ioipg-hero-title-bottom: clamp(1.6rem, 2.6vw, 2.25rem);
	padding: 6rem var(--ioipg-welcome-gutter) var(--ioipg-hero-title-bottom);
	box-sizing: border-box;
}

.ioipg-welcome-hero__title {
	margin: 0 0 1.25rem;
	font-size: clamp(2.25rem, 5.5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.ioipg-welcome-hero__subtitle {
	margin: 0 auto 2rem;
	max-width: 52rem;
	font-size: clamp(0.95rem, 2vw, 1.125rem);
	line-height: 1.65;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.ioipg-welcome-search {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	max-width: 760px;
	margin: 0 auto;
	padding: 0.3rem;
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
}

.ioipg-welcome-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-family: inherit;
	color: #1a1a2e;
	background: #ffffff;
	box-sizing: border-box;
}

.ioipg-welcome-search__input::placeholder {
	color: #9ca3af;
}

.ioipg-welcome-search__input:focus {
	outline: none;
	border-color: #c5d0e0;
	box-shadow: 0 0 0 2px rgba(26, 58, 138, 0.12);
}

.ioipg-welcome-search__filters {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0.5rem 1.15rem;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #ffffff;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #1a1a2e;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.ioipg-welcome-search__filters:hover {
	border-color: #c5d0e0;
	background: #f8fafc;
	text-decoration: none;
}

.ioipg-welcome-search__submit {
	flex-shrink: 0;
	border: none;
	border-radius: 999px;
	padding: 0.5rem 1.25rem;
	background: #1a3a8a;
	color: #ffffff;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.8125rem;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
	transition: background 0.2s ease;
}

.ioipg-welcome-search__submit:hover {
	background: #25469b;
}

/* Portfolio teaser (below hero) */

.ioipg-welcome-portfolio {
	background: #ffffff;
	padding: 4rem var(--ioipg-welcome-gutter) 4.5rem;
}

.ioipg-welcome-portfolio__inner {
	max-width: var(--ioipg-container, 1280px);
	margin: 0 auto;
	box-sizing: border-box;
}

.ioipg-welcome-portfolio__header {
	text-align: center;
	margin-bottom: 2.75rem;
}

.ioipg-welcome-portfolio__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	color: #1a1a2e;
}

.ioipg-welcome-portfolio__subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: #666666;
}

.ioipg-welcome-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.ioipg-welcome-portfolio__card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.ioipg-welcome-portfolio__card-link:hover .ioipg-welcome-portfolio__label {
	text-decoration: underline;
}

.ioipg-welcome-portfolio__media {
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: linear-gradient(160deg, #e8eef8 0%, #c5d4eb 100%);
	margin-bottom: 1rem;
}

.ioipg-welcome-portfolio__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Crop lower edge so mockup carousel UI (arrows/dots) is not visible */
	object-position: center 42%;
}

.ioipg-welcome-portfolio__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.ioipg-welcome-portfolio__label {
	margin: 0;
	text-align: center;
	font-size: 1.125rem;
	font-weight: 700;
	color: #1a3a8a;
}

/* Who We Are band */

.ioipg-welcome-who {
	position: relative;
	overflow: hidden;
	min-height: 320px;
	display: flex;
	align-items: stretch;
	background: #1a3a8a;
}

.ioipg-welcome-who--has-image {
	min-height: 360px;
}

.ioipg-welcome-who__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.ioipg-welcome-who__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(15, 45, 110, 0.88) 0%,
		rgba(26, 58, 138, 0.82) 45%,
		rgba(26, 58, 138, 0.75) 100%
	);
}

.ioipg-welcome-who__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--ioipg-container, 1280px);
	margin: 0 auto;
	padding: 3.5rem var(--ioipg-welcome-gutter);
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(200px, 1fr) minmax(280px, 1.15fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.ioipg-welcome-who__title {
	margin: 0;
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
}

.ioipg-welcome-who__text {
	margin: 0 0 1.5rem;
	font-size: clamp(0.9rem, 1.8vw, 1rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.95);
}

.ioipg-welcome-who__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.35rem;
	background: #0f2d6e;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.ioipg-welcome-who__btn:hover {
	background: #25469b;
	color: #ffffff;
}

.ioipg-welcome-who__btn-icon {
	display: inline-flex;
	align-items: center;
}

/* ESG / Inspiring trust section */

.ioipg-welcome-esg {
	position: relative;
	overflow: hidden;
	background: #ffffff;
	padding: 0;
}

.ioipg-welcome-esg__decor {
	position: absolute;
	pointer-events: none;
}

.ioipg-welcome-esg__decor--left,
.ioipg-welcome-esg__decor--right {
	border: 3px solid rgba(190, 210, 235, 0.55);
	border-radius: 50%;
	background: transparent;
}

.ioipg-welcome-esg__decor--left::before,
.ioipg-welcome-esg__decor--right::before {
	content: "";
	position: absolute;
	inset: 16%;
	border: 3px solid rgba(190, 210, 235, 0.4);
	border-radius: 50%;
}

.ioipg-welcome-esg__decor--left {
	left: clamp(-120px, -6vw, -32px);
	top: 50%;
	bottom: auto;
	width: clamp(280px, 38vw, 480px);
	height: clamp(280px, 38vw, 480px);
	transform: translateY(-42%);
}

.ioipg-welcome-esg__decor--right {
	right: clamp(-80px, -4vw, 0);
	top: 6%;
	bottom: auto;
	width: clamp(200px, 28vw, 360px);
	height: clamp(200px, 28vw, 360px);
	transform: none;
}

.ioipg-welcome-esg__decor--custom {
	inset: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	opacity: 0.14;
}

.ioipg-welcome-esg__inner {
	position: relative;
	z-index: 1;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(280px, 44%) minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	box-sizing: border-box;
}

.ioipg-welcome-esg__content {
	position: relative;
	z-index: 2;
	align-self: center;
	padding: clamp(3rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3.5rem);
	padding-right: 0;
	background-image: url('http://ioireit.ircnx.com/wp-content/uploads/2026/06/IOIPG-Msia-REIT-3-2.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: auto 100%;
}

.ioipg-welcome-esg__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	color: #000000;
}

.ioipg-welcome-esg__text {
	margin: 0 0 1.75rem;
	font-size: 0.8125rem;
	line-height: 1.75;
	color: #666666;
	max-width: 36rem;
}

.ioipg-welcome-esg__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.25rem;
	background: #1a3a8a;
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.ioipg-welcome-esg__btn:hover {
	background: #25469b;
	color: #ffffff;
}

.ioipg-welcome-esg__btn-icon {
	display: inline-flex;
	align-items: center;
}

.ioipg-welcome-esg__media {
	position: relative;
	z-index: 1;
	display: block;
	align-self: stretch;
	min-height: 0;
	margin-left: clamp(-7rem, -12vw, -3.5rem);
	width: calc(100% + clamp(3.5rem, 12vw, 7rem));
	overflow: hidden;
	line-height: 0;
}

.ioipg-welcome-esg__media::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: min(48%, 280px);
	background: linear-gradient(
		to right,
		#ffffff 0%,
		rgba(255, 255, 255, 0.96) 28%,
		rgba(255, 255, 255, 0.72) 52%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 1;
}

.ioipg-welcome-esg__media img {
	display: block;
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center right;
}

.ioipg-welcome-esg__placeholder {
	display: block;
	width: 100%;
	min-height: 280px;
	height: 100%;
	background: linear-gradient(160deg, #e8eef8 0%, #c5d4eb 100%);
}

/* Investor Relations CTA band */

.ioipg-welcome-ir {
	position: relative;
	overflow: hidden;
	min-height: clamp(200px, 28vw, 280px);
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #eef2f8 0%, #e2e9f2 100%);
}

.ioipg-welcome-ir__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ioipg-welcome-ir__overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.72);
}

.ioipg-welcome-ir__inner {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: clamp(2.5rem, 6vw, 3.5rem) var(--ioipg-welcome-gutter);
	max-width: var(--ioipg-container, 1280px);
	margin: 0 auto;
	box-sizing: border-box;
}

.ioipg-welcome-ir__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	color: #1a3a8a;
}

.ioipg-welcome-ir__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	background: #1a3a8a;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	transition: background 0.2s ease;
}

.ioipg-welcome-ir__btn:hover {
	background: #25469b;
	color: #ffffff;
}

.ioipg-welcome-ir__btn-icon {
	display: inline-flex;
	align-items: center;
}

/* From Our Blog — dynamic news cards */

.ioipg-welcome-blog {
	background: #f5f6f8;
	padding: clamp(3rem, 6vw, 4.5rem) var(--ioipg-welcome-gutter);
}

.ioipg-welcome-blog__inner {
	max-width: var(--ioipg-container, 1280px);
	margin: 0 auto;
	box-sizing: border-box;
}

.ioipg-welcome-blog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.ioipg-welcome-blog__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	color: #1a3a8a;
}

.ioipg-welcome-blog__subtitle {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #888888;
	max-width: 32rem;
}

.ioipg-welcome-blog__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
	margin-top: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1a1a2e;
	text-decoration: none;
	white-space: nowrap;
}

.ioipg-welcome-blog__more:hover {
	color: #1a3a8a;
}

.ioipg-welcome-blog__more-icon {
	display: inline-flex;
	align-items: center;
}

.ioipg-welcome-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}

.ioipg-welcome-blog__card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.ioipg-welcome-blog__media {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 1rem;
	aspect-ratio: 4 / 3;
	background: #e8eaee;
}

.ioipg-welcome-blog__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ioipg-welcome-blog__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #e2e6ec 0%, #cfd6e0 100%);
}

.ioipg-welcome-blog__date {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 0.35rem 0.5rem;
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	line-height: 1.1;
	text-align: center;
}

.ioipg-welcome-blog__date-month {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #1a1a2e;
}

.ioipg-welcome-blog__date-day {
	font-size: 1.125rem;
	font-weight: 700;
	color: #1a1a2e;
}

.ioipg-welcome-blog__card-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.45;
	color: #1a1a2e;
}

.ioipg-welcome-blog__card-link:hover .ioipg-welcome-blog__card-title {
	color: #1a3a8a;
}

.ioipg-welcome-blog__source {
	margin: 0;
	font-size: 0.8125rem;
	color: #888888;
}

.ioipg-news-archive__inner,
.ioipg-news-single__inner {
	max-width: var(--ioipg-container, 1280px);
	margin: 0 auto;
	padding: 3rem var(--ioipg-welcome-gutter) 4rem;
	box-sizing: border-box;
}

.ioipg-news-archive__title {
	margin: 0 0 2rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	color: #1a3a8a;
}

.ioipg-news-single__header {
	margin-bottom: 1.5rem;
}

.ioipg-news-single__title {
	margin: 0.5rem 0 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: #1a1a2e;
}

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

.ioipg-welcome__content > .ioipg-welcome-editor-notice {
	display: none;
}

@media (max-width: 900px) {
	.ioipg-welcome-portfolio__grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}

	.ioipg-welcome-who__inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 2.75rem var(--ioipg-welcome-gutter);
	}

	.ioipg-welcome-who__overlay {
		background: rgba(26, 58, 138, 0.85);
	}

	.ioipg-welcome-esg__inner {
		grid-template-columns: 1fr;
		align-items: stretch;
		min-height: 0;
	}

	.ioipg-welcome-esg__content {
		padding: 2.5rem var(--ioipg-welcome-gutter);
	}

	.ioipg-welcome-esg__decor--left {
		left: 50%;
		top: 18%;
		transform: translate(-50%, 0);
		width: min(72vw, 320px);
		height: min(72vw, 320px);
	}

	.ioipg-welcome-esg__decor--right {
		display: none;
	}

	.ioipg-welcome-esg__media {
		order: -1;
		min-height: 240px;
		margin-left: 0;
		width: 100%;
	}

	.ioipg-welcome-esg__media::after {
		width: min(36%, 160px);
	}

	.ioipg-welcome-esg__media img,
	.ioipg-welcome-esg__placeholder {
		min-height: 240px;
		object-position: bottom center;
	}

	.ioipg-welcome-blog__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.ioipg-welcome-blog__grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ioipg-welcome-hero__slide {
		transition: none;
	}
}

@media (max-width: 768px) {
	.ioipg-welcome-hero {
		min-height: 520px;
	}

	.ioipg-welcome-search {
		flex-wrap: wrap;
		border-radius: 1.25rem;
		padding: 0.65rem;
		gap: 0.5rem;
	}

	.ioipg-welcome-search__input,
	.ioipg-welcome-search__filters,
	.ioipg-welcome-search__submit {
		width: 100%;
	}

	.ioipg-welcome-search__input {
		border-radius: 999px;
	}

	.ioipg-welcome-search__filters {
		justify-content: center;
	}

	.ioipg-welcome-search__submit {
		border-radius: 999px;
	}
}
