/* Karshenas Core — widget styles */

/* ---------- Hero ---------- */
.ksc-hero {
	position: relative;
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	background: #fff;
	padding-bottom: 113px;
}

/* Kill wrapper paddings so the shape starts flush at the very top like the demo */
.e-con:has(> .e-con-inner > .elementor-element .ksc-hero),
.e-con:has(> .elementor-element .ksc-hero),
.elementor-widget-ksc-hero,
.elementor-widget-ksc-hero > .elementor-widget-container {
	padding: 0 !important;
	margin: 0 !important;
}

/* Dark indigo shape — top corners are cut off-screen in the demo, so flat top;
   only the bottom-right corner is rounded (100px), bottom edge slants up to the left */
.ksc-hero__shape {
	position: relative;
	overflow: hidden;
	margin-inline-start: 5.5%;
	margin-inline-end: 21.4%;
	min-height: 690px;
	border-radius: 0;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%);
	background: #1f156d;
}

/* Flipped horizontally, exactly like the Figma demo */
.ksc-hero__bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scaleX(-1);
}

/* Darker toward the text side (right), statue visible near the portrait (left) */
.ksc-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(31, 21, 109, 0.9) 0%, #1f156d 100%);
}

/* Text column (sits on the right of the shape, leaves room for the portrait) */
.ksc-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
	text-align: right;
	color: #fff;
	max-width: 640px;
	padding: 190px 28px 100px;
	margin-inline-start: 0;
}

.ksc-hero__pretitle {
	font-size: 14px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 1px;
}

.ksc-hero__title {
	font-size: 36px;
	font-weight: 800;
	line-height: 48px;
	color: #fff;
	margin: 0;
}

.ksc-hero__subtitle {
	display: inline-block;
	font-size: 14px;
	font-weight: 400;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	padding: 6px 20px;
}

.ksc-hero__desc {
	font-size: 16px;
	font-weight: 400;
	line-height: 2.1;
	color: rgba(255, 255, 255, 0.92);
	margin: 8px 0 0;
	max-width: 560px;
}

.ksc-hero__actions {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.ksc-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #caa05c;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	padding: 12px 20px;
	border-radius: 10px;
	transition: background 0.25s ease, transform 0.25s ease;
}

.ksc-hero__btn svg {
	width: 20px;
	height: 20px;
}

.ksc-hero__btn:hover {
	background: #b58c48;
	color: #fff;
	transform: translateY(-2px);
}

.ksc-hero__divider {
	width: 1px;
	align-self: stretch;
	background: rgba(255, 255, 255, 0.25);
}

.ksc-hero__phone {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
}

.ksc-hero__phone-icon svg {
	width: 26px;
	height: 26px;
	color: #caa05c;
}

.ksc-hero__phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.7;
}

.ksc-hero__phone-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.ksc-hero__phone-number {
	font-size: 15px;
	font-weight: 700;
	color: #caa05c;
	direction: ltr;
	text-align: right;
}

/* Portrait (transparent PNG) + white card + glass golden rings + stats card
   Geometry taken 1:1 from the Figma export (page 1512px):
   group at 141,140 (369.6x600) — card 27.6,80.4 (318x519.6) —
   rings 460px@(96,290) & 400px@(126,320) — stats 404x124@(196,654) */
.ksc-hero__aside {
	position: absolute;
	top: 140px;
	left: 9.3%;
	width: 24.5%;
	min-width: 300px;
	max-width: 380px;
	z-index: 3;
}

.ksc-hero__ring {
	position: absolute;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	z-index: 1;
	pointer-events: none;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.ksc-hero__ring--outer {
	width: 124%;
	left: -12%;
	top: 25%;
	box-shadow: inset 0 0 0 1px #caa05c, 0 15px 30px rgba(0, 0, 0, 0.08);
}

.ksc-hero__ring--inner {
	width: 108%;
	left: -4%;
	top: 30%;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 0 0 0.5px #caa05c;
}

.ksc-hero__card {
	position: absolute;
	left: 7.5%;
	top: 13.4%;
	width: 86%;
	height: 86.6%;
	background: #fff;
	border-radius: 20px;
	z-index: 2;
}

.ksc-hero__portrait {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	z-index: 3;
}

.ksc-hero__stats {
	position: absolute;
	top: 85.7%;
	left: 15%;
	width: 110%;
	z-index: 4;
	display: flex;
	justify-content: space-between;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
	padding: 15px 12px;
}

.ksc-hero__stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.ksc-hero__stat:not(:last-child) {
	border-inline-end: 1px solid #ededed;
}

.ksc-hero__stat-icon {
	color: #caa05c;
	font-size: 22px;
	line-height: 1;
}

.ksc-hero__stat-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.ksc-hero__stat-number {
	font-size: 18px;
	font-weight: 700;
	color: #040404;
}

.ksc-hero__stat-label {
	font-size: 13px;
	color: #828282;
}

/* ---------- Shared section header ---------- */
.ksc-sec-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 12px;
	padding-inline: 20px;
}

.ksc-sec-head__badge {
	display: inline-block;
	font-size: 16px;
	font-weight: 400;
	color: #1f156d;
	margin-bottom: 4px;
}

.ksc-sec-head__title {
	font-size: 32px;
	font-weight: 800;
	color: #000;
	margin: 0 0 6px;
	line-height: 1.3;
}

.ksc-sec-head__sub {
	font-size: 20px;
	font-weight: 300;
	color: #828282;
	margin: 0;
	line-height: 1.7;
}

/* ---------- Stories (لحظات حقوقی) ---------- */
.ksc-stories {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 56px 0 8px;
}

.ksc-stories .ksc-stories__track {
	margin-top: 24px;
}

.ksc-stories__track {
	display: flex;
	gap: 28px;
	justify-content: center;
	flex-wrap: nowrap;
	overflow-x: auto;
	padding: 8px 24px 16px;
	scrollbar-width: none;
}

.ksc-stories__track::-webkit-scrollbar {
	display: none;
}

.ksc-story {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
	text-decoration: none;
}

.ksc-story__img {
	display: block;
	box-sizing: border-box;
	width: 106px;
	height: 106px;
	border-radius: 50%;
	border: 2px solid #d92d77;
	padding: 4px;
	overflow: hidden;
	transition: transform 0.25s ease;
}

.ksc-story:hover .ksc-story__img {
	transform: scale(1.06);
}

.ksc-story__img img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
	object-fit: cover;
}

.ksc-story__label {
	font-size: 16px;
	color: #040404;
}

.ksc-story {
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	padding: 0;
}

/* دکمه پخش روی استوری ویدیودار */
.ksc-story__img {
	position: relative;
}

.ksc-story__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(43, 29, 154, 0.85);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ksc-story__play svg {
	width: 16px;
	height: 16px;
}

.ksc-story:hover .ksc-story__play {
	opacity: 1;
}

/* ---------- Modal (پنجره ویدیو استوری) ---------- */
.ksc-modal[hidden] {
	display: none;
}

.ksc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
}

.ksc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(4, 4, 4, 0.72);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.ksc-modal__box {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	background: #fff;
	border-radius: 18px;
	padding: 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.ksc-modal__close {
	position: absolute;
	top: 12px;
	inset-inline-start: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #f2f2f2;
	color: #040404;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ksc-modal__close:hover {
	background: #eae8f5;
	color: #2b1d9a;
}

.ksc-modal__media {
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #000;
	margin-bottom: 16px;
}

.ksc-modal__media video,
.ksc-modal__media iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}

.ksc-modal__title {
	font-size: 18px;
	font-weight: 700;
	color: #040404;
	margin: 0 0 8px;
}

.ksc-modal__desc {
	font-size: 15px;
	color: #828282;
	line-height: 2;
	margin: 0;
}

/* ---------- Services (خدمات ما) ---------- */
.ksc-services {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 24px 0 88px;
}

