/* ==========================================================================
   Becsvölgye – fejléc, kezdőoldal, lábléc
   ========================================================================== */

:root {
	--site-gutter: clamp(32px, 5vw, 88px);
	--brand-mark-size: 72px;
	--brand-mark-gap: 16px;
	--readable-scale: 1;
	--readable-text-size: calc(1rem * var(--readable-scale));
	--menu-text-size: calc(14px * var(--readable-scale));
}

html {
	font-size: 15px;
}

html.font-size-lg,
body.font-size-lg {
	--readable-scale: 1.125;
}

html.font-size-xl,
body.font-size-xl {
	--readable-scale: 1.235;
}

body {
	font-size: 1rem;
}

#hd .entry {
	font-size: var(--readable-text-size);
}

/* Logóval egy vonalban: fejléc, hero, kezdőoldal, lábléc */
#hd .wrapper > .padding {
	margin-left: var(--site-gutter);
	margin-right: var(--site-gutter);
}

#statusbar { display: none; }

/* Belső oldal fejrész (#tophead) – hero-szerű fehér overlay */
#tophead {
	background-color: #fff;
	isolation: isolate;
}
#tophead::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: max(
		520px,
		calc(var(--brand-mark-size) + var(--brand-mark-gap) + 420px + 48px)
	);
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.82) 0%,
		rgba(255, 255, 255, 0.45) 72%,
		rgba(255, 255, 255, 0.12) 88%,
		transparent 100%
	);
}
#tophead img {
	opacity: 1;
	filter: none;
}
#tophead h1 {
	margin-top: 50px;
	color: var(--color-accent);
	text-align: left;
}
#tophead .breadcrumb {
	text-align: left;
}
#tophead .breadcrumb li {
	color: rgba(0, 77, 36, 0.55);
}
#tophead .breadcrumb a {
	color: var(--color-accent);
}
#tophead .breadcrumb a:hover {
	color: var(--color-primary);
}
#tophead .breadcrumb li::after {
	color: rgba(0, 77, 36, 0.3);
}
.tophead-error .padding {
	text-align: left;
}
.tophead-error .error-number,
.tophead-error h1 {
	color: var(--color-accent);
}
.tophead-search .search-meta {
	text-align: left;
	color: var(--color-primary);
}
#tophead .editpostlink .button {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
	backdrop-filter: none;
}
#tophead .editpostlink .button:hover {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}

.site-header {
	position: relative;
	z-index: 300;
	background-color: #fff;
	box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
}

#hd > header.site-header {
	border-bottom: none;
}

.header-top {
	border-bottom: none;
}

.header-top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.site-brand {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: var(--color-text);
	max-width: none;
	flex-shrink: 0;
}
/* A globális #logo szabályok (style.css) felülírása */
#logo.site-brand {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	line-height: normal;
	padding: 0;
	max-width: none;
}
.site-brand img,
#logo.site-brand img {
	height: var(--brand-mark-size);
	width: auto;
	flex-shrink: 0;
	display: block;
}
.site-brand-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-width: 0;
}
.site-brand-name {
	display: block;
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1.15;
}
.site-brand-tagline {
	display: block;
	margin: 0;
	font-family: var(--font-sans);
	font-size: 13px;
	color: var(--color-muted);
	font-weight: 500;
	line-height: 1.35;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
}

.header-search-form {
	display: flex;
	align-items: stretch;
	width: min(320px, 36vw);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: #fff;
}
.header-search-form .search-field {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	padding: 10px 14px;
	font-size: 14px;
	background: transparent;
}
.header-search-form .search-field:focus {
	outline: none;
	box-shadow: none;
}
.header-search-form .search-submit {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: var(--color-muted);
	padding: 0 14px;
	cursor: pointer;
	font-size: 15px;
}
.header-search-form .search-submit:hover {
	color: var(--color-primary);
}

.header-a11y {
	display: flex;
	align-items: center;
	gap: 4px;
}
.a11y-btn {
	border: 1px solid var(--color-border);
	background: #fff;
	color: var(--color-text);
	min-width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 0 6px;
	transition: all var(--transition-fast);
}
.a11y-btn:hover,
.a11y-btn--active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}
.a11y-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: 4px;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--color-primary);
	font-size: 18px;
	cursor: pointer;
	transition: all var(--transition-fast);
}
.a11y-icon:hover,
.a11y-icon:focus-visible {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
	outline: none;
}
.a11y-icon--active,
.a11y-icon[aria-pressed="true"] {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}

