/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ------------------------------------------------------------------
   Nemzetközi projektek portfólió
   Colours come from Elementor's global palette so the blocks follow the
   site theme; the fallbacks keep them readable if a global is renamed.
   ------------------------------------------------------------------ */

.insedo-projekt {
	--insedo-kiemelt: var(--e-global-color-accent, #e94926);
	--insedo-szoveg: var(--e-global-color-text, #3b3b3b);
	--insedo-halvany: rgba(0, 0, 0, .06);
}

.insedo-projekt__logo {
	margin: 0 0 1.5rem;
}

.insedo-projekt__logo img {
	max-width: 260px;
	height: auto;
}

/* Meta block: period, project number, role. */
.insedo-projekt__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	background: var(--insedo-halvany);
	border-radius: 8px;
}

.insedo-projekt__meta-tetel {
	min-width: 0;
}

.insedo-projekt__meta dt {
	margin: 0 0 .2rem;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .65;
}

.insedo-projekt__meta dd {
	margin: 0;
	font-size: 1rem;
	/* Project numbers are long and must not force a horizontal scrollbar. */
	overflow-wrap: anywhere;
}

.insedo-projekt__osszefoglalo {
	font-size: 1.125rem;
	line-height: 1.6;
}

.insedo-projekt__blokk {
	margin: 2.5rem 0;
}

.insedo-projekt__blokk > h2 {
	margin: 0 0 .75rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid var(--insedo-kiemelt);
	font-size: 1.35rem;
}

/* Partners on a project page. */
.insedo-partnerek {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.insedo-partner {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 1rem;
	border: 1px solid var(--insedo-halvany);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}

a.insedo-partner:hover,
a.insedo-partner:focus-visible {
	border-color: var(--insedo-kiemelt);
}

.insedo-partner__logo {
	max-width: 100%;
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
	align-self: flex-start;
}

.insedo-partner__nev {
	font-weight: 600;
}

.insedo-partner__orszag {
	font-size: .875rem;
	opacity: .7;
}

.insedo-projekt__link-sor {
	margin: 2rem 0;
}

.insedo-gomb {
	display: inline-block;
	padding: .85rem 1.75rem;
	background: var(--insedo-kiemelt);
	border-radius: 6px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.insedo-gomb:hover,
.insedo-gomb:focus-visible {
	filter: brightness(.9);
	color: #fff;
}

.insedo-projekt__disclaimer {
	margin: 2.5rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--insedo-halvany);
	font-size: .8125rem;
	line-height: 1.5;
	opacity: .75;
}

/* ---- Partner logo strip (portfolio page and front page) ---- */

.insedo-logosav__cim {
	margin: 0 0 1.5rem;
	text-align: center;
}

.insedo-logosav__lista {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 3rem;
}

.insedo-partner--logo {
	display: block;
	padding: 0;
	border: 0;
}

.insedo-partner--logo .insedo-partner__logo {
	max-height: 64px;
	max-width: 180px;
	/* Greyscale keeps a row of mismatched brand colours calm; colour returns
	   on hover so the logos still feel interactive. */
	filter: grayscale(1);
	opacity: .75;
	transition: filter .2s ease, opacity .2s ease;
}

a.insedo-partner--logo:hover .insedo-partner__logo,
a.insedo-partner--logo:focus-visible .insedo-partner__logo {
	filter: grayscale(0);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.insedo-partner--logo .insedo-partner__logo {
		transition: none;
	}
}

/* ---- Publications ---- */

.insedo-publikaciok {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
	justify-content: center;
	gap: 1.25rem;
}

.insedo-publikacio {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1.25rem;
	border: 1px solid var(--insedo-halvany, rgba(0, 0, 0, .06));
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}

.insedo-publikacio:hover,
.insedo-publikacio:focus-visible {
	border-color: var(--e-global-color-accent, #e94926);
}

.insedo-publikacio__borito {
	width: 72px;
	height: auto;
	flex-shrink: 0;
	border-radius: 4px;
}

.insedo-publikacio__ikon {
	flex-shrink: 0;
	padding: .5rem .65rem;
	background: var(--e-global-color-accent, #e94926);
	border-radius: 4px;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .05em;
}

.insedo-publikacio__szoveg {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 0;
}

.insedo-publikacio__cim {
	font-weight: 600;
	line-height: 1.3;
}

.insedo-publikacio__leiras {
	font-size: .875rem;
	opacity: .75;
}

.insedo-publikacio__letoltes {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--e-global-color-accent, #e94926);
}

@media (max-width: 767px) {
	.insedo-projekt__meta {
		gap: 1rem 1.5rem;
		padding: 1rem;
	}

	.insedo-logosav__lista {
		gap: 1.5rem 2rem;
	}
}

/* ---- Project grid on the portfolio page ---- */

.insedo-racs {
	display: grid;
	/* auto-fill keeps making an empty track when the row is wider than the
	   cards need, which left a gap on the right. A capped column plus centred
	   content keeps the set together whatever the container width. */
	grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
	justify-content: center;
	gap: 1.5rem;
}

.insedo-kartya {
	display: flex;
	flex-direction: column;
	gap: .65rem;
	padding: 1.5rem;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 10px;
	background: #fff;
	transition: border-color .2s ease, transform .2s ease;
}

.insedo-kartya:hover {
	border-color: var(--e-global-color-accent, #e94926);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.insedo-kartya {
		transition: none;
	}

	.insedo-kartya:hover {
		transform: none;
	}
}

.insedo-kartya__logo {
	max-height: 72px;
	max-width: 100%;
	width: auto;
	object-fit: contain;
	align-self: flex-start;
	margin-bottom: .35rem;
}

.insedo-kartya__cim {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
}

.insedo-kartya__cim a {
	color: inherit;
	text-decoration: none;
}

.insedo-kartya__cim a:hover,
.insedo-kartya__cim a:focus-visible {
	color: var(--e-global-color-accent, #e94926);
}

.insedo-kartya__idoszak {
	margin: 0;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	opacity: .6;
}

.insedo-kartya__lead {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.55;
}

/* Pushed to the bottom so the links line up across cards of unequal height. */
.insedo-kartya__tovabb {
	margin-top: auto;
	padding-top: .5rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--e-global-color-accent, #e94926);
}

.insedo-kartya__tovabb::after {
	content: " →";
}

/* The blocks fill whatever container they are placed in. Deliberately kept
   to the blocks themselves: forcing widths onto the Elementor containers
   above them breaks their own centring and pushes the section off-canvas. */

.insedo-racs,
.insedo-logosav,
.insedo-publikaciok,
.insedo-projekt {
	width: 100%;
	min-width: 0;
}