/* Alsaydaliya Custom Single Post */
:root {
	--asp-primary: #0c9f92;
	--asp-primary-dark: #08786f;
	--asp-primary-soft: #eaf9f7;
	--asp-ink: #10213d;
	--asp-muted: #667085;
	--asp-border: #e4eaef;
	--asp-bg: #f7fafb;
	--asp-card: #ffffff;
	--asp-shadow: 0 14px 38px rgba(16, 33, 61, 0.07);
}

body.asp-custom-single-post {
	background: var(--asp-bg);
}

.asp-page-shell {
	direction: rtl;
	padding: 30px 0 80px;
	color: var(--asp-ink);
}

.asp-container {
	max-width: 1240px;
}

.asp-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 24px;
	color: #8a96a6;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
}

.asp-breadcrumbs a {
	color: #687587;
	text-decoration: none;
}

.asp-breadcrumbs a:hover {
	color: var(--asp-primary);
}

.asp-breadcrumbs span[aria-current="page"] {
	overflow: hidden;
	text-overflow: ellipsis;
}

.asp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 34px;
	align-items: start;
}

.asp-main,
.asp-sidebar {
	min-width: 0;
}

.asp-article {
	background: transparent;
}

.asp-article-header {
	margin-bottom: 24px;
	text-align: right;
}

.asp-category-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.asp-category-pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 12px;
	border: 1px solid #c8efea;
	border-radius: 999px;
	background: var(--asp-primary-soft);
	color: var(--asp-primary-dark);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.asp-title {
	max-width: 900px;
	margin: 0 0 14px;
	color: var(--asp-ink);
	font-size: clamp(34px, 4.3vw, 55px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.035em;
}

.asp-lead {
	max-width: 900px;
	margin: 0 0 18px;
	color: #536174;
	font-size: 18px;
	line-height: 1.9;
}

.asp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	color: #778496;
	font-size: 13px;
}

.asp-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.asp-meta svg {
	width: 17px;
	height: 17px;
	fill: var(--asp-primary);
}

.asp-featured {
	margin: 0 0 28px;
	overflow: hidden;
	border-radius: 22px;
	background: #eef3f5;
	box-shadow: var(--asp-shadow);
}

.asp-featured-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 680px;
	object-fit: cover;
}

.asp-toc {
	margin: 0 0 32px;
	padding: 22px 24px;
	border: 1px solid var(--asp-border);
	border-radius: 18px;
	background: var(--asp-card);
	box-shadow: 0 8px 26px rgba(16, 33, 61, 0.04);
}

.asp-toc-heading,
.asp-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.asp-eyebrow {
	display: block;
	margin-bottom: 5px;
	color: var(--asp-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.asp-toc h2,
.asp-section-heading h2,
.asp-author-copy h2 {
	margin: 0;
	color: var(--asp-ink);
	font-size: 24px;
	font-weight: 800;
}

.asp-toc-toggle {
	border: 0;
	background: transparent;
	color: var(--asp-primary-dark);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

#asp-toc-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 26px;
	margin: 20px 0 0;
	padding: 0 20px 0 0;
}

#asp-toc-list li {
	padding-inline-start: 4px;
	color: var(--asp-primary);
}

#asp-toc-list a {
	color: #465468;
	font-size: 14px;
	line-height: 1.7;
	text-decoration: none;
}

#asp-toc-list a:hover {
	color: var(--asp-primary);
}

#asp-toc-list .asp-toc-level-3 {
	margin-inline-start: 16px;
}

.asp-article-content {
	padding: 34px 38px;
	border: 1px solid var(--asp-border);
	border-radius: 22px;
	background: var(--asp-card);
	box-shadow: var(--asp-shadow);
	color: #28384d;
	font-size: 18px;
	line-height: 2.05;
}

.asp-article-content > :first-child {
	margin-top: 0;
}

.asp-article-content > :last-child {
	margin-bottom: 0;
}

.asp-article-content h2,
.asp-article-content h3 {
	scroll-margin-top: 125px;
	color: var(--asp-primary-dark);
	font-weight: 800;
	line-height: 1.45;
}

.asp-article-content h2 {
	margin: 46px 0 16px;
	font-size: 30px;
}

.asp-article-content h3 {
	margin: 34px 0 12px;
	font-size: 23px;
}

.asp-article-content p,
.asp-article-content ul,
.asp-article-content ol,
.asp-article-content blockquote {
	margin-bottom: 22px;
}

.asp-article-content a {
	color: var(--asp-primary-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.asp-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

.asp-article-content blockquote {
	padding: 18px 22px;
	border: 0;
	border-inline-start: 4px solid var(--asp-primary);
	border-radius: 14px;
	background: var(--asp-primary-soft);
	color: #355168;
}

.asp-article-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.asp-article-content th,
.asp-article-content td {
	padding: 13px 15px;
	border: 1px solid var(--asp-border);
}

.asp-article-content th {
	background: #f0faf8;
}

.asp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0;
}

.asp-tags a {
	padding: 7px 12px;
	border-radius: 999px;
	background: #edf3f5;
	color: #536174;
	font-size: 13px;
	text-decoration: none;
}

.asp-tags a:hover {
	background: var(--asp-primary-soft);
	color: var(--asp-primary-dark);
}

.asp-author-box {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	margin-top: 28px;
	padding: 24px;
	border: 1px solid var(--asp-border);
	border-radius: 20px;
	background: var(--asp-card);
	box-shadow: 0 8px 24px rgba(16, 33, 61, 0.04);
}

.asp-author-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--asp-primary), var(--asp-primary-dark));
	color: #fff;
	font-size: 34px;
	font-weight: 800;
}

