/* ==========================================================================
   BKA 2026 v5 · PAGE GROUP: news
   Hírek archive, posts index, category/tag/date archives, search results:
   masthead → photographic lead story → calm card grid → pill pagination.
   ========================================================================== */

/* Masthead ---------------------------------------------------------------- */
.v5-news-masthead {
	padding-block: clamp(3.5rem, 2.25rem + 4.5vw, 7rem) clamp(2.25rem, 1.5rem + 2.5vw, 4rem);
	background: var(--v5-white);
}
.v5-news-masthead__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 1.5rem 4rem;
	align-items: end;
}
.v5-news-masthead__eyebrow {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin: 0 0 1rem;
	color: var(--v5-red);
	font-family: var(--v5-font-display);
	font-size: clamp(1rem, .88rem + .42vw, 1.3rem);
	font-weight: var(--v5-w-display);
	line-height: 1.2;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.v5-news-masthead h1 {
	margin: 0;
	color: var(--v5-red);
	font-size: var(--v5-fs-hero);
	line-height: 1.02;
	overflow-wrap: anywhere;
}
.v5-news--search .v5-news-masthead h1 { font-size: clamp(2.25rem, 1.35rem + 3vw, 4rem); }
.v5-news-masthead__lead {
	max-width: 34rem;
	margin: 0 0 .4rem;
	color: var(--v5-ink-soft);
	font-size: var(--v5-fs-lead);
	line-height: 1.6;
}

/* Search form (forked searchform.php) inside the masthead */
.v5-news-masthead__search .v4-search-form label {
	display: block;
	margin-bottom: .6rem;
	color: var(--v5-ink);
	font-size: var(--v5-fs-small);
	font-weight: var(--v5-w-bold);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.v5-news-masthead__search .v4-search-form > div {
	display: flex;
	gap: .5rem;
	padding: .4rem;
	border: 1.5px solid var(--v5-line-strong);
	border-radius: var(--v5-radius-pill);
	background: #fff;
}
.v5-news-masthead__search .v4-search-form > div:focus-within { border-color: var(--v5-red); box-shadow: var(--v5-field-focus); }
.v5-news-masthead__search input[type="search"] {
	flex: 1;
	width: 100%;
	min-width: 0;
	min-height: 2.9rem;
	padding: 0 1rem;
	border: 0;
	background: transparent;
	font-size: 1rem;
}
.v5-news-masthead__search input[type="search"]:focus { outline: none; box-shadow: none; }
.v5-news-masthead__search .v4-button {
	min-height: 2.9rem;
	padding: .6rem 1.4rem;
	border: 0;
	border-radius: var(--v5-radius-pill);
	background: var(--v5-red);
	color: #fff;
	font-size: .875rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}
.v5-news-masthead__search .v4-button:hover { background: var(--v5-red-600); }

/* Lead story -------------------------------------------------------------- */
.v5-news-lead-band { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); background: var(--v5-white); }
.v5-news-lead {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(1.75rem, 1rem + 3vw, 4.5rem);
	align-items: center;
}
.v5-news-lead__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--v5-radius-lg);
	background: var(--v5-mist);
	box-shadow: var(--v5-shadow-lift);
}
.v5-news-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--v5-dur-slow) var(--v5-ease); }
.v5-news-lead:hover .v5-news-lead__media img { transform: scale(1.03); }
.v5-news-lead__media .v5-placeholder { height: 100%; }
.v5-news-lead__title {
	margin: 0 0 1rem;
	font-size: clamp(1.875rem, 1.25rem + 1.9vw, 3rem);
	line-height: 1.08;
}
.v5-news-lead__title a { color: var(--v5-ink); text-decoration: none; }
.v5-news-lead__title a:hover { color: var(--v5-red); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .16em; }
.v5-news-lead__summary { margin: 0 0 1.75rem; color: var(--v5-ink-soft); font-size: var(--v5-fs-lead); line-height: 1.6; }

