/* Schemalogy Single Post v1.6 */

.schemalogy-custom-single .entry-header-outer,
.schemalogy-custom-single .featured-area,
.schemalogy-custom-single .breadcrumbs,
.schemalogy-custom-single .breadcrumb,
.schemalogy-custom-single #breadcrumb {
	display: none !important;
}

.scsp-page {
	direction: rtl;
	background:
		radial-gradient(circle at 6% 12%, rgba(111,181,219,.08), transparent 20%),
		radial-gradient(circle at 94% 30%, rgba(155,207,232,.08), transparent 18%),
		#f6fafc;
	padding: 24px 18px 64px;
	color: #263943;
}

.scsp-shell {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

.scsp-page * {
	box-sizing: border-box;
}

.scsp-breadcrumb {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 12px;
	font-size: 12px;
	line-height: 1.8;
	color: #8b98a0;
}

.scsp-breadcrumb a {
	color: #627a88 !important;
	text-decoration: none !important;
}

.scsp-hero {
	display: grid;
	grid-template-columns: minmax(0,1.35fr) minmax(320px,.85fr);
	gap: 30px;
	align-items: center;
	margin-bottom: 18px;
	padding: 24px;
	background: #fff;
	border: 1px solid #e1ebf0;
	border-radius: 19px;
	box-shadow: 0 10px 32px rgba(31,50,66,.035);
}

.scsp-category-pill {
	display: inline-flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 5px 12px;
	background: #edf8fd;
	border: 1px solid #d7ebf5;
	border-radius: 999px;
	color: #176e9d !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
}

.scsp-hero h1 {
	margin: 0;
	font-size: 34px;
	line-height: 1.65;
	font-weight: 850;
	color: #112f45;
	letter-spacing: -.25px;
}

.scsp-lead {
	margin: 12px 0 0;
	font-size: 15.5px;
	line-height: 2.1;
	color: #5a6872;
}

.scsp-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 19px;
	padding-top: 16px;
	border-top: 1px solid #edf2f5;
}

.scsp-author-mini {
	display: flex;
	align-items: center;
	gap: 9px;
}

.scsp-author-mini img {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid #e4f0f6;
}

.scsp-author-mini > div {
	display: flex;
	flex-direction: column;
}

.scsp-author-mini strong {
	font-size: 12.5px;
	line-height: 1.7;
	color: #2f4654;
}

.scsp-author-mini span {
	font-size: 10.5px;
	line-height: 1.6;
	color: #87949c;
}

.scsp-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	color: #75838c;
}

.scsp-meta-icon {
	color: #2381ae;
	font-size: 15px;
}

.scsp-hero-image {
	overflow: hidden;
	border-radius: 14px;
	background: #edf2f4;
}

.scsp-hero-image img {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.scsp-layout {
	display: grid;
	grid-template-columns: 290px minmax(0,1fr);
	gap: 20px;
	align-items: stretch;
	direction: ltr;
}

.scsp-sidebar {
	position: relative;
	min-width: 0;
	direction: rtl;
}

.scsp-jannah-content {
	min-width: 0;
	direction: rtl;
}

.scsp-jannah-content > .main-content,
.scsp-jannah-content .main-content {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
}

.scsp-author-card,
.scsp-toc-card {
	background: #fff;
	border: 1px solid #e3ebf0;
	border-radius: 15px;
	box-shadow: 0 5px 20px rgba(31,50,66,.024);
}

.scsp-author-card {
	padding: 18px;
	margin-bottom: 14px;
}

.scsp-sidebar-title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 14px;
}

.scsp-sidebar-title > span {
	display: block;
	width: 28px;
	height: 4px;
	background: #4f9fc6;
	border-radius: 999px;
}

.scsp-sidebar-title h2 {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	font-weight: 800;
	color: #174a70;
}

.scsp-author-photo {
	display: block;
	width: 118px;
	height: 118px;
	margin: 0 auto 12px;
	object-fit: cover;
	border-radius: 16px;
}

.scsp-author-card h3 {
	margin: 0;
	text-align: center;
	font-size: 16px;
	line-height: 1.8;
	font-weight: 800;
	color: #2b3f4b;
}

.scsp-author-role {
	margin-top: 2px;
	text-align: center;
	font-size: 11px;
	line-height: 1.7;
	color: #829099;
}

.scsp-author-card p {
	margin: 12px 0 14px;
	font-size: 12.5px;
	line-height: 2;
	color: #596a74;
}

