/* استایل برای بلاگ */
.blog-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    font-family: 'IranSansXFaNum';
}

.blog-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
            position: relative; /* برای تعیین نقطه مرجع برای المان فرزند */
    margin:10px
}

.blog-image {
    border-radius: 5px;
}

img.blog-image {
    height: 150px !important;
    object-fit: cover !important;
    width: 100%;
}

.blog-title {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.blog-excerpt {
      overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
    margin-bottom:20px;
    
    margin-top: 10px;
    font-size: 14px;
    color: #666;
     --fade-start: 50%;
 mask-image: linear-gradient(to bottom, white var(--fade-start), transparent);
}

a.read-more {
    background-color: #A23C3F;
    font-size: 14px;
    text-decoration: none;
    color: white !important;
    padding: 5px;
    border-radius: 50px;
    
         position: absolute; /* برای قرار گرفتن در کف المان والد */
    bottom: 0;
    left: 0; /* تعیین نقطه شروع افقی */
    right: 0; /* تعیین نقطه پایان افقی */
    margin: 10px; /* توسط margin:auto; وسط چین می‌شود */

}






/* رسپانسیو کردن برای صفحات با عرض کمتر از 768 پیکسل */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* رسپانسیو کردن برای صفحات با عرض کمتر از 576 پیکسل */
@media (max-width: 576px) {
    .blog-container {
        grid-template-columns: repeat(1, 1fr);
    }
}
