/* ========= */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
   height: auto!important;
}

main {
    flex: 1; /* محتوای اصلی فضای خالی را پر می‌کند */
}
.list_post{

    margin-bottom: 2rem;
 
  
   
  
}





.list_post{
  
    
    height: auto!important;

    
  
}
.item_post{
    background-color: #fff;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0px 4px 6px #00000049;
    

}
.item_post img{
    width: 100%;
    height: 200px;
    object-fit: fill;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    margin-bottom: 1rem;
}
.item_post .ex_post{
   
    padding: 0.75rem;
}
.item_post h5{
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark_gray);
    margin-bottom: 1.5rem;
    height: 60px;
  
   
}
.item_post button{
    border-radius: 0.5rem;
    padding: 0.5rem;
    width: 100%;
    background-color: var(--light_blue);
    color: #eee;
    border:none;
    transition: all 1s;
}

.item_post button:hover{
    background-color: var( --special_blue);
}

.item_post {
    position: relative; /* برای استفاده از position absolute در داخل آن */
    transition: all 1s;
    margin-top: 1.5rem;
    
}
.item_post:hover{
    margin-top: -5px;
}

.film_icon {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px; /* اندازه آیکون */
    color: white; /* رنگ آیکون */
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه نیمه‌شفاف */
    padding: 1px;
    padding-top: 2px;
    padding-bottom: 2px;
    display: flex;
    justify-content: center;
    border-radius: 50%; /* دایره کردن آیکون */
    cursor: pointer; /* تغییر نشانگر موس هنگام hover */
    z-index: 10; /* اطمینان از اینکه آیکون بالای تصویر قرار گیرد */
}

.film_icon ion-icon {
    font-size: 40px; /* اندازه آیکون در درون */
    transition: all 0.5s;

}
.film_icon ion-icon:hover{
    color: var(--special_blue);
}



@media screen and (max-width: 1200px) {


.item_post img{
    height: 170px;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}
.item_post .ex_post{

    padding: 0.5rem;
}
.item_post h5{
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
}
.item_post button{
    border-radius: 0.35rem;
    padding: 0.35rem;
    font-size: 0.9rem;

}
}

@media screen and (max-width: 992px) {


.item_post img{
    height: 150px;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}
.item_post .ex_post{

    padding: 0.5rem;
}
.item_post h5{
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}
.item_post button{
    border-radius: 0.35rem;
    padding: 0.35rem;
    font-size: 0.85rem;

}
}


@media screen and (max-width: 576px) {
.list_post{

        width: 55%!important;
       
      
}

.item_post img{
    height: 170px;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}
.item_post .ex_post{

    padding: 0.5rem;
}
.item_post h5{
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}
.item_post button{
    border-radius: 0.35rem;
    padding: 0.35rem;
    font-size: 0.9rem;

}
}




@media screen and (max-width: 500px) {
    .list_post{

            width: 65%!important;
    }
}

@media screen and (max-width: 400px) {
.list_post{

        width: 80%!important;
       
}

}