.asp-author-copy p {
	margin: 8px 0 0;
	color: #5e6b7b;
	line-height: 1.8;
}

.asp-related {
	margin-top: 34px;
}

.asp-section-heading {
	margin-bottom: 18px;
}

.asp-section-heading > a {
	color: var(--asp-primary-dark);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.asp-related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.asp-related-card {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 13px;
	padding: 18px;
	border: 1px solid var(--asp-border);
	border-radius: 16px;
	background: var(--asp-card);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.asp-related-card:hover {
	transform: translateY(-2px);
	border-color: #bce8e3;
	box-shadow: 0 12px 26px rgba(16, 33, 61, 0.06);
}

.asp-related-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--asp-primary-soft);
	color: var(--asp-primary);
}

.asp-related-icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.asp-related-card h3 {
	margin: 0 0 7px;
	font-size: 16px;
	line-height: 1.55;
}

.asp-related-card h3 a {
	color: var(--asp-ink);
	text-decoration: none;
}

.asp-related-card h3 a:hover {
	color: var(--asp-primary);
}

.asp-related-card span {
	color: #8994a2;
	font-size: 12px;
}

.asp-sidebar {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 18px;
}

.asp-side-card {
	padding: 22px;
	border: 1px solid var(--asp-border);
	border-radius: 18px;
	background: var(--asp-card);
	box-shadow: 0 8px 24px rgba(16, 33, 61, 0.04);
}

.asp-side-title {
	margin: 0 0 18px;
	color: var(--asp-ink);
	font-size: 20px;
	font-weight: 800;
}

.asp-popular-list {
	display: grid;
	gap: 17px;
}

.asp-popular-item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 11px;
	align-items: flex-start;
}

.asp-popular-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--asp-primary-soft);
	color: var(--asp-primary-dark);
	font-size: 13px;
	font-weight: 800;
}

.asp-popular-item h3 {
	margin: 0 0 5px;
	font-size: 14px;
	line-height: 1.55;
}

.asp-popular-item h3 a {
	color: #2d3a4d;
	text-decoration: none;
}

.asp-popular-item h3 a:hover {
	color: var(--asp-primary);
}

.asp-popular-item time {
	color: #98a2b1;
	font-size: 11px;
}

.asp-newsletter-card {
	text-align: center;
	background: linear-gradient(180deg, #f1fbfa 0%, #ffffff 100%);
}

.asp-newsletter-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 16px;
	background: #dbf5f2;
	color: var(--asp-primary);
}

.asp-newsletter-icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.asp-newsletter-card p {
	margin: -7px 0 16px;
	color: #6b7788;
	font-size: 13px;
	line-height: 1.8;
}

.asp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 43px;
	padding: 9px 14px;
	border-radius: 11px;
	background: var(--asp-primary);
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.asp-button:hover {
	background: var(--asp-primary-dark);
}

.asp-category-list {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.asp-category-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 11px;
	color: #435165;
	text-decoration: none;
}

.asp-category-list a:hover {
	background: var(--asp-primary-soft);
	color: var(--asp-primary-dark);
}

.asp-category-list small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	border-radius: 9px;
	background: #edf3f5;
	color: #738092;
}

.asp-comments {
	margin-top: 34px;
	padding: 28px;
	border: 1px solid var(--asp-border);
	border-radius: 20px;
	background: var(--asp-card);
}

.asp-page-links {
	margin-top: 24px;
}

@media (max-width: 1024px) {
	.asp-layout {
		grid-template-columns: minmax(0, 1fr) 260px;
		gap: 24px;
	}

	.asp-title {
		font-size: clamp(32px, 5vw, 46px);
	}

	.asp-article-content {
		padding: 28px;
	}
}

@media (max-width: 820px) {
	.asp-page-shell {
		padding-top: 20px;
	}

	.asp-layout {
		grid-template-columns: 1fr;
	}

	.asp-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.asp-sidebar > * {
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.asp-page-shell {
		padding-bottom: 48px;
	}

	.asp-breadcrumbs {
		margin-bottom: 18px;
	}

	.asp-title {
		font-size: 31px;
	}

	.asp-lead {
		font-size: 16px;
	}

	.asp-meta {
		gap: 10px 14px;
	}

	.asp-featured {
		border-radius: 16px;
	}

	.asp-article-content {
		padding: 22px 18px;
		border-radius: 16px;
		font-size: 16px;
		line-height: 1.95;
	}

	.asp-article-content h2 {
		font-size: 25px;
	}

	.asp-article-content h3 {
		font-size: 21px;
	}

	#asp-toc-list,
	.asp-related-grid,
	.asp-sidebar {
		grid-template-columns: 1fr;
	}

	.asp-author-box {
		grid-template-columns: 64px minmax(0, 1fr);
		padding: 20px 18px;
	}

	.asp-author-avatar {
		width: 64px;
		height: 64px;
		font-size: 26px;
	}
}
