/* مقالات جامع — styles fully scoped to the widget. */
.mmca,
.mmca *,
.mmca *::before,
.mmca *::after { box-sizing: border-box; }
.mmca {
  --mmca-ink: #172b46;
  --mmca-muted: #65758d;
  --mmca-blue: #315eca;
  --mmca-separator: #e4eaf3;
  --mmca-highlight-color: #dce8ff;
  --mmca-dot-color: #c4d3e9;
  --mmca-cta-width: 320px;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50vh;
  padding: 24px;
  direction: rtl;
  text-align: right;
  color: var(--mmca-ink);
  font-family: 'Parastoo', Tahoma, serif;
  font-size: 14px;
  line-height: 1.95;
  background-color: #f3f6fa;
  isolation: isolate;
  overflow: hidden;
}
/* حالت پیش‌فرض نسخه ۱.۰.۱: فقط کارت اصلی نمایش داده می‌شود.
   !important فقط در این حالت روی فاصله و پس‌زمینه بیرونی اثر دارد؛
   کنترل‌های کارت، پنل دکمه‌ها و محتوا بدون تغییر باقی مانده‌اند. */
.mmca.mmca--card-only {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: visible;
}
.mmca__wrap { width: 100%; max-width: 1240px; margin: 0 auto; min-width: 0; }
.mmca__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 34px 22px;
  background: #fff;
  border: 1px solid #dae4ef;
  border-radius: 28px;
  box-shadow: 0 24px 65px rgba(21,44,83,.065), 0 4px 12px rgba(21,44,83,.024);
}
.mmca__card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 240px;
  height: 170px;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--mmca-dot-color) 1px, transparent 1px);
  background-size: 19px 19px;
  opacity: .35;
  -webkit-mask-image: linear-gradient(to right,#000,transparent);
  mask-image: linear-gradient(to right,#000,transparent);
}
.mmca__accent {
  position: absolute;
  z-index: 0;
  top: 35px;
  right: 0;
  width: 4px;
  height: 84px;
  background: linear-gradient(180deg,#71a0ff,#315eca);
  border-radius: 4px 0 0 4px;
  pointer-events: none;
}
.mmca__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 14px;
  margin: 0 0 15px;
  border-bottom: 1px solid var(--mmca-separator);
}
.mmca__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #2855a4;
  background-color: #eaf2ff;
  border: 1px solid #d5e4ff;
  border-radius: 100px;
}
.mmca__pill-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background-color: #18aa82;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(24,170,130,.13);
}
.mmca__edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: #718198;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}
.mmca__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  font-size: 17px;
  line-height: 1;
}
.mmca__icon svg { display: block; width: 1em; height: 1em; fill: currentColor; }
.mmca__icon i { display: inline-block; font-size: inherit; line-height: 1; }
.mmca__edition .mmca__icon { color: #8295ae; }
.mmca__main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(270px, var(--mmca-cta-width));
  align-items: center;
  gap: clamp(28px,5vw,72px);
}
.mmca__copy { min-width: 0; }
.mmca__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 10px;
  color: var(--mmca-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}
