




html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
   height: auto!important;
  
}

main {
    flex: 1; /* محتوای اصلی فضای خالی را پر می‌کند */
}
.list_info{
   margin-top: 2rem;
   height: auto!important;
   padding: 0px!important;
   
}
.item_info {
    margin-bottom: 3rem !important;
    position: relative; /* اضافه کردن این خط */
    transition: all 1s; /* اضافه کردن transition به کل .item_info */
}



.item_info img {
    position: relative;
    width: 100%;
    object-fit: fill;
    height: 260px;
    border-radius: 1rem;
    box-shadow: 0px 4px 6px #00000049;
    transition: all 1s; /* اضافه کردن transition به تصویر */
}

.item_info:hover {
    margin-top: -25px; /* تغییر موقعیت کل .item_info هنگام هاور */
}

.item_info a button {
    background: var(--light_blue);
    padding: 0.2rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    color: #fff;
    border: none;
    position: absolute; /* دکمه نسبت به .item_info موقعیت‌گذاری می‌شود */
    top: 10px; /* فاصله از بالا */
    left: 10px; /* فاصله از چپ */
    transition: all 1s; /* اضافه کردن transition به دکمه */
}



@media screen and (max-width: 1400px) {

    .item_info img {

    height: 215px;
  
}
    .item_info a button {

        font-size: 0.8rem;

    }
}


@media screen and (max-width: 1200px) {

    .item_info img {

    height: 190px;
  
}
    .item_info a button {

        font-size: 0.8rem;

    }
}


@media screen and (max-width: 992px) {

    .item_info img {

    height: 220px;

    }
    .item_info a button {

        font-size: 0.8rem;

    }
}

    @media screen and (max-width: 768px) {

        .item_info img {

        height: 400px;

        }
        .item_info a button {

            font-size: 0.8rem;

        }
    }


    @media screen and (max-width: 668px) {

        .item_info img {

        height: 340px;

        }
        .item_info a button {

            font-size: 0.8rem;

        }
    }
    @media screen and (max-width: 577px) {
        .list_info{
            width: 50%!important;
        }
        .item_info img {

        height: 320px;

        }
  
}


@media screen and (max-width: 500px) {
       
        .item_info img {

        height: 300px;

        }
  
}

@media screen and (max-width: 450px) {

        .item_info img {

        height: 280px;

        }
  
}

@media screen and (max-width: 420px) {
        .list_info{
            width: 55%!important;
        }
        .item_info img {

        height: 260px;

        }
  
}
