/* =============================================================================
   Darplay Tweaks - "За нас" and "Правила" (includes/pages.php,
   content/page-*.html). Site palette: green #518459, teal #2f5259,
   mint #e2edde, light #f6f8f7; 5px buttons, 8-12px cards.
   ============================================================================= */

.entry-content > *,
main .wp-block-post-content > * {
	--darplay-green: #518459;
	--darplay-teal: #2f5259;
	--darplay-mint: #e2edde;
	--darplay-light: #f6f8f7;
}

.darplay-designed-page main .wp-block-post-content {
	--wp--style--global--content-size: 1040px;
	--wp--style--global--wide-size: 1040px;
}

main .wp-block-post-content {
	font-size: 17px;
	line-height: 1.65;
}

/* Small green label above the intro. */
.darplay-eyebrow {
	margin-bottom: 4px !important;
	color: #518459;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Larger first sentence. */
.darplay-lead {
	margin-top: 0 !important;
	color: #2f5259;
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 600;
	line-height: 1.35;
}

/* Sections: clear spacing and a short green line under each title. */
.darplay-section-title {
	margin-top: 64px !important;
	margin-bottom: 20px !important;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.2;
}

.darplay-section-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 12px;
	border-radius: 2px;
	background: #518459;
}

/* Photos: rounded, soft shadow, full column width. */
.darplay-photo img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.darplay-page-hero {
	gap: 48px !important;
	margin-top: 8px;
}

/* Mission / vision / values cards. */
.darplay-cards {
	gap: 20px !important;
}

.darplay-card {
	padding: 24px 24px 20px;
	border-radius: 12px;
	background: #f6f8f7;
	border-top: 4px solid #518459;
}

.darplay-card h3 {
	margin: 0 0 8px;
	color: #2f5259;
	font-size: 20px;
}

.darplay-card p {
	margin: 0;
	font-size: 16px;
}

/* Check-mark lists ("Досега", "Важно"). */
ul.darplay-checklist {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.darplay-checklist li {
	position: relative;
	margin: 0 0 12px;
	padding: 2px 0 2px 36px;
}

ul.darplay-checklist li::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e2edde url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23518459' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (min-width: 782px) {
	ul.darplay-checklist--grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 32px;
	}
}

/* Video: full content width, rounded. */
.darplay-video iframe,
.darplay-video .cmplz-placeholder-element {
	border-radius: 12px;
}

/* Rules: three key numbers. */
.darplay-facts {
	gap: 16px !important;
	margin-top: 24px !important;
}

.darplay-fact {
	padding: 20px;
	border-radius: 12px;
	background: #e2edde;
	text-align: center;
}

.darplay-fact p {
	margin: 0;
}

.darplay-fact__value {
	color: #2f5259;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.1;
}

.darplay-fact__label {
	margin-top: 6px !important;
	font-size: 15px;
	color: #3d3d3a;
}

/* Rules: numbered steps with green circles. */
.darplay-steps-wrap {
	gap: 48px !important;
	align-items: flex-start;
}

.darplay-steps-wrap .darplay-photo {
	margin-top: 64px;
}

ol.darplay-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: darplay-step;
}

ol.darplay-steps li {
	position: relative;
	margin: 0 0 20px;
	padding: 0 0 0 56px;
	counter-increment: darplay-step;
}

ol.darplay-steps li::before {
	content: counter(darplay-step);
	position: absolute;
	top: -2px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #518459;
	color: #fff;
	font-weight: 700;
}

ol.darplay-steps li strong {
	display: block;
	color: #2f5259;
}

/* Rules: Interview Play warm-up box. */
.darplay-callout {
	margin-top: 40px !important;
	padding: 24px 28px;
	border-left: 4px solid #518459;
	border-radius: 0 12px 12px 0;
	background: #f6f8f7;
}

.darplay-callout h3 {
	margin: 0 0 8px;
	color: #2f5259;
	font-size: 20px;
}

.darplay-callout p {
	margin: 0;
}

/* Rules: example question. */
.darplay-example {
	margin: 16px 0 !important;
	padding: 16px 24px !important;
	border-left: 4px solid #518459 !important;
	background: #f6f8f7;
	border-radius: 0 12px 12px 0;
	font-size: 18px;
	font-style: italic;
	color: #2f5259;
}

.darplay-example p {
	margin: 0;
}

/* Closing call to action. */
.darplay-cta {
	margin-top: 72px !important;
	padding: 40px 24px !important;
	border-radius: 12px;
	background: #e2edde;
}

.darplay-cta h2 {
	margin: 0 0 8px;
	font-size: clamp(24px, 2.4vw, 30px);
}

.darplay-cta p {
	margin: 0 0 20px;
}

/* Phones. */
@media (max-width: 781px) {
	main .wp-block-post-content {
		font-size: 16px;
	}

	.darplay-page-hero {
		gap: 24px !important;
	}

	.darplay-section-title {
		margin-top: 48px !important;
	}

	.darplay-steps-wrap .darplay-photo {
		margin-top: 0;
	}

	.darplay-cta {
		margin-top: 56px !important;
		padding: 28px 20px !important;
	}

	/* The three key numbers stay in one compact row. */
	.darplay-facts {
		flex-wrap: nowrap !important;
		gap: 8px !important;
	}

	.darplay-fact {
		flex: 1 1 0 !important;
		min-width: 0;
		padding: 14px 6px;
	}

	.darplay-fact__value {
		font-size: 22px;
	}

	.darplay-fact__label {
		font-size: 12px;
		line-height: 1.35;
	}
}

/* "У дома", "В образованието", "На работното място" (0.8.2). */

/* Smaller heading inside a section ("Отзиви от учители"). */
.darplay-subtitle {
	margin-top: 32px !important;
	margin-bottom: 12px !important;
	color: #2f5259;
	font-size: 20px;
}

/* One sentence set apart (At home: "Усещането за споделеност…"). */
.darplay-example.darplay-highlight {
	margin-top: 32px !important;
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 600;
	font-style: normal;
}

/* Quotes follow each other with a little space. */
.darplay-example + .darplay-example {
	margin-top: 12px !important;
}

/* Callouts with buttons (teacher guides). */
.darplay-callout .wp-block-buttons {
	margin-top: 16px;
}

.darplay-callout + .wp-block-heading,
.darplay-callout + .darplay-callout {
	margin-top: 40px !important;
}

/* Certificate next to the video. */
.darplay-media {
	gap: 32px !important;
	align-items: flex-start;
}

/* SlideShare presentation: full width, rounded. */
.wp-block-embed-slideshare iframe {
	width: 100% !important;
	border-radius: 12px;
}

/* A checklist right under the lead sentence or a paragraph. */
.darplay-lead + .darplay-checklist,
.wp-block-column > p + ul.darplay-checklist {
	margin-top: 16px !important;
}
