/* ==========================================================
   KiwiAI Home Articles — Editorial Card V5
   Large covers removed / compact premium thumbnail layout
   ========================================================== */

#homeArticlesList > [class*="col"]{
  display:flex !important;
  margin-bottom:20px !important;
}

#homeArticlesList .article-card-home{
  position:relative !important;
  width:100% !important;
  min-height:372px !important;
  height:100% !important;
  overflow:hidden !important;
  border:1px solid rgba(7,73,49,.09) !important;
  border-radius:24px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(46,177,105,.10), transparent 28%),
    linear-gradient(145deg,#ffffff 0%,#fbfdfb 100%) !important;
  box-shadow:0 15px 34px rgba(8,61,41,.075) !important;
  transform:none !important;
  transition:none !important;
}

#homeArticlesList .article-card-home:hover{
  transform:none !important;
  box-shadow:0 17px 38px rgba(8,61,41,.10) !important;
}

/* کاور بزرگ حذف شده و به thumbnail کوچک تبدیل می‌شود */
#homeArticlesList .article-card-cover{
  position:absolute !important;
  top:18px !important;
  right:18px !important;
  z-index:3 !important;
  width:116px !important;
  height:88px !important;
  overflow:hidden !important;
  border:1px solid rgba(255,255,255,.9) !important;
  border-radius:17px !important;
  background:#eaf4ed !important;
  box-shadow:0 10px 22px rgba(2,55,35,.18) !important;
}

#homeArticlesList .article-card-cover::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  background:linear-gradient(135deg,rgba(7,74,48,.10),transparent 58%) !important;
  pointer-events:none !important;
}

#homeArticlesList .article-card-cover img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
}

/* بدنه اصلی */
#homeArticlesList .article-card-body{
  display:flex !important;
  flex-direction:column !important;
  min-height:372px !important;
  height:100% !important;
  padding:18px 19px 19px !important;
  direction:rtl !important;
  text-align:right !important;
  font-family:var(--kiwi-site-font, inherit) !important;
}

/* تاریخ و برچسب در فضای کنار thumbnail */
#homeArticlesList .article-card-body > .d-flex:first-child{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  flex-wrap:wrap !important;
  min-height:91px !important;
  padding-right:132px !important;
  gap:9px 13px !important;
  margin:0 0 9px !important;
}

#homeArticlesList .article-card-body > .d-flex:first-child .small.text-muted{
  margin:0 !important;
  padding-top:6px !important;
  color:#71877d !important;
  font-size:12.5px !important;
  line-height:1.7 !important;
  white-space:nowrap !important;
}

#homeArticlesList .article-chip{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:6px 11px !important;
  border:1px solid rgba(9,121,76,.13) !important;
  border-radius:999px !important;
  background:#edfaf2 !important;
  color:#08764b !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.45 !important;
  white-space:nowrap !important;
}

/* عنوان مقاله */
#homeArticlesList .article-card-body h6{
  position:relative !important;
  margin:0 0 14px !important;
  padding:0 0 13px !important;
  color:#064936 !important;
  font-size:20px !important;
  font-weight:900 !important;
  line-height:1.78 !important;
  text-align:right !important;
  letter-spacing:-.15px !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
}

#homeArticlesList .article-card-body h6::after{
  content:"" !important;
  position:absolute !important;
  right:0 !important;
  bottom:0 !important;
  width:48px !important;
  height:3px !important;
  border-radius:99px !important;
  background:linear-gradient(90deg,#35ba72,#0b8151) !important;
}

/* دیسکریپشن خوش‌فرم و بدون باکس سنگین */
#homeArticlesList .article-card-body > p,
#homeArticlesList .kiwi-home-article-summary{
  position:relative !important;
  margin:0 0 17px !important;
  padding:0 10px 0 0 !important;
  border:0 !important;
  border-right:3px solid #39b875 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#61776d !important;
  font-size:14px !important;
  font-weight:500 !important;
  line-height:2.08 !important;
  text-align:right !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
}

