﻿/* ========== Services (SEO) ========== */
.seo-services {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.seo-services__title {
    font-weight: 800;
    color: #0f172a;
}

.seo-service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .seo-service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(2, 6, 23, 0.12);
        border-color: #d1d5db;
    }

.seo-service-card__media {
    background: #f1f5f9;
    display: block;
}

.seo-service-card__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 600 / 420; /* يحسّن CLS */
    object-fit: cover;
}

.seo-service-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.seo-service-card__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
    margin-top: -32px; /* يركّب الأيقونة على حافة الصورة */
}

.seo-service-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: .25rem 0 .25rem;
}

.seo-service-card__desc {
    color: #334155;
    line-height: 1.7;
    font-size: .975rem;
    margin: 0 0 .5rem;
}

.seo-service-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    text-decoration: none;
    color: #2563eb;
}

    .seo-service-card__link:hover {
        text-decoration: underline;
    }

/* RTL hints (لو عندك RTL/LTR toggle) */
html[dir="rtl"] .ms-2 {
    margin-left: .5rem !important;
    margin-right: 0 !important;
}
/* ========== Services (ERP Grid) ========== */
.seo-services {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.seo-services__title {
    font-weight: 800;
    color: #0f172a;
}

.seo-service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .seo-service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(2, 6, 23, 0.12);
        border-color: #d1d5db;
    }

.seo-service-card__media {
    background: #f1f5f9;
    display: block;
}

.seo-service-card__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 600 / 420;
    object-fit: cover;
}

.seo-service-card__body {
    padding: 1.1rem 1.1rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.seo-service-card__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
    margin-top: -32px;
}

.seo-service-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: .15rem 0 .25rem;
}

.seo-service-card__desc {
    color: #334155;
    line-height: 1.65;
    font-size: .95rem;
    margin: 0 0 .5rem;
}

.seo-service-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    text-decoration: none;
    color: #2563eb;
}

    .seo-service-card__link:hover {
        text-decoration: underline;
    }

/* ألوان إضافية لأيقونات */
.bg-teal {
    background-color: #0d9488 !important;
}

.bg-indigo {
    background-color: #4f46e5 !important;
}

/* RTL tweak */
html[dir="rtl"] .ms-2 {
    margin-left: .5rem !important;
    margin-right: 0 !important;
}