.header-nav {
	background-color: var(--color-primary);
}
.header-nav .padding {
	padding-top: 0;
	padding-bottom: 0;
}
.header-nav #topmenu {
	position: static;
	transform: none;
}
.header-nav .nav li a {
	color: #fff;
	padding: 14px 18px;
	font-size: var(--menu-text-size);
	font-weight: 600;
	font-family: var(--font-sans);
}
.header-nav .nav li a:hover,
.header-nav .current-menu-item > a {
	color: #fff;
	opacity: 0.9;
}
.header-nav .current-menu-item > a::before {
	background-color: #fff;
	bottom: 6px;
}
.header-nav .nav ul {
	background-color: var(--color-accent);
	box-shadow: var(--shadow-deep);
}
.header-nav .nav ul a {
	color: #fff;
	font-size: var(--menu-text-size);
}
.header-nav .nav ul li {
	border-top-color: rgba(255, 255, 255, 0.12);
}

.site-header #hamburger { display: none; }

/* Hero */
.home-hero-wrap {
	position: relative;
	height: clamp(520px, 44vh, 580px);
	overflow: hidden;
	background-color: var(--color-primary-light);
	isolation: isolate;
}

@media (min-width: 1200px) {
	.home-hero-wrap {
		height: 640px;
	}
}
.home-hero-image {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.home-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.home-hero-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: max(
		520px,
		calc(var(--brand-mark-size) + var(--brand-mark-gap) + 420px + 48px)
	);
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.82) 0%,
		rgba(255, 255, 255, 0.45) 72%,
		rgba(255, 255, 255, 0.12) 88%,
		transparent 100%
	);
}
.home-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	pointer-events: none;
}
.home-hero-overlay .wrapper {
	width: 100%;
}
.home-hero-content {
	max-width: 420px;
	margin-left: calc(var(--brand-mark-size) + var(--brand-mark-gap));
	pointer-events: auto;
	text-align: left;
}
.home-hero-title {
	margin: 0 0 16px;
	font-size: calc(clamp(2rem, 4vw, 2.75rem) * var(--readable-scale));
	font-weight: 700;
	color: var(--color-accent);
	line-height: 1.15;
	text-shadow: none;
}
.home-hero-lead {
	margin: 0 0 28px;
	font-size: var(--readable-text-size);
	line-height: 1.65;
	color: var(--color-accent);
	max-width: 420px;
	text-shadow: none;
}
.home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-start;
}
.home-hero-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: calc(14px * var(--readable-scale));
}
.home-hero-actions .button.outline {
	background-color: #fff;
	border: none;
	color: var(--color-accent) !important;
	box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
}
.home-hero-actions .button.outline:hover {
	background-color: #fff;
	border: none;
	color: var(--color-primary) !important;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
	transform: translateY(-1px);
}

/* Gyorslinkek – a hero fölött (nem alatta) */
.home-quicklinks {
	position: relative;
	z-index: 10;
	margin-top: -40px;
	padding-bottom: 48px;
}
.quicklinks-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.quicklink-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 18px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	text-decoration: none;
	color: var(--color-text);
	box-shadow: var(--shadow-soft);
	transition: transform var(--transition-mid), border-color var(--transition-mid), box-shadow var(--transition-mid);
	position: relative;
	z-index: 1;
}
.quicklink-card:hover {
	transform: translateY(-2px);
	border-color: var(--color-primary);
	box-shadow: var(--shadow-deep);
}
.quicklink-icon {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--color-primary);
}
.quicklink-body { flex: 1 1 auto; min-width: 0; }
.quicklink-title {
	display: block;
	font-family: var(--font-heading);
	font-size: calc(15px * var(--readable-scale));
	font-weight: 700;
	margin-bottom: 4px;
}
.quicklink-desc {
	display: block;
	font-size: calc(12px * var(--readable-scale));
	color: var(--color-muted);
	line-height: 1.4;
}
.quicklink-arrow {
	flex: 0 0 auto;
	color: var(--color-primary);
	font-size: 14px;
	opacity: 0.7;
}

/* Fő tartalom */
.home-main { padding: 0 0 72px; }
.home-hero-wrap + .home-main {
	padding-top: 32px;
}
.home-main-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 36px;
	align-items: start;
}
.home-sidebar {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}
.sidebar-menu-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--shadow-soft);
}
.sidebar-menu-heading {
	margin: 0;
	padding: 14px 18px;
	background: var(--color-primary);
	color: #fff;
	font-size: calc(14px * var(--readable-scale));
	font-weight: 700;
}
.sidebar-menu,
.sidebar-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sidebar-menu li { border-bottom: 1px solid var(--color-border); }
.sidebar-menu li:last-child { border-bottom: 0; }
.sidebar-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	text-decoration: none;
	color: var(--color-text);
	font-size: var(--menu-text-size);
	font-weight: 600;
	font-family: var(--font-sans);
	transition: background-color var(--transition-fast), color var(--transition-fast);
}
.sidebar-menu a::after {
	content: "\f054";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 11px;
	color: var(--color-primary);
	opacity: 0.6;
}
.sidebar-menu a:hover,
.sidebar-menu .current-menu-item > a {
	background: var(--color-primary-light);
	color: var(--color-primary);
}
.sidebar-menu .current-menu-item > a::before { display: none; }

