/**
 * Szablon strony: Two-columns (page-two-columns.php)
 * Treść z edytora — dwie kolumny (CSS columns); na wąskim ekranie jedna kolumna.
 */
 .featured-image-header {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.featured-image-header img.wp-image-featured-header {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.featured-image-header img.wp-image-featured-header:hover {
    transform: scale(1.01);
}
.page-template-page-two-columns-php h1 {

    letter-spacing: -1px;
    text-align: center;
    padding: 27px 0;

}

.page-template-page-two-columns-php h2{
    font-weight: 500;
    margin: 0 0 26px;
    font-size: 26px;
}


.bb-fullwidth-promo p
{
    margin: 0 0 15px!important;
}

/* Placeholder zamiast obrazka (szablon Two-columns, filtr the_content) */
.bb-img-placeholder {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	min-height: 12rem;
	padding: 1rem;
	text-align: center;
	border: 2px dashed #c4cd26;
	border-radius: 10px;
	background: repeating-linear-gradient(
		-45deg,
		#f6f7ee,
		#f6f7ee 10px,
		#eef0e4 10px,
		#eef0e4 20px
	);
	color: #505050;
}

.bb-img-placeholder__dims {
	font-size: clamp(1.1rem, 2.5vw, 1.45rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.bb-img-placeholder__label {
	font-size: 0.8rem;
	line-height: 1.35;
	max-width: 18rem;
	opacity: 0.85;
}

.bb-img-placeholder__file {
	font-size: 0.72rem;
	font-family: ui-monospace, monospace;
	opacity: 0.65;
	word-break: break-all;
}

.bb-img-placeholder--2col {
	min-height: 100%;
}

.bb-img-placeholder--hero {
	min-height: clamp(10rem, 28vw, 18rem);
}

.bb-img-placeholder--promo {
	min-height: 200px;
	height: 200px;
}

/* Planer zajęć — podgląd cennika + ikona Excel */
.bb-planer-visuals {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin: 1.5rem auto;
	max-width: 100%;
}

.bb-planer-visuals > img {
	display: block;
	width: min(100%, 1079px);
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.bb-planer-visuals__download {
	display: flex;
	justify-content: center;
}

.bb-planer-visuals__download a {
	display: inline-block;
	line-height: 0;
}

.bb-planer-visuals__download img {
	display: block;
	width: 108px;

	height: auto;
}

/* Wklejany układ WordPress: kontener + 2 kolumny (obraz | tekst) */
.bb-wp-2col {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: clamp(1.25rem, 3vw, 1.9rem);
	margin: 1.5rem 0;
}

.bb-wp-2col__col {
	flex: 1 1 min(17rem, 100%);
	min-width: 0;
}

.bb-wp-2col__col--txt {
	color: #505050;
}

.bb-wp-2col__col--txt > :first-child {
	margin-top: 0;
}

.bb-wp-2col__col--txt > :last-child {
	margin-bottom: 0;
}

.bb-wp-2col__col--img {
	display: flex;
	flex-direction: column;
}

.bb-wp-2col__col--img .bb-img-placeholder {
	flex: 1 1 auto;
}

/* Kilka grafik w jednej kolumnie — jeden wspólny placeholder (nie osobne ramki) */
.bb-wp-2col__img-stack {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
	padding: 1rem;
	border: 2px dashed #c4cd26;
	border-radius: 10px;
	background: repeating-linear-gradient(
		-45deg,
		#f6f7ee,
		#f6f7ee 10px,
		#eef0e4 10px,
		#eef0e4 20px
	);
	overflow: hidden;
}

.bb-wp-2col__img-stack-item {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
}

.bb-wp-2col__img-stack-item + .bb-wp-2col__img-stack-item {
	border-top: 1px dashed rgba(196, 205, 38, 0.45);
}

.bb-wp-2col__img-stack .bb-img-placeholder--stack-part {
	border: none;
	border-radius: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	gap: 0;
}

.bb-wp-2col__img-stack-summary {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 1rem;
	text-align: center;
	pointer-events: none;
	color: #505050;
}

.bb-wp-2col__img-stack-summary .bb-img-placeholder__dims {
	font-size: clamp(1.1rem, 2.5vw, 1.45rem);
	font-weight: 700;
	line-height: 1.2;
}

.bb-wp-2col__img-stack-summary .bb-img-placeholder__dims-detail {
	font-size: 0.78rem;
	opacity: 0.85;
	line-height: 1.3;
}

.bb-wp-2col__img-stack-summary .bb-img-placeholder__label {
	font-size: 0.8rem;
	line-height: 1.35;
	max-width: 20rem;
	opacity: 0.9;
}

.bb-wp-2col__img-stack-summary .bb-img-placeholder__file {
	font-size: 0.72rem;
	font-family: ui-monospace, monospace;
	opacity: 0.7;
	word-break: break-all;
}

.bb-img-placeholder--stack-part .bb-img-placeholder__dims,
.bb-img-placeholder--stack-part .bb-img-placeholder__label,
.bb-img-placeholder--stack-part .bb-img-placeholder__file {
	display: none;
}

.bb-wp-2col__img-stack-item .bb-img-placeholder,
.bb-wp-2col__img-stack-item img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
}

.bb-wp-2col__col--txt h2 + h3,
.bb-wp-2col__col--txt h3 + h3 {
	margin-top: 1.75rem;
}

.bb-wp-2col--flip {
	flex-direction: row-reverse;
}

/* Tekst 60% · obraz 40% (łączyć z bb-wp-2col, np. bb-wp-2col bb-wp-2col--60-40) */
.bb-wp-2col.bb-wp-2col--60-40 .bb-wp-2col__col--txt {
	flex: 3 1 0;
}

.bb-wp-2col.bb-wp-2col--60-40 .bb-wp-2col__col--img {
	flex: 2 1 0;
}

@media (max-width: 782px) {
	.bb-wp-2col {
		flex-direction: column;
		align-items: stretch;
	}

	.bb-wp-2col--flip {
		flex-direction: column-reverse;
	}

	.bb-wp-2col.bb-wp-2col--60-40 .bb-wp-2col__col--txt,
	.bb-wp-2col.bb-wp-2col--60-40 .bb-wp-2col__col--img {
		flex: 1 1 100%;
	}
}

/* Twoje studio — siatka kart + sekcje z PDF */
.bb-studio-hub {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: 2rem 0 2.5rem;
}

.bb-studio-hub__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 100%;
	padding: 1.15rem 1.1rem 1rem;
	border: 1px solid #d8dbe2;
	border-radius: 10px;
	background: #fff;
	color: #505050;
}

.bb-studio-hub__title {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.25;
}

.bb-studio-hub__title a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: #c4cd26;
	text-underline-offset: 3px;
}

.bb-studio-hub__title a:hover,
.bb-studio-hub__title a:focus-visible {
	color: #3d3d3d;
}

.bb-studio-hub__desc {
	flex: 1 1 auto;
	margin: 0 0 1rem;
	font-size: 0.92rem;
	line-height: 1.45;
}

.bb-studio-hub__card .button-all {
	margin-top: auto;
}

.bb-studio-hub-cols {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	margin: 40px 0;
	color: #505050;
}

.bb-studio-hub-cols--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-studio-hub-cols--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-studio-hub-cols__item > :first-child {
	margin-top: 0;
}

.bb-studio-hub-cols__item > :last-child {
	margin-bottom: 0;
}

.bb-studio-hub-banner {
	margin: 2rem 0;
	border-radius: 10px;
	overflow: hidden;
}

.bb-studio-hub-banner img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

/* Sekcja treści „Jak założyć studio” (page content) */
.section-open-studio {
	box-sizing: border-box;
	margin-left: 30px;
	margin-right: 30px;
}

@media (max-width: 1080px) {
	.bb-studio-hub {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.section-open-studio {
		margin-left: 20px;
		margin-right: 20px;
	}
}

@media (max-width: 782px) {
	.bb-studio-hub {
		grid-template-columns: 1fr;
	}

	.bb-studio-hub-cols--3,
	.bb-studio-hub-cols--2 {
		grid-template-columns: 1fr;
	}

	.section-open-studio {
		margin-left: 15px;
		margin-right: 15px;
	}
}

@media (max-width: 480px) {
	.section-open-studio {
		margin-left: 0;
		margin-right: 0;
	}
}