/* استایل اصلی کارت */
.swiper-wrapper {
    padding: 20px 10px;
}

.swiper-slide.ad-slide {
    height: auto;
    padding: 10px;
}
.swiper-slide.ad-slide {
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform-origin: center center;
}
.ad-card {
    background-color:white;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ad-title {
    font-family: 'yekanbakh';
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    font-size: 1.2rem;
    color: #1f2937;
}

.ad-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ad-title a:hover {
    color: #3b82f6;
}


/* استایل متا اطلاعات */
.ad-meta-carusel {
    margin-top: -5px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.ad-category {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* استایل تگ‌ها */
.ad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.ad-price{
    color:#334155;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag a{
    text-decoration:none;
}
.tag {
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
}
.tag:hover {
    color: #495057;
}
.tag:focus {
    color: #495057;
}

/* خط جداکننده */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 15px 0;
}
@media (min-width: 1040px){
    .swiper-slide.ad-slide{
        width:300px;
    }
}
@media (min-width: 768px) and (max-width: 1040px){
    .swiper-slide.ad-slide{
        width:300px;
    }
}
/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .swiper-slide.ad-slide {
        padding: 5px;
        width:260px;
    }
    
    .ad-card {
        border-radius: 16px;
    }
}
.date-new {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    text-align: center;
    background-color:#912c10;
    color:#fff;
}

/* انیمیشن برای لود شدن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-card {
    animation: fadeInUp 0.6s ease-out;
}