.home-block-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.home-block-header h2 {
	margin: 0;
	font-size: calc(clamp(1.5rem, 2.5vw, 1.875rem) * var(--readable-scale));
	color: var(--color-primary);
}
.home-block-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: calc(13px * var(--readable-scale));
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
	font-family: var(--font-sans);
}
.home-block-more:hover { text-decoration: underline; }

.home-news-block { margin-bottom: 48px; }
#hd .news-card--home .news-card-date {
	display: inline-block;
	padding: 4px 10px;
	background: var(--color-primary-light);
	color: var(--color-primary);
	border-radius: var(--radius-sm);
	font-size: calc(11px * var(--readable-scale));
	letter-spacing: 0.02em;
	text-transform: none;
}
#hd .news-card--home .news-card-title {
	font-size: calc(17px * var(--readable-scale));
}
#hd .news-card--home .news-card-excerpt {
	font-size: calc(14px * var(--readable-scale));
}
#hd .news-card--home .news-card-link {
	font-size: calc(13px * var(--readable-scale));
}

.home-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.feature-card {
	float: none;
	width: auto;
	margin: 0;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.feature-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-deep);
}
.feature-card-thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: visible;
	background: var(--color-surface);
}
.feature-card-thumb img,
.feature-card-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.feature-card-placeholder {
	background: linear-gradient(135deg, var(--color-primary-light), #c8e6d4);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.feature-card-icon {
	position: absolute;
	left: 16px;
	bottom: -20px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	box-shadow: var(--shadow-soft);
	z-index: 2;
}
.feature-card-body { padding: 32px 22px 24px; }
.feature-card-title {
	margin: 0 0 10px;
	font-size: calc(18px * var(--readable-scale));
}
.feature-card-title a { color: var(--color-text); text-decoration: none; }
.feature-card-title a:hover { color: var(--color-primary); }
.feature-card-desc {
	margin: 0 0 18px;
	font-size: calc(13px * var(--readable-scale));
	color: var(--color-muted);
	line-height: 1.55;
}
.feature-card-btn {
	font-size: calc(13px * var(--readable-scale));
	padding: 10px 18px;
}

/* Belső oldal – oldalsáv + tartalom (teljes szélesség, olvasható sorhossz) */
.page-with-sidebar {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	width: 100%;
	padding-top: 40px;
	padding-bottom: 64px;
}
.page-sidebar {
	float: none;
	width: 300px;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}
.page-sidebar .sidebar-menu-card {
	margin-top: 0;
	margin-bottom: 0;
}
.page-main {
	float: none;
	width: auto;
	margin: 0;
	min-width: 0;
}
.page-main .entry :where(p, ul, ol, blockquote, h1, h2, h3, h4, h5, h6, pre) {
	max-width: 75ch;
}
.page-main .entry :where(table, .wp-block-table, figure.wp-block-table) {
	max-width: 100%;
	width: 100%;
}
.page-main .entry table {
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.page-main .entry .wp-block-table > table {
	display: table;
	overflow-x: visible;
}

/* Tartalom galériák – klasszikus [gallery] és Gutenberg blokk */
#hd .entry .gallery,
.page-main .entry .gallery {
	display: grid;
	gap: 12px;
	margin: 1.5em 0;
	max-width: 100%;
	width: 100%;
}

#hd .entry .gallery-columns-1,
.page-main .entry .gallery-columns-1 { grid-template-columns: repeat(1, 1fr); }
#hd .entry .gallery-columns-2,
.page-main .entry .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
#hd .entry .gallery-columns-3,
.page-main .entry .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
#hd .entry .gallery-columns-4,
.page-main .entry .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
#hd .entry .gallery-columns-5,
.page-main .entry .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
#hd .entry .gallery-columns-6,
.page-main .entry .gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
#hd .entry .gallery-columns-7,
.page-main .entry .gallery-columns-7 { grid-template-columns: repeat(3, 1fr); }
#hd .entry .gallery-columns-8,
.page-main .entry .gallery-columns-8 { grid-template-columns: repeat(4, 1fr); }
#hd .entry .gallery-columns-9,
.page-main .entry .gallery-columns-9 { grid-template-columns: repeat(3, 1fr); }

#hd .entry .gallery-item,
.page-main .entry .gallery-item {
	margin: 0;
	float: none;
}

#hd .entry .gallery-icon,
.page-main .entry .gallery-icon {
	margin: 0;
	line-height: 0;
}

#hd .entry .gallery-item img,
.page-main .entry .gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-sm);
}

