/*
 * Homepage "Latest News" section.
 * Plain CSS loaded on the front page only, because the theme's gulp build cannot run.
 * Colours: red #D9121C (primary), navy #00488D (secondary), grey band #EFF2F7.
 */

.frs-home-news .heading-see-more .fa-newspaper {
	margin-right: 0.5rem;
}

/* Card */
.frs-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.5rem;
	border-radius: 0.25rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(19, 21, 24, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.frs-news-card:hover,
.frs-news-card:focus-within {
	box-shadow: 0 8px 24px rgba(19, 21, 24, 0.12);
	transform: translateY(-3px);
}

.frs-news-card:focus-within {
	outline: 3px solid #00488D;
	outline-offset: 3px;
}

.frs-news-card .stretched-link:focus {
	outline: none;
}

/* Date as a red calendar tile (white on #D9121C = 5.2:1) */
.frs-news-date {
	display: block;
	width: 4rem;
	padding: 0.4rem 0.25rem;
	border-radius: 0.25rem;
	background: #D9121C;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-align: center;
	text-transform: uppercase;
}

.frs-news-date strong {
	display: block;
	font-size: 1.5rem;
	line-height: 1.1;
	letter-spacing: 0;
}

/* Title + excerpt (scoped under the section: the theme zeroes h3/p margins with a stronger selector) */
.frs-home-news .frs-news-card .frs-news-title {
	margin: 1rem 0 0.5rem;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}

.frs-news-title a {
	color: #00488D;
	text-decoration: none;
}

.frs-news-card:hover .frs-news-title a {
	text-decoration: underline;
}

.frs-home-news .frs-news-card .frs-news-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 0 0 1.25rem;
	color: #4A4F57;
	font-size: 0.95rem;
	line-height: 1.55;
}

/* Footer: divider + button, pinned to the bottom so cards line up */
.frs-news-footer {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #E1E6EE;
}

.frs-news-btn {
	display: inline-block;
	padding: 0.4rem 1rem;
	border: 2px solid #00488D;
	border-radius: 0.25rem;
	color: #00488D;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.frs-news-card:hover .frs-news-btn,
.frs-news-card:focus-within .frs-news-btn {
	background: #00488D;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.frs-news-card,
	.frs-news-btn {
		transition: none;
	}

	.frs-news-card:hover,
	.frs-news-card:focus-within {
		transform: none;
	}
}
