/* ساختار کلی */
body {
  font-family: "Vazir", sans-serif;
  background-color: #f9fff8;
  margin: 0;
  padding: 0;
  margin-top: 100px;
  color: #333;
  line-height: 1.6;
  display: flex;
  justify-content: center;
}

#articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 100px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* کارت مقاله */
.article-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  width: 300px;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* تصویر مقاله */
.article-image {
  width: 100%;
  height: 200px;
  object-fit: fill;
}

/* متن */
.article-content {
  padding: 20px;
  text-align: right;
  direction: rtl;
}

.article-meta {
  color: #777;
  font-size: 14px;
}

.article-title {
  font-size: 20px;
  color: #2e7d32;
  margin: 10px 0;
}

.article-summary {
  height: 80px;
  text-shadow : 2px 2px 5px rgba(0, 0, 0, 0.3);
  
  padding:5px;
  
  font-size: 16px;
  color: #444;
}

/* دکمه */
.read-more {
  margin-top: 10px;
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.read-more:hover {
  background: #388e3c;
}

/* 📱 واکنش‌گرایی */
@media (max-width: 768px) {
  #articles-container {
    grid-template-columns: 1fr;
    padding: 80px 15px;
  }

  .article-card {
    border-radius: 15px;
  }

  .article-title {
    font-size: 18px;
  }
}
