/*
 * Hírek, aktualitások — wide, multi-band editorial layout on beige.
 * Newest posts always first; sparse volume, airy columns.
 */

.macske-hirek {
	--hirek-beige: #ebdac2;
	--hirek-beige-soft: #f3e8d8;
	--hirek-beige-deep: #e2d5c4;
	text-align: left;
	padding: 1.25rem 0 48px;
	background: var(--hirek-beige);
}

.macske-hirek > .container-fluid {
	max-width: 1380px;
	margin: 0 auto;
}

.macske-hirek__header {
	max-width: none;
	margin: 0 0 1.5rem;
	padding: 0 20px;
}

.macske-hirek__title-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 52px; /* hely a keresőikonnak, cím középen marad */
}

.macske-hirek__title {
	margin: 0 0 50px !important;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	font-family: 'Raleway', sans-serif !important;
	font-weight: 700;
	letter-spacing: 2px;
	text-align: center !important;
	text-transform: none !important;
	color: #9e2060;
}

.macske-hirek__search-toggle {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #d4c4b0;
	border-radius: 8px;
	background: var(--hirek-beige-soft);
	color: #9e2060;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.macske-hirek__search-toggle:hover,
.macske-hirek__search-toggle:focus {
	outline: 2px solid #9e2060;
	outline-offset: 1px;
	border-color: #9e2060;
}

body.macske-hirek-modal-open {
	overflow: hidden;
}

.macske-hirek__modal[hidden] {
	display: none !important;
}

.macske-hirek__modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 10vh 16px 24px;
}

.macske-hirek__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(40, 24, 18, 0.45);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.macske-hirek__modal-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: min(78vh, 640px);
	display: flex;
	flex-direction: column;
	padding: 1.15rem 1.2rem 1.1rem;
	border-radius: 10px;
	background: var(--hirek-beige-soft);
	border: 1px solid var(--hirek-beige-deep);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.macske-hirek__modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.85rem;
}

.macske-hirek__modal-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #9e2060;
}

.macske-hirek__modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #666;
	font-size: 18px;
	cursor: pointer;
}

.macske-hirek__modal-close:hover,
.macske-hirek__modal-close:focus {
	background: rgba(158, 32, 96, 0.08);
	color: #9e2060;
	outline: none;
}

.macske-hirek__search {
	display: block;
	margin: 0;
}

.macske-hirek__search-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 0.95rem;
	border: 1px solid #d4c4b0;
	border-radius: 6px;
	background: #fff;
	font-size: 16px;
	line-height: 1.3;
	color: #333;
}

.macske-hirek__search-input:focus {
	outline: 2px solid #9e2060;
	outline-offset: 1px;
	border-color: #9e2060;
}

.macske-hirek__modal-hint {
	margin: 0.65rem 0 0;
	font-size: 13px;
	color: #777;
}

.macske-hirek__modal-hint[hidden] {
	display: none !important;
}

.macske-hirek__search-results {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	border-top: 1px solid var(--hirek-beige-deep);
}

.macske-hirek__search-results[hidden] {
	display: none !important;
}

.macske-hirek__search-results > li {
	margin: 0;
	border-bottom: 1px solid rgba(212, 196, 176, 0.7);
}

.macske-hirek__search-hit {
	display: block;
	padding: 0.7rem 0.35rem 0.7rem 0.15rem;
	text-decoration: none !important;
	color: inherit;
	border-radius: 4px;
}

.macske-hirek__search-hit:hover,
.macske-hirek__search-hit:focus,
.macske-hirek__search-hit[aria-selected="true"] {
	background: rgba(158, 32, 96, 0.08);
	outline: none;
}

.macske-hirek__search-hit-date {
	display: block;
	margin: 0 0 0.2rem;
	font-size: 12px;
	font-weight: 600;
	color: #888;
}

.macske-hirek__search-hit-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #9e2060;
}

