/* =========================================================
   Latest News page template — scoped to .latest-news-page
   ========================================================= */

:root {
	--color-society-culture:            #674d44;
	--color-business-government:        #866a50;
	--color-environment-sustainability: #306547;
	--color-health-wellbeing:           #364d72;
	--color-corporate:                  #e51f30;
	--color-events:                     #e51f30;
	--color-media-the-arts:             #8e2831;
	--color-science-technology:         #713153;
	--color-primary-red:                #e51f30;
	--color-text:                       #000;
	--color-text-weak:                  #6a6a6a;
	--color-border:                     #e0e0e0;
	--color-image-bg:                   #ebebeb;
}

/* Page wrapper */
.latest-news-page {
	font-family: "GriffithSans", Arial, Helvetica, sans-serif;
	color: var(--color-text);
}

.latest-news-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 48px 24px 80px;
}

/* Heading */
.latest-news-heading {
	font-family: "GriffithSans", Arial, Helvetica, sans-serif;
	font-size: 3.6rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-text);
	margin: 0 0 32px;
}

/* ---- Grid ---- */
.ln-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

/* ---- Card ---- */
.ln-post {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--color-border);
	overflow: hidden;
}

/* Top section: date + image */
.ln-post-top {
	display: flex;
	flex-direction: column;
}

.ln-date {
	display: block;
	text-align: right;
	padding: 12px 14px 8px;
	color: var(--color-text-weak);
}

.ln-image {
	width: 100%;
	height: 220px;
	background-color: var(--color-image-bg);
	flex-shrink: 0;
}

/* Content section */
.ln-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	padding: 20px 24px 28px;
	gap: 16px;
}

.ln-category {
	margin-bottom: 6px;
}

.ln-title-link {
	display: block;
	text-decoration: none;
	color: inherit;
	margin-bottom: 10px;
}

.ln-title-link:hover .font-heading5 {
	text-decoration: underline;
}

.ln-post .font-heading5 {
	margin: 0;
	color: var(--color-text);
}

.ln-post p {
	margin: 0;
	line-height: 1.55;
	color: var(--color-text);
}

/* Read more link */
.ln-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-primary-red);
	text-decoration: none;
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1;
	margin-top: auto;
}

.ln-read-more:hover {
	text-decoration: underline;
}

/* ---- Font utilities (fallback if not in theme) ---- */
.font-small {
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 140%;
	font-style: normal;
}

.font-heading5 {
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 127%;
	font-style: normal;
}

/* ---- Category colours ---- */
.text-society-culture            { color: var(--color-society-culture); }
.text-business-government        { color: var(--color-business-government); }
.text-environment-sustainability { color: var(--color-environment-sustainability); }
.text-health-wellbeing           { color: var(--color-health-wellbeing); }
.text-corporate                  { color: var(--color-corporate); }
.text-events                     { color: var(--color-events); }
.text-media-the-arts             { color: var(--color-media-the-arts); }
.text-science-technology         { color: var(--color-science-technology); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
	.ln-posts {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.ln-posts {
		grid-template-columns: 1fr;
	}

	.latest-news-heading {
		font-size: 2.8rem;
	}
}
