/* Container for all cards */
.shafa-services-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    direction: rtl;
    padding: 40px 15px;
}

/* Single Card Style */
.shafa-services-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    flex: 1 1 300px;
    max-width: 400px;
    min-width: 300px;
    padding: 36px 28px 30px;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.shafa-services-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
}

/* Image Box - Fixed to Circle Mask */
.shafa-services-card__image-box {
    width: 180px;  /* اندازه دقیق دایره */
    height: 180px; /* اندازه دقیق دایره */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 38px;
    border-radius: 50%; /* ایجاد ماسک دایره‌ای */
}

/* Radial Glow Behind Image */
.shafa-services-card__image-box::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211,26,39,0.1) 0%, rgba(211,26,39,0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* The Service Image - Forced to be Circle */
.shafa-services-card__image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن دایره بدون تغییر نسبت تصویر */
    border-radius: 50%; /* دایره‌ای کردن خود عکس */
    position: relative;
    z-index: 2;
    border: 2px solid #fff; /* خط سفید ظریف دور عکس برای تمیزی بیشتر */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Red Icon Badge */
.shafa-services-card__badge {
    position: absolute;
    bottom: -15px; /* تنظیم موقعیت روی لبه دایره */
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #d31a27;
    font-size: 18px;
}

/* Typography */
.shafa-services-card .shafa-services-card__title{
    font-size: 21px !important;   /* این عدد را کم/زیاد کن */
    font-weight: 600 !important;  /* 800 را سبک‌تر کردم */
    line-height: 1.35 !important;
    margin: 10px 0 8px !important;
    color:#0b1b35;
}

.shafa-services-card__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #54595f;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .shafa-services-card {
        min-width: 100%;
        max-width: 100%;
    }
}