/* Card grid ------------------------------------------------------------------ */
.v5-news-list--after-lead { padding-top: var(--v5-section-y-tight); }
.v5-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, .9rem + 1.2vw, 2.25rem);
}
.v5-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--v5-radius);
	background: var(--v5-white);
	box-shadow: var(--v5-shadow-card);
	transition: transform var(--v5-dur) var(--v5-ease), box-shadow var(--v5-dur) var(--v5-ease);
}
.v5-news-card:hover { transform: translateY(-4px); box-shadow: var(--v5-shadow-lift); }
.v5-news-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--v5-mist); }
.v5-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--v5-dur-slow) var(--v5-ease); }
.v5-news-card:hover .v5-news-card__media img { transform: scale(1.045); }
.v5-news-card__media .v5-placeholder { height: 100%; min-height: 0; }
.v5-news-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem 1.5rem 1.5rem; }
.v5-news-card__date {
	margin: 0 0 .6rem;
	color: var(--v5-red-700);
	font-size: .75rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .12em;
	text-transform: uppercase;
}
.v5-news-card__title { margin: 0 0 .7rem; font-size: clamp(1.25rem, 1.12rem + .4vw, 1.5rem); line-height: 1.18; }
.v5-news-card__title a { color: var(--v5-ink); text-decoration: none; }
.v5-news-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.v5-news-card__title a:focus-visible { box-shadow: none; }
.v5-news-card__title a:focus-visible::after { box-shadow: var(--v5-focus); }
.v5-news-card:hover .v5-news-card__title a { color: var(--v5-red); }
.v5-news-card__summary {
	display: -webkit-box;
	margin: 0 0 1.25rem;
	overflow: hidden;
	color: var(--v5-ink-soft);
	font-size: .9375rem;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}
.v5-news-card__more {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: .45em;
	margin-top: auto;
	color: var(--v5-red);
	font-size: .875rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .04em;
	text-decoration: none;
}
.v5-news-card__more .v5-icon { transition: transform var(--v5-dur) var(--v5-ease); }
.v5-news-card:hover .v5-news-card__more .v5-icon { transform: translateX(3px); }

/* Pagination (paginate_links / the_posts_pagination) -------------------- */
.v5-news-pagination { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.v5-news-pagination :is(ul.page-numbers, .nav-links) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.v5-news-pagination li { margin: 0; }
.v5-news-pagination .page-numbers:not(ul) {
	display: inline-grid;
	place-items: center;
	min-width: 2.85rem;
	height: 2.85rem;
	padding: 0 1rem;
	border-radius: var(--v5-radius-pill);
	background: #fff;
	color: var(--v5-ink);
	font-weight: var(--v5-w-bold);
	text-decoration: none;
	box-shadow: var(--v5-shadow-card);
	transition: background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
.v5-news-pagination a.page-numbers:hover { background: var(--v5-red-100); color: var(--v5-red-700); }
.v5-news-pagination .page-numbers.current { background: var(--v5-red); color: #fff; box-shadow: var(--v5-shadow-red); }
.v5-news-pagination .page-numbers.dots { background: transparent; box-shadow: none; }
.v5-news-pagination .screen-reader-text { position: absolute; }

/* Empty state ---------------------------------------------------------------- */
.v5-news-empty {
	display: grid;
	justify-items: center;
	max-width: 40rem;
	margin-inline: auto;
	padding: clamp(2.5rem, 2rem + 2vw, 4rem);
	border-radius: var(--v5-radius-lg);
	background: #fff;
	box-shadow: var(--v5-shadow-card);
	text-align: center;
}
.v5-news-empty .v5-icon-disc { margin-bottom: 1.25rem; }
.v5-news-empty__title { margin: 0 0 .75rem; font-size: var(--v5-fs-h3); color: var(--v5-ink); }
.v5-news-empty .v5-button { margin-top: .5rem; }

@media (max-width: 68.75rem) {
	.v5-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 56rem) {
	.v5-news-masthead__inner,
	.v5-news-lead { grid-template-columns: minmax(0, 1fr); }
	.v5-news-masthead__lead { margin: 0; }
}

@media (max-width: 40rem) {
	.v5-news-grid { grid-template-columns: 1fr; }
	.v5-news-card--text .v5-news-card__media { aspect-ratio: 16 / 7; }
	.v5-news-card--text .v5-placeholder { font-size: 3rem; }
	.v5-news-card__body { padding: 1.15rem 1.25rem 1.3rem; }
	.v5-news-lead .v5-button { width: 100%; }
	.v5-news-masthead__search .v4-button { padding-inline: 1rem; }
}
