/* iRevamps Site Tweaks: the /news/ posts page as a 3, 2 or 1 column grid.
   body.blog is only on the posts page, so category, tag, author and date archives are untouched.
   The cards are the theme's own .blog-card2.three markup; only their layout and title size change. */

body.blog .news-insight-page .row > .col-lg-10 {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 60px;
}
@media (max-width: 991px) {
	body.blog .news-insight-page .row > .col-lg-10 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 50px;
	}
}
@media (max-width: 767px) {
	body.blog .news-insight-page .row > .col-lg-10 {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 44px;
	}
}

/* Pagination, the load-more controls and anything else that is not a card spans the full row. */
body.blog .news-insight-page .row > .col-lg-10 > :not(.blog-card2) {
	grid-column: 1 / -1;
}
body.blog .news-insight-page .row > .col-lg-10 > .pagination-area {
	margin-top: 10px !important;
}

/* Cards: equal height in a row, Read More on the bottom line, titles wrap as long as they need. */
body.blog .news-insight-page .blog-card2.three {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}
body.blog .news-insight-page .blog-card2.three .blog-img {
	flex: none;
}
/* Every featured image is a 2560x1210 title card; the box keeps that shape before the image loads. */
body.blog .news-insight-page .blog-card2.three .blog-img img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	max-height: none;
	aspect-ratio: 2560 / 1210;
	object-fit: cover;
}
body.blog .news-insight-page .blog-card2.three .blog-content-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 1 auto;
	max-width: none;
	padding: 25px 0 0;
}
body.blog .news-insight-page .blog-card2.three .blog-content-wrap .blog-meta {
	flex-wrap: wrap;
	row-gap: 6px;
	margin-bottom: 14px;
}
body.blog .news-insight-page .blog-card2.three .blog-content-wrap h3 {
	margin-bottom: 25px;
	line-height: 1.3;
}
/* Same font, weight and colour as before; the size follows the theme's own grid cards. */
body.blog .news-insight-page .blog-card2.three .blog-content-wrap h3 a {
	font-size: 26px;
	line-height: 1.3;
}
@media (max-width: 1399px) {
	body.blog .news-insight-page .blog-card2.three .blog-content-wrap h3 a {
		font-size: 24px;
	}
}
@media (max-width: 1199px) {
	body.blog .news-insight-page .blog-card2.three .blog-content-wrap h3 a {
		font-size: 22px;
	}
}
body.blog .news-insight-page .blog-card2.three .blog-content-wrap .primary-btn4 {
	margin-top: auto;
}

/* The theme removes outlines from buttons; keyboard users need to see where they are. */
body.blog .news-insight-page .blog-card2 a:focus-visible,
body.blog .news-insight-page .irv-lm a:focus-visible,
body.blog .news-insight-page .irv-lm__btn:focus-visible {
	outline: 2px solid var(--primary-color1, #e81b23);
	outline-offset: 4px;
	border-radius: 6px;
}
body.blog .news-insight-page .blog-card2 .primary-btn4:focus-visible,
body.blog .news-insight-page .irv-lm__btn:focus-visible {
	border-radius: 24px;
}

/* Load more. Shown only when the script runs; without it the theme's numbered pagination stays. */
body.blog .news-insight-page .irv-lm-on > .pagination-area {
	display: none;
}
body.blog .news-insight-page .irv-lm {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 10px;
	text-align: center;
}
body.blog .news-insight-page .irv-lm__status {
	margin: 0;
	color: var(--text-color);
	font-family: var(--font-dmsans);
	font-size: 15px;
	line-height: 1.5;
}
body.blog .news-insight-page .irv-lm__btn {
	padding: 0;
	background: none;
	cursor: pointer;
	font: inherit;
}
body.blog .news-insight-page .irv-lm__btn[aria-disabled="true"] {
	cursor: progress;
	opacity: 0.7;
}
body.blog .news-insight-page .irv-lm__msg {
	margin: 0;
	max-width: 520px;
	color: var(--title-color);
	font-family: var(--font-dmsans);
	font-size: 16px;
	line-height: 1.5;
}
body.blog .news-insight-page .irv-lm__msg:empty {
	display: none;
}
body.blog .news-insight-page .irv-lm__msg a,
body.blog .news-insight-page .irv-lm__newer a {
	color: var(--title-color);
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.blog .news-insight-page .irv-lm__newer {
	margin: 0 0 -20px;
	font-family: var(--font-dmsans);
	font-size: 16px;
}
body.blog .news-insight-page .irv-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* The theme fades cards in as they scroll into view; skip that for people who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
	body.blog .news-insight-page .wow {
		animation: none !important;
		visibility: visible !important;
	}
	body.blog .news-insight-page .blog-card2 .blog-img img,
	body.blog .news-insight-page .primary-btn4,
	body.blog .news-insight-page .primary-btn4 * {
		transition: none !important;
	}
}
