.xgz-insights {
	--xgz-navy: #111d3d;
	--xgz-red: #d54658;
	--xgz-muted: #667085;
	--xgz-line: #e7eaf0;
	font-family: inherit;
	padding: 90px 0;
	width: 100%;
}

.xgz-insights__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.xgz-insight-card {
	background: #fff;
	border: 1px solid var(--xgz-line);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(17, 29, 61, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.xgz-insight-card:hover {
	box-shadow: 0 16px 38px rgba(17, 29, 61, 0.14);
	transform: translateY(-4px);
}

.xgz-insight-card__media {
	aspect-ratio: 16 / 10;
	background: #dfe4ec;
	display: block;
	overflow: hidden;
}

.xgz-insight-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms ease;
	width: 100%;
}

.xgz-insight-card:hover .xgz-insight-card__media img {
	transform: scale(1.035);
}

.xgz-insight-card__placeholder {
	align-items: center;
	background: linear-gradient(135deg, var(--xgz-navy), #263968);
	color: rgba(255, 255, 255, 0.84);
	display: flex;
	font-size: 13px;
	font-weight: 700;
	height: 100%;
	justify-content: center;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	width: 100%;
}

.xgz-insight-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.xgz-insight-card__meta {
	align-items: center;
	color: var(--xgz-muted);
	display: flex;
	font-size: 12px;
	font-weight: 600;
	gap: 12px;
	justify-content: space-between;
	letter-spacing: 0.03em;
	margin-bottom: 13px;
	text-transform: uppercase;
}

.xgz-insight-card__meta span {
	color: var(--xgz-red);
}

.xgz-insight-card__meta time {
	margin-left: auto;
}

.xgz-insight-card__title {
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0 0 13px;
}

.xgz-insight-card__title a {
	color: var(--xgz-navy);
	text-decoration: none;
}

.xgz-insight-card__excerpt {
	color: var(--xgz-muted);
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 20px;
}

.xgz-insight-card__more {
	align-items: center;
	color: var(--xgz-red);
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	margin-top: auto;
	text-decoration: none;
}

.xgz-insight-card__more:hover {
	color: var(--xgz-navy);
}

.xgz-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 46px;
}

.xgz-pagination .page-numbers {
	align-items: center;
	background: #fff;
	border: 1px solid var(--xgz-line);
	border-radius: 6px;
	color: var(--xgz-navy);
	display: inline-flex;
	font-weight: 650;
	justify-content: center;
	min-height: 42px;
	min-width: 42px;
	padding: 8px 13px;
	text-decoration: none;
}

.xgz-pagination .page-numbers.current,
.xgz-pagination .page-numbers:hover {
	background: var(--xgz-red);
	border-color: var(--xgz-red);
	color: #fff;
}

.xgz-insights__empty {
	background: #f6f7f9;
	border-radius: 12px;
	padding: 48px 24px;
	text-align: center;
}

.xgz-insights__empty h2 {
	color: var(--xgz-navy);
	margin: 0 0 10px;
}

.xgz-insights__empty p {
	color: var(--xgz-muted);
	margin: 0;
}

@media (max-width: 1024px) {
	.xgz-insights__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.xgz-insights {
		padding: 60px 0;
	}

	.xgz-insights__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.xgz-insight-card__body {
		padding: 20px;
	}
}

/* Projects archive cards. */
.xgz-projects {
	--xgz-navy: #111d3d;
	--xgz-red: #d54658;
	--xgz-muted: #667085;
	--xgz-line: #e7eaf0;
	font-family: inherit;
	padding: 90px 0;
	width: 100%;
}

.xgz-projects__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.xgz-project-card {
	background: #fff;
	border: 1px solid var(--xgz-line);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(17, 29, 61, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.xgz-project-card:hover {
	box-shadow: 0 16px 38px rgba(17, 29, 61, 0.14);
	transform: translateY(-4px);
}

.xgz-project-card__media {
	aspect-ratio: 16 / 10;
	background: #dfe4ec;
	display: block;
	overflow: hidden;
}

.xgz-project-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms ease;
	width: 100%;
}

.xgz-project-card:hover .xgz-project-card__media img {
	transform: scale(1.035);
}

.xgz-project-card__placeholder {
	align-items: center;
	background: linear-gradient(135deg, #18284f, #354a7f);
	color: rgba(255, 255, 255, 0.88);
	display: flex;
	font-size: 13px;
	font-weight: 700;
	height: 100%;
	justify-content: center;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	width: 100%;
}

.xgz-project-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.xgz-project-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.xgz-project-card__meta span {
	background: rgba(213, 70, 88, 0.1);
	border-radius: 999px;
	color: var(--xgz-red);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	text-transform: uppercase;
}

.xgz-project-card__title {
	font-size: clamp(21px, 2vw, 26px);
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0 0 10px;
}

.xgz-project-card__title a {
	color: var(--xgz-navy);
	text-decoration: none;
}

.xgz-project-card__size {
	color: var(--xgz-red);
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 12px;
}

.xgz-project-card__excerpt {
	color: var(--xgz-muted);
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 20px;
}

.xgz-project-card__more {
	align-items: center;
	color: var(--xgz-red);
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	margin-top: auto;
	text-decoration: none;
}

.xgz-project-card__more:hover {
	color: var(--xgz-navy);
}

.xgz-projects__empty {
	background: #f6f7f9;
	border-radius: 12px;
	padding: 54px 24px;
	text-align: center;
}

.xgz-projects__empty h2 {
	color: var(--xgz-navy);
	margin: 0 0 10px;
}

.xgz-projects__empty p {
	color: var(--xgz-muted);
	margin: 0;
}

@media (max-width: 1024px) {
	.xgz-projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Single project page details and gallery. */
.xgz-project-facts {
	background: #f6f7f9;
	border-left: 4px solid #d54658;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 36px;
	padding: 24px;
}

.xgz-project-fact {
	border-right: 1px solid #dde2ea;
	padding: 0 22px;
}

.xgz-project-fact:first-child {
	padding-left: 0;
}

.xgz-project-fact:last-child {
	border-right: 0;
}

.xgz-project-fact dt {
	color: #667085;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.xgz-project-fact dd {
	color: #111d3d;
	font-size: 17px;
	font-weight: 750;
	margin: 0;
}

.xgz-project-description {
	color: #344054;
	font-size: 17px;
	line-height: 1.8;
}

.xgz-project-gallery {
	margin-top: 52px;
}

.xgz-project-gallery h2 {
	color: #111d3d;
	font-size: 30px;
	margin: 0 0 24px;
}

.xgz-project-gallery__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xgz-project-gallery__grid a {
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	display: block;
	overflow: hidden;
}

.xgz-project-gallery__grid img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
	width: 100%;
}

.xgz-project-gallery__grid a:hover img {
	transform: scale(1.03);
}

@media (max-width: 767px) {
	.xgz-projects {
		padding: 60px 0;
	}

	.xgz-projects__grid,
	.xgz-project-gallery__grid,
	.xgz-project-facts {
		grid-template-columns: 1fr;
	}

	.xgz-project-card__body {
		padding: 20px;
	}

	.xgz-project-fact {
		border-bottom: 1px solid #dde2ea;
		border-right: 0;
		padding: 16px 0;
	}

	.xgz-project-fact:first-child {
		padding-top: 0;
	}

	.xgz-project-fact:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}
}
