/* تنظیمات اصلی سایت */
body {
    font-family: 'Vazir', Tahoma, sans-serif;
    font-weight: normal;
    background-color: #fdfdfd;
    direction: rtl;
    text-align: right;
    color: #2d3436;
    line-height: 1.7;
}

/* تیترها با فونت ایران یکان */
h1, h2, h3, h4, h5, h6,
.card-title {
    font-family: 'IRANYekan', 'Vazir', Tahoma, sans-serif;
    font-weight: normal;
}

/* متن‌های عمومی با فونت وزیر */
p, a, span, li, small, strong {
    font-family: 'Vazir', Tahoma, sans-serif;
}

/* توضیحات بخش‌ها */
section p {
    font-size: 1.05rem;
    color: #636e72;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

/* قرارگیری ۵ کارت در هر ردیف */
.row:has(.custom-card) > div {
    flex: 0 0 20%;
    max-width: 20%;
}

/* استایل کارت‌ها */
.custom-card {
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.005;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* محتوای کارت */
.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* لینک داخل کارت */
.anchor-link {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* عنوان کارت */
.card-title {
    font-size: 1.4rem;
    font-weight: normal;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -0.5px;
}

/* متن کارت */
.card-text {
    margin: 0;
}

.card-text small {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.85;
    background: transparent;
    padding: 4px 12px;
    border-radius: 50px;
}

/* تصویر بازار */
.bazaar-img {
    max-width: 180px;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}

.bazaar-img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* فوتر */
footer {
    background-color: #fff;
    color: #636e72;
    padding: 50px 20px;
    margin-top: 80px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}

footer strong {
    color: #2d3436;
    font-weight: bold;
}

/* موبایل */
@media (max-width: 576px) {
    .row:has(.custom-card) > div {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .card-title {
        font-size: 1.15rem;
    }

    .custom-card {
        border-radius: 15px;
    }

    footer {
        padding: 30px 15px;
        font-size: 0.85rem;
    }
}

/* تبلت کوچک */
@media (min-width: 577px) and (max-width: 768px) {
    .row:has(.custom-card) > div {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

/* نمایشگر متوسط */
@media (min-width: 769px) and (max-width: 991px) {
    .row:has(.custom-card) > div {
        flex: 0 0 25%;
        max-width: 25%;
    }
}