#hd .entry .gallery-caption,
.page-main .entry .gallery-caption {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

#hd .entry .wp-block-gallery,
.page-main .entry .wp-block-gallery {
	display: grid !important;
	gap: 12px;
	margin: 1.5em 0;
	max-width: 100% !important;
	width: 100%;
	padding: 0;
}

#hd .entry .wp-block-gallery.columns-1,
.page-main .entry .wp-block-gallery.columns-1 { grid-template-columns: repeat(1, 1fr); }
#hd .entry .wp-block-gallery.columns-2,
.page-main .entry .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
#hd .entry .wp-block-gallery.columns-3,
.page-main .entry .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
#hd .entry .wp-block-gallery.columns-4,
.page-main .entry .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
#hd .entry .wp-block-gallery.columns-5,
.page-main .entry .wp-block-gallery.columns-5 { grid-template-columns: repeat(5, 1fr); }
#hd .entry .wp-block-gallery.columns-6,
.page-main .entry .wp-block-gallery.columns-6 { grid-template-columns: repeat(6, 1fr); }
#hd .entry .wp-block-gallery.columns-7,
.page-main .entry .wp-block-gallery.columns-7 { grid-template-columns: repeat(3, 1fr); }
#hd .entry .wp-block-gallery.columns-8,
.page-main .entry .wp-block-gallery.columns-8 { grid-template-columns: repeat(4, 1fr); }
#hd .entry .wp-block-gallery.columns-9,
.page-main .entry .wp-block-gallery.columns-9 { grid-template-columns: repeat(3, 1fr); }

#hd .entry .wp-block-gallery:not([class*="columns-"]),
.page-main .entry .wp-block-gallery:not([class*="columns-"]) {
	grid-template-columns: repeat(3, 1fr);
}

#hd .entry .wp-block-gallery .blocks-gallery-grid,
.page-main .entry .wp-block-gallery .blocks-gallery-grid {
	display: contents;
}

#hd .entry .wp-block-gallery figure.wp-block-image,
#hd .entry .wp-block-gallery .blocks-gallery-item,
.page-main .entry .wp-block-gallery figure.wp-block-image,
.page-main .entry .wp-block-gallery .blocks-gallery-item {
	margin: 0;
	width: auto !important;
}

#hd .entry .wp-block-gallery figure.wp-block-image img,
#hd .entry .wp-block-gallery .blocks-gallery-item img,
.page-main .entry .wp-block-gallery figure.wp-block-image img,
.page-main .entry .wp-block-gallery .blocks-gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
	#hd .entry .gallery.gallery-columns-3,
	#hd .entry .gallery.gallery-columns-4,
	#hd .entry .gallery.gallery-columns-5,
	#hd .entry .gallery.gallery-columns-6,
	#hd .entry .gallery.gallery-columns-7,
	#hd .entry .gallery.gallery-columns-8,
	#hd .entry .gallery.gallery-columns-9,
	.page-main .entry .gallery.gallery-columns-3,
	.page-main .entry .gallery.gallery-columns-4,
	.page-main .entry .gallery.gallery-columns-5,
	.page-main .entry .gallery.gallery-columns-6,
	.page-main .entry .gallery.gallery-columns-7,
	.page-main .entry .gallery.gallery-columns-8,
	.page-main .entry .gallery.gallery-columns-9,
	#hd .entry .wp-block-gallery.columns-3,
	#hd .entry .wp-block-gallery.columns-4,
	#hd .entry .wp-block-gallery.columns-5,
	#hd .entry .wp-block-gallery.columns-6,
	.page-main .entry .wp-block-gallery.columns-3,
	.page-main .entry .wp-block-gallery.columns-4,
	.page-main .entry .wp-block-gallery.columns-5,
	.page-main .entry .wp-block-gallery.columns-6 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	#hd .entry .gallery.gallery-columns-2,
	#hd .entry .gallery.gallery-columns-3,
	#hd .entry .gallery.gallery-columns-4,
	.page-main .entry .gallery.gallery-columns-2,
	.page-main .entry .gallery.gallery-columns-3,
	.page-main .entry .gallery.gallery-columns-4,
	#hd .entry .wp-block-gallery.columns-2,
	#hd .entry .wp-block-gallery.columns-3,
	#hd .entry .wp-block-gallery.columns-4,
	.page-main .entry .wp-block-gallery.columns-2,
	.page-main .entry .wp-block-gallery.columns-3,
	.page-main .entry .wp-block-gallery.columns-4 {
		grid-template-columns: 1fr;
	}
}

