/* Single Post canvas and article presentation; header and footer stay theme-owned. */
body.single-post:has(.ns-single-post) {
	background-color: #fff;
}

body.single-post:has(.ns-single-post) .accountino-breadcrumb {
	box-sizing: border-box;
	width: min(1192px, calc(100% - 32px));
	max-width: 1192px;
	margin: 0 auto;
	padding: 14px 10px 10px;
	direction: rtl;
}

.ns-single-post {
	--ns-single-bg: #fff;
	--ns-single-surface: #f6f3fb;
	--ns-single-border: #e4dcf0;
	--ns-single-accent: #4b30ff;
	--ns-single-heart: #3e0e57;
	--ns-single-text: #000;
	--ns-single-text-muted: rgba(0, 0, 0, .62);
	--ns-single-shadow: 0 20px 20px rgba(61, 13, 87, .12);

	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	width: min(1192px, calc(100% - 32px));
	max-width: 1192px;
	margin: 0 auto 72px;
	direction: rtl;
	color: var(--ns-single-text);
	font-family: Vazirmatn, sans-serif;
}

.ns-single-post::before {
	position: absolute;
	z-index: -1;
	top: 90px;
	right: 0;
	left: 0;
	height: min(1250px, 95%);
	background:
		radial-gradient(ellipse 44% 27% at 3% 32%, rgba(93, 146, 255, .12), transparent 73%),
		radial-gradient(ellipse 40% 30% at 97% 67%, rgba(189, 96, 224, .11), transparent 72%),
		radial-gradient(ellipse 37% 25% at 61% 12%, rgba(80, 215, 228, .08), transparent 75%);
	content: "";
	pointer-events: none;
}

.ns-single-post__layout {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	direction: rtl;
}

.ns-single-post__main {
	flex: 1 1 auto;
	min-width: 0;
}

.ns-single-post__article {
	box-sizing: border-box;
	min-width: 0;
	padding: 20px;
	border-radius: 40px;
	background: var(--ns-single-bg);
	box-shadow: var(--ns-single-shadow);
}

.ns-single-post__header {
	min-width: 0;
}

.ns-single-post__title {
	margin: 0;
	color: var(--ns-single-text);
	font-family: Vazirmatn, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
	text-wrap: pretty;
	overflow-wrap: anywhere;
}

.ns-single-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 18px;
	min-height: 62px;
	margin-top: 24px;
	padding: 12px 15px;
	border-radius: 14px;
	background: var(--ns-single-surface);
}

.ns-single-post__meta-item {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--ns-single-text);
	font-family: Vazirmatn, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
	overflow-wrap: anywhere;
}

.ns-single-post__meta-icon {
	display: grid;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(250.2deg, #000 36.8%, #3e0e57 103%);
	color: #fff;
}

.ns-single-post__meta-icon i {
	font-size: 15px;
}

.ns-single-post__content {
	min-width: 0;
	margin-top: 30px;
	color: var(--ns-single-text);
	font-family: Vazirmatn, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 2;
}

/* Elementor-authored post bodies can retain dark-canvas text tokens. */
.ns-single-post__content > .elementor {
	color: #000 !important;
	direction: rtl;
	font-family: Vazirmatn, sans-serif;
}

.ns-single-post__content > .elementor :is(h1, h2, h3, h4, h5, h6, p, li, blockquote) {
	color: #000 !important;
	font-family: Vazirmatn, sans-serif;
}

.ns-single-post__content > .elementor .elementor-heading-title,
.ns-single-post__content > .elementor .accountino-custom-heading__title,
.ns-single-post__content > .elementor .elementor-widget-text-editor {
	color: #000 !important;
	font-family: Vazirmatn, sans-serif;
}

.ns-single-post__content .elementor-widget-custom_heading_widget .accountino-custom-heading__title1 span::first-letter {
	color: #000 !important;
}

.ns-single-post__content > .elementor :is(.elementor-heading-title, .accountino-custom-heading__title) * {
	background: transparent !important;
	color: #000 !important;
}

/* Restyle the existing intro widgets without editing saved Elementor content. */
.ns-single-post__content > .elementor > .e-con:first-child > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 20px;
	width: 100%;
	max-width: none;
	margin-top: 30px;
	padding: 10px;
}

