/* ============ صفحه مرکز نمایندگی کانون - طبق طرح 1.jpg ============ */

:root {
	--kcp-purple: #7c2ae8;
	--kcp-purple-dark: #5b21b6;
	--kcp-purple-light: #a855f7;
	--kcp-purple-bg: #f5f0ff;
	--kcp-pink: #ff2dbb;
	--kcp-blue: #4f6af5;
	--kcp-text: #3b3b4f;
	--kcp-text-light: #6b687f;
	--kcp-card-bg: linear-gradient(160deg, #ffffff 0%, #f4f4fd 100%);
	--kcp-radius: 16px;
	--kcp-shadow: 0 4px 24px rgba(96, 76, 195, 0.08);
}

.kcp-page {
	font-family: iransans, Vazirmatn, Tahoma, sans-serif;
	direction: rtl;
	color: var(--kcp-text);
	background: #fff;
	overflow-x: hidden;
}

/* ============ هدر اختصاصی نمایندگی ============ */

.kcp-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #f3f3f3;
	border-bottom: 1px solid #e5e5e5;
}

.kcp-site-header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 28px;
	min-height: 78px;
	direction: rtl;
}

.kcp-site-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.kcp-site-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	flex-wrap: wrap;
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
}

.kcp-site-mobile-branch {
	display: none;
}

.kcp-site-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.kcp-site-logo img {
	height: 56px;
	width: auto;
	display: block;
}

.kcp-site-brand-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: #3a3a3a;
	line-height: 1.5;
}

.kcp-site-brand-text strong {
	font-size: 15px;
	font-weight: 800;
	color: #2f2f2f;
}

.kcp-site-brand-text span {
	font-size: 13px;
	font-weight: 500;
	color: #5a5a5a;
}

.kcp-site-nav-item {
	color: #3f3f3f;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: color 0.2s;
}

.kcp-site-nav-item:hover {
	color: var(--kcp-purple);
}

.kcp-site-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #333;
	border-radius: 2px;
}

.kcp-site-phone {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border-radius: 14px;
	background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 55%, #a855f7 100%);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(109, 40, 217, 0.28);
	transition: transform 0.2s, box-shadow 0.2s;
}

.kcp-site-phone:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(109, 40, 217, 0.34);
	color: #fff !important;
}

.kcp-site-phone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	flex-shrink: 0;
}

.kcp-site-phone-icon svg {
	display: block;
}

.kcp-site-nav-phone {
	display: none;
}

@media (max-width: 960px) {
	.kcp-site-header-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		min-height: 64px;
		padding-top: 8px;
		padding-bottom: 8px;
		gap: 8px;
		direction: rtl;
	}

	.kcp-site-menu-toggle {
		display: flex;
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.kcp-site-brand {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
		gap: 0;
	}

	.kcp-site-brand-text {
		display: none;
	}

	.kcp-site-mobile-branch {
		display: block;
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		font-size: 12px;
		font-weight: 600;
		color: #5a5a5a;
		line-height: 1.4;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}

	.kcp-site-logo img {
		height: 48px;
	}

	.kcp-site-nav {
		display: none;
		grid-column: 1 / -1;
		grid-row: 2;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		padding: 8px 0 12px;
		border-top: 1px solid #e0e0e0;
		margin-top: 8px;
		flex: none;
	}

	.kcp-site-nav.is-open {
		display: flex;
	}

	.kcp-site-nav-item {
		padding: 12px 4px;
		border-bottom: 1px solid #ececec;
	}

	.kcp-site-phone {
		display: none;
	}

	.kcp-site-nav-phone {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-top: 8px;
		padding: 14px 16px !important;
		border-bottom: none !important;
		border-radius: 12px;
		background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
		color: #fff !important;
		font-weight: 800;
	}

	.kcp-site-nav-phone .kcp-site-phone-icon {
		width: 32px;
		height: 32px;
		background: rgba(255, 255, 255, 0.2);
	}
}

.kcp-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.kcp-section {
	padding: 36px 0;
}

.kcp-title {
	text-align: center;
	color: var(--kcp-purple);
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 28px;
}

.kcp-empty {
	text-align: center;
	color: var(--kcp-text-light);
	padding: 32px 0;
}

.kcp-btn {
	display: inline-block;
	background: linear-gradient(90deg, var(--kcp-purple) 0%, var(--kcp-purple-light) 100%);
	color: #fff !important;
	border: none;
	border-radius: 10px;
	padding: 11px 24px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	text-decoration: none !important;
	transition: opacity 0.2s, transform 0.2s;
}

.kcp-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.kcp-btn-sm { padding: 8px 24px; font-size: 13px; border-radius: 8px; }
.kcp-btn-block { display: block; width: 100%; }

/* ============ هیرو: بنر + فرم ============ */

.kcp-hero { padding-top: 24px; }

.kcp-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(440px, 500px);
	gap: 24px;
	align-items: stretch;
}

