@media (min-width: 1024px) {
    .col-md-3 {
      width: 33%;

    }
}
.PostImage img:hover {
  transform: scale(1.05); /* زوم هنگام هاور */
}


.ShowPostListBack .PostBox .PostImage img {
    max-height: 238px;
    max-width: 355px;
    width: 100%;
    padding: 0px;
    margin: 0px;
   /* min-height: 200px;*/
/*    min-width: 300px;*/

}
.PostImage {
    padding-top: 0px;
    padding-right: 0px;
    padding-left: 0px;
    height: 238px;
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease; /* افکت زوم با انیمیشن */
}
.PostBText p{
    padding: 7px;
    text-align: justify;
    font-size: 12px;
    line-height: 1.8em;
}
.ShowPostListBack {
    width: 99%;
}

.PostBox {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 360px;
    min-height: 400px;
   /* border: 1px solid #ddd;*/
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    background-color: #fff;
}

.PostBImage {
    width: 100%;
    height: 180px;
    margin-bottom: 5px; 
    overflow: hidden;
    border-radius: 4px;
}

.PostBImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.PostBox .PostBTitle {
    margin-top:5px;
    height: 35px;
}

.PostBTitle {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.4; 
    color: #333;
    margin: 5px 0;
    max-height: 40px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.PostBText {
    font-size: 0.95rem;
    line-height: 1.5; 
    color: #555;
    margin-bottom: 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    position: relative;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.PostBAuthor {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px; 
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.PostBAuthor span {
    margin: 0 5px;
    text-align: left;
}

.PostBox::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1rem;
    background: linear-gradient(transparent, white);
}
.PostDate span {
    color: #8b8a8a;
    float: right;
    font-size: 12px;
    padding: 10px;
    padding-top: 1px;
}


/* برای PostImage */

.PostImage {
  position: relative;
  width: 100%;
  overflow: hidden; 
}

.PostImage img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease; 
}

.PostImage {
  position: relative;
}
.PostImage::after {
 content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  opacity: 0; /* پیش‌فرض مخفی */
  transition: opacity 0.2s ease;
}
.PostImage:hover::after {
  opacity: 1; /* نمایش افکت هنگام هاور */
}

.PostBox:hover .PostImage::after {
  opacity: 1; /* لایه ظاهر می‌شود */
  transform: translateY(0); 
}

.PostBox:hover {
   box-shadow: 0 0 9px 1px rgba(0, 0, 0, .2);
}
.PostImage img:hover::after {
  opacity: 1; /* افکت هنگام هاور */
}
