/* =========================================================
   KiwiAI — Home article covers force-fix v11
   هدف: کاور کارت‌های صفحه اصلی دقیقاً مثل کارت مقالات
   ========================================================= */

.article-card-home,
.home-article-card,
.kiwi-home-article-card,
.articles-card,
.article-card {
  overflow: hidden !important;
}

/* قاب اصلی کاور */
.kiwi-home-force-cover {
  position: relative !important;
  display: block !important;
  width: calc(100% - 8px) !important;
  margin: 6px auto 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;

  border-radius: 22px !important;
  border: 1px solid rgba(7, 79, 52, 0.12) !important;
  background-color: #eef6ef !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;

  height: 360px !important;
  min-height: 360px !important;
  max-height: 360px !important;
}

/* اگر تگ img داخل کاور باشد */
.kiwi-home-force-cover > img,
.kiwi-home-force-cover picture > img,
.kiwi-home-force-cover a > img,
.kiwi-home-force-cover .kiwi-home-force-media {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* اگر عناصر اضافی روی کاور هستند، روی تصویر دیده شوند */
.kiwi-home-force-cover > *:not(img):not(picture):not(a.kiwi-home-force-link):not(.kiwi-home-force-media) {
  position: relative !important;
  z-index: 2 !important;
}

/* اگر لینک دور عکس است */
.kiwi-home-force-cover > a,
.kiwi-home-force-cover > picture {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
}

/* والد‌های قدیمی کاور را خنثی کن */
.article-card-home .article-card-cover,
.article-card-home .article-cover,
.article-card-home .article-thumb,
.article-card-home .card-img-wrap,
.article-card-home .card-thumb,
.article-card-home figure,
.home-article-card .article-card-cover,
.home-article-card .article-cover,
.home-article-card .article-thumb,
.home-article-card .card-img-wrap,
.home-article-card .card-thumb,
.home-article-card figure {
  background: transparent !important;
  box-shadow: none !important;
}

/* نسخه‌های ریسپانسیو */
@media (max-width: 1399.98px) {
  .kiwi-home-force-cover {
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
  }
}

@media (max-width: 1199.98px) {
  .kiwi-home-force-cover {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }
}

@media (max-width: 991.98px) {
  .kiwi-home-force-cover {
    height: 290px !important;
    min-height: 290px !important;
    max-height: 290px !important;
  }
}

@media (max-width: 767.98px) {
  .kiwi-home-force-cover {
    width: calc(100% - 6px) !important;
    margin: 4px auto 0 !important;
    border-radius: 18px !important;
    height: 255px !important;
    min-height: 255px !important;
    max-height: 255px !important;
  }
}

@media (max-width: 479.98px) {
  .kiwi-home-force-cover {
    height: 235px !important;
    min-height: 235px !important;
    max-height: 235px !important;
  }
}