.kcp-hero-banner-col {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.kcp-hero-banner {
	display: block;
	border-radius: var(--kcp-radius);
	overflow: hidden;
	box-shadow: var(--kcp-shadow);
}

.kcp-hero-banner img {
	display: block;
	width: 100%;
	height: auto;
}

.kcp-quicklinks {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 16px;
	background: #fff;
	border: 1px solid #ececf6;
	border-radius: var(--kcp-radius);
	padding: 18px;
	box-shadow: var(--kcp-shadow);
}

.kcp-quicklink {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
	color: var(--kcp-text) !important;
	font-weight: 700;
	font-size: 13.5px;
	transition: transform 0.2s;
}

.kcp-quicklink:hover { transform: translateY(-3px); color: var(--kcp-purple) !important; }

.kcp-quicklink-icon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kcp-quicklink-icon img { max-width: 100%; max-height: 100%; }

/* فرم پیش ثبت نام */

.kcp-reg-card {
	background: linear-gradient(180deg, #faf6ff 0%, #f3ebff 100%);
	border: 1px solid #e6dbff;
	border-radius: var(--kcp-radius);
	overflow: hidden;
	box-shadow: var(--kcp-shadow);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.kcp-reg-head {
	background: linear-gradient(90deg, #6d28d9 0%, #8b5cf6 100%);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
}

.kcp-reg-head-icon {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.18);
	display: grid;
	place-items: center;
	line-height: 0;
}

.kcp-reg-head-icon svg {
	display: block;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	margin: 0;
}

.kcp-reg-head strong { display: block; font-size: 15px; margin-bottom: 4px; }
.kcp-reg-head > div span { display: block; font-size: 12px; opacity: 0.9; }

.kcp-reg-form {
	padding: 18px 20px 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.kcp-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.kcp-field { display: flex; flex-direction: column; gap: 6px; }

.kcp-field > span {
	font-size: 13px;
	font-weight: 700;
	color: var(--kcp-purple-dark);
}

.kcp-field input,
.kcp-field select {
	width: 100%;
	height: 46px;
	border: 1px solid #ddd2f2;
	border-radius: 10px;
	background: #fff;
	padding: 0 14px;
	font-family: inherit;
	font-size: 14px;
	color: var(--kcp-text);
	direction: rtl;
	text-align: right;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.kcp-field input::placeholder { color: #b9b3cc; font-size: 12.5px; }

.kcp-field input:focus,
.kcp-field select:focus {
	outline: none;
	border-color: var(--kcp-purple-light);
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.kcp-reg-note {
	background: #fdf2ff;
	border: 1px dashed #e3c8f7;
	color: #8b3fb8;
	font-size: 12.5px;
	line-height: 2;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 4px 0 16px;
}

.kcp-reg-note strong {
	color: #dc2626;
}

#submit-btn-new {
	display: block;
	width: 100%;
	height: 52px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(90deg, #6d28d9 0%, #8b5cf6 100%);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	transition: opacity 0.2s;
	margin-top: auto;
}

#submit-btn-new:disabled { background: #b9b3cc; cursor: not-allowed; }
#submit-btn-new:not(:disabled):hover { opacity: 0.92; }

.kcp-form-message {
	display: none;
	margin-top: 14px;
	padding: 13px;
	border-radius: 10px;
	text-align: center;
	font-size: 13.5px;
	line-height: 1.9;
}

.kcp-form-message.is-error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.kcp-form-message.is-warning { display: block; background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.kcp-form-message.is-success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ============ خدمات نمایندگی ============ */

.kcp-services-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.kcp-service-box {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--kcp-card-bg);
	border: 1px solid #ececf6;
	border-radius: var(--kcp-radius);
	padding: 22px 24px;
	text-decoration: none !important;
	box-shadow: var(--kcp-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}

.kcp-service-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(96, 76, 195, 0.15);
}

.kcp-service-icon {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 14px;
	background: linear-gradient(135deg, #4f6af5 0%, #6d8bff 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.kcp-service-box strong {
	display: block;
	color: var(--kcp-text);
	font-size: 15px;
	margin-bottom: 6px;
}

.kcp-service-box span:not(.kcp-service-icon) {
	display: block;
	color: var(--kcp-text-light);
	font-size: 12.5px;
}

/* ============ نتایج درخشان ============ */

.kcp-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

.kcp-stat-card {
	background: var(--kcp-card-bg);
	border: 1px solid #ececf6;
	border-radius: var(--kcp-radius);
	padding: 24px 20px;
	text-align: center;
	box-shadow: var(--kcp-shadow);
	display: block;
	text-decoration: none !important;
	color: inherit !important;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.kcp-stat-card:hover {
	transform: translateY(-3px);
	border-color: #d8c4f7;
	box-shadow: 0 12px 28px rgba(109, 40, 217, 0.12);
}

.kcp-stat-num {
	color: var(--kcp-purple-light);
	font-size: 40px;
	font-weight: 900;
	line-height: 1;
}

.kcp-stat-unit { color: var(--kcp-purple-light); font-size: 17px; font-weight: 700; }

.kcp-stat-label {
	margin-top: 12px;
	color: var(--kcp-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.9;
}

.kcp-medal { font-size: 18px; margin-left: 4px; }

/* ============ تب‌ها ============ */

.kcp-tabs-nav {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	border-bottom: 3px solid #e8e4f5;
	padding-bottom: 0;
	margin-bottom: 24px;
	justify-content: flex-start;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.kcp-tabs-nav::-webkit-scrollbar { display: none; }

.kcp-tab-btn {
	background: #fff;
	border: 1px solid #e8e4f5;
	border-bottom: none;
	border-radius: 12px 12px 0 0;
	padding: 11px 22px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--kcp-text-light);
	cursor: pointer;
	transition: all 0.2s;
	flex: 0 0 auto;
	white-space: nowrap;
}

.kcp-tab-btn.is-active {
	background: linear-gradient(90deg, #7c2ae8 0%, #a855f7 100%);
	color: #fff;
	border-color: transparent;
}

.kcp-tab-panel { display: none; }
.kcp-tab-panel.is-active { display: block; }

/* ============ کارت نفرات برتر ============ */

.kcp-students-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	align-items: stretch;
	gap: 16px;
}

/* کاروسل نفرات برتر در صفحه مرکز */
.kcp-students-carousel {
	position: relative;
	padding: 0 48px;
}

.kcp-students-carousel .kcp-students-track {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	display: flex;
	align-items: stretch;
}

.kcp-students-carousel .kcp-students-track::-webkit-scrollbar { display: none; }

.kcp-students-carousel .kcp-students-grid {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 16px;
	grid-template-columns: none;
	min-height: 100%;
}

.kcp-students-carousel .kcp-student-card {
	flex: 0 0 calc((100% - 64px) / 5);
	min-width: calc((100% - 64px) / 5);
	align-self: stretch;
	height: auto;
}

.kcp-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(90deg, #7c2ae8 0%, #a855f7 100%);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(124, 42, 232, 0.35);
	z-index: 2;
	transition: opacity 0.2s, transform 0.2s;
}

.kcp-carousel-btn:hover { transform: translateY(-50%) scale(1.05); }
.kcp-carousel-btn:disabled { opacity: 0.35; cursor: default; transform: translateY(-50%); }

.kcp-carousel-prev { right: 0; }
.kcp-carousel-next { left: 0; }

.kcp-konkur-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.kcp-konkur-filter {
	border: none;
	border-radius: 10px;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s, transform 0.2s;
}

.kcp-konkur-filter.is-active,
.kcp-konkur-filter:hover { opacity: 1; transform: translateY(-1px); }

.kcp-konkur-filter--all { background: #6b7280; }
.kcp-konkur-filter--1 { background: #2271b1; }
.kcp-konkur-filter--2 { background: #00a32a; }
.kcp-konkur-filter--3 { background: #dba617; color: #1f2937; }
.kcp-konkur-filter--5 { background: #d63638; }

.kcp-student-card {
	background: var(--kcp-card-bg);
	border: 1px solid #ececf6;
	border-radius: 14px;
	padding: 14px;
	text-align: center;
	box-shadow: var(--kcp-shadow);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.kcp-student-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.kcp-student-top {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
}

.kcp-student-medal {
	position: relative;
	width: 56px;
	height: 70px;
	display: inline-block;
	flex: 0 0 auto;
	filter: drop-shadow(0 3px 8px rgba(120, 80, 0, 0.18));
}

.kcp-student-medal img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kcp-student-medal__value {
	position: absolute;
	top: 24%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	min-width: 22px;
	text-align: center;
	font-size: 17px;
	font-weight: 900;
	color: #5a3d06;
	line-height: 1;
	letter-spacing: -0.03em;
	text-shadow: 0 1px 0 rgba(255, 248, 220, 0.9);
	pointer-events: none;
}

.kcp-student-photo {
	width: 74px;
	height: 92px;
	object-fit: cover;
	border-radius: 8px;
}

.kcp-student-name {
	color: var(--kcp-purple);
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 8px;
}

.kcp-student-meta {
	color: var(--kcp-text-light);
	font-size: 12px;
	line-height: 2.1;
	margin-bottom: 10px;
}

.kcp-student-more {
	display: block;
	margin-top: auto;
	padding: 10px 16px;
	text-align: center;
	text-decoration: none !important;
	border: 2px solid var(--kcp-purple);
	border-radius: 12px;
	background: transparent;
	color: var(--kcp-purple) !important;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
	align-self: stretch;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kcp-student-more:hover,
.kcp-student-more:focus-visible {
	background: rgba(91, 33, 182, 0.06);
	border-color: #7c3aed;
	color: #7c3aed !important;
}

.kcp-tab-more {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

.kcp-students-view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 210px;
	padding: 14px 28px;
	text-decoration: none !important;
	border: 2px solid var(--kcp-purple);
	border-radius: 14px;
	background: transparent;
	color: var(--kcp-purple) !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kcp-students-view-all:hover,
.kcp-students-view-all:focus-visible {
	background: rgba(91, 33, 182, 0.06);
	border-color: #7c3aed;
	color: #7c3aed !important;
	transform: translateY(-1px);
}

.kcp-students-view-all__count {
	font-weight: 800;
	opacity: 0.9;
}

/* ============ بنر تخفیف ============ */

.kcp-gift-banner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	direction: ltr;
	background: linear-gradient(90deg, #7c3aed 0%, #6d5ce8 28%, #5b8def 62%, #4f9cf5 100%);
	border-radius: 28px;
	padding: 34px 42px;
	color: #fff;
	overflow: hidden;
}

.kcp-gift-art {
	flex: 0 0 auto;
	width: min(34%, 300px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.kcp-gift-art img {
	display: block;
	width: 100%;
	max-height: 210px;
	height: auto;
	object-fit: contain;
}

.kcp-gift-body {
	flex: 1;
	min-width: 0;
	direction: rtl;
	text-align: right;
}

.kcp-gift-body h3 {
	color: #ffffff;
	font-size: 26px;
	font-weight: 900;
	margin: 0 0 22px;
	line-height: 1.75;
	-webkit-text-stroke: 2.4px #ff2dbb;
	paint-order: stroke fill;
	text-shadow: 0 0 0 #ff2dbb;
}

.kcp-gift-btn {
	display: inline-block;
	background: #ff2dbb;
	color: #fff !important;
	font-size: 14px;
	font-weight: 800;
	border-radius: 14px;
	padding: 14px 30px;
	text-decoration: none !important;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
	box-shadow: 0 10px 24px rgba(255, 45, 187, 0.35);
}

.kcp-gift-btn:hover {
	transform: scale(1.03);
	background: #ff1493;
	box-shadow: 0 12px 28px rgba(255, 45, 187, 0.45);
}

/* ============ دوره‌ها و کلاس‌ها ============ */

.kcp-tabs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
	margin-bottom: 24px;
}

/* «مشاهده همه» بعد از تب‌ها می‌آید و در RTL سمت چپ قرار می‌گیرد */
.kcp-btn-view-all { flex: 0 0 auto; white-space: nowrap; }

.kcp-courses-tabs .kcp-tabs-nav { border-bottom: none; margin-bottom: 0; min-width: 0; }

.kcp-course-tab {
	border: 1px solid #e3c8f7;
	border-radius: 12px;
	background: #fdfaff;
	color: var(--kcp-purple);
	min-width: 132px;
	padding: 12px 16px;
	line-height: 1.8;
	font-size: 12.5px;
}

.kcp-course-tab.is-active {
	background: linear-gradient(180deg, #f6edff, #ecdcff);
	border-color: var(--kcp-purple-light);
	color: var(--kcp-purple-dark);
}

.kcp-courses-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.kcp-course-card {
	background: var(--kcp-card-bg);
	border: 1px solid #ececf6;
	border-radius: var(--kcp-radius);
	overflow: hidden;
	box-shadow: var(--kcp-shadow);
	display: flex;
	flex-direction: column;
}

.kcp-course-image img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.kcp-course-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }

.kcp-course-title {
	color: var(--kcp-purple-dark);
	font-size: 16px;
	font-weight: 800;
	margin: 0 0 10px;
	text-align: center;
}

.kcp-course-teacher {
	text-align: center;
	color: var(--kcp-text-light);
	font-size: 13px;
	margin-bottom: 12px;
}

.kcp-course-teacher strong { color: var(--kcp-text); }

.kcp-course-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 14px;
}

.kcp-course-tag {
	background: #e4f7f0;
	color: #1a936f;
	font-size: 12px;
	font-weight: 700;
	border-radius: 8px;
	padding: 6px 14px;
}

.kcp-course-specs {
	border-top: 1px dashed #e5e0f5;
	padding-top: 12px;
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--kcp-text-light);
}

.kcp-course-specs > div {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
}

.kcp-course-delivery {
	font-weight: 700;
}

.kcp-course-delivery.is-in-person {
	color: #2563eb;
}

.kcp-course-delivery.is-online {
	color: #16a34a;
}

.kcp-course-delivery.is-mixed {
	color: #7c3aed;
}

.kcp-course-price {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	margin-bottom: 14px;
}

.kcp-course-price strong { color: #e11d48; font-size: 20px; font-weight: 900; }

/* ============ دبیران ============ */

.kcp-section-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.kcp-teachers-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.kcp-teacher-card {
	border-radius: var(--kcp-radius);
	overflow: hidden;
	background: #f6f6fb;
	box-shadow: var(--kcp-shadow);
}

.kcp-teacher-card img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	object-position: top center;
}

.kcp-teacher-info {
	background: #d99a4e;
	color: #fff;
	text-align: center;
	padding: 12px;
}

.kcp-teacher-info strong { display: block; font-size: 15px; margin-bottom: 4px; }
.kcp-teacher-info span { display: block; font-size: 12.5px; opacity: 0.95; }

/* ============ چرا قلم چی ============ */

.kcp-why-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px 64px;
	max-width: 980px;
	margin: 0 auto;
}

.kcp-why-item h3 {
	font-size: 17px;
	font-weight: 900;
	margin: 0 0 10px;
	line-height: 1.7;
	paint-order: stroke fill;
}

.kcp-why-item p { color: var(--kcp-text-light); font-size: 13.5px; line-height: 2.2; text-align: justify; margin: 0; }

.kcp-why-blue {
	color: #c7d2fe;
	-webkit-text-stroke: 1.6px #4f6af5;
}

.kcp-why-sky {
	color: #bae6fd;
	-webkit-text-stroke: 1.6px #38bdf8;
}

.kcp-why-green {
	color: #bbf7d0;
	-webkit-text-stroke: 1.6px #22c55e;
}

.kcp-why-orange {
	color: #fed7aa;
	-webkit-text-stroke: 1.6px #fb923c;
}

/* ============ کتاب‌ها ============ */

.kcp-books-banner {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 24px;
	background: linear-gradient(120deg, #7c3aed 0%, #a855f7 55%, #ec4899 100%);
	border-radius: 24px;
	padding: 32px;
	align-items: center;
}

.kcp-books-side { text-align: center; color: #fff; }
.kcp-books-side-art { font-size: 64px; margin-bottom: 12px; }
.kcp-books-side-art img { display: inline-block; max-height: 150px; width: auto; }
.kcp-books-side h3 { color: #fff; font-size: 18px; font-weight: 900; margin: 0 0 18px; line-height: 1.8; }

.kcp-books-shop-btn {
	display: inline-block;
	background: #fff;
	color: var(--kcp-purple) !important;
	font-weight: 800;
	font-size: 14px;
	border-radius: 10px;
	padding: 12px 28px;
	text-decoration: none !important;
}

.kcp-books-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.kcp-book-card {
	position: relative;
	background: #fff;
	border-radius: 14px;
	padding: 14px;
	text-align: center;
}

.kcp-book-image img {
	width: 100%;
	height: 190px;
	object-fit: contain;
	border-radius: 8px;
}

.kcp-book-title { font-size: 13px; font-weight: 700; color: var(--kcp-text); margin: 10px 0; }

.kcp-book-prices {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.kcp-book-discount {
	background: #e11d48;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	border-radius: 6px;
	padding: 3px 8px;
}

.kcp-book-old { color: #f87171; text-decoration: line-through; font-size: 12px; }
.kcp-book-new { color: var(--kcp-text); font-weight: 800; font-size: 14px; }

.kcp-book-buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #fb923c;
	border-radius: 10px;
	text-decoration: none !important;
	font-size: 18px;
}

/* ============ نمونه سوالات ============ */

.kcp-exams-wrap {
	position: relative;
	background: #faf5ff;
	border: 1px solid #e9d8fd;
	border-radius: 20px;
	padding: 56px 32px 32px;
}

.kcp-exams-badge {
	position: absolute;
	top: -22px;
	right: 50%;
	transform: translateX(50%);
	background: linear-gradient(90deg, #6d28d9, #a855f7);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	border-radius: 12px;
	padding: 13px 42px;
	white-space: nowrap;
}

.kcp-exams-text h3 { color: #7c2ae8; font-size: 18px; font-weight: 900; margin: 0 0 12px; }
.kcp-exams-text p { color: var(--kcp-text-light); font-size: 13.5px; line-height: 2.3; margin: 0 0 8px; }

.kcp-exams-intro {
	display: flex;
	gap: 28px;
	align-items: center;
}

.kcp-exams-image { flex: 0 0 340px; }

.kcp-exams-image img {
	display: block;
	width: 100%;
	border-radius: 14px;
}

.kcp-exams-picker {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 28px 0;
}

.kcp-exams-picker select {
	width: 280px;
	height: 50px;
	border: 1px solid #cbb7ef;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--kcp-text);
	padding: 0 18px;
	direction: rtl;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c3aed' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 16px center;
	cursor: pointer;
}

.kcp-exams-picker select:focus {
	outline: none;
	border-color: var(--kcp-purple-light);
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

/* هماهنگ‌سازی ظاهر select2 (که تم روی سلکت‌ها اعمال می‌کند) */
.kcp-exams-picker .select2-container {
	width: 280px !important;
	max-width: 100%;
}

.kcp-exams-picker .select2-container .select2-selection--single,
.kcp-reg-form .select2-container .select2-selection--single {
	height: 50px !important;
	min-height: 50px !important;
	border: 1px solid #cbb7ef !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-sizing: border-box;
	display: flex;
	align-items: center;
}

.kcp-reg-form .select2-container { width: 100% !important; }
.kcp-reg-form .select2-container .select2-selection--single {
	height: 46px !important;
	min-height: 46px !important;
	border-color: #ddd2f2 !important;
	border-radius: 10px !important;
}

.kcp-exams-picker .select2-selection__rendered,
.kcp-reg-form .select2-selection__rendered {
	line-height: normal !important;
	padding: 0 18px !important;
	font-size: 14px;
	font-weight: 700;
	color: var(--kcp-text) !important;
	width: 100%;
	text-align: right;
	direction: rtl;
}

.kcp-exams-picker .select2-selection__arrow,
.kcp-reg-form .select2-selection__arrow {
	height: 100% !important;
	top: 0 !important;
	left: 10px !important;
	right: auto !important;
}

.kcp-exams-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}

.kcp-exams-grid.is-hidden { display: none; }

.kcp-exam-prompt {
	text-align: center;
	color: var(--kcp-text-light);
	padding: 28px 16px;
	font-size: 14px;
	line-height: 2;
	margin: 0;
}

.kcp-exam-prompt.is-hidden { display: none; }

.kcp-exam-card {
	display: flex;
	gap: 0;
	background: #fff;
	border: 1px solid #e9dffa;
	border-radius: 14px;
	overflow: hidden;
	align-items: stretch;
}

.kcp-exam-cover {
	width: 96px;
	object-fit: cover;
	flex: 0 0 auto;
}

.kcp-exam-body {
	flex: 1;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: left;
	align-items: flex-end;
}

.kcp-exam-body strong { color: var(--kcp-text); font-size: 14px; font-weight: 800; }
.kcp-exam-body span { color: var(--kcp-text-light); font-size: 12.5px; }

.kcp-exam-download {
	display: block;
	width: 100%;
	background: #f0e4ff;
	color: var(--kcp-purple) !important;
	font-size: 13.5px;
	font-weight: 700;
	text-align: center;
	border-radius: 8px;
	padding: 10px;
	text-decoration: none !important;
	margin-top: auto;
}

/* ============ مقالات ============ */

.kcp-articles-grid-wrap {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	align-items: stretch;
}

.kcp-articles-banner {
	background: linear-gradient(160deg, #7c3aed 0%, #a855f7 100%);
	border-radius: 20px;
	color: #fff;
	text-align: center;
	padding: 32px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.kcp-articles-art { font-size: 68px; }
.kcp-articles-art img { display: block; max-height: 160px; width: auto; margin: 0 auto; }
.kcp-articles-banner h3 { color: #fff; font-size: 20px; font-weight: 900; margin: 0; }

.kcp-articles-more {
	display: inline-block;
	background: transparent;
	border: 2px solid #fff;
	color: #fff !important;
	border-radius: 10px;
	padding: 12px 32px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.kcp-articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.kcp-article-card {
	background: var(--kcp-card-bg);
	border: 1px solid #ececf6;
	border-radius: var(--kcp-radius);
	overflow: hidden;
	text-decoration: none !important;
	box-shadow: var(--kcp-shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s;
}

.kcp-article-card:hover { transform: translateY(-3px); }

.kcp-article-thumb img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
}

.kcp-article-card h4 {
	color: var(--kcp-text);
	font-size: 15px;
	font-weight: 800;
	line-height: 2;
	margin: 0;
	padding: 14px 16px 6px;
}

.kcp-article-date {
	color: var(--kcp-text-light);
	font-size: 12.5px;
	padding: 0 16px 16px;
	margin-top: auto;
}

/* ============ اطلاعات تماس نمایندگی ============ */

.kcp-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-items: stretch;
}

.kcp-contact-card {
	background: var(--kcp-card-bg);
	border: 1px solid #ececf6;
	border-radius: var(--kcp-radius);
	padding: 24px;
	box-shadow: var(--kcp-shadow);
}

.kcp-contact-card h3 {
	color: var(--kcp-purple-dark);
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.kcp-contact-icon { font-size: 20px; }

.kcp-contact-list { list-style: none; margin: 0; padding: 0; }

.kcp-contact-list li {
	display: flex;
	gap: 8px;
	padding: 9px 0;
	border-bottom: 1px dashed #e8e4f5;
	font-size: 14px;
	line-height: 2;
}

.kcp-contact-list li:last-child { border-bottom: none; }
.kcp-contact-list li > span { color: var(--kcp-text-light); flex: 0 0 auto; }
.kcp-contact-list li strong { color: var(--kcp-text); font-weight: 700; }
.kcp-contact-list li a { color: var(--kcp-purple); text-decoration: none; }

.kcp-contact-maps {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.kcp-socials {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kcp-social {
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none !important;
	color: #fff !important;
	transition: transform 0.2s;
}

.kcp-social:hover { transform: translateY(-2px); }

.kcp-social-whatsapp { background: #25d366; }
.kcp-social-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.kcp-social-telegram { background: #229ed9; }
.kcp-social-bale { background: #3bb08f; }
.kcp-social-rubika { background: linear-gradient(135deg, #6f2dbd 0%, #8b3fd6 100%); }

.kcp-social-rubika img {
	display: block;
	width: 22px;
	height: 22px;
	filter: brightness(0) invert(1);
}

/* ============ ریسپانسیو ============ */

@media (max-width: 1080px) {
	.kcp-hero-grid { grid-template-columns: 1fr; }
	.kcp-students-grid { grid-template-columns: repeat(3, 1fr); }
	.kcp-students-carousel .kcp-student-card {
		flex-basis: calc((100% - 32px) / 3);
		min-width: calc((100% - 32px) / 3);
	}
	.kcp-courses-grid { grid-template-columns: repeat(2, 1fr); }
	.kcp-teachers-grid { grid-template-columns: repeat(2, 1fr); }
	.kcp-books-banner { grid-template-columns: 1fr; }
	.kcp-books-grid { grid-template-columns: repeat(2, 1fr); }
	.kcp-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.kcp-articles-grid-wrap { grid-template-columns: 1fr; }
	.kcp-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.kcp-title { font-size: 18px; }
	.kcp-services-grid { grid-template-columns: 1fr; }
	.kcp-students-grid { grid-template-columns: repeat(2, 1fr); }
	.kcp-students-carousel { padding: 0 40px; }
	.kcp-students-carousel .kcp-student-card {
		flex-basis: calc((100% - 16px) / 2);
		min-width: calc((100% - 16px) / 2);
	}
	.kcp-carousel-btn { width: 34px; height: 34px; font-size: 20px; }
	.kcp-courses-grid { grid-template-columns: 1fr; }
	.kcp-form-row { grid-template-columns: 1fr; }
	.kcp-quicklinks { grid-template-columns: repeat(2, 1fr); }
	.kcp-gift-banner {
		flex-direction: column;
		direction: rtl;
		padding: 28px 20px;
	}
	.kcp-gift-body { text-align: center; }
	.kcp-gift-body h3 { font-size: 18px; -webkit-text-stroke-width: 1.8px; }
	.kcp-gift-art { width: 100%; max-width: 220px; order: -1; }
	.kcp-exams-grid { grid-template-columns: 1fr; }
	.kcp-exams-badge { font-size: 13px; padding: 11px 22px; }
	.kcp-exams-intro { flex-direction: column; }
	.kcp-exams-image { flex: none; width: 100%; }
	.kcp-exams-picker select,
	.kcp-exams-picker .select2-container { width: 100% !important; }
	.kcp-articles-grid { grid-template-columns: 1fr; }
	.kcp-why-grid { grid-template-columns: 1fr; }
	.kcp-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.kcp-stat-num { font-size: 32px; }

	/* تب‌ها: یک ردیف با اسکرول افقی (کاروسل) */
	.kcp-tabs-header {
		flex-wrap: nowrap;
		gap: 10px;
	}
	.kcp-tabs-header .kcp-btn-view-all { padding: 10px 14px; font-size: 12px; }
	.kcp-tab-btn { padding: 10px 16px; font-size: 12.5px; }
	.kcp-course-tab { min-width: 118px; padding: 10px 12px; font-size: 11.5px; }
}

/* ============ صفحه آرشیو نمایندگی ============ */

.kcp-archive-page .kcp-archive-hero {
	padding-top: 28px;
	padding-bottom: 8px;
}

.kcp-archive-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--kcp-text-light);
	margin-bottom: 12px;
}

.kcp-archive-breadcrumb a {
	color: var(--kcp-purple);
	text-decoration: none;
}

.kcp-archive-intro {
	margin: 0 0 8px;
	color: var(--kcp-text-light);
	font-size: 14px;
}

.kcp-archive-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	align-items: start;
	padding-bottom: 48px;
}

.kcp-archive-sidebar {
	position: sticky;
	top: 90px;
	background: var(--kcp-card-bg);
	border-radius: var(--kcp-radius);
	box-shadow: var(--kcp-shadow);
	padding: 16px;
	border: 1px solid rgba(124, 42, 232, 0.08);
}

.kcp-archive-sidebar-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border: 1px solid #e8e4f5;
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--kcp-purple-dark);
	cursor: pointer;
	margin-bottom: 12px;
}

.kcp-archive-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kcp-archive-nav-item,
.kcp-archive-subnav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 14px;
	border: none;
	border-radius: 10px;
	background: transparent;
	font-family: inherit;
	font-size: 13.5px;
	color: var(--kcp-text);
	text-align: right;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.kcp-archive-nav-item:hover,
.kcp-archive-subnav-item:hover {
	background: rgba(124, 42, 232, 0.06);
}

.kcp-archive-nav-item.is-active {
	background: linear-gradient(135deg, var(--kcp-purple) 0%, var(--kcp-purple-light) 100%);
	color: #fff;
	font-weight: 700;
}

.kcp-archive-subnav {
	display: none;
	flex-direction: column;
	gap: 2px;
	padding: 4px 0 8px 12px;
	border-right: 2px solid rgba(124, 42, 232, 0.15);
	margin-right: 14px;
	margin-bottom: 4px;
}

.kcp-archive-subnav.is-open {
	display: flex;
}

.kcp-archive-subnav-item {
	font-size: 12.5px;
	padding: 8px 12px;
	color: var(--kcp-text-light);
}

.kcp-archive-subnav-item.is-active {
	background: rgba(124, 42, 232, 0.1);
	color: var(--kcp-purple-dark);
	font-weight: 700;
}

.kcp-archive-main {
	min-width: 0;
}

.kcp-archive-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	padding: 14px 16px;
	background: #faf9ff;
	border-radius: 12px;
	border: 1px solid #ece8f8;
}

.kcp-archive-search {
	width: min(100%, 320px);
	padding: 10px 14px;
	border: 1px solid #ddd8ee;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	background: #fff;
}

.kcp-archive-sort-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--kcp-text-light);
}

.kcp-archive-sort {
	padding: 9px 12px;
	border: 1px solid #ddd8ee;
	border-radius: 10px;
	font-family: inherit;
	font-size: 13px;
	background: #fff;
	min-width: 150px;
}

.kcp-archive-results-meta {
	font-size: 13px;
	color: var(--kcp-text-light);
	margin-bottom: 14px;
}

.kcp-archive-panel {
	display: none;
}

.kcp-archive-panel.is-active {
	display: block;
}

.kcp-archive-panel-title {
	font-size: 20px;
	color: var(--kcp-purple-dark);
	margin: 0 0 18px;
}

.kcp-archive-card.is-filtered-out {
	display: none !important;
}

.kcp-archive-no-results {
	text-align: center;
	padding: 32px;
	color: var(--kcp-text-light);
	font-size: 15px;
}

.kcp-archive-no-results.is-hidden {
	display: none;
}

.kcp-archive-books-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.kcp-archive-exams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.kcp-exam-meta {
	display: block;
	font-size: 12px;
	color: var(--kcp-text-light);
	margin-top: 4px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 900px) {
	.kcp-archive-layout {
		grid-template-columns: 1fr;
	}

	.kcp-archive-sidebar {
		position: static;
	}

	.kcp-archive-sidebar-toggle {
		display: flex;
	}

	.kcp-archive-nav {
		display: none;
	}

	.kcp-archive-sidebar.is-open .kcp-archive-nav {
		display: flex;
	}
}

@media (max-width: 640px) {
	.kcp-archive-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.kcp-archive-search {
		width: 100%;
	}

	.kcp-archive-sort-wrap {
		flex-direction: column;
		align-items: stretch;
	}

	.kcp-archive-sort {
		width: 100%;
	}

	.kcp-archive-books-grid,
	.kcp-archive-exams-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.kcp-archive-books-grid,
	.kcp-archive-exams-grid {
		grid-template-columns: 1fr;
	}
}

/* ============ اسلایدشو بنر هیرو ============ */

.kcp-hero-slider {
	position: relative;
}

.kcp-hero-slider-track {
	position: relative;
}

.kcp-hero-slide {
	display: none;
}

.kcp-hero-slide.is-active {
	display: block;
}

.kcp-hero-slider-prev,
.kcp-hero-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--kcp-purple-dark);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--kcp-shadow);
	z-index: 2;
}

.kcp-hero-slider-prev { right: 12px; }
.kcp-hero-slider-next { left: 12px; }

.kcp-hero-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.kcp-hero-slider-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: #d8c4f7;
	cursor: pointer;
	padding: 0;
}

.kcp-hero-slider-dot.is-active {
	background: var(--kcp-purple);
}

/* ============ کاروسل مدیران ============ */

.kcp-managers-carousel {
	position: relative;
}

.kcp-managers-track {
	overflow: hidden;
}

.kcp-managers-grid {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px 0;
}

.kcp-managers-grid::-webkit-scrollbar { display: none; }

.kcp-manager-card {
	flex: 0 0 calc(25% - 15px);
	min-width: 220px;
	scroll-snap-align: start;
}

.kcp-managers-prev,
.kcp-managers-next {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: var(--kcp-purple-dark);
	font-size: 26px;
	box-shadow: var(--kcp-shadow);
	cursor: pointer;
	z-index: 2;
}

.kcp-managers-prev { right: -12px; }
.kcp-managers-next { left: -12px; }

.kcp-course-discount-badge {
	display: inline-block;
	background: #fee2e2;
	color: #dc2626;
	font-size: 12px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 999px;
	margin-left: 6px;
}

/* ============ صفحه جزئیات دوره ============ */

.kcp-course-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	color: var(--kcp-text-light);
	font-size: 13px;
	margin-bottom: 20px;
}

.kcp-course-breadcrumb a {
	color: var(--kcp-purple);
	text-decoration: none;
}

.kcp-course-detail-grid {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 28px;
	margin-bottom: 28px;
}

.kcp-course-detail-media img,
.kcp-course-detail-placeholder {
	display: block;
	width: 100%;
	border-radius: var(--kcp-radius);
	box-shadow: var(--kcp-shadow);
}

.kcp-course-detail-placeholder {
	height: 280px;
	display: grid;
	place-items: center;
	font-size: 64px;
	background: #f5f0ff;
}

.kcp-course-detail-title {
	color: var(--kcp-purple-dark);
	font-size: 28px;
	font-weight: 900;
	margin: 0 0 12px;
}

.kcp-course-detail-teacher {
	color: var(--kcp-text-light);
	margin-bottom: 14px;
}

.kcp-course-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.kcp-course-detail-specs {
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
	font-size: 14px;
}

.kcp-course-detail-specs div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	background: #faf8ff;
	border-radius: 10px;
}

.kcp-course-detail-price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.kcp-course-detail-discount {
	background: #fee2e2;
	color: #dc2626;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
}

.kcp-course-detail-old {
	color: var(--kcp-text-light);
	text-decoration: line-through;
}

.kcp-course-detail-new {
	color: var(--kcp-purple-dark);
	font-size: 24px;
	font-weight: 900;
}

.kcp-course-cash-banner {
	margin: 24px 0;
	border-radius: var(--kcp-radius);
	overflow: hidden;
}

.kcp-course-cash-banner img {
	display: block;
	width: 100%;
	height: auto;
}

.kcp-course-detail-sections {
	display: grid;
	gap: 24px;
}

.kcp-course-detail-tabs {
	margin-top: 28px;
	background: #fff;
	border: 1px solid #ececf6;
	border-radius: var(--kcp-radius);
	padding: 20px 22px 24px;
	box-shadow: var(--kcp-shadow);
}

.kcp-course-detail-tabs .kcp-tabs-nav {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	padding: 6px;
	background: #f4f0ff;
	border-radius: 14px;
	border-bottom: none;
}

.kcp-course-detail-tabs .kcp-tab-btn {
	border: none;
	border-radius: 10px;
	padding: 12px 24px;
	background: transparent;
	color: var(--kcp-text-light);
	box-shadow: none;
}

.kcp-course-detail-tabs .kcp-tab-btn.is-active {
	background: linear-gradient(90deg, #7c2ae8 0%, #a855f7 100%);
	color: #fff;
	box-shadow: 0 6px 16px rgba(124, 42, 232, 0.22);
}

.kcp-course-detail-tabs .kcp-tab-panel {
	padding-top: 4px;
}

.kcp-course-detail-block {
	background: #fff;
	border: 1px solid #ececf6;
	border-radius: var(--kcp-radius);
	padding: 22px;
	box-shadow: var(--kcp-shadow);
}

.kcp-course-detail-block h2 {
	margin: 0 0 14px;
	color: var(--kcp-purple-dark);
	font-size: 20px;
}

.kcp-course-rich-content {
	line-height: 2;
	font-size: 14px;
}

/* مودال ثبت نام دوره */

.kcp-modal {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(24, 16, 48, 0.55);
}

.kcp-modal.is-open {
	display: flex;
}

.kcp-modal-card {
	width: min(520px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
	padding: 22px 22px 26px;
}

.kcp-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.kcp-modal-head h3 {
	margin: 0;
	color: var(--kcp-purple-dark);
	font-size: 18px;
	font-weight: 900;
}

.kcp-modal-close {
	border: none;
	background: #f3f0ff;
	color: var(--kcp-purple-dark);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.kcp-course-register-form .kcp-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.kcp-course-register-form .kcp-field select,
.kcp-course-register-form .kcp-field input {
	width: 100%;
	border: 1px solid #ddd6f5;
	border-radius: 10px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 14px;
}

.kcp-course-register-form .kcp-field > span {
	font-size: 13px;
	font-weight: 700;
	color: var(--kcp-purple-dark);
	margin-bottom: 6px;
}

@media (max-width: 900px) {
	.kcp-course-detail-grid { grid-template-columns: 1fr; }
	.kcp-manager-card { flex-basis: calc(50% - 10px); min-width: 180px; }
}

@media (max-width: 640px) {
	.kcp-manager-card { flex-basis: 85%; min-width: 0; }
}