/* کانتینر 1320 وسط‌چین؛ همه‌چیز نسبت به آن مثل دمو چیده می‌شود */
.ksc-services__inner {
	position: relative;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* شکل دقیق پس‌زمینه دمو (SVG اصلی): سمت چپ، زیر هدر و دو کارت اول، لبه پایین تیز.
   در عرض 1320 دقیقاً 744×600 رندر می‌شود مثل فایل HTML. */
.ksc-services--shape .ksc-services__bg {
	position: absolute;
	left: -1.8%;
	top: 0;
	width: 56.4%;
	aspect-ratio: 744 / 600;
	z-index: 0;
	pointer-events: none;
}

.ksc-services__bg svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ksc-services .ksc-sec-head,
.ksc-services__grid {
	position: relative;
	z-index: 1;
}

.ksc-services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* کارت‌ها: 312×244، گردی 12. دو کارت راست سفید، دو کارت چپ رنگ شکل تیز را می‌گیرند. */
.ksc-service {
	border: none;
	border-radius: 12px;
	min-height: 244px;
	padding: 40px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	text-decoration: none;
}

/* دو کارت سمت راست (روی زمینه سفید): سفید با سایه ملایم */
.ksc-service:nth-child(1),
.ksc-service:nth-child(2) {
	background: #ffffff;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

/* دو کارت سمت چپ (روی شکل تیز گرادینتی): نیمه‌شفاف تا رنگ یاسیِ شکل نمایان شود */
.ksc-service:nth-child(3),
.ksc-service:nth-child(4) {
	background: rgba(255, 255, 255, 0.35);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.ksc-service:hover {
	transform: translateY(-6px);
}

.ksc-service:nth-child(1):hover,
.ksc-service:nth-child(2):hover {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* آیکون دمو: دایره #f7f7f7 با آیکون خطی بنفش داخلش (48px) */
.ksc-service__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #f7f7f7;
	color: #2b1d9a;
	margin-bottom: 4px;
}

.ksc-service__icon svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.ksc-service__icon--img {
	background: transparent;
	width: 56px;
	height: 56px;
}

.ksc-service__icon--img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ksc-service__title {
	font-size: 16px;
	font-weight: 700;
	color: #040404;
	margin: 0;
}

.ksc-service__text {
	font-size: 14px;
	font-weight: 400;
	color: #828282;
	line-height: 2;
	margin: 0;
}

@media (max-width: 1024px) {
	.ksc-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ksc-stories__track {
		justify-content: flex-start;
	}
}

@media (max-width: 600px) {
	.ksc-services__grid {
		grid-template-columns: 1fr;
	}

	.ksc-sec-head__title {
		font-size: 24px;
	}

	.ksc-sec-head__sub {
		font-size: 16px;
	}
}

/* ---------- Common for content sections ---------- */
.ksc-about,
.ksc-toplawyer,
.ksc-team,
.ksc-quote,
.ksc-faq,
.ksc-testis,
.ksc-blog,
.ksc-cta {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
}

.ksc-pill-txt {
	font-size: 14px;
	color: #2b1d9a;
}

/* ---------- About (درباره وکیل) ---------- */
.ksc-about {
	padding: 72px 0 48px;
}

.ksc-about__grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 48px;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 24px;
	align-items: start;
}

.ksc-about__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

/* کادر متن با حاشیه نازک #ededed مثل دمو (626×244) */
.ksc-about__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	padding: 20px;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px #ededed;
}

.ksc-about__pill {
	font-size: 14px;
	color: #2b1d9a;
}

.ksc-about__heading {
	font-size: 24px;
	font-weight: 800;
	color: #000;
	line-height: 1.7;
	margin: 0;
}

.ksc-about__text {
	font-size: 16px;
	color: #828282;
	line-height: 2;
	margin: 0;
	text-align: justify;
}

.ksc-about__features {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 8px;
}

.ksc-about__feature {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

/* آیکون ویژگی: مربع گرد 50px با پس‌زمینه #eae8f5 و گلیف خطی بنفش (عین دمو) */
.ksc-about__ficon {
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eae8f5;
	color: #2b1d9a;
	border-radius: 12px;
}

.ksc-about__ficon svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.ksc-about__fbody {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ksc-about__fbody b {
	font-size: 16px;
	font-weight: 700;
	color: #040404;
}

.ksc-about__fbody i {
	font-style: normal;
	font-size: 14px;
	color: #828282;
}

.ksc-about__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding: 12px 24px;
	border: 1px solid #2b1d9a;
	border-radius: 16px;
	color: #2b1d9a;
	font-size: 16px;
	transition: all 0.25s ease;
}

.ksc-about__btn:hover {
	background: #2b1d9a;
	color: #fff;
}

/* بوم رسانه با نسبت دقیق دمو (746×600) — همه اجزا با مختصات دقیق پیکسلی جای‌گذاری می‌شوند */
.ksc-about__media {
	position: relative;
	width: 100%;
	aspect-ratio: 746 / 600;
}

/* شکل بزرگ گرادینتی (SVG دقیق دمو): L108 T0 638×600 در بوم 746×600 */
.ksc-about__mediabg {
	position: absolute;
	left: 14.5%;
	top: 0;
	width: 85.5%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.ksc-about__mediabg svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* گرید نقطه‌ها: L424 T165 140×50 در بوم */
.ksc-about__dots {
	position: absolute;
	left: 56.8%;
	top: 27.5%;
	width: 18.8%;
	height: 12%;
	background: radial-gradient(#c7c2e0 2px, transparent 2.5px);
	background-size: 20px 20px;
	background-position: 0 0;
	opacity: 0.95;
	z-index: 1;
	pointer-events: none;
}

/* ویدیو: L0 T24 312×312 در بوم 746×600 */
.ksc-about__video {
	position: absolute;
	top: 4%;
	left: 0;
	width: 41.8%;
	aspect-ratio: 1;
	border-radius: 16px;
	overflow: hidden;
	display: block;
	z-index: 2;
}

.ksc-about__video img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* دکمه پخش: حلقه یاسی نیمه‌شفاف 88px + دایره توپُر بنفش داخلش (عین دمو) */
.ksc-about__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: rgba(234, 232, 245, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksc-about__play-inner {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #2b1d9a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksc-about__play svg {
	width: 24px;
	height: 24px;
}

/* عکس دوم: L338 T235 312×312 در بوم 746×600 */
.ksc-about__photo {
	position: absolute;
	top: 39.2%;
	left: 45.3%;
	width: 41.8%;
	aspect-ratio: 1;
	border-radius: 16px;
	overflow: hidden;
	z-index: 2;
}

.ksc-about__photo img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* ---------- Top lawyer (وکیل برتر) ---------- */
.ksc-toplawyer {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 48px;
	max-width: 1320px;
	margin-inline: auto;
	padding: 64px 24px;
	align-items: center;
}

/* بوم رسانه با نسبت دقیق دمو (744×600). همه اجزا با مختصات پیکسلی دمو جای‌گذاری می‌شوند */
.ksc-toplawyer__media {
	position: relative;
	width: 100%;
	aspect-ratio: 744 / 600;
	order: 2; /* دمو: تصویر سمت چپ، متن سمت راست */
}

/* شکل یاسی پس‌زمینه (همان SVG خدمات): گوشه بالا گرد، پایین‌چپ تیز */
.ksc-toplawyer__shape {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.ksc-toplawyer__shape svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* قاب وکیل: L255 T72 312×429، بالای قوسی، حاشیه طلایی 2px، پس‌زمینه سفید (عین دمو) */
.ksc-toplawyer__frame {
	position: absolute;
	left: 34.3%;
	top: 12%;
	width: 41.9%;
	height: 71.5%;
	z-index: 2;
	background: #fff;
	border-radius: 1000px 1000px 0 0;
	box-shadow: inset 0 0 0 2px #caa05c;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

/* عکس وکیل (PNG شفاف) که از بالای قاب بیرون می‌زند */
.ksc-toplawyer__frame img {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	z-index: 1;
	margin-top: -12%;
}

/* کارت سفید نشان‌ها: L191 T438 440×128 */
.ksc-toplawyer__badges {
	position: absolute;
	left: 25.7%;
	top: 73%;
	width: 59.1%;
	height: 21.3%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
	padding: 16px 24px;
	z-index: 4;
}

.ksc-toplawyer__badges img {
	width: 72px;
	height: auto;
}

.ksc-toplawyer__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.ksc-toplawyer__pill {
	font-size: 16px;
	font-weight: 700;
	color: #040404;
}

/* کادر دور تیتر و متن با حاشیه نازک #ededed (عین دمو) */
.ksc-toplawyer__box {
	width: 100%;
	padding: 24px;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px #ededed;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ksc-toplawyer__heading {
	font-size: 24px;
	font-weight: 800;
	color: #2b1d9a;
	line-height: 1.7;
	margin: 0;
}

.ksc-toplawyer__text {
	font-size: 16px;
	color: #828282;
	line-height: 2;
	text-align: justify;
	margin: 0;
}

.ksc-toplawyer__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 16px;
}

.ksc-toplawyer__btn {
	background: #2b1d9a;
	color: #fff;
	font-size: 16px;
	padding: 12px 24px;
	border-radius: 10px;
	transition: background 0.25s ease;
}

.ksc-toplawyer__btn:hover {
	background: #1f156d;
	color: #fff;
}

.ksc-toplawyer__divider {
	width: 1px;
	align-self: stretch;
	background: #d8d8d8;
}

.ksc-toplawyer__phone {
	display: flex;
	flex-direction: column;
	line-height: 1.7;
	color: #040404;
	font-size: 14px;
}

.ksc-toplawyer__phone b {
	color: #2b1d9a;
	font-weight: 700;
	direction: ltr;
	text-align: right;
}

/* ---------- Team (وکلای ما) ---------- */
.ksc-team {
	display: grid;
	grid-template-columns: 0.89fr 1fr; /* راست: متن — چپ: اسلایدر (نسبت ۶۰۳:۶۷۷، ولی واکنش‌گرا تا نشکند) */
	gap: 40px;
	max-width: 1320px;
	margin-inline: auto;
	padding: 48px 0 64px;
	align-items: start;
	overflow-x: clip; /* شکلِ پس‌زمینه که به چپ می‌رود اسکرول افقی نسازد */
}
/* متن ~۶۰px پایین‌تر از بالای کارت شروع می‌شود (عین دمو، به‌جای وسط‌چین) */
.ksc-team__content { padding-top: 60px; }
.ksc-team__content { order: 1; } /* سمت راست */
.ksc-team__slider { order: 2; }  /* سمت چپ */

/* اسلایدر تیم با فلش دو طرف و نقطه‌های صفحه‌بندی */
.ksc-team__slider {
	position: relative;
	display: flex;
	align-items: center;
}

/* شکل یاسیِ پشت کارت‌ها — همان SVG دمو (۷۴۴×۶۰۰، لبهٔ پایین‌ـراست اریب/تیز، تا پایین می‌آید) */
.ksc-team__bg {
	position: absolute;
	right: 29px;
	top: -100px;
	width: 744px;
	max-width: 110%;
	height: 600px;
	z-index: 0;
	pointer-events: none;
	display: block;
}

.ksc-team__slider > *:not(.ksc-team__bg) {
	position: relative;
	z-index: 1;
}

.ksc-team__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e3e0f0;
	background: #fff;
	color: #2b1d9a;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(31, 21, 109, 0.08);
	transition: all 0.2s ease;
}
.ksc-team__arrow--prev { right: -6px; }
.ksc-team__arrow--next { left: -6px; }

.ksc-team__arrow:hover {
	background: #2b1d9a;
	color: #fff;
}

/* نمایِ اسلایدر: ~۹۵.۷٪ ستون = ۲ کارت + فاصلهٔ ۲۴؛ واکنش‌گرا و چسبیده به لبهٔ چپ (عین دمو) */
.ksc-team__cards {
	flex: 0 0 95.7%;
	max-width: 95.7%;
	overflow: hidden;
	margin-right: auto;
}

.ksc-team__track {
	display: flex;
	gap: 24px;
	transition: transform 0.45s ease;
}

.ksc-team__card {
	flex: 0 0 calc((100% - 24px) / 2);
	box-sizing: border-box;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
	padding: 16px 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: center;
	text-decoration: none;
}

.ksc-team__photo {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 10px;
}

.ksc-team__card img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.ksc-team__card b {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: #040404;
}

.ksc-team__role {
	font-size: 14px;
	color: #828282;
	line-height: 20px;
}

.ksc-team__dots {
	position: absolute;
	bottom: -32px;
	inset-inline-end: 50%;
	transform: translateX(50%);
	display: flex;
	gap: 6px;
}

.ksc-team__dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d8d8d8;
}

.ksc-team__dots span.is-active {
	width: 22px;
	border-radius: 4px;
	background: #2b1d9a;
}

.ksc-team__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.ksc-team__pill {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: #040404;
}

.ksc-team__heading {
	align-self: stretch;
	font-size: 24px;
	font-weight: 800;
	color: #2b1d9a;
	line-height: 32px;
	margin: -8px 0 0; /* فاصلهٔ برچسب-عنوان ۱۶px مطابق دمو */
}

.ksc-team__text {
	align-self: stretch;
	font-size: 16px;
	color: #828282;
	line-height: 28px;
	margin: -8px 0 0; /* فاصلهٔ عنوان-پاراگراف مطابق دمو */
	text-align: justify;
}

/* دکمه مشاهده بیشتر با کادرِ نیلیِ ۱px (۱۹۷×۴۸ rad16، عین دمو) */
.ksc-team__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 24px;
	color: #2b1d9a;
	margin-top: 8px;
	padding: 11px 40px;
	border-radius: 16px;
	border: 1px solid #2b1d9a;
	transition: all 0.2s ease;
}

.ksc-team__more:hover {
	background: #2b1d9a;
	color: #fff;
}

/* ---------- Quote banner (سایه قانون) ---------- */
/* بنر «در سایه قانون» — بوم دقیق دمو 1320×370. بنفش پایین (61٪)، وکیل راست بیرون‌زده، مجسمه چپ */
.ksc-quote {
	padding: 120px 0 72px; /* فاصله بیشتر بالای بنر برای بیرون‌زدگی سر وکیل */
}

.ksc-quote__inner {
	position: relative;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* بدنه بنفش بنر: از 38٪ بالای بوم شروع می‌شود (بخش پایینی) */
.ksc-quote__body {
	position: relative;
	background: #2b1d9a;
	border-radius: 32px;
	min-height: 228px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 6px; /* شعار/فلش/متن چسبیده مثل دمو */
	padding: 40px 373px 40px 64px; /* راست: شعار به وسط می‌آید، متن به چپ */
}

/* مجسمه عدالت سمت چپ، کم‌رنگ، سرش از بالای بنر بیرون می‌زند (بدون کلیپ) */
.ksc-quote__bg {
	position: absolute;
	left: 3%;
	bottom: 0;
	top: -32%;
	width: 22.5%;
	height: 132%;
	object-fit: contain;
	object-position: left bottom;
	opacity: 0.28;
	z-index: 1;
	pointer-events: none;
}

/* بدنه بنر گوشه‌گرد؛ فقط مجسمه اجازه بیرون‌زدگی دارد، بقیه محدود می‌مانند */
.ksc-quote__body::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 32px;
	box-shadow: inset 0 0 0 9999px transparent;
	pointer-events: none;
}

/* عکس PNG شفاف وکیل سمت راست، بلندتر از بنر، سرش از بالای بنفش بیرون می‌زند */
.ksc-quote__portrait {
	position: absolute;
	right: 6%;
	bottom: 0;
	width: 17%;
	height: auto !important;
	z-index: 2;
	pointer-events: none;
}

/* شعار سمت راست */
.ksc-quote__slogan {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-end;
	text-align: right;
}

.ksc-quote__slogan b {
	font-size: 24px;
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
}

.ksc-quote__slogan i {
	font-style: normal;
	font-size: 28px;
	font-weight: 700;
	color: #caa05c;
	white-space: nowrap;
}

/* فلش طلایی بین شعار و متن */
.ksc-quote__arrow {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: 60px;
	height: 44px;
	color: #caa05c;
}

.ksc-quote__arrow svg {
	width: 100%;
	height: 100%;
}

/* متن سمت چپ */
.ksc-quote__text {
	position: relative;
	z-index: 1;
	flex: 1;
	font-size: 16px;
	color: #fff;
	line-height: 2;
	text-align: justify;
	max-width: 480px;
	margin: 0;
}

/* ---------- FAQ ---------- */
.ksc-faq {
	display: grid;
	grid-template-columns: 1fr 1.02fr;
	gap: 24px;
	max-width: 1320px;
	margin-inline: auto;
	padding: 48px 24px 72px;
	align-items: start;
}

.ksc-faq__list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.ksc-faq__list-head h3 {
	font-size: 20px;
	font-weight: 800;
	color: #040404;
	margin: 0;
}

.ksc-faq__archive {
	font-size: 14px;
	font-weight: 600;
	color: #828282;
}

.ksc-faq__item {
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 12px;
	margin-bottom: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ksc-faq__item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #040404;
}

.ksc-faq__item summary::-webkit-details-marker {
	display: none;
}

.ksc-faq__chev {
	width: 10px;
	height: 10px;
	border-inline-start: 2px solid #828282;
	border-bottom: 2px solid #828282;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
}

.ksc-faq__item[open] .ksc-faq__chev {
	transform: rotate(135deg);
}

.ksc-faq__answer {
	padding: 0 20px 18px;
	font-size: 15px;
	color: #828282;
	line-height: 2;
	border-top: 1px solid #f2f2f2;
	padding-top: 14px;
}

.ksc-faq__card {
	order: 2;
	position: relative;
	border: 1.5px solid #caa05c;
	border-radius: 16px;
	background: linear-gradient(135deg, #fffdf9 0%, #faf4ea 100%);
	overflow: hidden;
	min-height: 410px;
}

/* مجسمه عدالت سمت چپ کارت، کف‌چسب (عین دمو) */
.ksc-faq__card-img {
	position: absolute;
	left: 16px;
	bottom: 0;
	width: 34%;
	height: auto !important;
	max-height: 92%;
	object-fit: contain;
	object-position: left bottom;
	opacity: 0.95;
	z-index: 0;
}

/* بدنه متن سمت راست کارت؛ پدینگ چپ جای مجسمه را باز می‌کند */
.ksc-faq__card-body {
	position: relative;
	z-index: 1;
	padding: 40px 32px 40px 38%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.ksc-faq__card-title {
	font-size: 20px;
	font-weight: 800;
	color: #040404;
	margin: 0;
}

.ksc-faq__card-title b {
	color: #caa05c;
}

.ksc-faq__card-body > p {
	font-size: 16px;
	color: #040404;
	line-height: 2;
	margin: 0;
	text-align: justify;
}

.ksc-faq__row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding-bottom: 10px;
	border-bottom: 1px dashed #d8c9ac;
	font-size: 16px;
}

/* آیکون طلایی گرد تلفن/ایمیل */
.ksc-faq__ricon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(202, 160, 92, 0.12);
	color: #caa05c;
}

.ksc-faq__ricon svg {
	width: 18px;
	height: 18px;
}

.ksc-faq__row b {
	font-weight: 400;
	color: #040404;
}

.ksc-faq__row i {
	font-style: normal;
	font-weight: 300;
	color: #040404;
	direction: ltr;
	margin-inline-start: auto;
}

/* آیکون علامت سؤال کنار عنوان لیست */
.ksc-faq__qicon {
	display: inline-flex;
	vertical-align: middle;
	margin-inline-end: 8px;
	width: 22px;
	height: 22px;
	color: #caa05c;
}

.ksc-faq__qicon svg {
	width: 22px;
	height: 22px;
}

.ksc-faq__btn {
	margin-top: 10px;
	background: #caa05c;
	color: #fff;
	font-size: 16px;
	padding: 12px 28px;
	border-radius: 10px;
	transition: background 0.25s ease;
}

.ksc-faq__btn:hover {
	background: #b58c48;
	color: #fff;
}

/* ---------- Testimonials ---------- */
.ksc-testis {
	position: relative;
	padding: 56px 0 56px;
}

/* نوار پس‌زمینه بافت‌دار روشن پشت بخش (عین دمو) */
.ksc-testis__bg {
	position: absolute;
	top: 0;
	inset-inline: 0;
	height: 312px;
	background: url('../img/testi-bg.jpg') center/cover no-repeat, #f4f4f4;
	z-index: 0;
	pointer-events: none;
}

.ksc-testis__inner {
	position: relative;
	z-index: 1;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* اسلایدر با فلش دو طرف */
.ksc-testis__slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ksc-testis__arrow {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e3e0f0;
	background: #fff;
	color: #2b1d9a;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(31, 21, 109, 0.08);
	transition: all 0.2s ease;
}

.ksc-testis__arrow:hover {
	background: #2b1d9a;
	color: #fff;
}

.ksc-testis__grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* نقطه‌های صفحه‌بندی */
.ksc-testis__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 24px;
}

.ksc-testis__dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d8d8d8;
}

.ksc-testis__dots span.is-active {
	width: 22px;
	border-radius: 4px;
	background: #2b1d9a;
}

.ksc-testis__card {
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ksc-testis__who {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ksc-testis__who img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.ksc-testis__who span {
	display: flex;
	flex-direction: column;
}

.ksc-testis__who b {
	font-size: 16px;
	font-weight: 700;
	color: #040404;
}

.ksc-testis__who i {
	font-style: normal;
	font-size: 12px;
	color: #828282;
}

.ksc-testis__card p {
	font-size: 16px;
	color: #828282;
	line-height: 2;
	margin: 0;
}

.ksc-testis__footer {
	text-align: center;
	margin-top: 28px;
}

/* دکمه مشاهده بیشتر با کادر */
.ksc-testis__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #2b1d9a;
	font-size: 16px;
	padding: 12px 28px;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px #d8d5ea;
	transition: all 0.2s ease;
}

.ksc-testis__more:hover {
	box-shadow: inset 0 0 0 1px #2b1d9a;
}

/* ---------- Generic working slider ---------- */
.ksc-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 24px;
}

.ksc-slider__arrow {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e3e0f0;
	background: #fff;
	color: #2b1d9a;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(31, 21, 109, 0.08);
	transition: all 0.2s ease;
}

.ksc-slider__arrow:hover:not(:disabled) {
	background: #2b1d9a;
	color: #fff;
}

.ksc-slider__arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.ksc-slider__viewport {
	flex: 1;
	overflow: hidden;
}

.ksc-slider__track {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 24px;
	transition: transform 0.4s ease;
	will-change: transform;
}

.ksc-slider {
	align-items: flex-start;
}

.ksc-slider__dots {
	position: absolute;
	bottom: -40px;
	inset-inline: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.ksc-slider__dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d8d8d8;
	cursor: pointer;
}

.ksc-slider__dots span.is-active {
	width: 22px;
	border-radius: 4px;
	background: #2b1d9a;
}

/* ---------- Blog ---------- */
.ksc-blog {
	padding: 56px 0 88px;
}

.ksc-blog__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* داخل اسلایدر: هر کارت وبلاگ عرض ثابت 4تایی */
.ksc-slider__track.ksc-blog__grid {
	max-width: none;
	margin: 0;
	padding: 8px 0 0;
	grid-template-columns: none;
}

.ksc-slider__track.ksc-blog__grid .ksc-blog__card {
	flex: 0 0 calc((100% - 72px) / 4);
}

.ksc-blog__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
}


.ksc-blog__thumb {
	position: relative;
	display: block;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 264 / 180;
}

.ksc-blog__thumb img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ksc-blog__card:hover .ksc-blog__thumb img {
	transform: scale(1.05);
}

.ksc-blog__card h3 {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.9;
	margin: 4px 0 0;
	min-height: calc(1.9em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ksc-blog__card h3 a {
	color: #040404;
}

.ksc-blog__card h3 a:hover {
	color: #2b1d9a;
}

.ksc-blog__card > p {
	font-size: 15px;
	color: #828282;
	line-height: 2;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ksc-blog__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px dashed #d8d8d8;
}

.ksc-blog__meta a {
	color: #040404;
}

.ksc-blog__meta a:hover {
	color: #2b1d9a;
}

.ksc-blog__meta time {
	font-weight: 300;
	color: #040404;
}

/* ---------- CTA: کارت سفید شناور بالای فوتر (عین دمو) ---------- */
.ksc-cta {
	background: #f7f7f7;
	padding: 40px 0 0;
	margin-bottom: -62px; /* کارت روی نوار معرفی فوتر می‌افتد */
	position: relative;
	z-index: 3;
}

.ksc-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: 1320px;
	margin-inline: auto;
	padding: 32px 40px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(31, 21, 109, 0.1);
	flex-wrap: wrap;
}

.ksc-cta__inner h3 {
	font-size: 20px;
	font-weight: 800;
	color: #000;
	margin: 0 0 8px;
}

.ksc-cta__inner p {
	font-size: 16px;
	color: #828282;
	margin: 0;
	line-height: 2;
}

/* دکمه مشاوره با کادر بنفش و آیکون */
.ksc-cta__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #2b1d9a;
	font-size: 16px;
	white-space: nowrap;
	padding: 14px 28px;
	border: 1px solid #2b1d9a;
	border-radius: 12px;
	transition: all 0.25s ease;
}

.ksc-cta__link:hover {
	background: #2b1d9a;
	color: #fff;
}

/* ---------- Page header: نوار تخت تمام‌عرض بنفش (عین دمو، 330px) ---------- */
.ksc-phead {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 0;
	/* نوار هدر باید تمام‌عرض باشد (مثل دمو) نه محدود به ستون المنتور */
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	/* خنثی‌کردن padding بالای elementor-widget-wrap تا نوار دقیقاً از بالای هدر شروع شود */
	margin-top: -10px;
}

.ksc-phead__shape {
	position: relative;
	overflow: hidden;
	height: 330px;
	background: #1f156d;
	/* نوار دقیقاً ۱۵۱۲px و وسط‌چین است — تمام‌عرض نیست (مثل دمو) */
	max-width: 1512px;
	margin-inline: auto;
}

/* تصویر پس‌زمینه اختیاری و بسیار محو (دمو بدون تصویر است) */
.ksc-phead__bg {
	display: none;
}

.ksc-phead__overlay {
	display: none;
}

/* عنوان و مسیر راهنما زیر واترمارک؛ مرکز عمودی ~۱۹۳px از بالای نوار (طبق دمو) */
.ksc-phead__inner {
	position: absolute;
	top: 173px; /* بالای عنوان طبق دمو */
	left: 0;
	right: 0;
	z-index: 1;
	width: 100%;
	text-align: center;
	color: #fff;
}

/* واترمارک لاتین محو و درشت — مرکز عمودی ~۱۵۲px از بالای نوار (بالای عنوان، زیرِ هم نه رویِ هم) */
.ksc-phead__watermark {
	position: absolute;
	top: 152px;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 80px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 4px;
	color: rgba(255, 255, 255, 0.06);
	white-space: nowrap;
	z-index: 0;
	pointer-events: none;
	text-transform: capitalize;
}

.ksc-phead__title {
	position: relative;
	z-index: 1;
	font-size: 28px;
	font-weight: 700;
	line-height: 40px;
	color: #fff;
	margin: 0;
	text-align: center;
}

.ksc-phead__crumbs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 12px;
	line-height: 16px;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 20px; /* عنوان 173+40=213 ← مسیر راهنما 233 */
}

