/*
 Theme Name:   Divi Child
 Theme URI:    https://innova-produkt-26.local
 Description:  Light customizations for Innova Produkt (Hírek blog index tweaks)
 Author:       Innova Produkt
 Template:     Divi
 Version:      1.3.2
*/

/* -------------------------------------------------------------------------
   Shared layout: full-width Hírek views
   ------------------------------------------------------------------------- */

body.blog.innova-hirek-index #sidebar,
body.single.innova-hirek-single-view #sidebar,
body.et_no_sidebar.innova-hirek-index #sidebar,
body.et_no_sidebar.innova-hirek-single-view #sidebar {
	display: none !important;
}

body.blog.innova-hirek-index #main-content .container:before,
body.single.innova-hirek-single-view #main-content .container:before {
	display: none !important;
}

body.blog.innova-hirek-index #left-area,
body.single.innova-hirek-single-view #left-area,
body.et_no_sidebar.innova-hirek-index #left-area,
body.et_no_sidebar.innova-hirek-single-view #left-area {
	width: 100% !important;
	padding-right: 0 !important;
	float: none !important;
}

/* -------------------------------------------------------------------------
   Hírek / blog index — news feed cards
   ------------------------------------------------------------------------- */

body.innova-hirek-index #main-content {
	background: #f3f4f6;
}

.innova-hirek-feed {
	max-width: 960px;
	margin: 0 auto;
	padding: 2rem 0 3rem;
}

.innova-hirek-header {
	margin: 0 0 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.innova-hirek-header__title {
	margin: 0;
	font-size: 2rem;
	line-height: 1.2;
	font-weight: 700;
}

.innova-hirek-card {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 1.25rem;
	padding: 1.25rem;
	margin: 0 0 1.25rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	cursor: pointer;
}

.innova-hirek-card__link {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
}

.innova-hirek-card:hover,
.innova-hirek-card:focus-within {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.innova-hirek-card:last-of-type {
	margin-bottom: 0;
}

.innova-hirek-card__media {
	flex: 0 0 240px;
	width: 240px;
	max-width: 240px;
	overflow: hidden;
	border-radius: 8px;
	line-height: 0;
	align-self: flex-start;
}

.innova-hirek-card__media .entry-featured-image-url {
	display: block;
	margin: 0;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.innova-hirek-card__media .entry-featured-image-url img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

.innova-hirek-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.innova-hirek-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0 0 0.4rem;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #6b7280;
}

.innova-hirek-card__meta .published {
	color: #6b7280;
	font-weight: 500;
}

.innova-hirek-card__cats a {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.05);
	color: #374151;
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
}

.innova-hirek-card__cats a:hover {
	background: rgba(0, 0, 0, 0.09);
}

.innova-hirek-card .entry-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	line-height: 1.35;
}

.innova-hirek-card:hover .entry-title,
.innova-hirek-card:focus-within .entry-title {
	color: #111827;
}

.innova-hirek-card__excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #4b5563;
}

.innova-hirek-card__excerpt p {
	margin: 0 0 0.5rem;
}

.innova-hirek-card__excerpt .more-link {
	display: inline-block;
	margin-top: 0.25rem;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Single post — match Hírek feed chrome
   ------------------------------------------------------------------------- */

body.innova-hirek-single-view #main-content {
	background: #f3f4f6;
}

.innova-hirek-single-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 2rem 0 3rem;
}

.innova-hirek-single {
	padding: 1.75rem 1.75rem 2rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
}

.innova-hirek-back {
	display: inline-block;
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: #4b5563;
}

.innova-hirek-back:hover {
	color: #111827;
}

.innova-hirek-single .innova-hirek-card__meta {
	margin-bottom: 0.65rem;
}

.innova-hirek-single__title {
	margin: 0 0 1.25rem;
	font-size: 2rem;
	line-height: 1.25;
	font-weight: 700;
}

.innova-hirek-single__hero {
	margin: 0 0 1.5rem;
	overflow: hidden;
	border-radius: 8px;
	line-height: 0;
}

.innova-hirek-single__hero img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center;
}

.innova-hirek-single .entry-content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #1f2937;
}

.innova-hirek-single .entry-content > *:first-child {
	margin-top: 0;
}

.innova-hirek-single .entry-content p {
	margin: 0 0 1.15em;
}

.innova-hirek-single .entry-content img,
.innova-hirek-single .entry-content figure,
.innova-hirek-single .entry-content .wp-block-image,
.innova-hirek-single .entry-content .wp-block-embed,
.innova-hirek-single .entry-content iframe {
	max-width: 100%;
}

.innova-hirek-single .entry-content figure,
.innova-hirek-single .entry-content .wp-block-image,
.innova-hirek-single .entry-content .wp-block-embed {
	margin: 1.5em 0;
}

.innova-hirek-single .entry-content img {
	height: auto;
	border-radius: 6px;
}

.innova-hirek-single .entry-content .wp-block-embed__wrapper,
.innova-hirek-single .entry-content .et_post_video {
	position: relative;
	aspect-ratio: 16 / 9;
}

.innova-hirek-single .entry-content iframe {
	width: 100%;
}

body.innova-hirek-single-view #comment-wrap,
body.innova-hirek-single-view #respond,
body.innova-hirek-single-view .comments-area {
	display: none !important;
}

@media (max-width: 980px) {
	.innova-hirek-feed,
	.innova-hirek-single-wrap {
		padding: 1.5rem 0 2.5rem;
	}

	.innova-hirek-card {
		flex-direction: column;
		gap: 1rem;
	}

	.innova-hirek-card__media {
		flex: none;
		width: 100%;
		max-width: 100%;
	}

	.innova-hirek-card__media .entry-featured-image-url {
		aspect-ratio: 16 / 9;
	}

	.innova-hirek-header__title {
		font-size: 1.65rem;
	}

	.innova-hirek-single {
		padding: 1.25rem 1.15rem 1.5rem;
	}

	.innova-hirek-single__title {
		font-size: 1.55rem;
	}
}
