/* ==========================================================
   یادوار - استایل‌های پایه‌ی شورت‌کدها و ویجت‌ها
   رنگ‌ها با متغیرها قابل تغییرند (در المنتور: Site Settings › Custom CSS
   یا تنظیمات استایل هر ویجت).
========================================================== */
:root {
	--yv-gold: #998561;
	--yv-gold-light: #c9ad7a;
	--yv-dark: #141210;
	--yv-dark-2: #1e1c18;
	--yv-border: #2e2a22;
	--yv-cream: #f6f1e7;
	--yv-text: #333;
	--yv-radius: 16px;
}

.yv-hp { position: absolute !important; inset-inline-end: 0 !important; top: 0 !important; left: auto !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; pointer-events: none !important; }
.yv-msg-form { position: relative; }
.yv-muted { color: #8a8170; }
.yv-center { text-align: center; }

.yv-button,
.yv-section-button {
	display: inline-block;
	padding: 10px 26px;
	background: var(--yv-gold);
	color: #000;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	transition: background .2s;
}
.yv-button:hover, .yv-button:focus { background: var(--yv-gold-light); color: #000; }

/* ---------------- QR ---------------- */
.yv-qr { width: 100%; max-width: var(--yv-qr-max, 300px); margin: 0 auto; text-align: center; }
.yv-qr-box {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #fff;
	border-radius: 12px;
	padding: 6%;
	box-sizing: border-box;
	cursor: pointer;
	line-height: 0;
}
.yv-qr-canvas { position: relative; width: 100%; height: 100%; }
.yv-qr-canvas canvas,
.yv-qr-canvas img,
.yv-qr-canvas table {
	position: absolute !important; inset: 0 !important;
	width: 100% !important; height: 100% !important;
	object-fit: contain !important; display: block !important;
	margin: 0 !important; max-width: none !important;
}
.yv-qr-canvas canvas + img[style*="display: none"], .yv-qr-canvas img[style*="display:none"] { display: none !important; }
.yv-qr-logo {
	position: absolute; top: 50%; left: 50%;
	width: 20%; height: 20%;
	transform: translate(-50%, -50%);
	background: #fff; border-radius: 50%; padding: 2%;
	object-fit: contain; pointer-events: none; box-sizing: border-box;
}
.yv-qr-contact { margin: 8px 0 0; font-size: 13px; color: inherit; line-height: 1.6; }

/* ---------------- صلوات / فاتحه ---------------- */
.yv-counter { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.yv-counter-btn {
	font-family: inherit; cursor: pointer; border: 0;
	transition: transform .15s, background .2s, box-shadow .2s;
}
.yv-counter-btn.is-pressed { transform: scale(.94); }
.yv-counter--classic .yv-counter-btn {
	padding: 12px 30px; border-radius: 12px;
	background: var(--yv-cream); color: #5b4b2c;
	border: 1px solid var(--yv-gold); font-size: 15px; font-weight: 700;
	box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.yv-counter--classic .yv-counter-btn:hover { background: #efe5d0; }
.yv-counter--pill { flex-direction: row; }
.yv-counter--pill .yv-counter-btn {
	padding: 8px 20px; border-radius: 999px;
	background: var(--yv-gold); color: #000; font-weight: 700;
}
.yv-counter-num { font-size: 15px; font-weight: 700; color: var(--yv-gold); min-width: 2ch; text-align: center; }
.yv-counter-bubble {
	position: absolute; bottom: calc(100% + 8px); left: 50%;
	transform: translate(-50%, 6px);
	white-space: nowrap; padding: 6px 14px; border-radius: 999px;
	background: #2f5d4f; color: #fff; font-size: 13px;
	opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.yv-counter-bubble.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- صدا ---------------- */
.yv-audio { text-align: center; }
.yv-audio-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.yv-audio-btn {
	font-family: inherit; cursor: pointer;
	padding: 10px 22px; border-radius: 999px;
	background: transparent; color: var(--yv-gold);
	border: 1px solid var(--yv-gold); font-weight: 700;
	transition: background .2s, color .2s;
}
.yv-audio-btn:hover, .yv-audio-btn.is-active { background: var(--yv-gold); color: #000; }
.yv-audio audio { width: 100%; max-width: 420px; margin: 10px auto 0; display: block; }
.yv-audio audio[hidden] { display: none; }
.yv-audio-status { min-height: 1em; margin: 6px 0 0; font-size: 13px; color: #8a8170; }
.yv-audio-fallback {
	margin-top: 8px; font-family: inherit; cursor: pointer;
	padding: 8px 20px; border-radius: 999px; border: 0;
	background: var(--yv-gold); color: #000;
}
.yv-audio-empty { color: #8a8170; font-size: 14px; }

/* ---------------- بازدید ---------------- */
.yv-views { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.yv-views-num { font-weight: 700; }

/* ---------------- اسلایدشو ---------------- */
.yv-slideshow { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--yv-radius); }
.yv-slideshow img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; opacity: 0; transition: opacity 1s;
}
.yv-slideshow img.is-active { opacity: 1; }

/* ---------------- هدر یادبود ---------------- */
.yv-header { text-align: center; }
.yv-header-photo-row { display: flex; align-items: flex-end; justify-content: center; gap: 18px; margin-bottom: 14px; }
.yv-header-photo {
	width: 160px; height: 160px; border-radius: 50%;
	object-fit: cover; border: 3px solid var(--yv-gold);
	box-shadow: 0 0 0 6px rgba(153,133,97,.12), 0 6px 24px rgba(0,0,0,.35);
}
.yv-header-photo--empty {
	display: flex; align-items: center; justify-content: center;
	background: #2a2620; color: var(--yv-gold); font-size: 56px;
}
.yv-candle svg { display: block; width: 32px; height: auto; }
.yv-flame { transform-origin: 20px 20px; animation: yv-flicker 1.6s ease-in-out infinite alternate; }
.yv-candle--late .yv-flame { animation-delay: .7s; }
@keyframes yv-flicker {
	0%   { transform: scale(1, 1) rotate(-1deg); opacity: .95; }
	50%  { transform: scale(.94, 1.06) rotate(1.5deg); opacity: 1; }
	100% { transform: scale(1.04, .96) rotate(-2deg); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) { .yv-flame { animation: none; } }
.yv-header-prefix { display: block; color: var(--yv-gold); font-size: 15px; letter-spacing: 2px; margin-bottom: 2px; }
.yv-header-name { margin: 0 0 6px; color: var(--yv-gold-light); font-size: 28px; line-height: 1.5; }
.yv-header-years { color: var(--yv-gold); font-size: 15px; letter-spacing: 1px; }

/* ---------------- گرید کارت‌ها ---------------- */
.yv-grid {
	display: grid;
	grid-template-columns: repeat(var(--yv-cols, 3), minmax(0, 1fr));
	gap: 16px;
	direction: rtl;
}
@media (max-width: 900px) { .yv-grid { grid-template-columns: repeat(min(2, var(--yv-cols, 3)), minmax(0, 1fr)); } }
@media (max-width: 580px) { .yv-grid { grid-template-columns: 1fr; } }
.yv-grid-empty { text-align: center; color: #8a8170; }

.yv-card {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	padding: 22px 16px 16px;
	background: linear-gradient(145deg, var(--yv-dark-2) 0%, var(--yv-dark) 100%);
	border: 1px solid var(--yv-border);
	border-radius: 18px;
	text-align: center;
	overflow: hidden;
	transition: transform .3s, box-shadow .3s, border-color .3s;
}
.yv-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(153,133,97,.35);
	border-color: rgba(153,133,97,.4);
}
.yv-card::after {
	content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--yv-gold), transparent);
	opacity: 0; transition: opacity .3s;
}
.yv-card:hover::after { opacity: 1; }
.yv-card-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; width: 100%; }
.yv-card-photo {
	width: 90px; height: 90px; border-radius: 50%;
	object-fit: cover; border: 2.5px solid var(--yv-gold);
	box-shadow: 0 0 0 5px rgba(153,133,97,.1), 0 4px 20px rgba(0,0,0,.5);
	margin: 0 auto 14px; display: block;
}
.yv-card-photo--empty { display: flex; align-items: center; justify-content: center; background: #2a2620; color: var(--yv-gold); font-size: 32px; }
.yv-card-prefix { color: var(--yv-gold); font-size: 12px; letter-spacing: 2px; margin-bottom: 4px; }
.yv-card-name { color: var(--yv-gold-light); font-size: 19px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
.yv-card-divider { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--yv-gold), transparent); margin: 8px auto; opacity: .5; }
.yv-card-years { color: var(--yv-gold); font-size: 13px; letter-spacing: 1px; margin-bottom: 14px; }
.yv-card-qr { max-width: 72px; margin-top: auto; }
.yv-card-qr .yv-qr-box { border-radius: 10px; padding: 4px; }

/* ---------------- انتخاب بخش (صفحه‌ی اول) ---------------- */
.yv-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 700px) { .yv-sections { grid-template-columns: 1fr; } }
.yv-section-card {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	padding: 34px 24px; border-radius: 20px; text-align: center; text-decoration: none;
	background: linear-gradient(145deg, var(--yv-dark-2), var(--yv-dark));
	border: 1px solid var(--yv-border);
	transition: transform .3s, border-color .3s, box-shadow .3s;
}
.yv-section-card:hover { transform: translateY(-4px); border-color: var(--yv-gold); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.yv-section-card--dead { background: linear-gradient(145deg, #23262b, #15171a); }
.yv-section-title { color: var(--yv-gold-light); font-size: 24px; font-weight: 700; }
.yv-section-text { color: #cfc6b4; font-size: 15px; line-height: 1.9; }
.yv-section-card:hover .yv-section-button { background: var(--yv-gold-light); }

/* ---------------- تب‌ها ---------------- */
.yv-tabs { direction: rtl; }
.yv-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.yv-tab-btn {
	font-family: inherit; cursor: pointer;
	padding: 8px 20px; border-radius: 999px;
	background: transparent; color: var(--yv-gold);
	border: 1px solid var(--yv-gold);
	transition: background .2s, color .2s;
}
.yv-tab-btn:hover, .yv-tab-btn.is-active { background: var(--yv-gold); color: #000; }
.yv-tab-panel { display: none; }
.yv-tab-panel.is-active { display: block; animation: yv-fade .3s ease; }
@keyframes yv-fade { from { opacity: 0; } to { opacity: 1; } }
.yadvar-bio-text { line-height: 2.1; text-align: justify; }
.yv-info { margin: 0; display: grid; gap: 10px; }
.yv-info > div { display: flex; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(153,133,97,.08); }
.yv-info dt { font-weight: 700; color: var(--yv-gold); min-width: 110px; }
.yv-info dd { margin: 0; }
.yv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.yv-gallery-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
.yv-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.yv-gallery-item:hover img { transform: scale(1.05); }
.yv-lightbox {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.92);
}
.yv-lightbox[hidden] { display: none; }
.yv-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.yv-lightbox button {
	position: absolute; border: 0; cursor: pointer;
	background: rgba(255,255,255,.12); color: #fff;
	width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1;
}
.yv-lb-close { top: 16px; left: 16px; font-size: 20px !important; }
.yv-lb-prev { right: 12px; top: 50%; transform: translateY(-50%); }
.yv-lb-next { left: 12px; top: 50%; transform: translateY(-50%); }
.yv-video { width: 100%; border-radius: var(--yv-radius); background: #000; }

/* ---------------- پیام‌ها ---------------- */
.yv-messages { direction: rtl; }
.yv-msg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 700px) { .yv-msg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .yv-msg-grid { grid-template-columns: 1fr; } }
.yv-msg { padding: 14px 16px; border-radius: 12px; background: rgba(153,133,97,.08); border: 1px solid rgba(153,133,97,.25); }
.yv-msg-text { margin: 0 0 8px; line-height: 1.9; }
.yv-msg-name { display: block; font-size: 13px; font-weight: 700; color: var(--yv-gold); }
.yv-msg-name::before { content: '— '; }
.yv-msg-all[hidden] { display: none; }
.yv-msg-more {
	font-family: inherit; cursor: pointer; padding: 8px 22px; border-radius: 999px;
	background: transparent; color: var(--yv-gold); border: 1px solid var(--yv-gold);
}
.yv-msg-form { display: grid; gap: 10px; max-width: 520px; margin: 10px auto 0; }
.yv-msg-form h4 { margin: 0 0 4px; text-align: center; color: var(--yv-gold); }
.yv-msg-form input[type=text],
.yv-msg-form textarea {
	width: 100%; box-sizing: border-box; font-family: inherit; font-size: 15px;
	padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(153,133,97,.5); background: #fff; color: #222;
}
.yv-msg-form button[type=submit] {
	font-family: inherit; cursor: pointer; padding: 10px; border: 0; border-radius: 10px;
	background: var(--yv-gold); color: #000; font-weight: 700; font-size: 15px;
}
.yv-msg-form button[type=submit]:hover { background: var(--yv-gold-light); }
.yv-msg-form button[disabled] { opacity: .6; cursor: wait; }
.yv-msg-result { margin: 0; min-height: 1em; font-size: 14px; text-align: center; }
.yv-msg-result.is-ok { color: #2f7d4f; }
.yv-msg-result.is-error { color: #c0392b; }

/* ---------------- تاریخ‌ها و شعر ---------------- */
.yadvar-dates-box { color: var(--yv-date-color, #333); font-size: var(--yv-date-size, 15px); line-height: 2; }
.yadvar-date-row { margin-bottom: 4px; }
.yadvar-age-row { color: var(--yv-age-color, #2f5d4f); }
.yadvar-poem { line-height: 2.2; text-align: center; font-style: normal; }

/* ---------------- صفحه‌ی «به‌زودی» ---------------- */
.yv-coming-soon { display: flex; justify-content: center; padding: 60px 16px; }
.yv-coming-soon-box {
	max-width: 520px; width: 100%; text-align: center;
	padding: 40px 28px; border-radius: 20px;
	background: linear-gradient(145deg, var(--yv-dark-2), var(--yv-dark));
	border: 1px solid var(--yv-border); color: #e8e1d3;
}
.yv-coming-soon-box h1 { color: var(--yv-gold-light); margin: 10px 0; }
.yv-coming-soon-box p { line-height: 2; }
.yv-coming-soon-icon svg { width: 40px; height: auto; }

/* ---------------- چاپ QR انبوه ---------------- */
.yv-qr-batch textarea { width: 100%; box-sizing: border-box; font-family: monospace; }
.yv-qr-batch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 700px) { .yv-qr-batch-grid { grid-template-columns: repeat(2, 1fr); } }
.yv-qr-cell { text-align: center; border: 1px dashed #bbb; border-radius: 8px; padding: 14px; page-break-inside: avoid; break-inside: avoid; }
.yv-qr-render { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.yv-qr-render canvas, .yv-qr-render img:not(.yv-qr-logo), .yv-qr-render table { width: 180px !important; height: 180px !important; }
.yv-qr-cell .yv-qr-logo { width: 36px; height: 36px; padding: 3px; }
.yv-qr-number { font-family: monospace; font-size: 11px; color: #666; margin-top: 6px; direction: ltr; word-break: break-all; }
@media print {
	.yv-qr-batch-controls, #wpadminbar { display: none !important; }
	.yv-qr-batch-grid { gap: 0 !important; }
}

/* ---------------- صفحه‌ی بخش با طرح برگه‌ی دلخواه ---------------- */
.yv-section-head { text-align: center; padding: 32px 16px 8px; }
.yv-section-head h1 { margin: 0; color: var(--yv-gold-light); }

/* ---------------- آمار ---------------- */
.yv-stats { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.yv-stat {
	flex: 1 1 160px; max-width: 260px; display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 20px 16px; border-radius: 16px; text-decoration: none;
	background: linear-gradient(145deg, var(--yv-dark-2), var(--yv-dark)); border: 1px solid var(--yv-border);
}
a.yv-stat:hover { border-color: var(--yv-gold); }
.yv-stat-num { font-size: 34px; font-weight: 700; line-height: 1.2; color: var(--yv-gold-light); }
.yv-stat-label { font-size: 14px; color: #cfc6b4; }

/* ---------------- کادر بخش با تصویر پس‌زمینه ---------------- */
.yv-section-card { position: relative; overflow: hidden; isolation: isolate; }
.yv-section-card--has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.yv-section-card--has-bg::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: rgba(0,0,0,.55); transition: background .3s;
}
.yv-section-card--has-bg > * { position: relative; }
.yv-section-card--has-bg .yv-section-title { text-shadow: 0 2px 12px rgba(0,0,0,.6); }

/* ---------------- فیلتر صفحه‌ی بخش ---------------- */
.yv-filter-wrap { padding: 0 16px; }
.yv-filter {
	direction: rtl; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 12px;
	max-width: 900px; margin: 16px auto 28px; padding: 14px 16px; box-sizing: border-box;
	background: rgba(255,255,255,.03); border: 1px solid var(--yv-border, #2e2a22); border-radius: 14px;
}
.yv-filter-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; margin: 0; }
.yv-filter-label { font-size: 12px; color: var(--yv-gold, #998561); }
.yv-filter select {
	width: 100%; height: 42px; padding: 0 12px 0 32px; box-sizing: border-box;
	font-family: inherit; font-size: 14px; color: #e8e1d3; background-color: #121110;
	border: 1px solid #3a342a; border-radius: 10px; cursor: pointer;
	-webkit-appearance: none; appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #998561 50%), linear-gradient(135deg, #998561 50%, transparent 50%);
	background-position: 14px 18px, 19px 18px; background-size: 5px 5px; background-repeat: no-repeat;
}
.yv-filter select:focus { outline: none; border-color: var(--yv-gold, #998561); }
.yv-filter-submit { height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--yv-gold, #998561); color: #000; font-family: inherit; cursor: pointer; }
.yv-filter-reset { align-self: center; font-size: 13px; color: var(--yv-gold-light, #c9ad7a); text-decoration: none; white-space: nowrap; padding: 10px 4px 0; }
.yv-filter-reset:hover { text-decoration: underline; }
@media (max-width: 600px) {
	.yv-filter { padding: 12px; gap: 10px; }
	.yv-filter-field { flex: 1 1 100%; }
}

/* ---------------- کارت‌های مینیمال و فاصله‌دار در صفحه‌ی بخش ---------------- */
.yv-section-page { --yv-card-gap: 28px; }
.yv-section-page .elementor-loop-container,
.yv-section-page .elementor-posts-container {
	--grid-column-gap: var(--yv-card-gap) !important;
	--grid-row-gap: var(--yv-card-gap) !important;
	gap: var(--yv-card-gap) !important;
}
.yv-section-page .e-loop-item {
	border-radius: 14px; overflow: hidden;
	box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 6px 18px rgba(0,0,0,.25);
	transition: transform .25s, box-shadow .25s;
}
.yv-section-page .e-loop-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.yv-section-page .yv-grid { gap: var(--yv-card-gap); }

/* کارت پیش‌فرض یادوار: کوچک‌تر و ساده‌تر */
.yv-section-page .yv-card,
.yv-wrap .yv-card { padding: 18px 12px 14px; border-radius: 14px; }
.yv-section-page .yv-card:hover,
.yv-wrap .yv-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.yv-section-page .yv-card-photo,
.yv-wrap .yv-card-photo { width: 72px; height: 72px; border-width: 2px; box-shadow: none; margin-bottom: 10px; }
.yv-section-page .yv-card-name,
.yv-wrap .yv-card-name { font-size: 16px; }
.yv-section-page .yv-card-qr,
.yv-wrap .yv-card-qr { max-width: 56px; }
@media (min-width: 900px) {
	.yv-section-page .yv-grid, .yv-wrap .yv-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* ---------------- کتابخانه‌ی صوتی ---------------- */
.yv-audio-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); direction: rtl; }
@media (max-width: 1000px) { .yv-audio-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .yv-audio-cats { grid-template-columns: 1fr; } }
.yv-audio-cat-count { font-size: 12px; color: var(--yv-gold, #998561); }
.yv-audio-list { direction: rtl; max-width: 900px; margin: 0 auto; }
.yv-audio-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.yv-audio-list-title { margin: 0; color: var(--yv-gold-light, #c9ad7a); }
.yv-audio-back { color: var(--yv-gold, #998561); text-decoration: none; font-size: 14px; }
.yv-audio-back:hover { text-decoration: underline; }
.yv-audio-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.yv-audio-item {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	padding: 16px 18px; border-radius: 14px;
	background: linear-gradient(145deg, var(--yv-dark-2, #1a1815), var(--yv-dark, #0f0f0f)); border: 1px solid var(--yv-border, #2e2a22);
}
.yv-audio-item-info { flex: 1 1 260px; min-width: 0; }
.yv-audio-item-title { margin: 0 0 4px; font-size: 16px; color: var(--yv-gold-light, #c9ad7a); display: inline-block; }
.yv-audio-item-len { font-size: 12px; color: #8a8170; margin-inline-start: 8px; }
.yv-audio-item-desc { margin: 4px 0 0; font-size: 13px; line-height: 1.9; color: #cfc6b4; }
.yv-audio-item-player { flex: 1 1 280px; max-width: 380px; width: 100%; height: 40px; }

/* ---------------- کارت با قالب المنتور داخل گرید یادوار ---------------- */
.yv-grid > .yv-card-tpl { min-width: 0; }
.yv-grid > .yv-card-tpl > .elementor { height: 100%; }

/* کل کارت لینک به صفحه‌ی یادبود */
.yv-card-tpl, .e-loop-item.type-yadvar { position: relative; }
.yv-card-cover { position: absolute; inset: 0; z-index: 5; border-radius: inherit; }
.yv-card-cover:focus-visible { outline: 2px solid var(--yv-gold, #998561); outline-offset: 2px; }
.yv-card-tpl:hover, .e-loop-item.type-yadvar:hover { cursor: pointer; }

/* «مخفی کردن عنوان صفحه»ی برگه‌ی طرح، نام شخص داخل کارت‌ها را پنهان نکند */
.yv-card-tpl, .e-loop-item.type-yadvar { --page-title-display: block; }
.yv-card-tpl .elementor-page-title, .e-loop-item.type-yadvar .elementor-page-title { display: block !important; }

/* ---------------- کارت یادبود مینیمال ---------------- */
.yv-mcard {
	position: relative; direction: rtl; text-align: center; height: 100%; box-sizing: border-box;
	padding: 14px 12px 16px; border-radius: 14px;
	background: linear-gradient(160deg, var(--yv-dark-2, #1a1815), var(--yv-dark, #0f0f0f));
	border: 1px solid var(--yv-border, #2e2a22);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.yv-mcard--lift:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.35); border-color: rgba(153,133,97,.45); }
.yv-mcard-a { display: flex; flex-direction: column; align-items: inherit; color: inherit; text-decoration: none; }
.yv-mcard[style*="text-align: right"] .yv-mcard-a, .yv-mcard-a { align-items: center; }
.yv-mcard-photo { width: 70%; aspect-ratio: 3/4; margin: 0 auto 12px; overflow: hidden; background: #2a2620; }
.yv-mcard-photo--circle { border-radius: 50%; aspect-ratio: 1/1 !important; }
.yv-mcard-photo--oval { border-radius: 50%; }
.yv-mcard-photo--rounded { border-radius: 12px; }
.yv-mcard-photo--square { border-radius: 0; }
.yv-mcard-photo img, .yv-mcard-img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 25%; display: block; max-width: none; }
.yv-mcard-noimg { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 50% 38%, #4a4234 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #4a4234 0 38%, transparent 39%); }
.yv-mcard-body { display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; }
.yv-mcard-line { margin: 0; width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; line-height: 1.6; }
.yv-mcard-line .yv-fit { display: inline-block; white-space: nowrap; }
.yv-mcard-line--title { font-size: 17px; font-weight: 700; color: var(--yv-gold-light, #c9ad7a); }
.yv-mcard-line--sub { font-size: 12px; color: var(--yv-gold, #998561); letter-spacing: 1px; }
.yv-mcard-line--text { font-size: 13px; color: #cfc6b4; }
.yv-mcard-label { opacity: .7; }
.yv-mcard-divider { --yv-divider: var(--yv-gold, #998561); display: block; width: 36px; height: 1px; margin: 4px auto; background: linear-gradient(90deg, transparent, var(--yv-divider), transparent); }
.yv-mcard-qr { max-width: 56px; margin: 10px auto 0; }

/* ---------------- موبایل و تبلت ---------------- */
.yv-section-page { overflow-x: clip; }
.yv-grid > *, .yv-card-tpl, .yv-card-tpl > .elementor, .yv-card-tpl .e-con { min-width: 0; max-width: 100%; }
.yv-card-tpl > .elementor { width: 100%; }
@media (max-width: 1024px) {
	.yv-section-page .yv-grid, .yv-wrap .yv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.yv-section-page { --yv-card-gap: 14px; }
	.yv-section-page .yv-grid, .yv-wrap .yv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yv-section-page .e-loop-item > .e-con { --min-height: 0px !important; min-height: 0 !important; }
	.yv-section-head { padding: 20px 12px 4px; }
	.yv-section-head h1 { font-size: 22px; }
	.yv-mcard { padding: 10px 8px 12px; }
	.yv-mcard-line--title { font-size: 15px; }
	.yv-mcard-line--text { font-size: 12px; }
	.yv-sections { gap: 14px; }
	.yv-section-card { padding: 24px 16px; }
	.yv-audio-item { padding: 12px; }
	.yv-audio-item-player { max-width: 100%; }
	.yv-filter { margin: 10px auto 18px; }
}
@media (max-width: 360px) {
	.yv-section-page .yv-grid, .yv-wrap .yv-grid { gap: 10px; }
}

/* ---------------- جست‌وجوی نام بالای فیلتر ---------------- */
.yv-filter-search { position: relative; flex: 1 1 100%; }
.yv-filter-search input[type=search] {
	width: 100%; height: 44px; box-sizing: border-box; padding: 0 16px 0 46px;
	font-family: inherit; font-size: 15px; color: #e8e1d3; background: #121110;
	border: 1px solid #3a342a; border-radius: 10px; -webkit-appearance: none; appearance: none;
}
.yv-filter-search input[type=search]:focus { outline: none; border-color: var(--yv-gold, #998561); }
.yv-filter-search-btn {
	position: absolute; left: 4px; top: 4px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	background: var(--yv-gold, #998561); color: #000;
}

/* صفحه‌ی بخش روی پس‌زمینه‌ی روشن سایت: فیلتر روشن */
body:not(.yv-dark) .yv-filter { background: #fff; border-color: #e8dfc8; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
body:not(.yv-dark) .yv-filter select,
body:not(.yv-dark) .yv-filter-search input[type=search] { background-color: #faf8f4; color: #232323; border-color: #e0d6c3; }
body:not(.yv-dark) .yv-filter-label, body:not(.yv-dark) .yv-filter-reset { color: #8a6d3b; }
body:not(.yv-dark) .yv-grid-empty { color: #6b6455; }

/* صفحه‌بندی */
.yv-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 8px; direction: rtl; }
.yv-pagination .page-numbers {
	min-width: 38px; height: 38px; padding: 0 10px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px; border: 1px solid var(--yv-border, #2e2a22); text-decoration: none; font-size: 14px; color: inherit;
}
.yv-pagination .page-numbers.current { background: var(--yv-gold, #998561); border-color: var(--yv-gold, #998561); color: #000; }
.yv-pagination a.page-numbers:hover { border-color: var(--yv-gold, #998561); }
body:not(.yv-dark) .yv-pagination .page-numbers { border-color: #e0d6c3; color: #5c5546; }
body:not(.yv-dark) .yv-pagination .page-numbers.current { color: #fff; }

/* ---------------- نتایج جست‌وجوی زنده ---------------- */
.yv-filter-search { z-index: 5; }
.yv-live-results {
	position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 50; max-height: 360px; overflow-y: auto;
	background: #171614; color: #e8e1d3; border: 1px solid #3a342a; border-radius: 12px; padding: 6px;
	box-shadow: 0 10px 30px rgba(0,0,0,.35); text-align: right; direction: rtl;
}
.yv-live-results[hidden] { display: none; }
.yv-live-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.yv-live-item:hover, .yv-live-item.is-active { background: rgba(153,133,97,.18); }
.yv-live-photo { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: rgba(153,133,97,.25); }
.yv-live-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yv-live-text { display: flex; flex-direction: column; min-width: 0; }
.yv-live-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yv-live-years { font-size: 12px; opacity: .7; }
.yv-live-empty { padding: 10px; font-size: 13px; opacity: .75; }
.yv-live-all {
	display: block; width: 100%; margin-top: 4px; padding: 9px; border: 0; border-top: 1px solid rgba(153,133,97,.3);
	background: transparent; color: var(--yv-gold, #998561); font: inherit; font-size: 13px; cursor: pointer; border-radius: 0 0 8px 8px;
}
body:not(.yv-dark) .yv-live-results { background: #fff; color: #232323; border-color: #e0d6c3; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
body:not(.yv-dark) .yv-live-item:hover, body:not(.yv-dark) .yv-live-item.is-active { background: #f5efe3; }
body:not(.yv-dark) .yv-live-all { color: #8a6d3b; }
.yv-filter-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
