.story-layout {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	padding-top: 220px; /* large empty area above both */
	width: 100%;
}
.timeline-img-wrapper {
	flex: 0 0 260px;
	display: block;
}
.timeline-right {
	display: block;
	width: 220px;
	max-width: 100%;
	height: auto;
	box-shadow: 0 18px 42px rgba(0,0,0,0.20);
	background: white;
	border-radius: 8px;
	transition: box-shadow 220ms ease, transform 220ms ease;
}
:root {
	--bg: #ffffff;
	--header-bg: #fffcfc;
	--accent: #4a9eff;
	--overlay-gray: #869193;
	--text-primary: #232323;
	--text-secondary: #869193;
	--font-heading: 'Cormorant', sans-serif;
	--font-body: 'Spectral', sans-serif;
	--page-margin: 40px;
	--footer-overlap: 80px; /* how much image extends under the footer */
}
.timeline-img-wrapper {
	position: relative;
	width: auto;
	min-height: 1px;
}
.timeline-right {
	position: static; /* keep in document flow so page scrolls to its bottom */
	display: block;
	width: 220px;
	max-width: 100%;
	height: auto;
	box-shadow: none; /* no shadow */
	background: white;
	border-radius: 8px;
	border-left: 1px solid #000; /* thin black left-side line */
	margin-right: calc(-1 * var(--page-margin, 40px)); /* push visually to viewport edge */
	transition: transform 160ms ease;
}

.story-tabs {
	width: 100%;
	margin: 140px 0 20px 0;
	background: transparent; /* remove outer white rectangle */
	padding: 0;
	box-shadow: none;
	border-radius: 0;
}
.story-panel {
	padding: 24px;
	border-radius: 8px;
	background: transparent; /* no solid white background */
	box-shadow: 0 8px 20px rgba(0,0,0,0.10); /* reduced shadow radius */
	border: 1px solid rgba(0,0,0,0.06);
	backdrop-filter: blur(4px);
	transition: box-shadow 220ms ease, transform 220ms ease;
	flex: 1 1 auto;
}
.story-panel h2 {
	margin: 0 0 12px 0;
	font-family: var(--font-heading);
	font-size: 28px;
}
.story-panel-body {
	min-height: 160px;
	color: var(--text-primary);
	line-height: 1.6;
}

@media (max-width: 900px) {
		.story-layout { display: block; padding-top: 28px; }
		.story-panel { margin: 0 0 16px 0; }
		.timeline-img-wrapper { width: 100%; }
		.timeline-right { width: 100%; }
}

.story-panel:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.timeline-right:hover {
	transform: translateY(-2px);
	box-shadow: none;
}

:root {

* { box-sizing: border-box; }

html {
	height: 100%;
	margin: 0; /* reset html margin to avoid double gutters */
}
body {
	height: 100%;
	margin: var(--page-margin);
	overflow-anchor: none;
}

body {
	background-color: var(--bg);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-top: var(--header-offset, 0px);
	transition: padding-top 260ms ease;
}

.main-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	border-top: 1px solid var(--text-secondary);
	border-bottom: 1px solid var(--text-secondary);
	background-color: var(--header-bg);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.2s ease;
}

.header-logo {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 15px 0 15px 0;
	max-height: 300px;
	overflow: hidden;
	opacity: 1;
	transform: translateY(0);
	transition: max-height 260ms ease, padding 260ms ease, opacity 220ms ease, transform 260ms ease;
	will-change: max-height, padding, opacity, transform;
}

.header-menu {
	display: flex;
	justify-content: center;
	gap: 8rem;
	--menu-pad-y: 20px;
	padding: var(--menu-pad-y) 0;
	transition: gap 260ms ease, padding 260ms ease;
	will-change: gap, padding;
	border-top: 1px solid var(--text-secondary);
	border-color: rgba(134, 145, 147, 0.25);
}



.lang-switch {
	display: inline-flex;
	gap: 10px;
	align-items: center;
}

