
.migw-section,
.migw-section * {
	box-sizing: border-box;
}

.migw-section {
	--migw-navy: #0e2e47;
	--migw-gold: #d3a044;
	--migw-text: #173149;
	--migw-muted: #667886;
	background: #f7f8fa;
	overflow: hidden;
}

.migw-container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 90px 24px;
}

.migw-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 35px;
	margin-bottom: 45px;
}

.migw-intro-copy {
	max-width: 760px;
}

.migw-eyebrow {
	margin-bottom: 13px;
	color: var(--migw-gold);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 1.7px;
	text-transform: uppercase;
}

.migw-heading {
	margin: 0 0 17px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 52px;
	line-height: 1.07;
	letter-spacing: -.8px;
	color: var(--migw-navy);
}

.migw-heading span {
	color: var(--migw-gold);
}

.migw-description {
	max-width: 690px;
	margin: 0;
	color: #627484;
	font-size: 15px;
	line-height: 1.75;
}

.migw-count {
	flex: 0 0 auto;
	min-width: 140px;
	padding-left: 24px;
	border-left: 1px solid #dbe2e7;
	color: #82909a;
	text-align: left;
}

.migw-count strong,
.migw-count span {
	display: block;
}

.migw-count strong {
	margin-bottom: 2px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 30px;
	line-height: 1;
	color: var(--migw-navy);
}

.migw-count span {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .7px;
}

.migw-grid {
	display: grid;
	grid-template-columns: repeat(var(--migw-cols, 3), minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 26px;
	align-items: stretch;
}

.migw-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e7eb;
	border-radius: 12px;
	box-shadow: 0 14px 38px rgba(14,46,71,.07);
	color: inherit;
	text-decoration: none;
	transition:
		transform .22s ease,
		box-shadow .22s ease,
		border-color .22s ease,
		background .22s ease;
}

.migw-card:hover {
	transform: translateY(-6px);
	border-color: var(--migw-gold);
	box-shadow: 0 22px 46px rgba(14,46,71,.13);
}

.migw-equal-height .migw-card {
	height: 100%;
}

.migw-card-image {
	position: relative;
	height: 220px;
	overflow: hidden;
	background: #e9edf0;
}

.migw-card-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(14,46,71,.08);
	pointer-events: none;
}

.migw-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform .45s ease;
}

.migw-card:hover .migw-card-image img {
	transform: scale(1.035);
}

.migw-card-image .migw-card-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
}

.migw-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 25px 25px 26px;
}

.migw-card.migw-no-image {
	min-height: 290px;
}

.migw-card.migw-no-image .migw-card-body {
	justify-content: flex-start;
	padding-top: 28px;
}

.migw-card-topline {
	min-height: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 13px;
}

.migw-card-number {
	color: var(--migw-gold);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 1.1px;
}

.migw-card-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 9px;
	border-radius: 999px;
	background: #f7efe0;
	color: #a97627;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.migw-card-title {
	margin: 0 0 12px;
	color: var(--migw-navy);
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -.25px;
}

.migw-card-description {
	margin: 0 0 20px;
	color: #667886;
	font-size: 13px;
	line-height: 1.65;
}

.migw-card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--migw-gold);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .2px;
	text-decoration: none;
	transition: color .2s ease, gap .2s ease;
}

.migw-card:hover .migw-card-link {
	gap: 11px;
	color: var(--migw-navy);
}

.migw-card[hidden] {
	display: none !important;
}

/* Pagination */
.migw-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 42px;
}

.migw-page-btn {
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 15px;
	border: 1px solid #dfe5ea;
	border-radius: 6px;
	background: #fff;
	color: var(--migw-navy);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.migw-page-btn:hover {
	background: #f7efe0;
	color: #a97627;
	transform: translateY(-1px);
}

.migw-page-btn.is-active {
	background: var(--migw-navy);
	color: #fff;
	border-color: var(--migw-navy);
}

.migw-page-btn[disabled] {
	opacity: .38;
	cursor: not-allowed;
	transform: none;
}

.migw-page-number {
	width: 42px;
	height: 42px;
	padding: 0;
}

.migw-page-arrow {
	min-width: 96px;
}

.migw-pagination[hidden] {
	display: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
	.migw-section-head {
		align-items: flex-start;
	}

	.migw-heading {
		font-size: 46px;
	}

	.migw-grid {
		grid-template-columns: repeat(var(--migw-cols-tablet, 2), minmax(0,1fr));
	}
}

/* Mobile */
@media (max-width: 767px) {
	.migw-container {
		padding: 64px 16px;
	}

	.migw-section-head {
		display: block;
		margin-bottom: 32px;
	}

	.migw-heading {
		font-size: 36px;
		line-height: 1.08;
	}

	.migw-description {
		font-size: 14px;
		line-height: 1.68;
	}

	.migw-count {
		margin-top: 22px;
		padding-left: 0;
		padding-top: 15px;
		border-left: 0;
		border-top: 1px solid #dbe2e7;
	}

	.migw-grid {
		grid-template-columns: repeat(var(--migw-cols-mobile, 1), minmax(0,1fr));
		column-gap: 12px;
		row-gap: 15px;
	}

	.migw-card-image {
		height: 200px;
	}

	.migw-card-body {
		padding: 20px 18px 22px;
	}

	.migw-card.migw-no-image {
		min-height: 245px;
	}

	.migw-card-title {
		font-size: 19px;
	}

	.migw-card-description {
		font-size: 12.5px;
		line-height: 1.6;
	}

	.migw-pagination {
		margin-top: 30px;
		gap: 6px;
	}

	.migw-page-btn {
		min-height: 39px;
		padding: 0 11px;
		font-size: 11px;
	}

	.migw-page-number {
		width: 39px;
		height: 39px;
	}

	.migw-page-arrow {
		min-width: 80px;
	}

	/* If user chooses two mobile columns, make cards compact enough to fit */
	.migw-section[style*="--migw-cols-mobile: 2"] .migw-card-body,
	.migw-section[data-cols-mobile="2"] .migw-card-body {
		padding: 16px 13px 18px;
	}

	.migw-section[data-cols-mobile="2"] .migw-card-title {
		font-size: 16px;
	}

	.migw-section[data-cols-mobile="2"] .migw-card-description {
		font-size: 11.5px;
	}

	.migw-section[data-cols-mobile="2"] .migw-card-image {
		height: 145px;
	}

	.migw-section[data-cols-mobile="2"] .migw-card.migw-no-image {
		min-height: 220px;
	}
}
