/* ================================
   Service Cards (خدماتنا الرئيسية)
   ================================ */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.service-card {
    background: linear-gradient(135deg, var(--service-bg1, #f7f7fa), var(--service-bg2, #f1f3fa));
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(60,60,120,0.13), 0 1.5px 4px 0 rgba(80,80,120,0.06);
    padding: 38px 24px 28px 24px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.35s cubic-bezier(0.4,0.6,0.2,1), transform 0.35s cubic-bezier(0.4,0.6,0.2,1);
    cursor: pointer;
    overflow: hidden;
}

/* ألوان مخصصة لكل خدمة (توزع تلقائيًا عبر CSS) */
.service-card:nth-child(4n+1) { --service-bg1: #e8f0fe; --service-bg2: #e0e7ff; }
.service-card:nth-child(4n+2) { --service-bg1: #fff4e6; --service-bg2: #ffe6fa; }
.service-card:nth-child(4n+3) { --service-bg1: #e6fff7; --service-bg2: #e6f7ff; }
.service-card:nth-child(4n+4) { --service-bg1: #fffbe6; --service-bg2: #ffe6e6; }

.service-card:hover {
    box-shadow: 0 16px 52px 0 rgba(127,31,255,0.18), 0 8px 32px 0 rgba(37,211,102,0.14);
    transform: scale(1.045);
    z-index: 2;
}

.service-icon {
    width: 92px !important;
    height: 92px !important;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    box-shadow: 0 2px 12px 0 rgba(60,60,120,0.09);
    overflow: hidden;
    transition: box-shadow 0.35s, background 0.35s;
}

.service-card:hover .service-icon {
    box-shadow: 0 6px 28px 0 rgba(127,31,255,0.13);
    background: rgba(255,255,255,0.85);
}

.service-icon img, .service-icon .wp-post-image {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.4,0.6,0.2,1);
}

.service-card:hover .service-icon img,
.service-card:hover .service-icon .wp-post-image {
    transform: rotate(360deg) scale(1.13);
}

.service-title {
    font-size: 1.35em;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--main-dark);
    letter-spacing: 0.5px;
}

.service-desc {
    font-size: 1.08em;
    color: #4e4e6a;
    margin-bottom: 0;
    line-height: 1.7;
    min-height: 48px;
}

@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .service-card {
        padding: 28px 12px 20px 12px;
    }
    .service-icon {
        width: 70px !important; height: 70px !important;
    }
    .service-icon img, .service-icon .wp-post-image {
        width: 46px !important; height: 46px !important;
    }
}
/* نهاية خدماتنا */
