/**
 * Belső oldalak: fejléc kép, tartalom és oldalsáv, bejegyzés kártyák, lapozó.
 *
 * @package duna_group_web
 */

.inner-hero {
	position: relative;
	min-height: 430px;
	padding-top: calc(var(--header-h));
	display: flex;
	align-items: center;
	background-size: cover;
	object-position: top center;
	background-position: center;
	color: #fff;
}

.inner-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,16,24,.25) 0%, rgba(10,16,24,.30) 100%);
}

.inner-hero-content,
.content-shell {
	position: relative;
}

.inner-hero-content {
	z-index: 2;
}

.inner-hero-content h1 {
	font-size: 2.5rem;
	font-weight: 400;
	line-height: 1.1;
	max-width: 100%;
}

.content-shell {
	padding: 60px 0 70px 0;
	background: #f5f7fa;
}

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 40px;
	align-items: start;
}

.content-main:not(.news),
.content-sidebar,
.empty-state {
	border: 1px solid #ddd;
}

.content-sidebar {
	border: 1px solid rgba(0, 0, 0, .15);
}

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

.post-card {
	overflow: hidden;
	background: #fff;
	border: none;
	cursor: pointer;
	transition: all .3s;
	border: 1px solid #999;
}

.post-card-image {
	display: block;
	aspect-ratio: 16/10;
	overflow: hidden;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .45s ease;
}

.post-card:hover .post-card-image img {
	transform: scale(1.04);
}

.post-card-body {
	padding: 30px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.blog .post-card-body,
article.has-post-thumbnail .post-card-body {
    display: block;
    height: unset;
}

.post-card-meta {
    font-size: .75rem;
    color: #fff;
    background: var(--blue);
    margin-bottom: 10px;
    display: inline-block;
    padding: 5px 8px 3px 8px;
    border-radius: 5px;
	font-weight: 600;
}

.post-card-title {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 12px;
	transition: background .3s ease, color .3s ease, transform .3s ease;
}

.post-card-title a {
	transition: background .3s ease, color .3s ease, transform .3s ease;
}

.post-card-excerpt {
	color: #495568;
	margin-bottom: 20px;
}

.post-card-link,
.post-share-links a {
	background: var(--blue);
	color: #fff;
	position: relative;
    padding-left: 25px;
    padding-right: 25px;
    min-height: 44px;
    line-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
	transition: background .3s ease, transform .3s ease;
	margin-top: auto;
}

.container.error-page .post-card-link,
.search-page .post-card-link {
	max-width: 500px;
    margin: 20px auto 0 auto;
}

.post-card:hover .post-card-meta {
	background: var(--blue-dark);
}

.post-card:hover .post-card-link {
	background: var(--blue-dark);
}

.post-share-links a {
	background: var(--blue);
}

.post-share-links a:hover {
	background: var(--blue-dark);
}

.post-card:hover .post-card-title a {
	color: var(--blue-dark);
}

.pagination-wrap {
	margin-top: 40px;
}

.pagination-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.pagination-list a,
.pagination-list span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border-radius: 5px;
	background: #fff;
	border: 1px solid #595959;
	line-height: 35px;
	font-size: 13px;
	transition: all 0.3s;
}

a.next.page-numbers,
a.prev.page-numbers {
    line-height: 1;
    font-size: 1rem;
}

.pagination-list a:hover {
	background: var(--blue-dark);
	color:#fff;
	border-color: var(--blue-dark);
}

.pagination-list .current {
	background: var(--blue);
	color:#fff;
	border-color: var(--blue);
	font-weight: 600;
}

.sidebar-widget + .sidebar-widget { margin-top: 24px; }

.sidebar-title { margin-bottom: 16px; font-size: 1.5rem; line-height: 1.15; }

.sidebar-placeholder { color: var(--muted); }

.content-sidebar--sticky {
	position: sticky;
	top: calc(var(--sidebar-top-offset, var(--header-h)) + 24px);
}

.sidebar-widget--recent-news {
	padding: 25px 30px;
	background: #fff;
}

.sidebar-news-list {
	display: grid;
	gap: 20px;
}

section.post-attachments {
	padding-bottom: 5px;
}

.kozlemenyek-widget .sidebar-news-item {
	grid-template-columns: 1fr;
}

.sidebar-news-item {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 15px;
	align-items: start;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(20,33,52,.25);
}

.sidebar-news-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.sidebar-news-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 11;
	background: #e8edf3;
}

.sidebar-news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .35s ease;
}

.sidebar-news-image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
	color: #fff;
	font-size: 2rem;
	font-weight: 700;
}

.sidebar-news-content {
	display: block;
	min-width: 0;
}

.sidebar-news-item:hover .sidebar-news-image img {
	transform: scale(1.04);
}

.sidebar-news-date {
    font-size: .7rem;
    background-color: var(--blue);
    color: #FFF;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
}

.sidebar-news-title {
	display: block;
	font-size: 1rem;
	line-height: 1.3;
	margin-bottom: 0px;
	transition: color .3s ease;
}

.sidebar-news-item:hover .sidebar-news-title {
	color: var(--blue-dark);
}

.sidebar-news-excerpt {
	font-size: .75rem;
	line-height: 1.5;
	display: block;
}

.sidebar-news-title + .sidebar-news-excerpt {
	margin-top: 6px;
}

.narrow-content { width: min(100% - 40px, 980px); margin: 0 auto; }

.single-post-featured { margin: 0 0 30px 0; overflow:hidden; position: relative; background: #f0f2f5;}

.single-post-featured img { width:100%; height:auto; height: 550px; object-fit: cover; object-position: top center;}

.single-post-featured-link {
	display: block;
	cursor: zoom-in;
	touch-action: pan-y;
}