.macske-hirek__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
	gap: 2rem 2.25rem;
	max-width: none;
	margin: 0;
	padding: 0 20px;
	align-items: start;
}

@media (max-width: 960px) {
	.macske-hirek__layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

.macske-hirek__main {
	min-width: 0;
}

.macske-hirek__date {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #888;
}

.macske-hirek__excerpt {
	margin: 0 0 0.55rem;
	font-size: 15px;
	line-height: 1.5;
	color: #444;
}

.macske-hirek__more {
	font-size: 14px;
	font-weight: 700;
	color: #9e2060;
}

/* Lead band — full width of main column */
.macske-hirek__lead {
	margin: 0 0 1.75rem;
	padding: 1.15rem 1.25rem;
	background: var(--hirek-beige-soft);
	border-radius: 8px;
}

.macske-hirek__lead-link {
	display: grid;
	gap: 1rem 1.5rem;
	text-decoration: none !important;
	color: inherit;
}

.macske-hirek__lead.has-thumb .macske-hirek__lead-link {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
}

@media (max-width: 700px) {
	.macske-hirek__lead.has-thumb .macske-hirek__lead-link {
		grid-template-columns: 1fr;
	}
}

.macske-hirek__lead-media {
	margin: 0;
	overflow: hidden;
	border-radius: 4px;
	background: var(--hirek-beige-deep);
}

.macske-hirek__lead-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}

.macske-hirek__lead-title {
	margin: 0 0 0.55rem;
	font-size: clamp(22px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.25;
	color: #9e2060;
	text-decoration: underline;
	text-decoration-color: rgba(158, 32, 96, 0.35);
	text-underline-offset: 0.18em;
}

.macske-hirek__lead-link:hover .macske-hirek__lead-title,
.macske-hirek__lead-link:focus .macske-hirek__lead-title {
	text-decoration-color: #9e2060;
}

.macske-hirek__lead .macske-hirek__excerpt {
	font-size: 16px;
	line-height: 1.55;
}

/* Secondary band — equal-height fill grid (side-by-side, no ragged holes) */
.macske-hirek__secondary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
	align-items: stretch;
	margin: 0 0 1.75rem;
	padding: 0 0 1.75rem;
	border-bottom: 1px solid var(--hirek-beige-deep);
}

.macske-hirek__secondary[hidden] {
	display: none;
}

@media (max-width: 700px) {
	.macske-hirek__secondary {
		grid-template-columns: 1fr;
	}
}

.macske-hirek__sec {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 0.85rem 0.95rem;
	background: var(--hirek-beige-soft);
	border-radius: 8px;
	box-sizing: border-box;
}

.macske-hirek__sec-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 100%;
	text-decoration: none !important;
	color: inherit;
}

.macske-hirek__sec-media {
	margin: 0 0 0.75rem;
	overflow: hidden;
	border-radius: 4px;
	background: var(--hirek-beige-deep);
}

.macske-hirek__sec-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 240px;
	object-fit: cover;
}

.macske-hirek__sec-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.macske-hirek__sec-title {
	margin: 0 0 0.4rem;
	font-size: clamp(16px, 1.8vw, 19px);
	font-weight: 700;
	line-height: 1.3;
	color: #9e2060;
	text-decoration: underline;
	text-decoration-color: rgba(158, 32, 96, 0.3);
	text-underline-offset: 0.16em;
}

.macske-hirek__sec-link:hover .macske-hirek__sec-title,
.macske-hirek__sec-link:focus .macske-hirek__sec-title {
	text-decoration-color: #9e2060;
}

.macske-hirek__sec .macske-hirek__excerpt {
	margin-bottom: 0;
	font-size: 14px;
}

/* Remaining list — masonry: fill shortest column (native) / CSS columns fallback */
.macske-hirek__list {
	column-count: 2;
	column-gap: 1.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 1100px) {
	.macske-hirek__list {
		column-count: 3;
	}
}

@media (max-width: 700px) {
	.macske-hirek__list {
		column-count: 1;
	}
}