.ns-single-post__content > .elementor > .e-con:first-child > .e-con-inner > .e-con-full:first-child {
	box-sizing: border-box;
	min-width: 0;
	padding: 20px;
	border-radius: 24px;
	background: var(--ns-single-surface);
}

.ns-single-post__content > .elementor > .e-con:first-child > .e-con-inner > .e-con-full:last-child {
	box-sizing: border-box;
	min-width: 0;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 10px;
}

.ns-single-post__content > .elementor > .e-con:first-child > .e-con-inner > .e-con-full:last-child .elementor-widget-image img {
	width: min(100%, 324px);
	aspect-ratio: 1;
	border-radius: 24px 8px 24px 24px;
	object-fit: cover;
}

.ns-single-post__content > .elementor > .e-con:first-child > .e-con-inner > .e-con-full:last-child .elementor-heading-title {
	padding-top: 10px;
	font-family: Vazirmatn, sans-serif;
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
}

/* Feature panels are identified by a custom heading followed by repeated rows. */
.ns-single-post__content > .elementor .e-con-full:has(> .elementor-widget-custom_heading_widget):has(> .e-con-boxed.e-con.e-child) {
	box-sizing: border-box;
	min-width: 0;
	margin-top: 30px;
	padding: 20px;
	border-radius: 24px;
	background: var(--ns-single-surface);
}

.ns-single-post__content > .elementor .e-con-full:has(> .elementor-widget-custom_heading_widget):has(> .e-con-boxed.e-con.e-child) > .elementor-widget-custom_heading_widget {
	margin: 0 0 10px;
}

.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner {
	display: grid !important;
	grid-template-columns: 190px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: none;
}