.page-main .post {
	margin: 0 0 48px;
}
.news-archive-list {
	display: grid;
	gap: 24px;
}
.news-card.news-card--archive {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
}
.news-card.news-card--archive:not(:has(.news-card-thumb)) {
	grid-template-columns: 1fr;
}
.news-card--archive .news-card-thumb {
	aspect-ratio: auto;
	min-height: 160px;
	height: 100%;
}
.news-card--archive .news-card-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(135deg, var(--color-primary-light), #c8e6d4);
}
.news-card--archive .news-card-body {
	min-width: 0;
	width: 100%;
}
@media (max-width: 720px) {
	.news-card.news-card--archive {
		grid-template-columns: 1fr;
	}
}

/* Hírek archív – lapozó */
.news-archive-pagination {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border);
}
.news-archive-pagination .pagination {
	margin: 0;
}
.news-archive-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.news-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: calc(14px * var(--readable-scale));
	font-weight: 600;
	font-family: var(--font-sans);
	color: var(--color-text);
	text-decoration: none;
	background: #fff;
	box-shadow: var(--shadow-soft);
	transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}
.news-archive-pagination .page-numbers:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
	background: var(--color-primary-light);
	box-shadow: none;
}
.news-archive-pagination .page-numbers.current {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
	box-shadow: none;
}
.news-archive-pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 6px;
	border: none;
	background: transparent;
	box-shadow: none;
	color: var(--color-muted);
}
.news-archive-pagination .prev.page-numbers,
.news-archive-pagination .next.page-numbers {
	padding: 0 18px;
}

.header-nav .nav li.menu-home > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	position: relative;
}
.header-nav .nav li.menu-home > a::before {
	content: "\f015";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: static;
	left: auto;
	right: auto;
	bottom: auto;
	width: auto;
	height: auto;
	background: none;
	margin: 0;
}
.header-nav .nav li.menu-home.current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 6px;
	height: 2px;
	background-color: #fff;
}
.header-nav .nav li.menu-home.current-menu-item > a::before {
	background-color: transparent;
}

/* Lábléc */
.site-footer {
	clear: both;
	padding: 0;
	text-align: left;
	z-index: 10;
	background: transparent;
	color: inherit;
}
.footer-main {
	background: var(--color-surface);
	padding: 56px 0 48px;
	border-top: 1px solid var(--color-border);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
	gap: 36px;
}
.footer-grid--no-social {
	grid-template-columns: 1.4fr 1fr 1fr;
}
.footer-col {
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-muted);
}
.footer-brand {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	text-decoration: none;
	color: inherit;
	max-width: none;
}
.footer-brand img {
	width: auto;
	height: var(--brand-mark-size);
	margin-bottom: 0;
	filter: none;
	opacity: 1;
	flex-shrink: 0;
}
.footer-about-text { margin: 0; }
.footer-heading {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--color-primary);
}
.footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-contact-list li {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
	align-items: flex-start;
}
.footer-contact-list i {
	color: var(--color-primary);
	margin-top: 3px;
	width: 16px;
	flex-shrink: 0;
}
.footer-contact-list a {
	color: var(--color-text);
	text-decoration: none;
}
.footer-contact-list a:hover { color: var(--color-primary); }

.footer-links #footermenu .nav { font-size: 0; }
.footer-links #footermenu .nav li {
	display: block;
	text-align: left;
	margin-bottom: 8px;
}
.footer-links #footermenu .nav li a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text) !important;
	font-family: var(--font-sans);
}
.footer-links #footermenu .nav li a::before {
	content: "\f054";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 10px;
	color: var(--color-primary);
}
.footer-links #footermenu .current-menu-item > a::before { display: none; }
.footer-links #footermenu .current-menu-item > a::after {
	content: "";
	position: static;
	height: 0;
	background: none;
}

.footer-social-icons { justify-content: flex-start; margin: 0; }
.footer-social-icons .social-icon {
	background: var(--color-primary-light);
	color: var(--color-primary) !important;
}
.footer-social-icons .social-icon:hover {
	background: var(--color-primary);
	color: #fff !important;
}

.footer-bottom {
	background: var(--color-primary);
	color: rgba(255, 255, 255, 0.85);
	padding: 16px 0;
	font-size: 13px;
}
.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* Kapcsolat oldal – űrlap + térkép */
.contact-page .post {
	margin: 0;
	padding-top: 40px;
	padding-bottom: 64px;
}
.contact-form-map {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
	gap: 36px;
	align-items: start;
	margin-top: 32px;
}
.contact-map-heading {
	margin: 0 0 16px;
	font-size: calc(18px * var(--readable-scale));
	color: var(--color-primary);
	font-family: var(--font-heading);
}
.contact-map {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	background: var(--color-surface);
	min-height: 420px;
}
.contact-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
}

