/* =============================================================================
   SZABLONY BLOGOWE CPT - style
   Kolory: czerwień #e91e24, czerń #000, szarość #f2f2f2
   Czcionki dziedziczone z ustawień Imprezy (zmienne --hX-font-family).
   ============================================================================= */

.wdb {
	background: #fff;
	color: #000;
}

.wdb-container {
	max-width: 1260px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.875rem;
	padding-right: 1.875rem;
	box-sizing: border-box;
}

.wdb a {
	text-decoration: none;
}

.wdb img.wdb-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

/* === PRZYCISKI === */
.wdb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 3.25rem;
	padding: 0 1.875rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	border: 0;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.wdb-btn--red {
	background: #e91e24;
	color: #fff;
}

.wdb-btn--red:hover {
	background: #000;
	color: #fff;
}

.wdb-btn--ghost {
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	background: transparent;
}

.wdb-btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.wdb-btn--black {
	background: #000;
	color: #fff;
	height: 3.375rem;
	padding: 0 2.125rem;
	align-self: flex-start;
	margin-top: 1.75rem;
}

.wdb-btn--black:hover {
	background: #e91e24;
	color: #fff;
}

.wdb-btn--outline {
	border: 2px solid #000;
	color: #000;
	background: transparent;
	height: 2.875rem;
	padding: 0 1.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	align-self: flex-start;
	margin-top: 1.25rem;
}

.wdb-btn--outline:hover {
	background: #e91e24;
	border-color: #e91e24;
	color: #fff;
}

/* === HERO === */
.wdb-hero {
	position: relative;
	width: 100%;
	min-height: 37.5rem;
	overflow: hidden;
	background: #000;
	display: flex;
}

.wdb-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
	margin: 0;
}

.wdb-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.25) 100%);
}

.wdb-hero__inner {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.625rem;
	padding-top: 5.5rem;
	padding-bottom: 4rem;
}

.wdb-hero__kicker {
	display: flex;
	align-items: center;
	gap: 0.875rem;
}

.wdb-hero__kicker-line {
	display: block;
	width: 3.25rem;
	height: 4px;
	background: #e91e24;
}

.wdb-hero__kicker-text {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
}

.wdb .wdb-hero__title {
	margin: 0;
	font-family: var(--h1-font-family, inherit);
	font-weight: 900;
	font-size: clamp(2.75rem, 8vw, 6.5rem);
	line-height: 0.92;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #fff;
}

.wdb .wdb-hero__title span {
	color: #e91e24;
}

.wdb-hero__text {
	margin: 0;
	max-width: 38.75rem;
	font-size: clamp(1rem, 2.2vw, 1.1875rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.wdb-hero__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 0.375rem;
}

/* === BANERY === */
.wdb-banners {
	padding-top: 3.5rem;
}

.wdb-banners__frame {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f2f2f2;
}

.wdb-banners__track {
	display: flex;
	transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.wdb-banners__slide {
	flex: 0 0 100%;
	min-width: 100%;
	aspect-ratio: 1260 / 300;
	position: relative;
}

.wdb-banners__slide a {
	display: block;
	position: absolute;
	inset: 0;
}

.wdb-banners__slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.wdb-banners__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 3.75rem;
	border: 0;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background 0.25s ease;
	padding: 0;
}

.wdb-banners__nav:hover {
	background: #e91e24;
}

.wdb-banners__nav--prev {
	left: 0;
}

.wdb-banners__nav--next {
	right: 0;
}

.wdb-banners__dots {
	position: absolute;
	bottom: 0.875rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 2;
}

.wdb-banners__dot {
	width: 1.625rem;
	height: 4px;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.25s ease;
}

.wdb-banners__dot.is-active,
.wdb-banners__dot:hover {
	background: #e91e24;
}

/* === WPIS GŁÓWNY + ASIDE === */
.wdb-featured {
	padding-top: 4rem;
	display: grid;
	grid-template-columns: 1.72fr 1fr;
	gap: 2.75rem;
	align-items: start;
}

.wdb-featured__main {
	display: flex;
	flex-direction: column;
}

.wdb-featured__media {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #f2f2f2;
	overflow: hidden;
}

.wdb-featured__badge {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0.5625rem 1rem;
	background: #e91e24;
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	pointer-events: none;
	z-index: 1;
}

.wdb-meta {
	display: flex;
	gap: 1.125rem;
	align-items: center;
	flex-wrap: wrap;
	margin: 1.5rem 0 0.875rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.55);
}

.wdb-meta__cat {
	color: #e91e24;
}

.wdb .wdb-featured__title {
	margin: 0;
	font-family: var(--h2-font-family, inherit);
	font-weight: 700;
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
}

.wdb .wdb-featured__title a {
	color: #000;
	transition: color 0.25s ease;
}

.wdb .wdb-featured__title a:hover {
	color: #e91e24;
}

.wdb-featured__excerpt {
	margin: 1.125rem 0 0;
	max-width: 40rem;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: rgba(0, 0, 0, 0.72);
}

/* Aside */
.wdb-aside {
	border-top: 4px solid #e91e24;
	padding-top: 1.375rem;
}

.wdb .wdb-aside__title {
	margin: 0 0 0.375rem;
	font-family: var(--h3-font-family, inherit);
	font-weight: 700;
	font-size: 1.375rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #000;
}

.wdb-aside__sub {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	color: rgba(0, 0, 0, 0.5);
}

.wdb-popular {
	display: flex;
	flex-direction: column;
}

