/* تنظیمات فونت و ریسپانسیو بهتر کارت‌ها */
/* کارت‌ها برای حفظ یکنواختی ارتفاع و ظاهر سایه نرم */
.card-custom {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    height: 100%;  /* برای هم قد شدن در ردیف */
}
.card-custom:hover {
//transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
/* دایره یا قاب عکس */
.avatar-wrapper {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 12px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-placeholder {
    font-size: 2.8rem;
    color: #6c757d;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e2a3e;
}
.info-text {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.info-label {
    font-weight: 600;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #2c3e50;
}
.info-value {
    font-weight: 500;
    word-break: break-word;
}
.card-body {
    padding: 1.25rem 0.9rem 1rem 0.9rem;
    text-align: center;
}
/* برای اطمینان از اینکه در موبایل هر ردیف دقیقاً ۲ کارت قرار گیرد */
@media (max-width: 576px) {
    .row-cols-2-mobile {
        display: flex;
        flex-wrap: wrap;
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }
    .row-cols-2-mobile > .col {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        flex: 0 0 auto;
        width: 50%;
    }
    /* تنظیم فونت و سایز عکس در موبایل */
    .avatar-wrapper {
        width: 65px;
        height: 65px;
    }
    .card-title {
        font-size: 1rem;
    }
    .info-text {
        font-size: 0.75rem;
    }
}
/* برای نمایش در دسکتاپ و تبلت سایز بهتر */
@media (min-width: 576px) {
    .avatar-wrapper {
        width: 85px;
        height: 85px;
    }
}
/* تنظیم کلی margin و grid بدون نیاز به کل صفحه، فقط همون خط کاردها */
.container-custom {
    //max-width: 1400px;
    margin: 0 auto;
}