/*
 * NeoYug blog single styling.
 *
 * Restores the blog-detail look after the Elementor template (17793) that
 * used to render it was deleted. The post body now renders as native
 * Gutenberg markup inside the theme's .entry-content, so these rules target
 * that markup (.wp-block-heading, p, .wp-block-list, .wp-block-quote,
 * .wp-block-image) instead of the old .nyw-bd-* custom-widget classes.
 *
 * Values are lifted 1:1 from the recovered blog-detail stylesheet:
 *   body  = Poppins 18px / 170% / -0.02em / rgba(21,25,44,0.8) / 400
 *   h3    = Poppins 24px / 150% / 500 / #15192c
 *   phone = body 15px, h3 18px
 *
 * Scoped to single blog posts only (body.single-post). The plugin enqueues it
 * on is_singular('post'), so every blog post picks it up automatically.
 */

/* --- Body copy --- */
.single-post .entry-content,
.single-post .post-inner .entry-content,
.single-post article.post .entry-content {
	color: rgba(21, 25, 44, 0.8);
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	line-height: 170%;
	letter-spacing: -0.02em;
	font-weight: 400;
}

.single-post .entry-content p {
	margin: 0 0 1em;
}

.single-post .entry-content p:last-child {
	margin-bottom: 0;
}

/* --- Headings --- */
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content .wp-block-heading {
	color: #15192c;
	font-family: 'Poppins', sans-serif;
	letter-spacing: -0.02em;
}

.single-post .entry-content h3,
.single-post .entry-content h3.wp-block-heading {
	font-size: 24px;
	line-height: 150%;
	font-weight: 500;
	margin: 1.5em 0 0.5em;
}

.single-post .entry-content h3:first-child {
	margin-top: 0;
}

/* The blog-conversions flow promotes the opening sentence to an h2. */
.single-post .entry-content h2,
.single-post .entry-content h2.wp-block-heading {
	font-size: 32px;
	line-height: 140%;
	font-weight: 600;
	margin: 1.25em 0 0.5em;
}

.single-post .entry-content h2:first-child {
	margin-top: 0;
}

/* --- Lists --- */
.single-post .entry-content ul.wp-block-list,
.single-post .entry-content ul {
	margin: 0 0 1em 1.25em;
	padding: 0;
}

.single-post .entry-content li {
	margin: 0 0 0.4em;
}

/* --- Quote (single standout line) --- */
.single-post .entry-content .wp-block-quote,
.single-post .entry-content blockquote {
	border-left: 4px solid #8d22c3;
	background: #fdf1ed;
	margin: 1.5em 0;
	padding: 16px 20px;
	border-radius: 8px;
	font-style: normal;
}

.single-post .entry-content .wp-block-quote p:last-child {
	margin-bottom: 0;
}

/* --- Images --- */
.single-post .entry-content figure.wp-block-image,
.single-post .entry-content figure.wp-block-image img,
.single-post .entry-content img {
	border-radius: 12px;
	height: auto;
	max-width: 100%;
}

/* Featured banner, if the theme prints one above the content. */
.single-post .featured-media img,
.single-post .post-thumbnail img {
	border-radius: 12px;
}

/* --- Phone --- */
@media (max-width: 767px) {
	.single-post .entry-content,
	.single-post .post-inner .entry-content,
	.single-post article.post .entry-content {
		font-size: 15px;
	}

	.single-post .entry-content h3,
	.single-post .entry-content h3.wp-block-heading {
		font-size: 18px;
	}

	.single-post .entry-content h2,
	.single-post .entry-content h2.wp-block-heading {
		font-size: 24px;
	}
}

/* =========================================================================
 * Native blog single (v1.9.1) — hero + body + h3 cards.
 * Widths and image crop matched to the original Blog Detail Page design.
 * ========================================================================= */

.nybb-single { max-width: 100%; }

/* Hero band — gradient carries the title, meta AND the banner image, exactly
   like the original (title in the deep-purple top, banner on the fade to white). */
