/* قسم الخدمات الجديد - 14 خدمة */

.services-section-new {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.services-section-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

/* عنوان القسم */
.services-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease;
}

.services-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.services-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* شبكة الخدمات */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* بطاقة الخدمة */
.service-card-new {
    background: white;
    border-radius: 16px;
    padding: 1.45rem;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.18);
    border-color: #3b82f6;
}

.service-card-new:hover::before {
    transform: scaleX(1);
}

/* عنوان الخدمة */
/* عنوان الخدمة */
.service-title-new {
    font-size: 1.28rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.service-description-new {
    font-size: 0.94rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    line-height: 1.55;
}

.service-features-new {
    margin-top: 0.25rem;
}

.service-features-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.service-features-new li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding: 0.7rem 0.9rem;
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.55;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.09), rgba(147, 197, 253, 0.1));
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(2px);
    overflow: visible;
}

.service-features-new li::before {
    content: '\2713';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.28);
    pointer-events: none;
    margin-inline-end: 0.1rem;
}

.service-features-new li::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.08));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.service-features-new li:hover::after {
    opacity: 1;
}

.service-features-new li span,
.service-features-new li strong,
.service-features-new li em {
    position: relative;
    z-index: 1;
}

[dir='rtl'] .service-features-new li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir='rtl'] .service-features-new li::before {
    margin-inline-end: 0;
    margin-inline-start: 0.1rem;
}

.service-trust-new {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.1rem;
}

/* Overrides for desktops: compact spacing + scrollable features */
@media (min-width: 1024px) {
    .services-section-new {
        padding: 3.5rem 0;
    }

    .services-grid-new {
        gap: 1.25rem;
        align-items: start;
    }

    .service-card-new {
        display: flex;
        flex-direction: column;
        padding: 1.25rem 1.35rem;
        min-height: 0;
        gap: 0.5rem;
    }

    .service-title-new {
        margin-bottom: 0.45rem;
    }

    .service-description-new {
        margin-bottom: 0.35rem;
        line-height: 1.5;
    }

    .service-features-new {
        margin-top: 0.25rem;
        max-height: 170px;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 0.25rem;
        flex: 0 0 auto;
    }

    .service-features-new::-webkit-scrollbar {
        width: 6px;
    }

    .service-features-new::-webkit-scrollbar-track {
        background: rgba(148, 163, 184, 0.15);
        border-radius: 999px;
    }

    .service-features-new::-webkit-scrollbar-thumb {
        background: rgba(59, 130, 246, 0.3);
        border-radius: 999px;
    }

    .service-features-new ul {
        gap: 0;
    }

    .service-features-new li {
        padding: 0.35rem 0;
        line-height: 1.45;
    }

    .service-trust-new {
        margin-top: 0.8rem;
        gap: 0.35rem;
    }

    .service-trust-new + .service-btn-new,
    .service-btn-new {
        margin-top: auto;
        align-self: flex-start;
    }
}

.service-trust-new {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.1rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* زر الخدمة */
.service-btn-new {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.service-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* أنيميشن */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-new {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card-new:nth-child(1) { animation-delay: 0.08s; }
.service-card-new:nth-child(2) { animation-delay: 0.16s; }
.service-card-new:nth-child(3) { animation-delay: 0.24s; }
.service-card-new:nth-child(4) { animation-delay: 0.32s; }
.service-card-new:nth-child(5) { animation-delay: 0.4s; }
.service-card-new:nth-child(6) { animation-delay: 0.48s; }
.service-card-new:nth-child(7) { animation-delay: 0.56s; }
.service-card-new:nth-child(8) { animation-delay: 0.64s; }
.service-card-new:nth-child(9) { animation-delay: 0.72s; }
.service-card-new:nth-child(10) { animation-delay: 0.8s; }
.service-card-new:nth-child(11) { animation-delay: 0.88s; }
.service-card-new:nth-child(12) { animation-delay: 0.96s; }
.service-card-new:nth-child(13) { animation-delay: 1.04s; }
.service-card-new:nth-child(14) { animation-delay: 1.12s; }

/* التصميم المتجاوب */
@media (max-width: 1200px) {
    .services-grid-new {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.3rem;
    }
}

@media (max-width: 768px) {
    .services-section-new {
        padding: 3rem 0;
    }
    
    .services-title {
        font-size: 1.85rem;
    }
    
    .services-subtitle {
        font-size: 0.95rem;
    }
    
    .services-grid-new {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 1rem;
    }
    
    .service-card-new {
        padding: 1.3rem;
    }
    
    .service-title-new {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 1.75rem;
    }
    
    .services-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
    
    .service-features-new li {
        font-size: 0.9rem;
    }
}