/* ویکی روان – پیشنهاد مشاور مرتبط */

.wrc-wrap {
	--wrc-green: #32a057;
	--wrc-green-dark: #2a8b4a;
	--wrc-ink: #1b2733;
	--wrc-muted: #7c8a95;
	--wrc-card: #f4f5f5;
	--wrc-line: #e8e9e9;
	--wrc-star: #f6b83f;

	direction: rtl;
	text-align: right;
	margin: 2.4em 0;
	padding: 0;
	font-family: inherit;
	clear: both;
}

.wrc-wrap .wrc-heading {
	margin: 0 0 .3em;
	text-align: center;
	font-size: 1.22em;
	font-weight: 800 !important;
	line-height: 1.75;
	color: var(--wrc-ink);
}

.wrc-wrap .wrc-subtitle {
	margin: 0 0 1.2em;
	text-align: center;
	font-size: .92em;
	line-height: 1.9;
	color: var(--wrc-muted);
}

.wrc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.wrc-grid--1 { grid-template-columns: minmax(0, 320px); justify-content: center; }
.wrc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.wrc-wrap .wrc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 22px 14px 18px;
	background: var(--wrc-card) !important;
	border: 1px solid var(--wrc-line);
	border-radius: 16px;
	text-align: center;
	box-shadow: none;
}

/* تصویر مشاور: دایره کامل با حلقه سفید روی زمینه طوسی */
.wrc-wrap .wrc-avatar {
	display: block;
	width: 96px;
	height: 96px;
	margin-bottom: 10px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px rgba(27, 39, 51, .05);
	color: var(--wrc-muted);
	text-decoration: none;
	flex: 0 0 auto;
	box-sizing: border-box;
}

.wrc-wrap .wrc-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	border-radius: 50%;
	display: block;
	margin: 0;
	padding: 0;
	max-width: none;
	background: #fff;
}

.wrc-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.wrc-wrap .wrc-name {
	margin: 0;
	font-size: 1.02em;
	font-weight: 700;
	line-height: 1.8;
}

.wrc-wrap .wrc-name a {
	text-decoration: none;
	box-shadow: none;
	border: 0;
}

.wrc-wrap .wrc-name a:hover,
.wrc-wrap .wrc-name a:focus-visible {
	text-decoration: underline;
}

.wrc-wrap .wrc-role {
	margin: 0;
	font-size: .85em;
	line-height: 1.8;
	color: var(--wrc-muted);
}

/* امکان رزرو فوری */
.wrc-wrap .wrc-instant {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 6px 0 0;
	font-size: .82em;
	font-weight: 700;
	line-height: 1.7;
	color: var(--wrc-green);
}

.wrc-bolt { fill: var(--wrc-green); flex: 0 0 auto; }

.wrc-wrap .wrc-rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin: 8px 0 14px;
	font-size: .9em;
	font-weight: 600;
	color: var(--wrc-ink);
}

.wrc-star { fill: var(--wrc-star); flex: 0 0 auto; }

.wrc-wrap .wrc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin-top: auto;
	padding: 11px 12px;
	border: 1.5px solid var(--wrc-green);
	border-radius: 12px;
	background: #fff;
	color: var(--wrc-green) !important;
	font-size: .92em;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.6;
	box-sizing: border-box;
	transition: background-color .18s ease, color .18s ease;
}

.wrc-chevron { flex: 0 0 auto; }

/* رنگ نوشته‌ی دکمه.
   بعضی قالب‌ها برای a:hover داخل متن مقاله قانونی با شناسه (#id) و !important دارند
   که از هر انتخابگر کلاسی قوی‌تر است. برای همین علاوه بر color، از text-fill-color
   و stroke هم استفاده می‌کنیم؛ این دو را هیچ قالبی روی لینک‌ها ست نمی‌کند. */
.wrc-wrap a.wrc-btn,
.wrc-wrap a.wrc-btn .wrc-btn-label,
.wrc-wrap a.wrc-btn span {
	color: var(--wrc-green) !important;
	-webkit-text-fill-color: var(--wrc-green);
	text-decoration: none !important;
}

.wrc-wrap a.wrc-btn .wrc-chevron { stroke: var(--wrc-green); }

.wrc-wrap a.wrc-btn:hover,
.wrc-wrap a.wrc-btn:focus,
.wrc-wrap a.wrc-btn:focus-visible,
.wrc-wrap a.wrc-btn:active {
	background: var(--wrc-green);
	border-color: var(--wrc-green);
	text-decoration: none !important;
}

.wrc-wrap a.wrc-btn:hover,
.wrc-wrap a.wrc-btn:hover .wrc-btn-label,
.wrc-wrap a.wrc-btn:hover span,
.wrc-wrap a.wrc-btn:focus,
.wrc-wrap a.wrc-btn:focus .wrc-btn-label,
.wrc-wrap a.wrc-btn:focus span,
.wrc-wrap a.wrc-btn:active,
.wrc-wrap a.wrc-btn:active .wrc-btn-label,
.wrc-wrap a.wrc-btn:active span {
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.wrc-wrap a.wrc-btn:hover .wrc-chevron,
.wrc-wrap a.wrc-btn:focus .wrc-chevron,
.wrc-wrap a.wrc-btn:active .wrc-chevron {
	stroke: #fff !important;
}

.wrc-wrap .wrc-btn:focus-visible,
.wrc-wrap .wrc-name a:focus-visible {
	outline: 2px solid var(--wrc-green-dark);
	outline-offset: 2px;
}

.wrc-wrap .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* موبایل: اسلاید افقی به جای فشرده شدن کارت‌ها */
@media (max-width: 680px) {
	.wrc-grid,
	.wrc-grid--1,
	.wrc-grid--2 {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 12px;
		padding-bottom: 6px;
		margin-inline: -4px;
		padding-inline: 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.wrc-wrap .wrc-card {
		flex: 0 0 66%;
		max-width: 260px;
		scroll-snap-align: center;
	}

	.wrc-wrap .wrc-heading { font-size: 1.1em; }
}

@media (prefers-reduced-motion: reduce) {
	.wrc-wrap .wrc-btn { transition: none; }
}