/* Language buttons: no border/outline, flag pseudo-element behind text, hover scale */
.lang-btn {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-heading);
	font-variant: small-caps;
	background: transparent;
	padding: 6px 10px;
	cursor: pointer;
	border: none;
	outline: none;
	box-shadow: none;
	min-width: 2.4em; /* ensure both buttons have same minimum width */
	text-align: center;
	color: var(--text-primary);
	opacity: 1;
	font-weight: 600;
	z-index: 0; /* establish stacking context so ::before can sit behind */
}

.lang-btn:focus,
.lang-btn:focus-visible {
	outline: none;
	box-shadow: none;
}

.lang-btn::-moz-focus-inner { /* Firefox inner focus border removal */
	border: 0;
}

/* Make the Hungarian button visually a bit smaller */
.lang-btn[data-set-lang="hu"] {
	font-size: 0.85em;
	padding: 4px 8px;
}

.lang-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.25; /* default: not-selected look */
	z-index: -1; /* push flag behind the button content */
	transform-origin: center;
	transform: scale(1);
	box-shadow: none;
	transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

/* Selected vs not-selected flag opacity (JS toggles aria-pressed) */
.lang-btn[aria-pressed="true"]::before { opacity: 0.75; }
.lang-btn[aria-pressed="false"]::before { opacity: 0.25; }

/* Hover/focus effect: enlarge flag slightly and add colored shadow */
.lang-btn:hover::before,
.lang-btn:focus-visible::before {
	transform: scale(1.15);
	box-shadow: 0 0 12px #ff6062;
}

.lang-btn > * { position: relative; z-index: 2; color: inherit; opacity: 1; }

.lang-btn[data-set-lang="hu"]::before { background-image: url('hu.png'); }
.lang-btn[data-set-lang="it"]::before { background-image: url('it.png'); }

.content-body a {
	color: #c1a577;
}

/* Könyvajánló: kétoszlopos fehér téglalap (szöveg balra, kép jobbra) */
.section-ajanlo {
	display: grid;
	grid-template-columns: 1fr 440px;
	gap: 36px; /* nagyobb távolság a kép és a szöveg között */
	align-items: center;
	background: #ffffff;
	padding: 28px;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	margin: 24px 0;
}

.section-ajanlo .content {
	text-align: left;
	max-width: 80ch; /* korábbi sortörés — a szöveg hamarabb új sorba kerül */
}

/* Generic content wrapper used by sections (keeps title close to text) */
.content {
	text-align: left;
	max-width: 80ch;
}

/* Story section: two-column card with image left and text right */
.section-story {
	display: grid;
	grid-template-columns: 440px 1fr;
	gap: 36px;
	align-items: center;
	background: #ffffff;
	padding: 28px;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	margin: 24px 0;
}

.section-story img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
}

@media (max-width: 900px) {
	.section-story {
		grid-template-columns: 1fr;
		padding: 18px;
	}
	.section-story img {
		order: -1; /* move image above text on small screens */
		max-height: 360px;
	}
}

/* Info tabs */
.info-tabs {
	/* Align the band with the page content (respects body margins)
	   so the inner grid centers with other sections. */
	position: relative;
	width: 100%; /* full width of the body content box */
	margin-left: 0;
	margin-right: 0;
	margin-top: 32px;
	margin-bottom: 8px;
}

.info-tabs {
	background: #ff6062; /* pink band (moved to outer container) */
	border: 4px solid #c1a577;
	border-radius: 12px;
}

.info-grid {
	max-width: 1400px; /* centered content width (increased) */
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	background: transparent; /* remove inner white/pink box */
	color: #ffffff;
	border-radius: 0;
	overflow: visible;
	justify-items: center;
}

/* Force the inner grid to align to the viewport center (avoids body-margin offsets) */
.info-grid {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(1400px, calc(100% - 80px));
}

.info-card {
	background: transparent;
	border: none;
	padding: 48px 28px; /* larger blocks */
	min-height: 140px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 700;
	color: inherit;
	cursor: pointer;
	text-align: center;
	transition: background 160ms ease, color 160ms ease, transform 220ms ease;
	font-size: 26px;
}
.info-card:hover,
.info-card:focus {
	background: rgba(255,255,255,0.06);
	transform: translateY(-8px);
}
.card-title { display: inline-block; }

