/* ===== Single post layout ===== */
.single .inside-article { display: flex; flex-direction: column; }
.single .inside-article > .mk-post-cat { order: 1; }
.single .inside-article > .featured-image { order: 2; }
.single .inside-article > .entry-header { order: 3; }
.single .inside-article > .entry-content { order: 4; }
.single .inside-article > footer.entry-meta { order: 5; }
.single .inside-article > .mk-author-box { order: 6; }
.single .inside-article > .mk-related { order: 7; }

/* 1. Category label */
.mk-post-cat {
	align-self: flex-start;
	display: inline-block;
	background: #FEF3C7;
	color: #92400E;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	padding: 6px 14px;
	border-radius: 999px;
	text-decoration: none;
	margin-bottom: 16px;
}
.mk-post-cat:hover { background: #F59E0B; color: #16181D; }

/* 2. Featured image */
.single .featured-image.page-header-image-single { margin: 0 0 20px; }
.single .featured-image img { width: 100%; height: auto; border-radius: 12px; display: block; }

/* 3. Title + date */
.single .entry-header .entry-title { margin-bottom: 6px; }
.single .entry-header .entry-meta { margin-bottom: 20px; }

/* 4. Tags */
.single footer.entry-meta { display: block; margin-top: 28px; padding-top: 18px; border-top: 1px solid #E5E7EB; }
.mk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; }
.mk-tags-label { font-weight: 700; color: #16181D; }
.mk-tags a { background: #F4F5F7; border: 1px solid #E5E7EB; border-radius: 999px; padding: 3px 12px; color: #16181D; text-decoration: none; }
.mk-tags a:hover { border-color: #F59E0B; color: #9A3412; }

/* 5. Previous / next */
.single .post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.single .post-navigation .nav-previous,
.single .post-navigation .nav-next {
	display: flex; flex-direction: column; gap: 2px;
	background: #F4F5F7; border: 1px solid #E5E7EB; border-radius: 12px; padding: 12px 16px;
	text-align: right; float: none; width: auto; margin: 0;
}
.single .post-navigation .nav-next { grid-column: 2; text-align: left; }
.single .post-navigation .nav-previous { grid-column: 1; }
.single .post-navigation .gp-icon { display: none; }
.mk-nav-label { font-size: 13px; color: #4B5563; font-weight: 600; }
.single .post-navigation a { color: #16181D; font-weight: 700; text-decoration: none; font-size: 15px; line-height: 1.6; }
.single .post-navigation a:hover { color: #9A3412; }

/* 6. Author box */
.mk-author-box {
	display: flex; gap: 16px; align-items: flex-start;
	margin-top: 28px; padding: 20px; background: #F4F5F7; border: 1px solid #E5E7EB; border-radius: 14px;
}
.mk-author-box img.avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.mk-author-text { display: flex; flex-direction: column; }
.mk-author-label { font-size: 13px; color: #4B5563; font-weight: 600; }
.mk-author-name { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 800; font-size: 18px; color: #16181D; text-decoration: none; }
.mk-author-text p { margin: 6px 0 0; font-size: 15px; color: #374151; line-height: 1.8; }

/* 7. Related posts */
.mk-related { margin-top: 32px; }
.mk-related h2 { font-size: 22px; margin: 0 0 14px; }
.mk-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-related-card {
	display: flex; gap: 12px; align-items: center;
	background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px; padding: 10px;
	color: #16181D; text-decoration: none;
}
.mk-related-card:hover { border-color: #F59E0B; color: #9A3412; }
.mk-related-thumb { flex: none; width: 120px; height: 80px; overflow: hidden; border-radius: 8px; }
.mk-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-related-title { font-weight: 700; font-size: 15px; line-height: 1.6; }

@media (max-width: 768px) {
	.single .post-navigation { grid-template-columns: 1fr; }
	.single .post-navigation .nav-next, .single .post-navigation .nav-previous { grid-column: 1; text-align: right; }
	.mk-related-grid { grid-template-columns: 1fr; }
	.mk-related-thumb { width: 96px; height: 64px; }
}
