/*
 * Theme Name:        Hello Elementor Child
 * Theme URI:         https://vikingo.studio/
 * Description:       A Vikingo Studio Hello Elementor gyermek témája, saját admin és bejelentkezési testreszabással.
 * Author:            Vikingo Studio
 * Author URI:        https://vikingo.studio/
 * Template:          hello-elementor
 * Version:           1.1.2
 * Requires at least: 6.0
 * Tested up to:      7.0
 * Requires PHP:      7.4
 * Text Domain:       hello-vikingo-studio
 * License:           GNU General Public License v3 or later
 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html
 */

.align {
    margin-top: auto;
}

/* Utolsó bekezdés alsó térköze (főleg text widgetek miatt) */
p:last-child {
    margin-bottom: 0 !important;
}

/* "..." a bejegyzés-kivonatok végére */
.elementor-posts .elementor-post__excerpt p::after {
    content: "..." !important;
}

/* Térköz a bejegyzésben lévő képek elé és mögé */
.single-post .wp-block-image img {
    margin: 20px 0;
}

/* Lista utolsó eleme alá térköz (Elementor text + blog) */
.elementor-widget-text-editor li:last-child,
.single-post .wp-block-list li:last-child {
    margin-bottom: 20px !important;
}


/* =========================================================
   MUNKATÁRSAK LISTÁZÁS
   ========================================================= */


/* ---------------------------------------------------------
   Kategória blokk
   Bal oldal: kategórianév
   Jobb oldal: munkatársak
   --------------------------------------------------------- */

.munkatarsak-csoport {
	display: grid;
	grid-template-columns: minmax(0, 30%) minmax(0, 70%);
	gap: 40px;
	align-items: start;
}


/* Kategóriacím fölötti dekoráció */

.munkatarsak-csoport-cim {
	position: relative;
	padding-top: 19px;

	/*
	 * Lehetővé teszi a hosszú szavak
	 * nyelvtanilag helyes elválasztását.
	 */
	hyphens: auto;
	-webkit-hyphens: auto;

	overflow-wrap: normal;
	word-break: normal;
}

.munkatarsak-csoport-cim::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;

	width: 48px;
	height: 7px;

	background: var(--e-global-color-accent);
}


/* ---------------------------------------------------------
   Munkatárs lista
   --------------------------------------------------------- */

.munkatarsak-lista {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}


/* ---------------------------------------------------------
   Egy munkatárs kártya
   --------------------------------------------------------- */

.munkatars {
	display: flex;
	flex-direction: row-reverse;

	min-width: 0;
	overflow: hidden;

	background: #fff;
	border: 1px solid #D1E1DA;
	border-radius: 8px;

	box-shadow: 0 4px 14px rgba(42, 86, 59, 0.06);
}


/* ---------------------------------------------------------
   Kép
   --------------------------------------------------------- */

.munkatars-kep {
	flex: 0 0 35%;
	width: 35%;
	min-width: 0;
	overflow: hidden;
}

.munkatars-kep-img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;
}


/* ---------------------------------------------------------
   Szöveges tartalom
   --------------------------------------------------------- */

.munkatars-adatok {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 20px;

	min-width: 0;
	padding: 20px 24px;
	min-height: 232px;
}


/* ---------------------------------------------------------
   Név / post title
   --------------------------------------------------------- */

.munkatars-cim {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;

	color: var(--e-global-color-primary);
	text-transform: uppercase;
}


/* Ha van telephely */

.munkatars-cim--telephelyes {
	font-size: 18px;
}


/* ---------------------------------------------------------
   Régió / titulus
   --------------------------------------------------------- */

.munkatars-regiotitulus,
.munkatars-telephely {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;

	color: var(--e-global-color-39ca42d);
	text-transform: uppercase;
}


/* ---------------------------------------------------------
   Telephely blokk
   --------------------------------------------------------- */

.munkatars-adatok-telephely,
.munkatars-adatok-kapcsolat {
	display: flex;
	flex-direction: column;
	gap: 6px;
}


/*
 * A telephely város ugyanazt a vizuális hierarchiát kapja,
 * mint normál esetben a munkatárs neve.
 */

.munkatars-telephely-varos {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;

	color: var(--e-global-color-primary);
	text-transform: uppercase;

	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: normal;
	word-break: normal;
}


/* ---------------------------------------------------------
   Kapcsolati adatok
   --------------------------------------------------------- */

.munkatars-email,
.munkatars-telefonszam {
	display: flex;
	align-items: center;
	min-width: 0;
}

.munkatars-email a,
.munkatars-telefonszam a {
	display: inline-flex;
	align-items: center;

	min-width: 0;

	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;

	color: inherit;
	text-decoration: none;
}

.munkatars-adatok-kapcsolat {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.munkatars-telefonszam,
.munkatars-email {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.munkatars-kapcsolat-ikon {
	display: block;
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	object-fit: contain;
}

.munkatars-email a,
.munkatars-telefonszam a {
	font-size: 13px;
	font-weight: 500;
}


/* =========================================================
   <= 1024px
   Munkatárs kártyák egy oszlopba
   ========================================================= */

@media (max-width: 1024px) {

	.munkatarsak-lista {
		grid-template-columns: minmax(0, 1fr);
	}

}


/* =========================================================
   <= 767px
   Kategória + lista egymás alá,
   munkatárs kártya függőleges
   ========================================================= */

@media (max-width: 767px) {

	.munkatarsak-csoport {
		grid-template-columns: minmax(0, 1fr);
	}


	.munkatars {
		flex-direction: column;
	}


	.munkatars-kep {
		width: 100%;
		flex-basis: auto;
		aspect-ratio: 16 / 10;
	}

}
	.munkatars-kep img {
    height: 100% !important;
    object-fit: cover;
}

.munkatarsak-csoport:not(:last-of-type) {
    padding-bottom: 80px;
	border-bottom: 1px solid #C5C5C5;
}
.munkatarsak-csoport:not(:first-of-type) {
    padding-top: 80px;
}
@media(max-width:767px){
	.munkatarsak-csoport:not(:last-of-type) {
    padding-bottom: 40px;
}
.munkatarsak-csoport:not(:first-of-type) {
    padding-top: 40px;
}
}

/* Termék attribútumok */

.termek-meta-lista__row {
    display: flex;
    gap: 5px;
}

.termek-meta-lista__label:after {
    content: ':';
}

.termek-meta-lista__row {
    color: var(--e-global-color-text);
    font-weight: 500;
    line-height: 1.6em;
}
.termek-loop-kep img {
    aspect-ratio: 1.4 / 1;
    object-fit: cover;
    width: 100%;
}