@media (max-width: 1200px) {
	.quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
	.home-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1350px) {
	.site-header #hamburger {
		display: inline-block;
		position: relative;
		right: auto;
		top: auto;
		transform: none;
		flex-shrink: 0;
	}
	.header-top-inner { flex-wrap: wrap; }
	.header-tools {
		order: 3;
		width: 100%;
		justify-content: space-between;
		margin-left: 0;
	}
	.header-search-form {
		width: 100%;
		max-width: none;
		flex: 1 1 auto;
	}
	.header-nav { position: relative; }
	.header-nav #topmenu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		background: var(--color-primary);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: all var(--transition-mid);
		z-index: 40;
	}
	.header-nav .menuon {
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateY(0) !important;
	}
	.header-nav .nav li {
		display: block;
		width: 100%;
		text-align: left;
	}
	.header-nav .nav li a {
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}
	.header-nav .nav ul {
		position: static;
		box-shadow: none;
		padding-left: 16px;
	}
}

@media (max-width: 1000px) {
	.home-hero-content {
		margin-left: 0;
	}
	.home-hero-wrap::after,
	#tophead::after {
		width: max(520px, calc(420px + 48px));
		background: linear-gradient(
			to right,
			rgba(255, 255, 255, 0.88) 0%,
			rgba(255, 255, 255, 0.72) 78%,
			rgba(255, 255, 255, 0.35) 92%,
			transparent 100%
		);
	}
}

@media (max-width: 900px) {
	.home-main-grid,
	.page-with-sidebar { grid-template-columns: 1fr; }
	.home-sidebar,
	.page-sidebar { order: -1; }
	.home-news-grid { grid-template-columns: 1fr; }
	.contact-form-map { grid-template-columns: 1fr; }
	.contact-map-col { order: -1; }
	.contact-map,
	.contact-map iframe { min-height: 320px; }
}

@media (max-width: 640px) {
	.quicklinks-grid,
	.home-features-grid,
	.footer-grid { grid-template-columns: 1fr; }
	.site-brand img,
	#logo.site-brand img { height: 56px; }
	:root { --brand-mark-size: 56px; }
	.home-hero-actions .button {
		width: 100%;
		justify-content: center;
	}
	.home-quicklinks { margin-top: 0; padding-top: 24px; }
	.footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 500px) {
	.header-tools {
		flex-wrap: nowrap;
		gap: 10px;
		min-width: 0;
	}
	.header-search {
		flex: 1 1 auto;
		min-width: 0;
	}
	.header-search-form {
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
	}
	.header-search-form .search-field {
		padding: 8px 10px;
		font-size: 13px;
	}
	.header-search-form .search-submit {
		padding: 0 10px;
	}
	.header-a11y {
		flex-shrink: 0;
		gap: 3px;
		margin-left: 0;
	}
	.a11y-btn {
		min-width: 28px;
		height: 28px;
		padding: 0 4px;
		font-size: 11px;
	}
	.a11y-icon {
		width: 28px;
		height: 28px;
		margin-left: 2px;
		font-size: 16px;
	}
}

@media (max-width: 360px) {
	.header-top-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 40px;
		grid-template-rows: auto auto;
		column-gap: 10px;
		row-gap: 12px;
		align-items: center;
	}
	#logo.site-brand {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
		gap: 10px;
	}
	.site-header #hamburger {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: center;
		position: relative;
		right: auto;
		top: auto;
		transform: none;
	}
	.header-tools {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		margin-left: 0;
		order: unset;
	}
	.site-brand img,
	#logo.site-brand img {
		height: 48px;
	}
	.site-brand-name {
		font-size: 1.2rem;
	}
	.site-brand-tagline {
		font-size: 11px;
		line-height: 1.25;
	}
}

/* Sötét mód */
html.dark-mode {
	color-scheme: dark;
	--color-primary: #5cb88a;
	--color-accent: #9ad4b5;
	--color-primary-light: #1e3328;
	--color-text: #ececec;
	--color-muted: #a8a8a8;
	--color-bg: #121212;
	--color-surface: #1c1c1c;
	--color-border: #404040;
}

html.dark-mode body {
	background-color: var(--color-bg);
	color: var(--color-text);
}

html.dark-mode .site-header,
html.dark-mode #tophead {
	background-color: var(--color-surface) !important;
}

html.dark-mode .a11y-btn,
html.dark-mode .a11y-icon,
html.dark-mode .header-search-form,
html.dark-mode .quicklink-card,
html.dark-mode .feature-card,
html.dark-mode .news-card,
html.dark-mode .sidebar-menu,
html.dark-mode .contact-page .field,
html.dark-mode .contact-page textarea,
html.dark-mode .home-hero-actions .button.outline {
	background: var(--color-surface) !important;
	border-color: var(--color-border) !important;
	color: var(--color-text) !important;
}