.ksc-phead__crumbs a:hover {
	color: var(--ks-gold, #caa05c);
}

.ksc-phead__sep {
	font-style: normal;
	color: var(--ks-gold, #caa05c);
}

/* ---------- Stats ---------- */
.ksc-stats {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 64px 0;
}

.ksc-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 24px;
}

.ksc-stats__item {
	background: #fff;
	border: 1px solid #efeef6;
	border-radius: 16px;
	padding: 32px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	box-shadow: 0 10px 30px rgba(31, 21, 109, 0.05);
}

.ksc-stats__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #eae8f5;
	color: #2b1d9a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 6px;
}

.ksc-stats__icon svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.ksc-stats__number {
	font-size: 30px;
	font-weight: 800;
	color: #2b1d9a;
}

.ksc-stats__label {
	font-size: 15px;
	color: #828282;
}

/* ---------- Gallery ---------- */
.ksc-gallery {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 56px 0 72px;
}

.ksc-gallery__grid {
	display: grid;
	gap: 16px;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 24px;
}

.ksc-gallery__item {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.ksc-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ksc-gallery__item:hover img {
	transform: scale(1.06);
}

/* ---------- Contact ---------- */
.ksc-contact {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 0 0 72px;
	position: relative;
	z-index: 2;
}

/* ابعاد دقیق دمو: راست 760px، چپ(فرم) 536px، فاصله 24px */
.ksc-contact__grid {
	display: grid;
	grid-template-columns: 760fr 536fr;
	gap: 24px;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 24px;
	align-items: start;
}

/* دمو: فرم سمت چپ (روی هدر، ۶۷px overlap)، اطلاعات+نقشه سمت راست */
.ksc-contact {
	margin-top: -67px;
}

.ksc-contact__form {
	order: 2;
	position: relative;
	z-index: 5;
}

.ksc-contact__side {
	order: 1;
	padding-top: 97px; /* عنوان سمت راست ~97px پایین‌تر از بالای فرم (عین دمو) */
}

/* ستون راست: عنوان + توضیح + کارت اطلاعات + نقشه */
.ksc-contact__side {
	display: flex;
	flex-direction: column;
	gap: 18px;
	text-align: right;
}

.ksc-contact__badge {
	font-size: 16px;
	color: #2b1d9a;
}

.ksc-contact__title {
	font-size: 28px;
	font-weight: 800;
	color: #040404;
	margin: 0;
}

.ksc-contact__lead {
	font-size: 16px;
	color: #828282;
	line-height: 2;
	margin: 0;
	text-align: justify;
}

/* کارت اطلاعات تماس، شبکه ۲ ستونی */
.ksc-contact__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 16px;
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 16px;
	padding: 26px;
	box-shadow: 0 10px 30px rgba(31, 21, 109, 0.04);
}