.info-panel {
	max-width: 1400px;
	allign-items: center;
	margin: 0 auto;
	background: #ffffff; /* white revealed area */
	color: var(--text-primary);
	border: 4px solid #c1a577;
	border-top: none;
	border-radius: 0 0 12px 12px;
	overflow: hidden;
	max-height: 0;
	transition: max-height 260ms ease, padding 260ms ease, opacity 260ms ease;
	opacity: 0;
}
.info-panel.open {
	max-height: 520px; /* reveal height (increased) */
	padding: 36px 40px;
	opacity: 1;
}
.panel-inner {
	max-width: 100ch;
	margin: 0 auto;
	line-height: 1.6;
	font-size: 18px;
}

@media (max-width: 1200px) {
	.info-grid { max-width: 1000px; }
}
@media (max-width: 900px) {
	.info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.info-grid { grid-template-columns: 1fr; }
}

/* Large empty spacer under the info-tabs */
.info-spacer {
	width: 100%;
	height: min(50vh, 700px); /* large but responsive */
	background: transparent;
}

@media (max-width: 600px) {
	.info-spacer { height: 40vh; }
}

.site-footer {
	/* Stripped design: transparent background, no border */
	background: transparent !important;
	border-top: none !important;
	padding: 6px 0 !important;
	margin-top: 0;
	position: relative; /* establish stacking context so footer text appears above image */
	z-index: 2;
}
.site-footer-inner {
	width: auto;
	margin: 0 auto;
	padding: 0 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.site-footer .footer-text {
	/* Plain white heading-style text */
	color: #ffffff;
	font-family: var(--font-heading);
	font-size: 2em; /* doubled from previous 1.5em */
	font-weight: 600;
	text-align: center;
	margin: 0;
}

@media (max-width: 640px) {
	.site-footer .footer-text { font-size: 2em; }
}

@media (max-width: 640px) {
	.site-footer-inner { padding: 0 8px; }
}

/* Full-bleed image inserted between tabbed table and footer */
.full-bleed-image {
	/* override generic `section` rules: remove white box */
	background: transparent !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	position: relative;
	width: calc(100vw + (var(--page-margin) * 2));
	max-width: none;
	margin-left: calc(-1 * var(--page-margin));
	overflow: hidden;
	/* gap between tabbed table and the full-bleed image */
	margin-top: 200px;
	/* pull the image up so it extends under the footer */
	margin-bottom: calc(-1 * var(--footer-overlap));
	display: block;
	z-index: 1; /* behind footer (footer z-index:2) */
}
.full-bleed-image .full-bleed-img {
	display: block;
	width: 100%;
	/* make the image extend into the footer area so its bottom reaches page bottom */
	height: calc(100vh - var(--header-offset, 0px) + var(--footer-overlap));
	min-height: 360px;
	object-fit: cover;
	object-position: center bottom;
	border: 0;
}

@media (max-width: 1200px) {
	.full-bleed-image .full-bleed-img { height: 50vh; min-height: 280px; }
}
@media (max-width: 720px) {
	.full-bleed-image .full-bleed-img { height: 40vh; min-height: 200px; }
}


/* fixed footer removed */

.section-ajanlo img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
}

@media (max-width: 900px) {
	.section-ajanlo {
		grid-template-columns: 1fr;
		padding: 18px;
	}
	.section-ajanlo img {
		order: -1; /* képet feljebb helyezzük mobilon */
		max-height: 360px;
	}
}

.main-header.scrolled .header-logo {
	max-height: 0;
	padding: 0;
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
	background: transparent; /* remove solid white background */
	border: 1px solid rgba(0,0,0,0.06); /* keep rectangular outline */
	backdrop-filter: blur(6px);

}
.main-header.scrolled .header-menu {
	gap: 5rem;
	--menu-pad-y: 25px;
	padding: var(--menu-pad-y) 0;
}

.main-header.scrolled .menu-link {
	font-size: 24px;
}

.menu-link {
	font-family: var(--font-heading);
	font-variant: small-caps;
	color: var(--text-primary);
	text-decoration: none;
	font-size: 30px;
	position: relative;
	display: inline-block;
	padding: 0 26px;
	transition: color 0.3s ease, font-size 260ms ease;
}

