/* Latest News homepage section. */

.news-grid {
	margin-top: 50px;
}

/* Featured (large) post. */
.news-featured-media {
	display: block;
	overflow: hidden;
	border-radius: 18px;
}

.news-featured-media img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.news-featured-media:hover img {
	transform: scale(1.04);
}

.news-featured .news-meta {
	margin-top: 20px;
}

.news-featured .news-title {
	margin-top: 10px;
}

.news-title a {
	color: inherit;
	text-decoration: none;
}

.news-title a:hover {
	color: var(--color-primary, #0a2240);
}

/* Meta row: user icon + name, calendar icon + date. */
.news-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.news-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: rgba(32, 40, 45, 0.6);
}

.news-meta-item img {
	width: 14px;
	height: 14px;
	opacity: 0.6;
}

/* List of smaller posts alongside the featured one. */
.news-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.news-list-item {
	display: flex;
	align-items: stretch;
	gap: 20px;
	background: rgba(242, 242, 242, 1);
	border-radius: 16px;
	padding: 16px;
}

.news-list-media {
	display: block;
	flex: 0 0 130px;
	width: 130px;
	border-radius: 10px;
	overflow: hidden;
}

.news-list-media img {
	width: 100%;
	height: 100%;
	min-height: 110px;
	object-fit: cover;
	display: block;
}

.news-list-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	min-width: 0;
}

.news-list-content .news-title {
	margin: 0;
}

/* Reuse the theme's existing underline CTA link ("Read More"). */
.news-list-content .button--cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-primary, #0a2240);
	text-decoration: none;
	border-bottom: 1px solid var(--color-primary, #0a2240);
	padding-bottom: 2px;
	width: fit-content;
}

.news-list-content .button--cta svg {
	width: 12px;
	height: 12px;
}

.news-cta {
	margin-top: 50px;
}

/* Dark rounded "Discover More" button (variant of the shared .button styles). */
.button--dark {
	color: #fff;
	background-color: var(--color-primary, #0a2240);
	border: 1px solid var(--color-primary, #0a2240);
	border-radius: var(--style-border-radius-buttons-primary, 40px);
}

.button--dark:focus,
.button--dark:hover {
	color: #fff;
	background-color: #000;
	border-color: #000;
}

@media (max-width: 991px) {
	.news-featured-media img {
		height: 320px;
	}
}

@media (max-width: 575px) {
	.news-list-item {
		flex-direction: column;
	}

	.news-list-media {
		width: 100%;
		flex-basis: auto;
	}

	.news-list-media img {
		height: 160px;
	}
}
