/**
 * Chi tiết bài viết — khớp prototype index.html (media trong nội dung).
 */

/* Ảnh & video trong thân bài */
.tntech-blog-detail-body img,
.tntech-blog-detail-body video {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
	box-shadow:
		0 12px 30px -8px rgb(15 23 42 / 0.16),
		0 4px 10px -4px rgb(15 23 42 / 0.08);
	margin: 2rem auto;
}

.tntech-blog-detail-body figure.wp-block-image,
.tntech-blog-detail-body figure {
	margin: 2rem 0;
}

.tntech-blog-detail-body figure.alignleft,
.tntech-blog-detail-body figure.alignright {
	width: auto;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.tntech-blog-detail-body figcaption,
.tntech-blog-detail-body .wp-element-caption {
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
	margin-top: 0.5rem;
	line-height: 1.5;
}

/* Embed (YouTube, v.v.) */
.tntech-blog-detail-body iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
	border-radius: 1rem;
	margin: 2rem auto;
	aspect-ratio: 16 / 9;
	min-height: 12.5rem;
	box-shadow: 0 12px 30px -8px rgb(15 23 42 / 0.16);
}

.tntech-blog-detail-body .wp-block-embed__wrapper iframe {
	box-shadow:
		0 12px 30px -8px rgb(15 23 42 / 0.16),
		0 4px 10px -4px rgb(15 23 42 / 0.08);
}

/* Typography trong entry */
.tntech-blog-detail-body > p,
.tntech-blog-detail-body p {
	margin-bottom: 1.25rem;
}

.tntech-blog-detail-body h2,
.tntech-blog-detail-body h3,
.tntech-blog-detail-body h4 {
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
	color: #782e01;
}

.tntech-blog-detail-body ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin-bottom: 1.25rem;
}

.tntech-blog-detail-body a {
	color: #d78131;
	text-decoration: underline;
}

.tntech-blog-detail-body a:hover {
	color: #782e01;
}

/* Nội dung copy từ nguồn khác hay kèm style inline — cho đọc nhất quán với theme */
.tntech-blog-detail-body p[style] {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
	background-color: transparent !important;
	text-align: inherit !important;
}