.mmca__eyebrow::before { content: ''; display: inline-block; flex: 0 0 19px; width: 19px; height: 2px; border-radius: 2px; background-color: #6b93ee; }
.mmca .mmca__title {
  padding: 0;
  margin: 0;
  color: #1b304d;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 2;
}
.mmca__highlight {
  color: #2856b7;
  font-style: normal;
  background: linear-gradient(transparent 66%, var(--mmca-highlight-color) 66%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mmca .mmca__desc {
  max-width: 700px;
  margin: 10px 0 0;
  color: #53647e;
  font-size: 15px;
  font-weight: 400;
  line-height: 2.05;
  text-align: justify;
  text-justify: inter-word;
}
.mmca__desc p { margin: 0 0 9px; padding: 0; font: inherit; color: inherit; line-height: inherit; }
.mmca__desc p:last-child { margin-bottom: 0; }
.mmca__desc a { color: var(--mmca-blue); text-underline-offset: 3px; }
.mmca__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.mmca__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 12px;
  color: #536784;
  font-size: 14px;
  line-height: 1.8;
  background-color: rgba(242,247,254,.9);
  border: 1px solid #e0eaf7;
  border-radius: 9px;
}
.mmca__tag .mmca__icon { font-size: 16px; color: #4e77ca; }
.mmca__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  padding: 15px 22px;
  background-color: #f0f5fd;
  border: 1px solid #e0e9f7;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.mmca .mmca__cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
  color: #244974;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}
.mmca__cta-label .mmca__icon { color: #4779da; }
.mmca .mmca__cta-note {
  margin: 0 0 16px;
  padding: 0;
  color: #71839d;
  font-size: 14px;
  line-height: 1.8;
}
.mmca__buttons { display: flex; flex-direction: column; gap: 10px; }
.mmca .mmca__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  text-decoration: none;
  text-align: right;
  cursor: pointer;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
  outline-offset: 3px;
}
.mmca .mmca__btn:hover,
.mmca .mmca__btn:focus,
.mmca .mmca__btn:active { text-decoration: none; }
.mmca__btn .mmca__icon { font-size: 18px; transition: transform .25s ease; }
.mmca .mmca__btn--primary { color: #fff; background-color: #1d3959; border-color: #183755; box-shadow: 0 8px 18px rgba(29,57,89,.13); }
.mmca .mmca__btn--primary:hover,
.mmca .mmca__btn--primary:focus-visible { color: #fff; background-color: #315eca; border-color: #315eca; box-shadow: 0 12px 21px rgba(49,94,202,.19); }
.mmca .mmca__btn--secondary { color: #203855; background-color: #fff; border-color: #d5e0f0; }
.mmca .mmca__btn--secondary:hover,
.mmca .mmca__btn--secondary:focus-visible { color: #203855; background-color: #f8fbff; border-color: #9eb9ea; }
.mmca__btn--placeholder { cursor: default !important; }
.mmca__btn:hover .mmca__btn-icon,
.mmca__btn:focus-visible .mmca__btn-icon { transform: translateX(-3px); }
.mmca__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin: 16px 0 0;
  padding: 13px 0 0;
  color: #6c7d94;
  font-size: 14px;
  line-height: 1.75;
  border-top: 1px solid var(--mmca-separator);
}
.mmca__bottom-copy { min-width: 0; }
.mmca__bottom-lead { color: #405874; font-weight: 700; }
.mmca__small { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.mmca__small .mmca__icon { font-size: 16px; color: #6582b9; }

@media (min-width: 1100px) {
  .mmca__card { padding: 24px 38px 22px; }
}
@media (max-width: 800px) {
  .mmca { min-height: 0; padding: 24px 18px; }
  .mmca__card { padding: 22px; border-radius: 22px; }
  .mmca__main { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .mmca__cta { padding: 18px; }
  .mmca__buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .mmca__top { margin-bottom: 17px; padding-bottom: 16px; }
}
@media (max-width: 540px) {
  .mmca { padding: 20px 12px; }
  .mmca__card { padding: 19px 16px; border-radius: 19px; }
  .mmca__top { align-items: flex-start; }
  .mmca .mmca__title { font-size: 18px; line-height: 1.95; }
  .mmca .mmca__desc { font-size: 14px; line-height: 2.1; }
  .mmca__tags { gap: 7px; }
  .mmca__tag { padding: 4px 9px; }
  .mmca__cta { padding: 15px; border-radius: 14px; }
  .mmca__buttons { grid-template-columns: minmax(0,1fr); }
  .mmca .mmca__btn { min-height: 47px; }
  .mmca__bottom { margin-top: 17px; padding-top: 14px; }
  .mmca__small { display: none; }
  .mmca--footer-mobile .mmca__small { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .mmca .mmca__btn, .mmca__btn .mmca__icon { transition: none; }
}
