* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.best-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background: #F7F5F2;

}

.swiper-wrapper {
    margin: 0;
}

.swiper-slide {
    min-height: 250px !important;
    height: auto !important;
    padding: 50px 0 20px 0 !important;
    overflow: visible !important;

}

.card-best {
    position: relative;
    width: 320px;
    height: 150px;
    background: white;
    border: 15px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.15);
    transition: 0.5s;
    border-radius: 15PX;
    margin-right: 0;

}

.card-best:hover {
    height: 350px;
}

.imgbox {
    position: absolute !important;
    left: 50% !important;
    top: -50px !important;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    transition: 0.5s;
    overflow: hidden;

}

.imgbox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.card-best:hover .imgbox {
    width: 200px;
    height: 200px;
}

.card-best .content-best {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;

}

.card-best .content-best .details {
    padding: 50px;
    text-align: center;
    width: 100%;
    transition: 0.5s;
    transform: translateY(150PX);
}

.card-best:hover .content-best .details {
    transform: translate(0);
}

.card-best .content-best .details h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1F1F1F;
    line-height: 1.4rem;
    margin: 10px 0;

}

.card-best .content-best .details h2 span {
    font-size: 0.75em;
}

.card-best .content-best .details .info {
    display: flex;
    justify-content: space-evenly;
    margin: 20px 0;

}

.card-best .content-best .details .info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555555;
    line-height: 1rem;
}

.card-best .content-best .details .info i {
    color: #FFD700;
}

.card-best .content-best .details .info h3 span {
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.5;
    color: #555555;
}

.card-best .content-best .details .buttons-best {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
}

.card-best .content-best .details .buttons-best button {
    padding: 10px 30px;
    border-radius: 5px;
    background: #9C2D2D;
    outline: none;
    font-size: 1.3rem;
    font-weight: 500;
    color: #F7F5F2;
    cursor: pointer;

}

.best-container .swiper .swiper-button-prev,
.best-container .swiper .swiper-button-next {
    color: #9C2D2D;
}

.best-container .swiper .swiper-pagination-bullet {

    background: #9C2D2D
}




/* رسپانسیو */

/* برای تبلت (768px به بالا) */
@media (min-width: 768px) {
    .swiper-slide {
        min-height: 250px !important;
        padding: 50px 0 20px 0 !important;
    }

    .card-best {
        width: 300px;
        margin: 0 auto;
    }

    .best-container {
        padding: 20px;
    }
}

/* برای موبایل (تا 767px) */
@media (max-width: 767px) {
    .swiper-slide {
        min-height: 200px !important;
        padding: 40px 0 15px 0 !important;
    }

    .card-best {
        width: 280px;
        margin: 0 auto;
    }

    .imgbox {
        width: 120px !important;
        height: 120px !important;
        top: -40px !important;
    }

    .card-best:hover .imgbox {
        width: 150px !important;
        height: 150px !important;
    }

    .card-best .content-best .details {
        padding: 40px 20px;
    }

    .card-best .content-best .details h2 {
        font-size: 1.8rem;
    }

    .card-best .content-best .details .info h3 {
        font-size: 1.5rem;
    }

    .card-best .content-best .details .buttons-best button {
        padding: 8px 25px;
        font-size: 1.8rem;
    }


   
    .best-container {
        padding: 10px;
    }
}

/* برای دسکتاپ کوچک (1024px به بالا) */
@media (min-width: 1024px) {
    .swiper-slide {
        min-height: 300px !important;
    }

    .card-best {
        width: 320px;
    }
}