:root{
  --st-primary:#6f4ef6;
  --st-primary-2:#8a6bff;
  --st-primary-3:#f3efff;
  --st-text:#161327;
  --st-muted:#6f6a86;
}

.home-articles-section{
  padding: 36px 0;
}

.home-articles-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-articles-header{
  text-align: center;
  margin-bottom: 18px;
}

.home-articles-badge{
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--st-primary-3);
  border: 1px solid rgba(111,78,246,.14);
  color: var(--st-text);
}

.home-articles-title{
  margin: 10px 0 6px;
  font-size: 26px;
  line-height: 1.7;
  color: var(--st-text);
}

.home-articles-subtitle{
  margin: 0 auto;
  max-width: 760px;
  color: var(--st-muted);
  font-size: 14px;
  line-height: 2;
}

.home-articles-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.home-article-card{
  grid-column: span 4;
  background: #fff;
  border: 1px solid rgba(22,19,39,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(22,19,39,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-article-card:hover{
  transform: translateY(-2px);
  border-color: rgba(111,78,246,.20);
  box-shadow: 0 14px 28px rgba(22,19,39,.08);
}

.home-article-thumb{
  display: block;
  background: var(--st-primary-3);
}

.home-article-img{
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;     /* کلیدی‌ترین بخش برای جلوگیری از به‌هم‌ریختگی */
  object-fit: cover;       /* تصویر کراپ شیک */
  display: block;
}

.home-article-body{
  padding: 12px 12px 14px;
}

.home-article-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.home-article-category{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(111,78,246,.10);
  color: var(--st-primary);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.home-article-date{
  font-size: 12px;
  color: var(--st-muted);
  white-space: nowrap;
}

.home-article-title{
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.9;
}

.home-article-title a{
  color: var(--st-text);
  text-decoration: none;
}

.home-article-title a:hover{
  color: var(--st-primary);
}

.home-article-excerpt{
  margin: 0 0 10px;
  color: var(--st-muted);
  font-size: 13px;
  line-height: 1.95;
}

.home-article-readmore{
  color: var(--st-primary);
  font-weight: 900;
  text-decoration: none;
  font-size: 13px;
}

.home-articles-footer{
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.home-articles-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--st-primary), var(--st-primary-2));
  color: #fff;
  font-weight: 900;
  border: 1px solid rgba(111,78,246,.18);
  transition: transform .15s ease, filter .15s ease;
}
.home-articles-button:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}

@media (max-width: 980px){
  .home-article-card{ grid-column: span 6; }
}

@media (max-width: 560px){
  .home-article-card{ grid-column: span 12; }
  .home-articles-title{ font-size: 22px; }
}