.ksc-contact__cell {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ksc-contact__cell b {
	font-size: 15px;
	font-weight: 400;
	color: #828282;
}

.ksc-contact__cell i {
	font-style: normal;
	font-size: 16px;
	font-weight: 700;
	color: #040404;
}

.ksc-contact__map {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #ededed;
}

.ksc-contact__map iframe {
	width: 100%;
	min-height: 260px;
	border: 0;
	display: block;
}

/* فرم سمت چپ، فیلدها با لیبل بالای هرکدام، داخل کادر */
.ksc-form {
	background: #fff;
	border: 1px solid #e3e0f0;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(31, 21, 109, 0.05);
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ksc-form__field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ksc-form__field > span {
	font-size: 16px;
	font-weight: 700;
	color: #040404;
}

.ksc-form input,
.ksc-form textarea {
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	padding: 14px 16px;
	border: 1px solid #e3e0f0;
	border-radius: 12px;
	background: #fbfbfd;
	color: #040404;
}

.ksc-form input::placeholder,
.ksc-form textarea::placeholder {
	color: #b7b3c9;
}

.ksc-form input:focus,
.ksc-form textarea:focus {
	outline: none;
	border-color: #2b1d9a;
}

.ksc-form__btn {
	background: #2b1d9a;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	padding: 15px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.25s ease;
}

.ksc-form__btn:hover {
	background: #1f156d;
}

@media (max-width: 900px) {
	.ksc-stats__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ksc-contact__grid {
		grid-template-columns: 1fr;
	}

	.ksc-form__row {
		grid-template-columns: 1fr;
	}
}

/* ---------- Responsive for new sections ---------- */
@media (max-width: 1024px) {
	.ksc-about__grid,
	.ksc-toplawyer,
	.ksc-team,
	.ksc-faq {
		grid-template-columns: 1fr;
	}

	.ksc-about__media {
		order: 2;
	}

	.ksc-testis__grid,
	.ksc-blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ksc-quote__inner {
		flex-direction: column;
		padding: 32px 24px;
		text-align: center;
	}

	.ksc-quote__portrait {
		display: none;
	}

	.ksc-quote__text {
		margin-inline-start: 0;
	}
}

@media (max-width: 600px) {
	.ksc-testis__grid,
	.ksc-blog__grid,
	.ksc-team__cards {
		grid-template-columns: 1fr;
	}

	.ksc-faq__card {
		min-height: 0;
	}

	.ksc-faq__card-img {
		display: none;
	}

	.ksc-faq__card-body {
		width: 100%;
	}

	.ksc-about__media {
		min-height: 0;
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.ksc-about__video,
	.ksc-about__photo {
		position: static;
		width: 100%;
	}

	.ksc-about__dots {
		display: none;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.ksc-hero__content {
		max-width: 62%;
		padding-top: 140px;
	}

	.ksc-hero__title {
		font-size: 36px;
	}

	.ksc-hero__aside {
		left: 4%;
	}
}

@media (max-width: 900px) {
	.ksc-hero {
		padding-bottom: 40px;
	}

	.ksc-hero__shape {
		margin-inline: 12px;
		border-radius: 24px;
		clip-path: none;
		min-height: 0;
	}

	.ksc-hero__content {
		max-width: 100%;
		padding: 120px 24px 48px;
	}

	.ksc-hero__title {
		font-size: 30px;
	}

	.ksc-hero__desc {
		font-size: 14px;
	}

	.ksc-hero__aside {
		position: static;
		width: min(320px, 80%);
		margin: -24px auto 0;
	}

	.ksc-hero__ring {
		display: none;
	}

	.ksc-hero__stats {
		position: static;
		width: 100%;
		margin-top: 8px;
	}
}

/* ==================================================================
   صفحه «درباره ما» — اینترو ویدیو، آمار، گالری مِیسونری
   ================================================================== */

/* ---------- Intro (ویدیو + متن بازشونده) ---------- */
.ksc-aintro {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 0;
	position: relative;
	z-index: 2;
	margin-top: -97px; /* بخشی از عکس روی نوار هدر می‌رود (عکس در y=263 مطابق دمو) */
}
.ksc-aintro__wrap {
	max-width: 872px;
	margin: 0 auto;
	text-align: center;
}
.ksc-aintro__media {
	position: relative;
	border-radius: 32px;
	overflow: hidden;
	aspect-ratio: 872 / 450;
	background: #e9e9f2;
	box-shadow: 0 30px 60px rgba(31, 21, 109, 0.18);
}
.ksc-aintro__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ksc-aintro__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	border: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.35);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2b1d9a;
	transition: background .2s, transform .2s;
}
.ksc-aintro__play svg { width: 30px; height: 30px; margin-inline-start: 4px; }
.ksc-aintro__play:hover { background: rgba(255, 255, 255, 0.6); transform: scale(1.06); }

.ksc-aintro__text { position: relative; margin-top: 24px; }
.ksc-aintro__body { color: #6f6f86; font-size: 16px; line-height: 1.75; }
.ksc-aintro__body p { margin: 0 0 16px; }
.ksc-aintro__body p:last-child { margin-bottom: 0; }
.ksc-aintro__text.is-collapsed .ksc-aintro__body { max-height: 196px; overflow: hidden; }
.ksc-aintro__text.is-open .ksc-aintro__body { max-height: none; }
.ksc-aintro__fade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
	background: linear-gradient(rgba(255,255,255,0), #fff 82%);
	pointer-events: none;
}
.ksc-aintro__text.is-open .ksc-aintro__fade { display: none; }
.ksc-aintro__more {
	margin: 22px auto 0;
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 0; cursor: pointer;
	color: #2b1d9a; font-weight: 700; font-family: inherit; font-size: 15px;
}
.ksc-aintro__more svg { transition: transform .25s; }
.ksc-aintro__more.is-open svg { transform: rotate(180deg); }

/* ---------- Stats (آمارهای ما) ---------- */
.ksc-astats {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	position: relative;
	padding: 40px 0 90px;
	overflow-x: clip; /* جلوگیری از اسکرول افقی به‌خاطر بلاب پس‌زمینه */
}
/* بلابِ پس‌زمینه — همان SVG دمو (سفید→#eae8f5)، لنگر روی مرکزِ صفحه */
.ksc-astats__blob {
	position: absolute;
	top: -197px;
	left: calc(50% + 118px);
	width: 760px;
	height: 700px;
	z-index: 0;
	pointer-events: none;
}
.ksc-astats__wrap {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	position: relative;
	z-index: 1;
}
.ksc-astats__cards { display: flex; flex-direction: row-reverse; gap: 52px; margin-top: -4px; }
.ksc-astats__card {
	position: relative;
	width: 200px;
	height: 200px;
}
/* کارت سفیدِ نیمه‌شفاف و بی‌سایه — روی صفحهٔ سفید نامرئی، روی شکل یاسی دیده می‌شود (مطابق دمو) */
/* کارت سفیدِ نیمه‌شفاف روی چیپ می‌نشیند؛ چیپ از پشت محو دیده می‌شود و فقط گوشهٔ بیرون‌زده پررنگ است (مطابق دمو) */
.ksc-astats__panel {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 32px;
	background: rgba(255, 255, 255, 0.5);
	box-shadow: inset 0 0 0 4px #ffffff;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
/* چیپ رنگی پشتِ کارت، از گوشهٔ پایین‌ـراست بیرون می‌زند */
.ksc-astats__chip {
	position: absolute;
	right: -28px;
	bottom: -28px;
	width: 128px;
	height: 124px;
	border-radius: 12px;
	z-index: 0;
}
.ksc-astats__num {
	position: absolute;
	top: 50px; left: 0; right: 0;
	text-align: center;
	font-size: 50px;
	font-weight: 800;
	color: #111111;
	line-height: 1;
	z-index: 2;
}
.ksc-astats__label {
	position: absolute;
	top: 130px; left: 0; right: 0;
	text-align: center;
	font-size: 15px;
	color: #23233c;
	padding: 0 12px;
	line-height: 1.5;
	z-index: 2;
}
.ksc-astats__chip--purple { background: linear-gradient(-135deg, #8c84e1 0%, rgba(140,132,225,0) 74.76%); }
.ksc-astats__chip--orange { background: linear-gradient(-135deg, #ff8b42 0%, rgba(255,139,66,0) 74.76%); }
.ksc-astats__chip--blue   { background: linear-gradient(-135deg, #1c75bc 0%, rgba(28,117,188,0) 74.76%); }
.ksc-astats__chip--teal   { background: linear-gradient(-135deg, #50caca 0%, rgba(80,202,202,0) 74.76%); }
.ksc-astats__head { width: 312px; flex-shrink: 0; text-align: right; padding-top: 15px; }
.ksc-astats__eyebrow { display: block; color: #1f156d; font-weight: 800; font-size: 16px; line-height: 24px; margin-bottom: 10px; margin-right: 26px; }
.ksc-astats__title { font-size: 32px; font-weight: 800; line-height: 35px; color: #12103a; margin: 0 0 14px; }
.ksc-astats__desc { color: #8a8aa0; font-size: 20px; line-height: 35px; margin: 0; }

/* ---------- Gallery (میسونری ۴ ستونه) ---------- */
.ksc-agal {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 20px 0;
}
.ksc-agal__grid {
	max-width: 1320px;
	margin: 28px auto 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: 1fr 1fr;
	gap: 24px;
}
.ksc-agal__item {
	position: relative;
	display: block;
	border-radius: 20px;
	overflow: hidden;
	background: #e9e9f2;
}
.ksc-agal__item img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform .45s ease;
}
.ksc-agal__item:hover img { transform: scale(1.05); }
.ksc-agal__item:nth-child(2),
.ksc-agal__item:nth-child(3),
.ksc-agal__item:nth-child(4),
.ksc-agal__item:nth-child(5) { aspect-ratio: 1 / 1; }
.ksc-agal__item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.ksc-agal__item:nth-child(2) { grid-column: 2; grid-row: 1; }
.ksc-agal__item:nth-child(3) { grid-column: 2; grid-row: 2; }
.ksc-agal__item:nth-child(4) { grid-column: 3; grid-row: 1; }
.ksc-agal__item:nth-child(5) { grid-column: 3; grid-row: 2; }
.ksc-agal__item:nth-child(6) { grid-column: 4; grid-row: 1 / 3; }

/* نمایشگرهای متوسط (۱۰۲۴–۱۳۴۰): فاصله‌ها و عرض سرعنوانِ آمار را کم می‌کنیم تا کارت‌ها بیرون نزنند */
@media (max-width: 1340px) {
	.ksc-astats__cards { gap: 28px; }
	.ksc-astats__head { width: 240px; }
}

@media (max-width: 900px) {
	.ksc-astats__wrap { flex-direction: column; align-items: stretch; }
	.ksc-astats__cards { flex-wrap: wrap; justify-content: center; gap: 24px; }
	.ksc-astats__head { width: 100%; text-align: center; }
	.ksc-agal__grid { grid-template-columns: repeat(2, 1fr); }
	.ksc-agal__item:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; }
}

/* ==================================================================
   فاصله‌های عمودی صفحهٔ «درباره ما» (page-id-508) — میزان‌شده با ابزار
   مقایسه تا مرزِ هر سکشن دقیقاً روی دمو بیفتد.
   ================================================================== */
.page-id-508 .ksc-astats { margin-top: 99px; }
.page-id-508 .ksc-agal   { margin-top: 125px; }
.page-id-508 .ksc-team   { margin-top: 3px; }
.page-id-508 .ksc-quote  { margin-top: 75px; }

/* ==================================================================
   آرشیو وبلاگ (سایدبار + گرید ۳ ستونه + صفحه‌بندی)
   ================================================================== */
.ksc-barch {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 8px 0 24px;
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw); /* شکستن محدودیت عرض ستون المنتور */
}
.ksc-barch__wrap {
	max-width: 1320px;
	margin: 0 auto;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 312px; /* راست: پست‌ها — چپ: سایدبار */
	gap: 24px;
	align-items: start;
}

/* ---------- گرید پست‌ها ---------- */
.ksc-barch__grid {
	display: grid;
	grid-template-columns: repeat(var(--ksc-barch-cols, 3), 1fr);
	gap: 32px 24px;
}
.ksc-barch__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px #ededed;
	padding: 24px;
	box-sizing: border-box;
}
.ksc-barch__thumb {
	display: block;
	position: relative;
	aspect-ratio: 264 / 180;
	border-radius: 8px;
	overflow: hidden;
	background: #e9e9f2;
}
.ksc-barch__thumb img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform .4s ease;
}
.ksc-barch__card:hover .ksc-barch__thumb img { transform: scale(1.05); }
.ksc-barch__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.9;
	margin: 12px 0 0;
	min-height: calc(1.9em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ksc-barch__title a { color: #111; }
.ksc-barch__title a:hover { color: #2b1d9a; }
.ksc-barch__excerpt {
	font-size: 16px;
	color: #828282;
	line-height: 2;
	margin: 10px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ksc-barch__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	font-size: 14px;
}
.ksc-barch__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #040404;
}
.ksc-barch__date svg { color: #9a9ab0; }
.ksc-barch__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #040404;
	font-weight: 500;
}
.ksc-barch__more svg { color: #2b1d9a; }
.ksc-barch__more:hover { color: #2b1d9a; }

/* ---------- صفحه‌بندی ---------- */
.ksc-barch__pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
	flex-wrap: wrap;
}
.ksc-barch__pg {
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #ededed;
	color: #333;
	font-size: 15px;
	transition: all .2s ease;
}
.ksc-barch__pg:hover:not(.is-active):not(.is-disabled):not(.is-dots) { border-color: #2b1d9a; color: #2b1d9a; }
.ksc-barch__pg.is-active { background: #2b1d9a; border-color: #2b1d9a; color: #fff; }
.ksc-barch__pg.is-disabled { color: #b7b3c9; cursor: default; }
.ksc-barch__pg.is-dots { border: 0; background: transparent; min-width: 24px; }

/* ---------- سایدبار ---------- */
.ksc-barch__side {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.ksc-barch__search {
	position: relative;
	display: flex;
	align-items: center;
}
.ksc-barch__search-ic {
	position: absolute;
	left: 18px; /* ذره‌بین سمت چپ کادر — مطابق دمو */
	right: auto;
	color: #9a9ab0;
	pointer-events: none;
}
.ksc-barch__search input {
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	padding: 13px 18px 13px 44px;
	border: 1px solid #ededed;
	border-radius: 16px;
	background: #fff;
	color: #111;
}
.ksc-barch__search input::placeholder { color: #b7b3c9; }
.ksc-barch__search input:focus { outline: none; border-color: #2b1d9a; }

.ksc-barch__box {
	border: 1px solid #ededed;
	border-radius: 20px;
	background: transparent;
	padding: 6px 18px 14px;
}
.ksc-barch__box-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 0;
	font-size: 16px;
	font-weight: 700;
	color: #111;
	border-bottom: 1px solid #f2f2f2;
	margin-bottom: 4px;
}
.ksc-barch__box-title {
	display: inline-flex;
	flex-direction: row-reverse; /* عنوان راست، آیکن سمت چپِ عنوان */
	align-items: center;
	gap: 8px;
}
.ksc-barch__box-ic { color: #2b1d9a; flex: 0 0 auto; }
.ksc-barch__box-chev { color: #9a9ab0; flex: 0 0 auto; }

.ksc-barch__sort { list-style: none; margin: 0; padding: 0; }
.ksc-barch__sort a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	line-height: 24px;
	color: #444;
	font-size: 15px;
}
.ksc-barch__radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #d0cee0;
	flex: 0 0 auto;
	position: relative;
}
.ksc-barch__sort a.is-active { color: #2b1d9a; font-weight: 600; }
.ksc-barch__sort a.is-active .ksc-barch__radio { border-color: #2b1d9a; }
.ksc-barch__sort a.is-active .ksc-barch__radio::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #2b1d9a;
}

.ksc-barch__cats { list-style: none; margin: 0; padding: 0; }
.ksc-barch__cats a {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 10px;
	padding: 3px 0;
	color: #444;
	font-size: 15px;
}
.ksc-barch__cats a { color: #040404; }
.ksc-barch__cats a:hover, .ksc-barch__cats a.is-active { color: #2b1d9a; }
.ksc-barch__cats a.is-active { font-weight: 600; }
.ksc-barch__cname {
	flex: 1;
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: flex-end; /* نام دسته چسبیده به راستِ باکس، نقطه سمت چپش */
	gap: 8px;
}
.ksc-barch__cname::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d5d3e0;
	flex: 0 0 auto;
}
.ksc-barch__cats a:hover .ksc-barch__cname::before,
.ksc-barch__cats a.is-active .ksc-barch__cname::before { background: #2b1d9a; }
.ksc-barch__count {
	min-width: 34px;
	height: 26px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #f3f2f9;
	color: #666;
	font-size: 13px;
	flex: 0 0 auto;
}
.ksc-barch__cats a.is-active .ksc-barch__count { background: #2b1d9a; color: #fff; }

@media (max-width: 1360px) {
	.ksc-barch__wrap { padding: 0 24px; }
}
@media (max-width: 1024px) {
	.ksc-barch__wrap { grid-template-columns: 1fr; }
	.ksc-barch__side { order: -1; }
	.ksc-barch__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.ksc-barch__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   تک‌نوشته (blog-single)
   ============================================================ */
.ksc-phead--tpl { margin-top: 0; }

.ksc-single {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	padding: 8px 0 48px;
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}
.ksc-single__wrap {
	max-width: 1320px;
	margin: 0 auto;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 312px; /* راست: مقاله — چپ: سایدبار */
	gap: 24px;
	align-items: start;
}
.ksc-single__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ---------- کارت مقاله ---------- */
.ksc-single__card {
	background: #fff;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px #ededed;
	padding: 20px;
	box-sizing: border-box;
}
.ksc-single__thumb { position: relative; border-radius: 12px; overflow: hidden; }
.ksc-single__thumb img { display: block; width: 100%; height: 445px; object-fit: cover; }

/* برچسب تاریخ بنفش، بالا-راستِ تصویر */
.ksc-single__date {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 70px;
	height: 70px;
	border-radius: 10px;
	background: #2b1d9a;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.ksc-single__date b { font-size: 24px; font-weight: 800; line-height: 22px; }
.ksc-single__date i { font-size: 12px; font-style: normal; line-height: 16px; }

.ksc-single__meta {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 20px;
	font-size: 14px;
	line-height: 20px;
	color: #040404;
}
.ksc-single__mi { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 7px; }
.ksc-single__mi svg { color: #2b1d9a; flex: 0 0 auto; }

.ksc-single__title {
	font-size: 20px;
	font-weight: 800;
	line-height: 24px;
	color: #040404;
	margin: 20px 0 0;
}
.ksc-single__content { margin-top: 16px; font-size: 16px; line-height: 28px; color: #828282; }
.ksc-single__content p { margin: 0 0 24px; }
.ksc-single__content p:last-child { margin-bottom: 0; }
.ksc-single__content img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 8px 0 24px; }
.ksc-single__content h2, .ksc-single__content h3, .ksc-single__content h4 { color: #040404; margin: 28px 0 12px; line-height: 1.6; }
.ksc-single__content h2 { font-size: 20px; }
.ksc-single__content h3 { font-size: 18px; }
.ksc-single__content a { color: #2b1d9a; }
.ksc-single__content ul, .ksc-single__content ol { margin: 0 0 24px; padding-inline-start: 22px; }
.ksc-single__content blockquote {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-inline-start: 3px solid #2b1d9a;
	background: #f7f7fb;
	border-radius: 10px;
}

/* ---------- فرم دیدگاه ---------- */
.ksc-comments { display: flex; flex-direction: column; gap: 24px; }
.ksc-cform {
	background: #fff;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px #ededed;
	padding: 20px;
	box-sizing: border-box;
}
.ksc-cform__head { padding-bottom: 14px; border-bottom: 1px solid #f2f2f2; margin-bottom: 18px; font-size: 16px; font-weight: 600; color: #040404; }
.ksc-cform__form { display: flex; flex-wrap: wrap; gap: 0 24px; }
.ksc-cform__f { width: 100%; margin: 0 0 18px; }
.ksc-cform__f--half { width: calc(50% - 12px); }
.ksc-cform__f label { display: block; font-size: 16px; color: #040404; margin-bottom: 10px; }
.ksc-cform__f input,
.ksc-cform__f textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 14px;
	color: #040404;
	padding: 14px 18px;
	border: 1px solid #ededed;
	border-radius: 20px;
	background: #fff;
	resize: vertical;
}
.ksc-cform__f textarea { min-height: 140px; border-radius: 20px; }
.ksc-cform__f input::placeholder,
.ksc-cform__f textarea::placeholder { color: #828282; font-size: 12px; }
.ksc-cform__f input:focus, .ksc-cform__f textarea:focus { outline: none; border-color: #2b1d9a; }
.ksc-cform__submit {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 8px;
	background: #2b1d9a;
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 14px 30px;
	font-family: inherit;
	font-size: 16px;
	cursor: pointer;
	transition: background .2s ease;
}
.ksc-cform__submit:hover { background: #1f156d; }
.ksc-cform .comment-form-cookies-consent,
.ksc-cform .comment-notes { display: none; }
.ksc-cform .form-submit { margin: 0; width: 100%; }

/* ---------- لیست دیدگاه‌ها ---------- */
.ksc-cmt-list { list-style: none; margin: 0; padding: 0; }
.ksc-cmt-list .children { list-style: none; margin: 16px 0 0; padding: 0; }
.ksc-cmt { padding: 20px 0; border-top: 1px solid #ededed; }
.ksc-cmt-list > .ksc-cmt:first-child { border-top: 0; padding-top: 0; }
.ksc-cmt--reply { background: #f7f7fb; border-radius: 16px; padding: 20px; border-top: 0; }
.ksc-cmt__head { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 12px; }
.ksc-cmt__avatar { flex: 0 0 auto; }
.ksc-cmt__avatar img { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ksc-cmt__who { display: flex; flex-direction: column; align-items: flex-start; }
.ksc-cmt__name { font-size: 15px; font-weight: 700; color: #040404; line-height: 22px; }
.ksc-cmt__ago { font-size: 12px; color: #828282; line-height: 18px; }
.ksc-cmt__text { margin-top: 12px; font-size: 15px; line-height: 28px; color: #828282; }
.ksc-cmt__text p { margin: 0 0 10px; }
.ksc-cmt__text p:last-child { margin-bottom: 0; }
.ksc-cmt__moder { font-size: 13px; color: #caa05c; margin: 8px 0 0; }
.ksc-cmt .comment-reply-link { font-size: 13px; color: #2b1d9a; }

/* ---------- مطالب مرتبط ---------- */
.ksc-single__related { max-width: 1320px; margin: 56px auto 0; box-sizing: border-box; }
.ksc-single__rel-title { text-align: center; font-size: 28px; font-weight: 800; color: #040404; margin: 0 0 32px; }
.ksc-rel { position: relative; display: flex; align-items: center; gap: 12px; }
.ksc-rel__viewport { overflow: hidden; flex: 1; min-width: 0; }
.ksc-rel__track { display: flex; gap: 24px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.ksc-rel__card { flex: 0 0 calc((100% - 72px) / 4); box-sizing: border-box; }
.ksc-rel__nav {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #ededed;
	background: #fff;
	color: #2b1d9a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .2s ease;
}
.ksc-rel__nav:hover { background: #2b1d9a; border-color: #2b1d9a; color: #fff; }
.ksc-rel__nav[disabled] { opacity: .35; cursor: default; }
.ksc-rel__nav[disabled]:hover { background: #fff; border-color: #ededed; color: #2b1d9a; }

@media (max-width: 1360px) {
	.ksc-single__wrap, .ksc-single__related { padding: 0 24px; }
}
@media (max-width: 1024px) {
	.ksc-single__wrap { grid-template-columns: 1fr; }
	.ksc-single__wrap .ksc-barch__side { order: -1; }
	.ksc-rel__card { flex-basis: calc((100% - 24px) / 2); }
	.ksc-single__thumb img { height: 320px; }
}
@media (max-width: 600px) {
	.ksc-rel__card { flex-basis: 100%; }
	.ksc-cform__f--half { width: 100%; }
	.ksc-single__thumb img { height: 220px; }
	.ksc-single__date { top: 12px; right: 12px; }
}

/* ============================================================
   وکلا — پروفایل، حوزه‌های تخصصی، فرم مشاوره، لیست
   ============================================================ */
.ksc-lw, .ksc-lwlist {
	direction: rtl;
	font-family: var(--ks-font, 'Yekan Bakh FaNum', Vazirmatn, Tahoma, sans-serif);
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}
.ksc-lw { padding: 0 0 56px; }
.ksc-lwlist { padding: 8px 0 56px; }

/* پنل سفید که ۶۷px روی نوار بنفش می‌آید — فقط گوشه‌های بالا گرد، سایه رو به بالا */
.ksc-lw__panel {
	position: relative;
	z-index: 2;
	margin-top: -67px;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -8px 16px rgba(0, 0, 0, .08);
	padding: 50px 64px;
	box-sizing: border-box;
}
.ksc-lw__wrap, .ksc-lwlist__wrap {
	max-width: 1320px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ---------- کارت پروفایل ---------- */
.ksc-lw__profile {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}
.ksc-lw__photo { flex: 0 0 297px; }
.ksc-lw__photo img { display: block; width: 297px; height: 313px; object-fit: cover; border-radius: 16px; }
.ksc-lw__info { flex: 1; min-width: 0; padding-top: 4px; }

.ksc-lw__row { display: flex; align-items: baseline; gap: 24px; margin-bottom: 12px; }
.ksc-lw__lbl {
	flex: 0 0 150px;
	text-align: right;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: #040404;
}
.ksc-lw__val {
	flex: 1;
	text-align: right;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #828282;
	word-break: break-word;
}

.ksc-lw__resume {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 13px 34px;
	border: 1px solid #2b1d9a;
	border-radius: 12px;
	color: #2b1d9a;
	font-size: 16px;
	line-height: 24px;
	transition: all .2s ease;
}
.ksc-lw__resume:hover { background: #2b1d9a; color: #fff; }

/* ---------- بیوگرافی ---------- */
.ksc-lw__bio { margin-top: 46px; }
.ksc-lw__bio-title { font-size: 24px; font-weight: 800; color: #040404; margin: 0 0 20px; }
.ksc-lw__bio-text { font-size: 16px; line-height: 30px; color: #828282; }
.ksc-lw__bio-text p { margin: 0 0 24px; }
.ksc-lw__bio-text p:last-child { margin-bottom: 0; }

/* ---------- سرستون بخش‌ها ---------- */
.ksc-lw__spec-head { text-align: center; margin: 104px 0 36px; }
.ksc-lw__eyebrow { display: block; font-size: 16px; font-weight: 400; line-height: 24px; color: #1f156d; margin-bottom: 4px; }
.ksc-lw__h2 { font-size: 32px; font-weight: 800; line-height: 35px; color: #000; margin: 0; }
.ksc-lw__sub { font-size: 20px; font-weight: 300; line-height: 35px; color: #828282; margin: 0; }

/* ---------- حوزه‌های تخصصی ---------- */
.ksc-lw__spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ksc-lw__spec-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: #fbfbfd;
	border-radius: 16px;
	padding: 22px;
	box-sizing: border-box;
	box-shadow: inset 0 0 0 1px #f0f0f5;
}
.ksc-lw__spec-ic {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px #ededed;
	color: #2b1d9a;
}
.ksc-lw__spec-ic svg { width: 26px; height: 26px; }
.ksc-lw__spec-card h3 { font-size: 16px; font-weight: 700; color: #040404; margin: 4px 0 8px; }
.ksc-lw__spec-card p { font-size: 14px; line-height: 24px; color: #828282; margin: 0; }

/* ---------- فرم مشاوره ---------- */
.ksc-lw__form {
	max-width: 516px;
	margin: 0 auto;
	/* پس‌زمینهٔ طوسی ملایم تا کارت از صفحهٔ سفید متمایز شود (فیلدها سفید می‌مانند) */
	background: #f4f4f9;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px #e7e6f0, 0 8px 16px rgba(31, 21, 109, .07);
	padding: 40px;
	box-sizing: border-box;
}
.ksc-lw__form-title { text-align: center; font-size: 24px; font-weight: 800; line-height: 32px; color: #040404; margin: 0 0 28px; }
.ksc-lw__f { margin: 0 0 25px; }
.ksc-lw__f label { display: block; font-size: 16px; font-weight: 400; line-height: 24px; color: #040404; margin-bottom: 8px; }
.ksc-lw__f input, .ksc-lw__f textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 14px;
	color: #040404;
	border: 0;
	border-radius: 20px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #e3e2ee;
	resize: vertical;
}
.ksc-lw__f input { height: 56px; padding: 0 20px; }
.ksc-lw__f textarea { min-height: 168px; padding: 18px 20px; line-height: 26px; }
.ksc-lw__f input::placeholder, .ksc-lw__f textarea::placeholder { color: #828282; font-size: 12px; }
.ksc-lw__f input:focus, .ksc-lw__f textarea:focus { outline: none; box-shadow: inset 0 0 0 1px #2b1d9a; }
.ksc-lw__submit {
	width: 100%;
	height: 52px;
	background: #2b1d9a;
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	transition: background .2s ease;
}
.ksc-lw__submit:hover { background: #1f156d; }

/* ---------- لیست وکلا ---------- */
.ksc-lwlist__grid { display: grid; grid-template-columns: repeat(var(--ksc-lw-cols, 4), 1fr); gap: 24px; }
.ksc-lwlist__card {
	background: #fff;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px #ededed;
	padding: 16px;
	box-sizing: border-box;
	text-align: center;
}
.ksc-lwlist__ph { display: block; border-radius: 12px; overflow: hidden; background: #eae8f5; }
.ksc-lwlist__ph img { display: block; width: 100%; aspect-ratio: 280 / 300; object-fit: cover; transition: transform .4s ease; }
.ksc-lwlist__card:hover .ksc-lwlist__ph img { transform: scale(1.04); }
.ksc-lwlist__name { font-size: 17px; font-weight: 700; margin: 14px 0 4px; }
.ksc-lwlist__name a { color: #040404; }
.ksc-lwlist__name a:hover { color: #2b1d9a; }
.ksc-lwlist__rank { font-size: 14px; color: #828282; margin: 0 0 12px; }
.ksc-lwlist__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: #2b1d9a;
}

@media (max-width: 1360px) {
	.ksc-lw__wrap, .ksc-lwlist__wrap { padding: 0 24px; }
}
@media (max-width: 1024px) {
	.ksc-lw__spec-grid { grid-template-columns: repeat(2, 1fr); }
	.ksc-lwlist__grid { grid-template-columns: repeat(2, 1fr); }
	.ksc-lw__profile { flex-direction: column; align-items: center; }
	.ksc-lw__panel { padding: 40px 28px; }
	.ksc-lw__info { width: 100%; }
}
@media (max-width: 600px) {
	.ksc-lw__spec-grid, .ksc-lwlist__grid { grid-template-columns: 1fr; }
	.ksc-lw__photo { flex-basis: auto; }
	.ksc-lw__photo img { width: 100%; height: auto; }
	.ksc-lw__row { flex-direction: column; gap: 2px; }
	.ksc-lw__lbl, .ksc-lw__val { flex: none; text-align: right; }
}
