/* ===========================================================
   صفحات راهنما/خدمات (مقاله‌ای) — پورت از ui، اسکوپ زیر .rey-ui.
   استفاده: قالب‌های template-*.php (کالای اصل، ضمانت، بازگشت، پرداخت، باشگاه، مشاوره).
   =========================================================== */

.rey-ui .article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.rey-ui .article-layout > * { min-width: 0; }

/* هیرو مقاله */
.rey-ui .article-hero { margin-bottom: 8px; }
.rey-ui .article-hero .kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--rey-font); color: var(--green); background: var(--green-100); border-radius: 99px; padding: 5px 14px; }
.rey-ui .article-hero h1 { font: 800 32px/1.6 var(--rey-font); color: var(--navy); margin: 18px 0 0; max-width: 640px; }
.rey-ui .article-hero .lead { font: 400 15px/2.2 var(--rey-font); color: var(--text-3); margin: 14px 0 0; max-width: 620px; }
.rey-ui .article-hero .rule { width: 56px; height: 4px; border-radius: 99px; background: var(--green); margin-top: 26px; }

/* بدنه مقاله */
.rey-ui .article-body { margin-top: 36px; }
.rey-ui .article-body p { font: 400 14.5px/2.3 var(--rey-font); color: var(--text-2); margin: 0 0 18px; }
.rey-ui .article-body a { color: var(--green); border-bottom: 1px dashed var(--green-300); padding-bottom: 1px; }
.rey-ui .article-body h2 { font: 800 21px var(--rey-font); color: var(--navy); margin: 44px 0 20px; display: flex; align-items: center; gap: 12px; }
.rey-ui .article-body h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--green); transform: rotate(45deg); flex: 0 0 auto; }

/* گرید ویژگی‌ها */
.rey-ui .feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 18px; }
.rey-ui .feat { background: var(--surface); border: 1px solid var(--border); border-radius: calc(16px * var(--rey-r)); padding: 20px; transition: border-color .25s, transform .25s; }
.rey-ui .feat:hover { border-color: var(--green-300); transform: translateY(-2px); }
.rey-ui .feat .f-ico { width: 40px; height: 40px; border-radius: calc(12px * var(--rey-r)); background: var(--green-100); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--green); }
.rey-ui .feat .f-ico svg { width: 20px; height: 20px; }
.rey-ui .feat .f-t { font: 700 14px var(--rey-font); color: var(--navy); }
.rey-ui .feat .f-d { font: 400 12.5px/2.1 var(--rey-font); color: var(--text-3); margin-top: 6px; }

/* کال‌اوت */
.rey-ui .callout { border: 1px solid var(--border); border-right: 4px solid var(--green); background: var(--surface); border-radius: calc(14px * var(--rey-r)); padding: 18px 20px; margin: 26px 0; font: 400 13.5px/2.2 var(--rey-font); color: var(--text-2); }
.rey-ui .callout b { color: var(--navy); }

/* نوار CTA */
.rey-ui .article-cta { margin-top: 44px; border-radius: calc(20px * var(--rey-r)); overflow: hidden; position: relative;
  background: linear-gradient(115deg, var(--green-dark), var(--green) 55%, var(--green-light));
  padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rey-ui .article-cta::before { content: ""; position: absolute; top: -50px; left: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); }
.rey-ui .article-cta .t { font: 800 19px var(--rey-font); color: #fff; }
.rey-ui .article-cta .d { font: 400 12.5px/2 var(--rey-font); color: var(--green-mint); margin-top: 6px; }
.rey-ui .article-cta a { flex: 0 0 auto; background: #fff; color: var(--green); font: 700 13px var(--rey-font); padding: 12px 26px; border-radius: 99px; position: relative; z-index: 1; }

/* سایدبار */
.rey-ui .article-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.rey-ui .side-card { background: var(--surface); border: 1px solid var(--border); border-radius: calc(18px * var(--rey-r)); padding: 20px; }
.rey-ui .side-card .head { font: 700 14px var(--rey-font); color: var(--navy); margin-bottom: 14px; }
.rey-ui .side-nav { display: flex; flex-direction: column; }
.rey-ui .side-nav a { font: 500 13px var(--rey-font); color: var(--text-3); padding: 11px 12px; border-radius: calc(10px * var(--rey-r)); display: flex; align-items: center; gap: 10px; transition: all .2s; }
.rey-ui .side-nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background .2s; }
.rey-ui .side-nav a:hover { color: var(--green); background: var(--green-050); }
.rey-ui .side-nav a.active { color: var(--green); background: var(--green-100); font-weight: 700; }
.rey-ui .side-nav a.active::before { background: var(--green); }
.rey-ui .side-card.contact { background: var(--navy); border: none; }
.rey-ui .side-card.contact .head { color: #fff; }
.rey-ui .side-card.contact p { font: 400 12px/2.1 var(--rey-font); color: #9fb3bd; margin: 0 0 14px; }
.rey-ui .side-card.contact a { display: block; text-align: center; background: var(--green); color: #fff; font: 700 13px var(--rey-font); padding: 11px; border-radius: calc(10px * var(--rey-r)); }

/* ریسپانسیو */
@media (max-width: 1024px) { .rey-ui .article-layout { grid-template-columns: 1fr 260px; gap: 24px; } }
@media (max-width: 768px) {
  .rey-ui .article-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; padding-bottom: 40px; }
  .rey-ui .article-hero h1 { font-size: 21px; }
  .rey-ui .article-hero .lead { font-size: 13.5px; }
  .rey-ui .article-body { margin-top: 26px; }
  .rey-ui .article-body h2 { font-size: 16px; margin: 32px 0 16px; }
  .rey-ui .article-body p { font-size: 13.5px; }
  .rey-ui .feat-grid { grid-template-columns: 1fr; }
  .rey-ui .article-cta { flex-direction: column; align-items: flex-start; padding: 20px 16px; }
  .rey-ui .article-cta a { align-self: stretch; text-align: center; }
  .rey-ui .article-side { position: static; }
}