.nybb-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(172deg, #261A48 10.16%, rgba(48, 34, 86, 0) 53.96%),
	            linear-gradient(180deg, #E96F46 22.6%, #FFF 98.3%);
	padding: 120px 24px 0;
	text-align: center;
}
/* NeoYug logo halftone dots — subtle, top corners, echoing the homepage / program pages */
.nybb-hero::before,
.nybb-hero::after {
	content: "";
	position: absolute;
	top: -30px;
	width: 340px;
	height: 340px;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.8px, transparent 2.2px);
	background-size: 17px 17px;
	opacity: 0.16;
	pointer-events: none;
	z-index: 0;
}
.nybb-hero::before {
	left: -40px;
	-webkit-mask-image: radial-gradient(circle at top left, #000 10%, transparent 68%);
	        mask-image: radial-gradient(circle at top left, #000 10%, transparent 68%);
}
.nybb-hero::after {
	right: -40px;
	-webkit-mask-image: radial-gradient(circle at top right, #000 10%, transparent 68%);
	        mask-image: radial-gradient(circle at top right, #000 10%, transparent 68%);
}
.nybb-hero__inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }
.nybb-hero__media { position: relative; z-index: 1; max-width: 1140px; margin: 40px auto 0; padding: 0 24px; }
.nybb-hero__img { display: block; width: 100%; height: auto; border-radius: 12px; }
.nybb-hero__title {
	color: #FFFFFF;
	font-family: 'Poppins', sans-serif;
	font-size: 56px;
	line-height: 68px;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 0 0 24px;
}
.nybb-hero__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px;
	color: rgba(255, 255, 255, 0.8);
	font-family: 'Poppins', sans-serif;
	font-size: 24px;
}
.nybb-hero__date { display: inline-flex; align-items: center; gap: 8px; }
.nybb-hero__icon { display: block; }

/* Article body — full site container width (was too narrow before). */
.nybb-article {
	max-width: 1140px;
	margin: 16px auto 24px;
	padding: 0 24px;
}
.blog-full-details > :first-child { margin-top: 0; }
.blog-full-details {
	color: rgba(21, 25, 44, 0.8);
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	line-height: 170%;
	letter-spacing: -0.02em;
	font-weight: 400;
}
.blog-full-details p { margin: 0 0 1em; }
.blog-full-details p:last-child { margin-bottom: 0; }
.blog-full-details ul.wp-block-list,
.blog-full-details ul { margin: 0 0 1em 1.25em; padding: 0; }
.blog-full-details li { margin: 0 0 0.4em; }

/* Images — the original cropped every content image to a wide 384/167 banner. */
.blog-full-details .wp-block-image img,
.blog-full-details img {
	width: 100%;
	aspect-ratio: 384 / 167;
	object-fit: cover;
	border-radius: 12px;
	height: auto;
}
.blog-full-details .wp-block-image { margin: 0 0 1.5em; }
.blog-full-details .wp-block-separator { display: none; }

/* Embeds (YouTube podcast videos) — full width, 16/9, rounded. */
.blog-full-details .wp-block-embed { margin: 0 0 1.5em; }
.blog-full-details .wp-block-embed__wrapper { position: relative; }
.blog-full-details .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.blog-full-details .wp-embed-aspect-16-9 .wp-block-embed__wrapper > iframe { position: absolute; inset: 0; }
.blog-full-details .wp-block-embed iframe {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	border-radius: 12px;
	display: block;
}
.blog-full-details .wp-embed-aspect-16-9 .wp-block-embed__wrapper > iframe { min-height: 0; }

/* H3 cards — the transformer script builds .h3-card-container; these back it up */
.blog-full-details .h3-card-container {
	background: #f4e9f9;
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 24px;
	position: relative;
	overflow: hidden;
	font-family: 'Poppins', sans-serif;
}
.blog-full-details .h3-card-title {
	color: #15192c;
	font-family: 'Poppins', sans-serif;
	font-size: 24px;
	line-height: 150%;
	font-weight: 500;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
}
.blog-full-details .h3-card-divider {
	border: none;
	border-top: 1px solid rgba(21, 25, 44, 0.2);
	margin: 20px 0 16px;
}
.blog-full-details .h3-card-content {
	color: rgba(21, 25, 44, 0.6);
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	line-height: 170%;
	font-weight: 400;
	letter-spacing: -0.02em;
}
.blog-full-details .h3-card-content p { margin-bottom: 1em; }
.blog-full-details .h3-card-content p:last-child { margin-bottom: 0; }

/* Phone */
@media (max-width: 768px) {
	.nybb-hero { padding: 84px 20px 16px; }
	.nybb-hero__media { margin-top: 28px; padding: 0 16px; }
	.nybb-hero::before, .nybb-hero::after { width: 200px; height: 200px; }
	.nybb-hero__title { font-size: 28px; line-height: 1.2; }
	.nybb-hero__meta { font-size: 18px; gap: 16px; }
	.nybb-article { margin: 28px auto 56px; }
	.blog-full-details .wp-block-image img,
	.blog-full-details img { aspect-ratio: 157 / 82; height: 375px; }
	.blog-full-details .h3-card-container { border-radius: 12px; padding: 16px; margin-bottom: 16px; }
	.blog-full-details .h3-card-title { font-size: 16px; margin-bottom: 16px; }
	.blog-full-details .h3-card-content { font-size: 14px; }
	.blog-full-details .h3-card-divider { margin: 16px 0; }
}