.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner > .elementor-widget-heading {
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	margin: 0;
	padding: 15px;
	border-radius: 14px 8px 14px 14px;
	background: linear-gradient(213.95deg, #000 36.8%, #3e0e57 103%) !important;
	text-align: center;
}

.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner > .elementor-widget-heading > .elementor-widget-container {
	background: transparent !important;
}

.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner > .elementor-widget-heading .elementor-heading-title {
	color: #fff !important;
	font-family: Vazirmatn, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner > .elementor-widget-heading .elementor-heading-title * {
	background: transparent !important;
	color: #fff !important;
}

.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner > .elementor-widget-text-editor {
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 15px;
	border-radius: 14px;
	background: #fff !important;
}

.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner > .elementor-widget-text-editor > .elementor-widget-container {
	background: transparent !important;
}

.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner > .elementor-widget-text-editor p {
	margin: 0;
	color: #000 !important;
	font-family: Vazirmatn, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-align: right;
}

.ns-single-post__content > .elementor .elementor-widget-button_widget .elementor-button {
	min-height: 40px;
	padding: 0 20px;
	border: 0;
	border-radius: 16px 8px 16px 16px;
	background: linear-gradient(207.8deg, #000 36.8%, #3e0e57 103%) !important;
	color: #fff !important;
	font-family: Vazirmatn, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 40px;
}

.ns-single-post__content > .elementor .elementor-widget-button_widget > .elementor-widget-container {
	background: transparent !important;
}

.ns-single-post__content > .elementor .elementor-widget-button_widget .elementor-button:hover {
	color: #fff !important;
	filter: brightness(1.1);
}

.ns-single-post__content > :first-child {
	margin-block-start: 0;
}

.ns-single-post__content :is(p, li, blockquote) {
	font-family: Vazirmatn, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 2;
}

.ns-single-post__content p {
	margin-block: 0 1.15em;
	text-align: justify;
}

.ns-single-post__content :is(h2, h3, h4, h5, h6) {
	margin-block: 1.35em .6em;
	color: #000;
	font-family: Vazirmatn, sans-serif;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	overflow-wrap: anywhere;
}

.ns-single-post__content h2 {
	font-size: clamp(22px, 2vw, 26px);
}

.ns-single-post__content h3 {
	font-size: clamp(19px, 1.7vw, 22px);
}

.ns-single-post__content a {
	color: var(--ns-single-accent);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

.ns-single-post__content a:hover {
	text-decoration: underline;
}

.ns-single-post__content :is(ul, ol) {
	margin-block: 0 1.25em;
	padding-inline-start: 1.5em;
}

.ns-single-post__content ul {
	list-style: disc;
}

.ns-single-post__content ol {
	list-style: decimal;
}

.ns-single-post__content blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-inline-start: 4px solid var(--ns-single-accent);
	border-radius: 0 14px 14px 0;
	background: var(--ns-single-surface);
}

.ns-single-post__content img,
.ns-single-post__content video {
	max-width: 100%;
	height: auto;
}

.ns-single-post__content figure {
	max-width: 100%;
	margin: 1.5em auto;
}

.ns-single-post__content figcaption {
	margin-top: 8px;
	color: var(--ns-single-text-muted);
	font-family: Vazirmatn, sans-serif;
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
}

.ns-single-post__content :is(iframe, embed, object) {
	max-width: 100%;
}

.ns-single-post__content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.ns-single-post .ns-article-intro {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 20px;
	margin-top: 30px;
	padding: 10px;
}

.ns-single-post .ns-article-intro__text {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	border-radius: 24px;
	background: var(--ns-single-surface);
}

.ns-single-post .ns-article-intro__text :is(h2, h3) {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
}

.ns-single-post .ns-article-intro__text p {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 2;
	text-align: justify;
}

.ns-single-post .ns-article-intro__media {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 10px;
	text-align: center;
}

.ns-single-post .ns-article-intro__media img {
	width: min(100%, 324px);
	aspect-ratio: 1;
	border-radius: 24px 8px 24px 24px;
	object-fit: cover;
}

.ns-single-post .ns-article-intro__media figcaption {
	padding-top: 10px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

.ns-single-post .ns-article-features {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	margin-top: 40px;
	padding: 20px;
	border-radius: 24px;
	background: var(--ns-single-surface);
}

.ns-single-post .ns-article-features > :is(h2, h3) {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
}

.ns-single-post .ns-article-features__lead,
.ns-single-post .ns-article-features__outro {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 2;
	text-align: justify;
}

.ns-single-post .ns-article-feature {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.ns-single-post .ns-article-feature__label {
	box-sizing: border-box;
	flex: 0 0 190px;
	padding: 15px;
	border-radius: 14px 8px 14px 14px;
	background: linear-gradient(213.95deg, #000 36.8%, #3e0e57 103%);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.ns-single-post .ns-article-feature__description {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 15px;
	border-radius: 14px;
	background: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-align: right;
	overflow-wrap: anywhere;
}

.ns-single-post .ns-single-post__content a.ns-article-cta,
.ns-single-post .ns-article-cta {
	display: inline-block;
	min-height: 40px;
	margin-top: 30px;
	padding: 0 20px;
	border-radius: 16px 8px 16px 16px;
	background: linear-gradient(207.8deg, #000 36.8%, #3e0e57 103%);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 40px;
	text-decoration: none;
}

.ns-single-post .ns-single-post__content a.ns-article-cta:hover,
.ns-single-post .ns-article-cta:hover {
	color: #fff;
	filter: brightness(1.12);
}

.ns-single-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
	font-size: 14px;
}

.ns-single-post__tags a {
	color: var(--ns-single-accent);
}

.ns-single-post__actions {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding: 8px;
	border: 1px solid var(--ns-single-border);
	border-radius: 16px 8px 16px 16px;
	background: #fff;
}

.ns-single-post__action {
	display: grid;
	box-sizing: border-box;
	width: 35px;
	height: 35px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--ns-single-surface);
	color: var(--ns-single-heart);
	cursor: pointer;
	font-size: 17px;
}

.ns-single-post__action:hover {
	background: #ebe3f4;
	color: var(--ns-single-heart);
}

.ns-single-post__action:focus-visible,
.ns-single-post__share-links a:focus-visible,
.ns-single-post__related a:focus-visible {
	outline: 3px solid var(--ns-single-accent);
	outline-offset: 3px;
}

.ns-single-post__share {
	position: relative;
}

.ns-single-post__share summary {
	list-style: none;
}

.ns-single-post__share summary::-webkit-details-marker {
	display: none;
}

.ns-single-post__share-links {
	position: absolute;
	z-index: 2;
	bottom: calc(100% + 8px);
	right: 0;
	display: flex;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--ns-single-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(61, 13, 87, .14);
}

.ns-single-post__share-links a {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 10px;
	background: var(--ns-single-surface);
	color: var(--ns-single-heart);
}

.ns-single-post__sidebar {
	flex: 0 0 321.8px;
	min-width: 0;
}

.ns-single-post__sidebar-title {
	margin: 0 0 20px;
	font-family: Vazirmatn, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

.ns-single-post__related.accountino-blog-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 22px;
	width: 100%;
	min-width: 0;
}

.ns-single-post__related .accountino-blog-box {
	width: 100%;
	min-width: 0;
}

@media (max-width: 1024px) {
	.ns-single-post__layout {
		flex-direction: column;
	}

	.ns-single-post__main,
	.ns-single-post__sidebar {
		flex: 0 1 auto;
		width: 100%;
	}

	.ns-single-post__related.accountino-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.ns-single-post__article {
		padding: 16px;
		border-radius: 30px;
	}

	.ns-single-post__title {
		font-size: clamp(22px, 5vw, 26px);
	}

	.ns-single-post__meta {
		justify-content: flex-start;
		gap: 10px 14px;
	}

	.ns-single-post__meta-item {
		font-size: 14px;
	}

	.ns-single-post .ns-article-intro {
		grid-template-columns: minmax(0, 1fr);
	}

	.ns-single-post__content > .elementor > .e-con:first-child > .e-con-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner > .elementor-widget-text-editor {
		order: 0;
	}

	.ns-single-post__content > .elementor .e-con-boxed.e-con.e-child > .e-con-inner > .elementor-widget-heading {
		order: 1;
	}

	.ns-single-post .ns-article-feature {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.ns-single-post .ns-article-feature__label {
		flex-basis: auto;
	}
}

@media (max-width: 600px) {
	.ns-single-post {
		width: min(calc(100% - 24px), 1192px);
		margin-bottom: 52px;
	}

	body.single-post:has(.ns-single-post) .accountino-breadcrumb {
		width: min(calc(100% - 24px), 1192px);
		padding: 10px 4px 8px;
	}

	.ns-single-post__article {
		padding: 14px;
		border-radius: 26px;
	}

	.ns-single-post__meta {
		padding: 12px;
	}

	.ns-single-post__meta-icon {
		flex-basis: 28px;
		width: 28px;
		height: 28px;
	}

	.ns-single-post__content {
		margin-top: 24px;
	}

	.ns-single-post__related.accountino-blog-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ns-single-post__sidebar-title {
		font-size: 23px;
	}

	.ns-single-post .ns-article-features {
		padding: 15px;
	}
}

@media (max-width: 360px) {
	.ns-single-post__article {
		padding: 11px;
	}

	.ns-single-post__meta {
		gap: 9px;
	}

	.ns-single-post__meta-item {
		gap: 7px;
		font-size: 13px;
	}
}
