/**
 * Module: Related Articles Section
 * Loaded when `related_articles_section` layout is present on the page.
 */

.related-articles-section,
section.related-articles-section {
	background: var(--frost);
	border-top: 1px solid var(--line);
	padding: 64px 0 80px;
}

.related-articles-section .wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.related-articles-head {
	margin-bottom: 36px;
}

.related-articles-head.row {
	margin-left: 0;
	margin-right: 0;
}

.related-articles-head.row > .col-lg-5 {
	padding-left: 0;
}

.related-articles-head.row > .col-lg-7 {
	padding-right: 0;
}

.related-articles-head .jhg-section-title {
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
	color: var(--indigo);
	line-height: 1.15;
}

.related-articles-desc {
	font-family: var(--body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-soft);
}

/* Track / Grid of related cards */
.ra-track {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.ra-item {
	height: 100%;
}

/* News Card */
.news-card {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
	height: 100%;
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(0, 43, 92, .08);
}

.news-card-media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--indigo-tint);
}

.news-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.news-card:hover .news-card-media img {
	transform: scale(1.05);
}

.news-card-media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--indigo-tint);
}

.news-card-body {
	padding: 22px 20px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.news-card-date {
	display: flex;
	align-items: center;
	gap: 7px;
	font-family: var(--display);
	font-size: 13px;
	color: var(--mist);
	font-weight: 600;
	margin: 0 0 10px;
}

.news-card-date i {
	font-size: 13px;
	color: var(--crimson);
}

.news-card-title {
	font-family: var(--display);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 12px;
}

.news-card-title a {
	color: var(--indigo);
	text-decoration: none;
	transition: color .15s ease;
}

.news-card-title a:hover {
	color: var(--crimson);
}

.news-card-excerpt {
	font-family: var(--body);
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin-bottom: 22px;
	flex: 1;
}

.news-card-btn {
	background: var(--crimson) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: var(--radius);
	padding: 13px 20px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none;
	transition: background .15s ease, transform .15s ease;
	display: block;
	width: 100%;
}

.news-card-btn:hover {
	background: #c9151c !important;
	transform: translateY(-1px);
	color: #ffffff !important;
}

/* Responsive queries */
@media (max-width: 992px) {
	.ra-track {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
}

@media (max-width: 576px) {
	.related-articles-section,
	section.related-articles-section {
		padding: 44px 0 56px;
	}

	.ra-track {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