html.dark-mode .header-search-form .search-field {
	background: transparent;
	color: var(--color-text);
}

html.dark-mode .header-nav {
	background-color: #0a4d28 !important;
}

html.dark-mode .footer-main {
	background: var(--color-surface) !important;
	border-top-color: var(--color-border);
}

html.dark-mode .footer-bottom {
	background: #000 !important;
}

html.dark-mode .home-hero-wrap::after,
html.dark-mode #tophead::after {
	background: linear-gradient(
		to right,
		rgba(28, 28, 28, 0.92) 0%,
		rgba(28, 28, 28, 0.55) 72%,
		rgba(28, 28, 28, 0.15) 88%,
		transparent 100%
	) !important;
}

html.dark-mode .home-hero-title,
html.dark-mode .home-hero-lead {
	color: #fff !important;
}

html.dark-mode #tophead h1,
html.dark-mode .site-brand-name,
html.dark-mode .feature-card-title a,
html.dark-mode .quicklink-title {
	color: var(--color-accent) !important;
}

html.dark-mode .site-brand-tagline,
html.dark-mode .quicklink-desc,
html.dark-mode .feature-card-desc,
html.dark-mode .footer-col {
	color: var(--color-muted) !important;
}

html.dark-mode .a11y-btn:hover,
html.dark-mode .a11y-btn--active,
html.dark-mode .a11y-icon:hover,
html.dark-mode .a11y-icon:focus-visible,
html.dark-mode .a11y-icon--active,
html.dark-mode .a11y-icon[aria-pressed="true"] {
	background: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	color: #fff !important;
}

html.dark-mode .button {
	background: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	color: #fff !important;
}

html.dark-mode img {
	opacity: 0.92;
}

/* Nagy kontrasztú nézet (fejléc ikon kapcsolója) */
html.high-contrast {
	--color-primary: #000;
	--color-accent: #000;
	--color-primary-light: #fff;
	--color-text: #000;
	--color-muted: #000;
	--color-bg: #fff;
	--color-surface: #fff;
	--color-border: #000;
}

html.high-contrast body {
	background: #fff !important;
	color: #000 !important;
}

html.high-contrast #hd a {
	color: #000 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

html.high-contrast #hd a:hover,
html.high-contrast #hd a:focus-visible {
	background: #000 !important;
	color: #ff0 !important;
}

/* Logó – nincs hover effekt */
html.high-contrast #hd #logo.site-brand,
html.high-contrast #hd #logo.site-brand:hover,
html.high-contrast #hd #logo.site-brand:focus-visible,
html.high-contrast #hd .footer-brand,
html.high-contrast #hd .footer-brand:hover,
html.high-contrast #hd .footer-brand:focus-visible {
	background: transparent !important;
	text-decoration: none !important;
}

html.high-contrast #hd #logo.site-brand .site-brand-name,
html.high-contrast #hd #logo.site-brand .site-brand-tagline,
html.high-contrast #hd #logo.site-brand:hover .site-brand-name,
html.high-contrast #hd #logo.site-brand:hover .site-brand-tagline,
html.high-contrast #hd .footer-brand .site-brand-name,
html.high-contrast #hd .footer-brand .site-brand-tagline,
html.high-contrast #hd .footer-brand:hover .site-brand-name,
html.high-contrast #hd .footer-brand:hover .site-brand-tagline {
	color: #000 !important;
}

html.high-contrast .site-header {
	background: #fff !important;
	box-shadow: none !important;
	border-bottom: 3px solid #000;
}

html.high-contrast .header-nav {
	background: #000 !important;
}

html.high-contrast #hd .header-nav a,
html.high-contrast #hd .header-nav .nav li a,
html.high-contrast #hd .header-nav .nav ul a {
	color: #fff !important;
	text-decoration: none !important;
	background: transparent !important;
}

html.high-contrast #hd .header-nav .nav li a:hover,
html.high-contrast #hd .header-nav .nav li a:focus-visible,
html.high-contrast #hd .header-nav .nav ul a:hover,
html.high-contrast #hd .header-nav .nav ul a:focus-visible,
html.high-contrast #hd .header-nav .current-menu-item > a,
html.high-contrast #hd .header-nav .current-menu-item > a:hover,
html.high-contrast #hd .header-nav .current-menu-item > a:focus-visible {
	background: #ff0 !important;
	color: #000 !important;
	opacity: 1 !important;
}

html.high-contrast #hd .header-nav .nav li.menu-home > a:hover::before,
html.high-contrast #hd .header-nav .nav li.menu-home > a:focus-visible::before,
html.high-contrast #hd .header-nav .nav li.menu-home.current-menu-item > a::before {
	color: #000 !important;
}