.menu-link::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(-1 * var(--menu-pad-y, 0px));
	bottom: calc(-1 * var(--menu-pad-y, 0px));
	background: #ff6062;
	border: 3px solid #c1a577;
	opacity: 0;
	transform: scaleX(0.98);
	transition: opacity 160ms ease, transform 160ms ease;
	z-index: -1;
}

.menu-link:hover {
	color: #ffffff;
}

.menu-link:hover::before {
	opacity: 1;
	transform: scaleX(1);
}

.content-body {
	white-space: pre-line;
}

/* Banner overlay: centered title/sub/cta, float-in when scrolled */
.banner { position: relative; display: block; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; max-width: 100vw; margin-top: calc(-1 * var(--page-margin)); }
.banner img { display: block; width: 100%; height: auto; }
.banner-overlay {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(20px);
	text-align: center;
	color: #ffffff;
	pointer-events: none;
	opacity: 0;
	transition: opacity 320ms ease, transform 320ms ease;
	width: 100%;
	max-width: 900px;
}
.banner-text {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 6px;
	pointer-events: auto;
}
.banner-title {
	margin: 0 0 4px 0; /* reduced spacing to subtitle */
	font-size: 70px;
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.02em;
}
.banner-sub {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 28px;
	font-style: italic;
	opacity: 0;
	transition: opacity 320ms ease 120ms, transform 320ms ease 120ms;
}
.banner-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 16px;
	background: #ff6062;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 280ms ease 220ms, transform 280ms ease 220ms;
}

/* When body has .banner-visible, animate in overlay */
body.banner-visible .banner-overlay { opacity: 1; transform: translateX(-50%) translateY(0); }
body.banner-visible .banner-sub { opacity: 1; transform: translateY(0); }
body.banner-visible .banner-cta { opacity: 1; transform: translateY(0); }

@media (max-width: 520px) {
	.banner-title { font-size: 20px; transform: translateY(-6px); }
	.banner-sub { font-size: 12px; }
	.banner-cta { padding: 8px 12px; }
}

/* Strong override: remove any visible background rectangle behind banner text
   Keep the CTA button as-is (it has its own background). */
.banner-text,
.banner-panel {
	background: transparent !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.banner-text::before { display: none !important; }
.banner-title { background: transparent !important; padding: 0 !important; }

/* Stack subtitle and CTA vertically inside the banner panel */
.banner-panel {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.banner-text { display: block !important; }
.banner-cta { display: block !important; }

/* Banner adjustments: raise overlay a bit, enlarge text/button, add blurred translucent backdrop */
.banner-overlay {
	/* a bit higher on the image */
	top: 260px !important;
	transform: translateX(-50%) translateY(0) !important;
}

/* Blurred, translucent background so the text blends into the image */
.banner-text {
	background: rgba(0,0,0,0.22);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	padding: 12px 18px;
	border-radius: 10px;
}

/* Bigger, slightly tighter title and subtitle */
.banner-title { font-size: 82px; line-height: 1.02; margin: 0 0 6px 0; }
.banner-sub { font-size: 34px; margin: 0 0 4px 0; }

/* Larger CTA */
.banner-cta { margin-top: 18px; padding: 12px 20px; font-size: 18px; }

@media (max-width: 520px) {
	.banner-overlay { top: 110px !important; transform: translateX(-50%) translateY(0) !important; }
	.banner-text { padding: 8px 12px; border-radius: 8px; }
	.banner-title { font-size: 22px; }
	.banner-sub { font-size: 14px; }
	.banner-cta { padding: 10px 14px; font-size: 14px; }
}

.banner-title {
	margin: 0 0 4px 0; /* reduced spacing to subtitle */
	font-size: 70px;
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.02em;
}
.banner-sub {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 28px;
	font-style: italic;
	opacity: 0;
	transition: opacity 320ms ease 120ms, transform 320ms ease 120ms;
}
.banner-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 16px;
	background: #ff6062;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 280ms ease 220ms, transform 280ms ease 220ms;
}

/* When body has .banner-visible, animate in overlay */
body.banner-visible .banner-overlay { opacity: 1; transform: translateX(-50%) translateY(0); }
body.banner-visible .banner-sub { opacity: 1; transform: translateY(0); }
body.banner-visible .banner-cta { opacity: 1; transform: translateY(0); }

@media (max-width: 520px) {
	.banner-title { font-size: 20px; }
	.banner-sub { font-size: 12px; }
	.banner-cta { padding: 8px 12px; }
}

/* Banner overlay: float-in from bottom when user scrolls a bit */
.banner { position: relative; display: block; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; max-width: 100vw; }
.banner img { display: block; width: 100%; height: auto; }
.banner-overlay {
	position: absolute;
	left: 50%;
	top: 260px;
	transform: translateX(-50%) translateY(0);
	text-align: center;
	color: #ffffff;
	pointer-events: none;
	opacity: 0;
	transition: opacity 320ms ease, transform 320ms ease;
	width: calc(100% - 80px);
	max-width: 900px;
}

.banner-text {
	display: inline-block;
	position: relative;
	padding: 12px 18px;
	border-radius: 10px;
	background: rgba(0,0,0,0.14);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	/* fade the left/right edges so the background doesn't look like a hard rectangle */
	-webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, rgba(0,0,0,0));
	mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, rgba(0,0,0,0));
}
.banner-text::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: inherit;
	filter: blur(8px);
	z-index: -1;
}