/* حذف کامل زمان مطالعه */
#homeArticlesList .article-card-body .mt-auto .small.text-muted,
#homeArticlesList .article-card-body .mt-auto .bi-clock{
  display:none !important;
}

/* دکمه مشاهده مقاله */
#homeArticlesList .article-card-body .mt-auto{
  display:flex !important;
  justify-content:flex-start !important;
  align-items:center !important;
  margin-top:auto !important;
}

#homeArticlesList .article-card-body .mt-auto .badge-soft{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  padding:7px 14px !important;
  border:1px solid rgba(9,121,76,.13) !important;
  border-radius:999px !important;
  background:#eaf8f0 !important;
  color:#08764b !important;
  font-size:12.5px !important;
  font-weight:800 !important;
  line-height:1.5 !important;
}

/* English / LTR */
html[lang^="en"] #homeArticlesList .article-card-body,
html[dir="ltr"] #homeArticlesList .article-card-body{
  direction:ltr !important;
  text-align:left !important;
}

html[lang^="en"] #homeArticlesList .article-card-cover,
html[dir="ltr"] #homeArticlesList .article-card-cover{
  right:auto !important;
  left:18px !important;
}

html[lang^="en"] #homeArticlesList .article-card-body > .d-flex:first-child,
html[dir="ltr"] #homeArticlesList .article-card-body > .d-flex:first-child{
  padding-right:0 !important;
  padding-left:132px !important;
}

html[lang^="en"] #homeArticlesList .article-card-body h6,
html[lang^="en"] #homeArticlesList .article-card-body > p,
html[dir="ltr"] #homeArticlesList .article-card-body h6,
html[dir="ltr"] #homeArticlesList .article-card-body > p{
  text-align:left !important;
}

html[lang^="en"] #homeArticlesList .article-card-body h6::after,
html[dir="ltr"] #homeArticlesList .article-card-body h6::after{
  right:auto !important;
  left:0 !important;
}

html[lang^="en"] #homeArticlesList .article-card-body > p,
html[dir="ltr"] #homeArticlesList .article-card-body > p{
  padding:0 0 0 10px !important;
  border-right:0 !important;
  border-left:3px solid #39b875 !important;
}

/* موبایل */
@media (max-width:768px){
  #homeArticlesList > [class*="col"]{
    margin-bottom:16px !important;
  }

  #homeArticlesList .article-card-home{
    min-height:340px !important;
    border-radius:20px !important;
  }

  #homeArticlesList .article-card-body{
    min-height:340px !important;
    padding:15px 15px 17px !important;
  }

  #homeArticlesList .article-card-cover{
    top:15px !important;
    right:15px !important;
    width:103px !important;
    height:78px !important;
    border-radius:15px !important;
  }

  #homeArticlesList .article-card-body > .d-flex:first-child{
    min-height:80px !important;
    padding-right:118px !important;
    margin-bottom:8px !important;
  }

  #homeArticlesList .article-card-body h6{
    font-size:18px !important;
    line-height:1.84 !important;
    margin-bottom:12px !important;
  }

  #homeArticlesList .article-card-body > p,
  #homeArticlesList .kiwi-home-article-summary{
    margin-bottom:15px !important;
    font-size:13.5px !important;
    line-height:2.02 !important;
    -webkit-line-clamp:3 !important;
  }

  html[lang^="en"] #homeArticlesList .article-card-cover,
  html[dir="ltr"] #homeArticlesList .article-card-cover{
    right:auto !important;
    left:15px !important;
  }

  html[lang^="en"] #homeArticlesList .article-card-body > .d-flex:first-child,
  html[dir="ltr"] #homeArticlesList .article-card-body > .d-flex:first-child{
    padding-right:0 !important;
    padding-left:118px !important;
  }
}