html.high-contrast .header-nav .nav li a {
	border-top-color: #fff !important;
}

html.high-contrast .header-nav .nav ul {
	background: #000 !important;
	border: 2px solid #fff;
	box-shadow: none !important;
}

html.high-contrast .header-nav .nav ul li {
	border-top-color: #fff !important;
}

html.high-contrast .header-nav .current-menu-item > a::before {
	background-color: #000 !important;
}

html.high-contrast .header-nav .nav li.menu-home > a::before {
	color: #fff !important;
}

/* Gyorslinkek – sárga hover, fekete szöveg */
html.high-contrast #hd a.quicklink-card {
	text-decoration: none !important;
	background: #fff !important;
}

html.high-contrast #hd a.quicklink-card:hover,
html.high-contrast #hd a.quicklink-card:focus-visible {
	background: #ff0 !important;
	color: #000 !important;
	border-color: #000 !important;
	transform: none !important;
	box-shadow: none !important;
}

html.high-contrast #hd a.quicklink-card:hover .quicklink-title,
html.high-contrast #hd a.quicklink-card:hover .quicklink-desc,
html.high-contrast #hd a.quicklink-card:hover .quicklink-arrow,
html.high-contrast #hd a.quicklink-card:focus-visible .quicklink-title,
html.high-contrast #hd a.quicklink-card:focus-visible .quicklink-desc,
html.high-contrast #hd a.quicklink-card:focus-visible .quicklink-arrow {
	color: #000 !important;
}

html.high-contrast #hd a.quicklink-card:hover .quicklink-icon,
html.high-contrast #hd a.quicklink-card:focus-visible .quicklink-icon {
	background: #000 !important;
	color: #ff0 !important;
}

/* Kiemelt kártyák – hasonló hover */
html.high-contrast #hd .feature-card a {
	text-decoration: none !important;
}

html.high-contrast #hd .feature-card a:hover,
html.high-contrast #hd .feature-card a:focus-visible {
	background: #ff0 !important;
	color: #000 !important;
}

html.high-contrast #hd .feature-card a:hover .feature-card-title,
html.high-contrast #hd .feature-card a:focus-visible .feature-card-title,
html.high-contrast #hd .feature-card a:hover .feature-card-desc,
html.high-contrast #hd .feature-card a:focus-visible .feature-card-desc {
	color: #000 !important;
}

html.high-contrast .home-hero-wrap::after,
html.high-contrast #tophead::after {
	width: max(520px, calc(420px + 48px));
	background: linear-gradient(
		to right,
		#fff 0%,
		#fff 88%,
		transparent 100%
	) !important;
}

html.high-contrast .home-hero-title,
html.high-contrast .home-hero-lead,
html.high-contrast #tophead h1,
html.high-contrast .site-brand-name,
html.high-contrast .site-brand-tagline,
html.high-contrast .footer-heading,
html.high-contrast .footer-col,
html.high-contrast .feature-card-title a,
html.high-contrast .quicklink-title {
	color: #000 !important;
	text-shadow: none !important;
}

html.high-contrast .button,
html.high-contrast .a11y-btn,
html.high-contrast .header-search-form {
	background: #fff !important;
	border: 2px solid #000 !important;
	color: #000 !important;
	box-shadow: none !important;
}

html.high-contrast .button:hover,
html.high-contrast .button:focus-visible,
html.high-contrast .a11y-btn:hover,
html.high-contrast .a11y-btn--active,
html.high-contrast .a11y-icon--active,
html.high-contrast .a11y-icon[aria-pressed="true"] {
	background: #000 !important;
	border-color: #000 !important;
	color: #ff0 !important;
}

html.high-contrast .home-hero-actions .button.outline {
	background: #fff !important;
	color: #000 !important;
}

html.high-contrast .feature-card,
html.high-contrast .quicklink-card,
html.high-contrast .news-card,
html.high-contrast .sidebar-menu,
html.high-contrast .contact-map iframe {
	border: 2px solid #000 !important;
	box-shadow: none !important;
}

html.high-contrast .feature-card-placeholder,
html.high-contrast .news-card-thumb-placeholder {
	background: #fff !important;
	border: 2px dashed #000 !important;
}

html.high-contrast .feature-card-icon,
html.high-contrast .quicklink-icon {
	background: #000 !important;
	color: #ff0 !important;
}

html.high-contrast .footer-main {
	background: #fff !important;
	border-top: 3px solid #000;
}

html.high-contrast .footer-bottom {
	background: #000 !important;
	color: #fff !important;
}

html.high-contrast .footer-bottom a {
	color: #ff0 !important;
}

html.high-contrast .news-card-date {
	background: #000 !important;
	color: #ff0 !important;
}

html.high-contrast img {
	outline: 1px solid #000;
}