.banner-title {
	margin: 0;
	font-size: 77px;
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.02;
	pointer-events: auto;
	transform: translateY(-10px);
}
.banner-sub {
	margin: 6px 0 0 0;
	font-family: var(--font-heading);
	font-size: 34px;
	font-style: italic;
	opacity: 0;
	transition: opacity 320ms ease 120ms, transform 320ms ease 120ms;
	pointer-events: auto;
}
.banner-cta {
	display: inline-block;
	margin-top: 18px;
	padding: 12px 20px;
	background: #ff6062;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 280ms ease 220ms, transform 280ms ease 220ms;
}

/* When body has .banner-visible, animate in overlay */
body.banner-visible .banner-overlay { opacity: 1; transform: translateX(-50%) translateY(0); }
body.banner-visible .banner-sub { opacity: 1; transform: translateY(0); }
body.banner-visible .banner-cta { opacity: 1; transform: translateY(0); }

@media (max-width: 520px) {
	.banner-overlay { top: 110px !important; }
	.banner-text { padding: 8px 12px; border-radius: 8px; -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0)); mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0)); }
	.banner-title { font-size: 22px; }
	.banner-sub { font-size: 14px; }
	.banner-cta { padding: 10px 14px; font-size: 14px; }
}

/* Ensure contrast on small screens */
@media (max-width: 520px) {
	.banner-title { font-size: 20px; }
	.banner-sub { font-size: 12px; }
	.banner-cta { padding: 8px 12px; }
}

.banner-bottom-shadow {
	/* helper class in case needed; not applied in markup by default */
}

/* Add a subtle bottom-only shadow so the banner appears lifted
   We use a vertical offset with negative spread so the shadow is primarily below */
.banner {
	box-shadow: 0 18px 30px -12px rgba(0,0,0,0.45);
}

@media (max-width: 520px) {
	.banner { box-shadow: 0 10px 18px -8px rgba(0,0,0,0.35); }
}

.section-title {
	font-family: var(--font-heading);
	font-variant: small-caps;
	font-size: 36px;
	margin: 40px 0 20px 0 !important;
	text-align: left;
}

/* Recommendation paragraph link styling: subtle, non-default look */
p[data-i18n-html] a {
	color: #c1a577;
	text-decoration: none;
	border-bottom: 1px solid rgba(193,165,119,0.12);
	padding-bottom: 2px;
	transition: color 180ms ease, border-bottom-color 180ms ease, box-shadow 180ms ease;
}

p[data-i18n-html] a:hover,
p[data-i18n-html] a:focus {
	color: #ff6062; /* CTA accent on hover */
	border-bottom-color: rgba(255,96,98,0.9);
	box-shadow: 0 2px 0 rgba(255,96,98,0.06);
	outline: none;
}

