/* RadioCare Easy Edit — فایل CSS مستقل. هر تغییری که خواستید همین‌جا بدهید. */

/* ---- سربرگ صفحه ---- */
.page-head{text-align:center}
.page-head h1{margin-block:0 .5rem}
.page-head .rcx-sub{max-width:46rem;margin:.5rem auto 0;font-size:1.05rem;line-height:1.9;opacity:.9}

/* ---- چیدمان مرتب لوگوها (با تیک «چیدمان مرتب لوگوها» در برگه فعال می‌شود) ---- */
body.rcx-logo-grid .prose{max-width:none;text-align:center}
body.rcx-logo-grid .prose h2,
body.rcx-logo-grid .prose h3{text-align:center;margin-block:2.5rem 1.25rem}
body.rcx-logo-grid .prose figure,
body.rcx-logo-grid .prose .wp-block-image,
body.rcx-logo-grid .prose p:has(> img:only-child){
	display:inline-flex;align-items:center;justify-content:center;
	width:170px;height:110px;margin:.6rem;padding:1rem;
	border:1px solid #e5e2df;border-radius:12px;background:#fff;
	vertical-align:top;box-sizing:border-box;
}
body.rcx-logo-grid .prose figure img,
body.rcx-logo-grid .prose .wp-block-image img,
body.rcx-logo-grid .prose p > img:only-child{
	width:100%!important;height:100%!important;max-width:100%!important;
	object-fit:contain;margin:0;
}
body.rcx-logo-grid .prose p:has(> img:only-child) img{display:block}
@media (max-width:480px){
	body.rcx-logo-grid .prose figure,
	body.rcx-logo-grid .prose .wp-block-image,
	body.rcx-logo-grid .prose p:has(> img:only-child){width:42%;height:90px;margin:.4rem}
}

/* ---- کارت خدمات (صفحهٔ اصلی و آرشیو): تصویر کامل، بدون برش ---- */
.svc-card__ph{aspect-ratio:4/5;background:linear-gradient(160deg,#eef4fb,#fff);padding:0}
.svc-card__ph img{width:100%;height:100%;object-fit:contain;transition:transform .35s ease}
.svc-card a:hover .svc-card__ph img{transform:scale(1.03)}
.slider--services .svc-card{flex-basis:clamp(15rem,26vw,19rem)}

/* ---- تصویر شاخص داخل برگهٔ خدمت/مقاله: کامل و وسط‌چین ---- */
.lead-img{display:flex;justify-content:center;background:var(--box,#f7f5f2);border-radius:var(--r,14px)}
.lead-img img{display:block;width:auto;max-width:100%;max-height:80vh;height:auto;object-fit:contain}

/* ---- سربرگ خدمات/مقالات: به‌طور پیش‌فرض ساده و روشن؛ تصویر شاخص در آن تکرار نمی‌شود ---- */
body.single-rc_service:not(.rcx-has-bg) .page-head--hero{
	background-image:none!important;min-height:0;display:block;
	background-color:var(--box,#f7f5f2);border-block-end:1px solid var(--line,#e3dfdb);
}
body.single-rc_service:not(.rcx-has-bg) .page-head--hero::before{display:none}
body.single-rc_service:not(.rcx-has-bg) .page-head--hero h1{color:inherit;text-shadow:none}
body.single-rc_service:not(.rcx-has-bg) .page-head--hero p{color:var(--muted,#6b6663);text-shadow:none}

/* ---- سربرگ با تصویر پس‌زمینهٔ اختصاصی (انتخاب‌شده در کادر ویرایش سربرگ) ---- */
body.rcx-has-bg .page-head{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:clamp(14rem,28vw,20rem);border-block-end:0}
body.rcx-has-bg .page-head::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(20,18,18,var(--rcx-ov,.5))}
body.rcx-has-bg .page-head .wrap{width:100%}
body.rcx-has-bg .page-head h1{color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.5)}
body.rcx-has-bg .page-head p{color:#f1ece7}
