/* ============================================================
   Magazin — kártyarács, cikk-fejléc, cikktörzs
   ============================================================ */

/* ── Kártyarács (Magazin archívum + "Legfrissebb a Magazinból") ── */
.blog__item {
	background: #f9f7f4;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .35s ease, box-shadow .35s ease;
	box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.blog__item:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 36px rgba(0,0,0,.28);
}

.blog__item > a:first-child {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.blog__item > a:first-child img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.blog__item:hover > a:first-child img {
	transform: scale(1.08);
}

.blog__item-body {
	padding: 2rem 2rem 2.4rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog__item-body .label {
	color: #12332c;
	opacity: .6;
}

.blog__item-body h2 {
	color: #12332c;
	margin: .8rem 0 1.2rem;
}

.blog__item-body > div {
	color: #3b4057;
	line-height: 1.6;
	margin-bottom: 1.6rem;
	flex: 1;
}

.blog__item-body .btn--transparent {
	margin-top: auto;
	color: #12332c;
	font-weight: 600;
}

/* ── "Legfrissebb a Magazinból" homepage szekció CTA ── */
.blog__cta {
	text-align: center;
	margin-top: 1rem;
}

/* A bannerre kerülő cikk-cím — a sablon eredetileg rövid, 1 szavas
   oldalcímekre (RÓLUNK, GALÉRIA) lett méretezve, a cikkcímek viszont
   teljes mondatok, ezért kisebb, tördelt betűméret kell nekik. */
body.single .navigation__header h1.heading--xlg {
	font-size: clamp(2.2rem, 4vw, 3.6rem);
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.25;
}

/* ── Cikk fejléc (single.php) ── */
.blog__header {
	display: flex;
	align-items: center;
	gap: 4rem;
	flex-wrap: wrap;
}

.blog__header-title {
	flex: 1 1 320px;
}

.blog__header-img {
	flex: 1 1 380px;
}

.blog__header-img img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

@media (max-width: 780px) {
	.blog__header {
		flex-direction: column-reverse;
		gap: 2rem;
	}
}

/* ── Cikktörzs ── */
.blog__content {
	max-width: 100%;
	color: #f1edea;
	font-size: 1.7rem;
	line-height: 1.85;
}

.blog__content p {
	margin: 0 0 1.8rem;
	color: #f1edea !important;
}

.blog__content li,
.blog__content blockquote {
	color: #f1edea !important;
}

.blog__content h2,
.blog__content h3 {
	color: #ffe5be;
	margin: 3.2rem 0 1.4rem;
	font-family: "Jost", sans-serif;
}

.blog__content img {
	border-radius: 8px;
	max-width: 100%;
}

.blog__content figure {
	margin: 0 0 2.4rem;
}

.blog__content .wp-block-gallery {
	margin: 3.2rem 0;
}

.blog__content .wp-block-embed {
	max-width: none;
	width: 100%;
	margin: 3.2rem 0;
}

.blog__content .wp-block-embed__wrapper {
	max-width: none;
}

.blog__content .wp-block-embed iframe {
	width: 100%;
	border-radius: 8px;
}

.blog__content figcaption {
	color: #d6bea4;
	font-size: 1.3rem;
	margin-top: .6rem;
	text-align: center;
}

/* ── Beágyazott videó helykitöltő (előkészítve) ── */
.video-embed-placeholder {
	aspect-ratio: 16 / 9;
	border: 2px dashed rgba(241,237,234,.35);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 3.2rem 0;
	background: rgba(255,255,255,.03);
}

.video-embed-placeholder__inner {
	text-align: center;
	color: #d6bea4;
	padding: 0 3rem;
}

.video-embed-placeholder__inner svg {
	width: 48px;
	height: 48px;
	margin-bottom: 1rem;
	color: #ffe5be;
}

.video-embed-placeholder__inner p {
	font-size: 1.4rem;
	line-height: 1.6;
	margin: 0;
}

/* ── Related posts heading spacing (single.php) ── */
.blog__content + .container h3.heading--sm {
	color: #f1edea;
}