p[data-i18n-html] a:focus {
	box-shadow: 0 2px 0 rgba(255,96,98,0.12), 0 0 0 3px rgba(255,96,98,0.06);
}

/* Section Ajanlo stílusok */
section {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

section img {
  max-width: 300px;
  height: auto;
  margin-right: 20px;
  border-radius: 8px;
}

section .content {
  flex: 1;
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}

/* Növelt alapértelmezett szövegméret a banner utáni tartalmakhoz */
.banner ~ section,
.banner ~ section .content,
.banner ~ section .content-body,
.banner ~ section p {
	font-size: 19px; /* nagyobb alap szöveg */
	line-height: 1.6;
}

.banner ~ section .section-title {
	font-size: 40px; /* kicsit nagyobb címsor a laterális kiemeléshez */
}

@media (max-width: 720px) {
	.banner ~ section,
	.banner ~ section .content,
	.banner ~ section p {
		font-size: 17px; /* mobilon visszaveszünk egy kicsit */
		line-height: 1.5;
	}
	.banner ~ section .section-title { font-size: 28px; }
}

/* New tabbed two-row table component */
.tabbed-info { margin: 42px 0; display: block; width: 100%; }
.tab-table {
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0;
	border: 4px solid #c1a577;
	border-radius: 12px;
	overflow: visible;
	background: transparent;
}
.tab-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.tab-top {
	background: #ff6062;
	color: #ffffff;
	border-radius: 8px 8px 0 0;
}
.tab-top .tab-btn {
    background: transparent;
    border: none;
    padding: 45px 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: inherit;
    cursor: pointer;
    transition: background 180ms ease, transform 200ms ease, color 160ms ease;
}
.tab-top .tab-btn:hover,
.tab-top .tab-btn:focus { background: rgba(255,255,255,0.06); outline: none; }
.tab-top .tab-btn .tab-label { display: inline-block; transition: transform 200ms ease; }
.tab-top .tab-btn:hover .tab-label,
.tab-top .tab-btn:focus .tab-label { transform: translateY(-6px); }
.tab-top .tab-btn[aria-selected="true"] { box-shadow: 0 6px 22px rgba(0,0,0,0.12); }

.tab-separator { position: relative; height: 30px; display: block; }
.tab-sep-line { display: block; height: 4px; background: linear-gradient(90deg,#c1a577,#c1a577); margin: 0; }
.tab-arrow {
	position: absolute;
	top: -18px;
	left: calc(12.5% - 10px); /* default position under first column */
	width: 0; height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-bottom: 12px solid #c1a577;
	transition: left 260ms cubic-bezier(.2,.9,.3,1);
}

.tab-bottom { background: #fffcfc; border-radius: 0 0 8px 8px; padding: 60px; height: 360px; overflow: auto; }
.tab-contents { max-width: none; width: 100%; margin: 0; padding: 0 96px; }
.tab-content { font-size: 26px; line-height: 2; color: var(--text-primary); max-width: none; text-align: justify; text-justify: inter-word; padding: 8px 0; }

@media (max-width: 1200px) {
	.tab-top .tab-btn { padding: 36px 30px; font-size: 20px; }
	.tab-bottom { height: 315px; padding: 48px; }
	.tab-contents { padding: 0 64px; }
	.tab-content { font-size: 22px; }
}
@media (max-width: 900px) {
	.tab-row { grid-template-columns: repeat(2, 1fr); }
	.tab-top .tab-btn { font-size: 18px; padding: 22px 18px; }
	.tab-table[style] .tab-arrow { left: calc( (var(--active-index, 0) * 50%) + 25% - 12px ); }
	.tab-bottom { height: 270px; padding: 36px; }
	.tab-contents { padding: 0 40px; }
	.tab-content { font-size: 20px; }
}
@media (max-width: 480px) {
	.tab-row { grid-template-columns: 1fr; }
	.tab-top .tab-btn { padding: 14px; font-size: 16px; }
	.tab-separator { height: 18px; }
	.tab-table[style] .tab-arrow { left: calc( (var(--active-index, 0) * 100%) + 50% - 12px ); }
	.tab-bottom { height: auto; padding: 20px; }
	.tab-contents { padding: 0 18px; }
	.tab-content { font-size: 18px; }
}

/* Ensure the bottom row's contents span all grid columns of the parent .tab-row */
.tab-row.tab-bottom > .tab-contents { grid-column: 1 / -1; width: 100%; }

/* Active arrow positioning: update via inline style --active-index (0..3) */
.tab-table[style] .tab-arrow {
	left: calc( (var(--active-index, 0) * 25%) + 12.5% - 10px );
}

@media (max-width: 900px) {
	.tab-row { grid-template-columns: repeat(2, 1fr); }
	.tab-top .tab-btn { font-size: 18px; padding: 18px; }
	.tab-table[style] .tab-arrow { left: calc( (var(--active-index, 0) * 50%) + 25% - 10px ); }
	.tab-bottom { height: 320px; }
}
@media (max-width: 480px) {
	.tab-row { grid-template-columns: 1fr; }
	.tab-top .tab-btn { padding: 14px; font-size: 16px; }
	.tab-separator { height: 12px; }
	.tab-table[style] .tab-arrow { left: calc( (var(--active-index, 0) * 100%) + 50% - 10px ); }
	.tab-bottom { height: auto; }
}

/* Centered very long thin vertical line for `tortenet.html` */
.page-main {
		padding: 0; /* spacing handled by header-spacer */
	display: block;
	text-align: center; /* center the container horizontally */
}
/* Large empty spacer under header on the story page */
.header-spacer {
	width: 100%;
	/* slightly reduced height */
	height: min(25vh, 400px);
	display: block;
}

/* Fixed bottom cover (takaró) placed above all content */
.page-cover {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 220px; /* default height; adjust as needed */
	background: url('takaro.png') center/cover no-repeat;
	pointer-events: none; /* let clicks pass through */
	z-index: 2147483646; /* very high, but allow browser UI above */
}
.vertical-line-container {
	--branch-length: calc(100vw / 7); /* branch extends to 1/7 of the viewport */
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	position: relative; /* for absolutely positioned branch elements */
	--vertical-height: 5000px; /* total vertical line height (adjustable) — extended downward */
	--h-length: calc(100vw * 6 / 7); /* horizontal line length (6/7 of viewport) */
}
.center-vertical-line {
	position: relative;
	width: 2px; /* very thin */
	max-width: 2px;
	background: var(--overlay-gray); /* grey vertical line */
	height: var(--vertical-height); /* very long; controlled via variable */
	margin: 40px 0;
}

/* horizontal line removed per request (was .center-horizontal) */

/* Branch lines that extend left from the center line */
.branch {
	position: absolute;
	left: calc(50% - var(--branch-length)); /* left-anchored branch (extends to center) */
	width: var(--branch-length);
	height: 2px;
	background: var(--overlay-gray);
	pointer-events: none;
}
.branch.right {
	left: 50%; /* start at center and extend to the right */
	width: var(--branch-length);
}

/* Rectangle placed flush left of the first branch */
.branch-rect {
	position: absolute;
	border: 2px solid var(--overlay-gray);
	background: var(--header-bg);
	box-sizing: border-box;
	pointer-events: none;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

/* Inner content of the rectangles */
.branch-rect .rect-inner {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow: hidden;
}
.branch-rect .rect-title {
	font-family: var(--font-heading);
	color: var(--text-primary);
	text-align: center;
	margin: 0 0 12px 0;
	font-size: 24px;
	line-height: 1.2;
	font-style: bold;
}
.branch-rect .rect-body {
	font-family: var(--font-body);
	color: var(--text-primary);
	text-align: left;
	margin: 0 0 12px 0;
	overflow: auto;
	flex: 0 0 auto;
}
.branch-rect .rect-image {
	display: block;
	margin: 12px auto 0 auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	flex: 0 0 auto;
	border-radius: 8px; /* rounded image corners */
}

@media (max-width: 900px) {
	.center-vertical-line { height: 3000px; }
	.vertical-line-container { --branch-length: calc(100vw / 7); }
}