.scsp-author-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	background: #f6fbfe;
	border: 1px solid #9bc5d9;
	border-radius: 9px;
	color: #176181 !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
}

.scsp-sticky-zone {
	position: sticky;
	top: 90px;
}

.scsp-toc-card {
	overflow: hidden;
}

.scsp-toc-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 16px;
	background: #fff;
	border: 0;
	color: #213d4e;
	font-family: inherit;
	cursor: pointer;
}

.scsp-toc-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 800;
}

.scsp-toc-icon {
	color: #2681ac;
}

.scsp-toc-arrow {
	font-size: 16px;
	color: #70828d;
	transition: transform .2s ease;
}

.scsp-toc-card.is-open .scsp-toc-arrow {
	transform: rotate(180deg);
}

.scsp-toc-list {
	max-height: calc(100vh - 150px);
	overflow-y: auto;
	padding: 0 10px 12px;
}

.scsp-toc-list ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.scsp-toc-list a {
	display: block;
	padding: 8px 10px;
	border-right: 3px solid transparent;
	border-radius: 7px;
	color: #5d6e78 !important;
	text-decoration: none !important;
	font-size: 11.5px;
	line-height: 1.75;
}

.scsp-toc-list a:hover,
.scsp-toc-list a.is-active {
	background: #eef8fd;
	border-right-color: #42a0cb;
	color: #176181 !important;
}

.scsp-toc-list .scsp-toc-h3 a {
	padding-right: 24px;
	font-size: 10.8px;
}

.scsp-mobile-toc-anchor {
	display: none;
}

@media (max-width: 980px) {
	.scsp-hero {
		grid-template-columns: 1fr;
	}

	.scsp-hero-image {
		order: -1;
	}

	.scsp-hero-image img {
		height: auto;
		aspect-ratio: 16/9;
	}

	.scsp-layout {
		grid-template-columns: 250px minmax(0,1fr);
	}
}

@media (max-width: 760px) {
	.scsp-page {
		padding: 14px 10px 40px;
		overflow: visible;
	}

	.scsp-shell,
	.scsp-hero,
	.scsp-layout,
	.scsp-sidebar,
	.scsp-jannah-content {
		overflow: visible !important;
	}

	.scsp-hero {
		display: flex;
		flex-direction: column;
		padding: 16px;
		border-radius: 14px;
	}

	.scsp-hero-content {
		width: 100%;
	}

	.scsp-hero h1 {
		font-size: 25px;
	}

	.scsp-hero-image {
		order: 2;
		width: 100%;
	}

	.scsp-meta-row {
		margin-bottom: 10px;
	}

	.scsp-mobile-toc-anchor {
		display: block;
		width: 100%;
	}

	.scsp-layout {
		display: block;
		direction: rtl;
	}

	.scsp-sidebar {
		width: 100%;
	}

	.scsp-author-card {
		display: none;
	}

	.scsp-sticky-zone {
		position: static;
		top: auto;
	}

	.scsp-toc-card {
		width: 100%;
		margin-top: 10px;
		border-radius: 12px;
		box-shadow: none;
		transition: box-shadow .2s ease, border-radius .2s ease;
	}

	.scsp-toc-card.scsp-mobile-sticky {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100% !important;
		margin: 0;
		z-index: 99999;
		border-radius: 0 0 12px 12px;
		box-shadow: 0 6px 18px rgba(31,50,66,.12);
	}

	body.admin-bar .scsp-toc-card.scsp-mobile-sticky {
		top: 46px;
	}

	.scsp-toc-list {
		max-height: 0;
		overflow: hidden;
		padding-bottom: 0;
		transition: max-height .25s ease, padding .25s ease;
	}

	.scsp-toc-card.is-open .scsp-toc-list {
		max-height: 65vh;
		overflow-y: auto;
		padding-bottom: 12px;
	}

	.scsp-toc-card.scsp-mobile-sticky .scsp-toc-toggle {
		min-height: 52px;
	}

	.scsp-toc-card.scsp-mobile-sticky.is-open {
		max-height: 75vh;
		overflow: hidden;
	}

	.scsp-toc-card.scsp-mobile-sticky.is-open .scsp-toc-list {
		max-height: calc(75vh - 52px);
		overflow-y: auto;
	}

	.scsp-mobile-toc-spacer {
		display: none;
		width: 100%;
	}

	.scsp-mobile-toc-spacer.is-active {
		display: block;
	}
}
