/* =========================================================
   HGE News — editorial styling
   Palette taken from the site itself: black header, gold logo, Join-Hub red.
   ========================================================= */
.hge-news {
	--ink: #161616;
	--text: #3b3b3b;
	--muted: #75716a;
	--rule: #e3ded4;
	--paper: #ffffff;
	--cream: #f6f2ea;
	--gold: #a8812f;
	--red: #b41e1a;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Open Sans", Arial, sans-serif;

	font-family: var(--sans);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.hge-news *, .hge-news *::before, .hge-news *::after { box-sizing: border-box; }
.hge-news h1, .hge-news h2, .hge-news h3, .hge-news p { margin: 0; padding: 0; }
.hge-news a { text-decoration: none; color: inherit; }
.hge-news img { display: block; max-width: 100%; }
.hge-page { background: var(--paper); padding-bottom: 80px; }

.hge-wrap { width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* ---------- shared ---------- */
.hge-news .hge-kicker {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 8px;
}
.hge-news .hge-kicker:hover { color: var(--red); }
.hge-news .hge-byline { font-size: 13px; color: var(--muted); }
.hge-news .hge-byline span { color: var(--ink); font-weight: 600; }
.hge-news .hge-byline i { font-style: normal; margin: 0 4px; }
.hge-noimg { display: block; width: 100%; height: 100%; min-height: 160px; background: #d9d3c7; }

/* ---------- 1. Hero ---------- */
.hge-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	background: var(--cream);
	border-bottom: 1px solid var(--rule);
	min-height: 380px;
}
.hge-hero__copy {
	padding: 40px 48px 48px max(24px, calc((100vw - 1240px) / 2 + 24px));
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.hge-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.hge-crumbs span { margin: 0 6px; color: #b9b2a5; }
.hge-news .hge-crumbs a:hover { color: var(--red); }
.hge-hero__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 12px !important;
}
.hge-news .hge-hero__title {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.1;
	letter-spacing: -.012em;
	color: var(--ink);
	max-width: 15ch;
}
.hge-hero__text { margin-top: 16px !important; font-size: 17px; max-width: 48ch; }
.hge-hero__meta {
	margin-top: 26px !important;
	padding-top: 14px;
	border-top: 1px solid var(--rule);
	font-size: 13px;
	color: var(--muted);
	max-width: 48ch;
}
.hge-hero__media { background: #cfc6b6 center / cover no-repeat; min-height: 100%; }

/* ---------- 2. Featured ---------- */
.hge-featured {
	margin-top: 44px;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 40px;
	align-items: center;
	padding-bottom: 44px;
	border-bottom: 1px solid var(--rule);
}
.hge-featured__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #e8e3da; border-radius: 3px; }
.hge-featured__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.hge-featured__media:hover img { opacity: .92; }
.hge-flag {
	position: absolute;
	left: 0;
	top: 20px;
	background: var(--red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 6px 12px 6px 14px;
}
.hge-news .hge-featured__title {
	font-family: var(--serif);
	font-size: clamp(25px, 2.5vw, 34px);
	line-height: 1.18;
	font-weight: 700;
	color: var(--ink);
}
.hge-news .hge-featured__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hge-featured__excerpt { margin-top: 14px !important; font-size: 16px; }
.hge-featured__foot { margin-top: 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hge-featured__time { font-size: 13px; color: var(--muted); }
.hge-featured__time::before { content: "·"; margin-right: 14px; }
.hge-news .hge-more {
	display: inline-block;
	margin-top: 22px;
	font-weight: 700;
	font-size: 14px;
	color: var(--red);
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
}
.hge-news .hge-more:hover { color: var(--ink); }

/* ---------- 3. Sections + search ---------- */
.hge-filter {
	margin-top: 36px;
	display: flex;
	align-items: center;
	gap: 24px;
	/* 2px rule drawn inside the padding so it lines up with the content edges */
	background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat;
	background-origin: content-box;
	background-clip: content-box;
}
.hge-sections { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; column-gap: 22px; }
.hge-news .hge-sections a {
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	padding: 12px 0 10px;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	white-space: nowrap;
}
.hge-news .hge-sections a:hover { color: var(--ink); }
.hge-news .hge-sections a.is-active { color: var(--ink); border-bottom-color: var(--red); }
.hge-search { flex: 0 0 240px; display: flex; align-items: center; border-bottom: 1px solid #bdb6a8; margin-bottom: 8px; }
.hge-news .hge-search input {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	padding: 8px 0 !important;
}
.hge-news .hge-search button { background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px 2px; }
.hge-news .hge-search button:hover { color: var(--red); }
.hge-search:focus-within { border-bottom-color: var(--ink); }

/* ---------- 4. Grid ---------- */
.hge-list { margin-top: 34px; }
.hge-list__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.hge-news .hge-list__head h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); }
.hge-list__count { font-size: 13px; color: var(--muted); }
.hge-news .hge-clear { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--red); border-bottom: 1px solid; }

.hge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; row-gap: 44px; }
.hge-card { display: flex; flex-direction: column; }
.hge-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #e8e3da; margin-bottom: 14px; border-radius: 3px; }
.hge-card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.hge-card__media:hover img { opacity: .9; }
.hge-news .hge-card__title {
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ink);
}
.hge-news .hge-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hge-card__excerpt {
	margin: 8px 0 12px !important;
	font-size: 14.5px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hge-card .hge-byline { margin-top: auto; font-size: 12.5px; }

/* pagination */
.hge-pagination { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule); }
.hge-news .hge-pagination ul.page-numbers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.hge-pagination li { list-style: none; margin: 0; padding: 0; }
.hge-news .hge-pagination li > .page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 7px 10px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	border-radius: 3px;
}
.hge-news .hge-pagination li > a.page-numbers:hover { background: var(--cream); }
.hge-news .hge-pagination li > .current { background: var(--ink); color: #fff; }
.hge-news .hge-pagination li > .dots { color: var(--muted); }

.hge-empty { padding: 48px 0; border-top: 1px solid var(--rule); }
.hge-news .hge-empty h3 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.hge-news .hge-empty a { color: var(--red); border-bottom: 1px solid; }

/* ---------- 5. CTA ---------- */
.hge-cta {
	margin-top: 72px;
	margin-bottom: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 34px 38px;
	background: var(--cream);
	border-top: 3px solid var(--gold);
}
.hge-news .hge-cta h2 { font-family: var(--serif); font-size: 26px; color: var(--ink); line-height: 1.25; }
.hge-cta p { margin-top: 8px !important; max-width: 60ch; font-size: 15px; }
.hge-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: none; }
.hge-news .hge-btn {
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 3px;
}
.hge-news .hge-btn:hover { background: var(--red); color: #fff; }
.hge-news .hge-link { font-size: 13px; font-weight: 600; color: var(--ink); }
.hge-news .hge-link:hover { color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.hge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.hge-hero { grid-template-columns: 1fr; min-height: 0; }
	.hge-hero__copy { padding: 28px 24px 32px; }
	.hge-hero__media { min-height: 220px; order: -1; }
	.hge-featured { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
	.hge-filter { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
	.hge-search { flex: none; }
	.hge-sections { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.hge-sections::-webkit-scrollbar { display: none; }
	.hge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
	.hge-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 600px) {
	.hge-wrap { padding-left: 16px; padding-right: 16px; }
	.hge-hero__copy { padding: 22px 16px 28px; }
	.hge-hero__media { min-height: 180px; }
	.hge-grid { grid-template-columns: 1fr; row-gap: 34px; }
	.hge-news .hge-card__title { font-size: 20px; }
}