.wdb-popular__item {
	display: grid;
	grid-template-columns: 2.125rem 6rem 1fr;
	gap: 1rem;
	align-items: center;
	padding: 1.25rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	color: #000;
}

.wdb-popular__num {
	font-family: var(--h3-font-family, inherit);
	font-size: 1.625rem;
	font-weight: 900;
	color: rgba(0, 0, 0, 0.15);
	transition: color 0.25s ease;
}

.wdb-popular__thumb {
	position: relative;
	display: block;
	width: 6rem;
	height: 4.5rem;
	background: #f2f2f2;
	overflow: hidden;
}

.wdb-popular__body {
	display: flex;
	flex-direction: column;
	gap: 0.4375rem;
}

.wdb-popular__cat {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #e91e24;
}

.wdb-popular__name {
	font-family: var(--h4-font-family, inherit);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
	transition: color 0.25s ease;
}

.wdb-popular__item:hover .wdb-popular__name,
.wdb-popular__item:hover .wdb-popular__num {
	color: #e91e24;
}

/* Tagi */
.wdb-tags {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 2px solid #000;
}

.wdb .wdb-tags__title {
	margin: 0 0 0.875rem;
	font-family: var(--h4-font-family, inherit);
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #000;
}

.wdb-tags__cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wdb-tags__item {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: 2rem;
	padding: 0 0.75rem;
	background: #f2f2f2;
	color: #000;
	font-size: 0.75rem;
	font-weight: 600;
	transition: background 0.25s ease, color 0.25s ease;
}

.wdb-tags__item:hover {
	background: #e91e24;
	color: #fff;
}

/* === WSZYSTKIE WPISY === */
.wdb-posts {
	padding-top: 5rem;
	padding-bottom: 6.25rem;
}

.wdb-posts__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid #000;
	margin-bottom: 2.75rem;
	flex-wrap: wrap;
}

.wdb .wdb-posts__title {
	margin: 0;
	font-family: var(--h2-font-family, inherit);
	font-weight: 900;
	font-size: clamp(1.75rem, 3.5vw, 2.375rem);
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: #000;
}

.wdb-filters {
	display: flex;
	gap: 0.625rem;
	flex-wrap: wrap;
}

.wdb-filters__item {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: 2.375rem;
	padding: 0 1.125rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	color: #000;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.wdb-filters__item:hover {
	border-color: #e91e24;
	color: #e91e24;
}

.wdb-filters__item.is-active {
	background: #000;
	border-color: #000;
	color: #fff;
	font-weight: 700;
}

.wdb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem 2.25rem;
}

.wdb-card {
	display: flex;
	flex-direction: column;
	background: #fff;
}

.wdb-card__media {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: #f2f2f2;
	overflow: hidden;
}

.wdb-meta--card {
	gap: 0.875rem;
	margin: 1.25rem 0 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: rgba(0, 0, 0, 0.5);
}

.wdb .wdb-card__title {
	margin: 0;
	font-family: var(--h3-font-family, inherit);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.2;
}

.wdb .wdb-card__title a {
	color: #000;
	transition: color 0.25s ease;
}

.wdb .wdb-card__title a:hover {
	color: #e91e24;
}

.wdb-card__excerpt {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: rgba(0, 0, 0, 0.68);
}

.wdb-posts__empty {
	font-size: 1rem;
	color: rgba(0, 0, 0, 0.6);
}

.wdb-more {
	display: flex;
	justify-content: center;
	margin-top: 4rem;
}

.wdb-more__btn {
	height: 3.625rem;
	padding: 0 2.75rem;
	letter-spacing: 0.1em;
}

.wdb-more__btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
	cursor: wait;
}

/* =============================================================================
   RESPONSYWNOŚĆ
   ============================================================================= */

@media (max-width: 1100px) {
	.wdb-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.wdb-featured {
		grid-template-columns: 1.4fr 1fr;
		gap: 2rem;
	}
}

@media (max-width: 900px) {
	.wdb-featured {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.wdb-hero {
		min-height: 30rem;
	}

	/* Naglowek motywu na mobile naklada sie na hero, stad wiekszy gorny odstep. */
	.wdb-hero__inner {
		padding-top: 8.5rem;
	}
}

@media (max-width: 768px) {
	.wdb-container {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.wdb-banners {
		padding-top: 2.5rem;
	}

	.wdb-banners__slide {
		aspect-ratio: 16 / 6;
	}

	.wdb-banners__nav {
		width: 2.25rem;
		height: 3rem;
	}

	.wdb-featured {
		padding-top: 3rem;
	}

	.wdb-posts {
		padding-top: 3.5rem;
		padding-bottom: 4.5rem;
	}

	.wdb-posts__head {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 560px) {
	.wdb-hero {
		min-height: 26rem;
	}

	.wdb-hero__inner {
		gap: 1.25rem;
		padding-top: 7.5rem;
		padding-bottom: 3rem;
	}

	.wdb-hero__actions .wdb-btn {
		width: 100%;
	}

	.wdb-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.wdb-banners__slide {
		aspect-ratio: 16 / 8;
	}

	.wdb-popular__item {
		grid-template-columns: 1.75rem 4.5rem 1fr;
		gap: 0.75rem;
	}

	.wdb-popular__thumb {
		width: 4.5rem;
		height: 3.375rem;
	}

	.wdb-popular__name {
		font-size: 1rem;
	}

	.wdb-more {
		margin-top: 2.75rem;
	}

	.wdb-more__btn {
		width: 100%;
	}
}