.macske-hirek__item--list {
	display: inline-block;
	width: 100%;
	margin: 0 0 1rem;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	vertical-align: top;
}

@supports (grid-template-rows: masonry) {
	.macske-hirek__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: masonry;
		gap: 1rem 1.15rem;
		column-count: auto;
	}

	@media (min-width: 1100px) {
		.macske-hirek__list {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}
	}

	@media (max-width: 700px) {
		.macske-hirek__list {
			grid-template-columns: 1fr;
		}
	}

	.macske-hirek__item--list {
		display: block;
		width: auto;
		margin: 0;
	}
}

.macske-hirek__row {
	margin: 0;
	background: var(--hirek-beige-soft);
	border-radius: 8px;
}

.macske-hirek__row-link {
	display: block;
	box-sizing: border-box;
	padding: 1rem 1.05rem;
	border-radius: 8px;
	text-decoration: none !important;
	color: inherit;
	transition: background 0.15s ease;
}

.macske-hirek__row.has-thumb .macske-hirek__row-link {
	padding-top: 0.85rem;
}

.macske-hirek__row-media {
	margin: 0 0 0.75rem;
	overflow: hidden;
	border-radius: 4px;
	background: var(--hirek-beige-deep);
}

.macske-hirek__row-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
}

/* Slight size variety by position — still natural crops, not forced ratio */
.macske-hirek__item--list:nth-child(3n) .macske-hirek__row-img {
	max-height: 260px;
}

.macske-hirek__item--list:nth-child(3n + 1) .macske-hirek__row-img {
	max-height: 160px;
}

.macske-hirek__sec:nth-child(2) .macske-hirek__sec-img {
	max-height: 180px;
}

.macske-hirek__sec:nth-child(3) .macske-hirek__sec-img {
	max-height: 280px;
}

.macske-hirek__row-body {
	min-width: 0;
}

.macske-hirek__row-link:hover,
.macske-hirek__row-link:focus {
	background: rgba(158, 32, 96, 0.07);
	outline: none;
}

.macske-hirek__row-title {
	margin: 0 0 0.4rem;
	font-size: clamp(16px, 1.9vw, 19px);
	font-weight: 700;
	line-height: 1.3;
	color: #9e2060;
	text-decoration: underline;
	text-decoration-color: rgba(158, 32, 96, 0.35);
	text-underline-offset: 0.18em;
}

.macske-hirek__row-link:hover .macske-hirek__row-title,
.macske-hirek__row-link:focus .macske-hirek__row-title {
	text-decoration-color: #9e2060;
}

.macske-hirek__empty {
	display: none;
	margin: 1rem 0;
	font-size: 15px;
	color: #666;
}

.macske-hirek__empty.is-visible,
.macske-hirek__empty:not([hidden]) {
	display: block;
}

.macske-hirek__empty a {
	color: #9e2060;
}

.macske-hirek__paginate {
	margin-top: 1.5rem;
	text-align: center;
}

/* Sidebar */
.macske-hirek__sidebar {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 1rem 1.05rem;
	text-align: left;
	background: var(--hirek-beige-soft);
	border-radius: 8px;
}

.macske-hirek__sidebar .widget_nav_menu,
.macske-hirek__sidebar .widget_archive,
.macske-hirek__sidebar .macske-newsletter-sidebar,
.macske-hirek__sidebar > div {
	background: transparent;
	padding: 0 0 1.25rem;
	margin: 0;
}

.macske-hirek__sidebar h3 {
	margin: 0 0 0.65rem;
	font-size: 15px;
	font-weight: 700;
	color: #9e2060;
	text-align: center;
}

.macske-hirek__sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.macske-hirek__sidebar li {
	margin: 0 0 0.35rem;
}

.macske-hirek__sidebar a {
	color: #9e2060;
	text-decoration: none;
	font-size: 14px;
}

.macske-hirek__sidebar a:hover,
.macske-hirek__sidebar a:focus {
	text-decoration: underline;
}
