﻿
:root {
    --brand: #5FB4FD; /* الأزرق */
    --brand-dk: #3A8EDB;
    --brand-lt: #EEF6FF;
    --dark: #4D4D4D;
    --mid: #6b7280;
    --light: #f8fafc;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(96,180,253,0.12);
}

.services-section {
    background: var(--light);
    padding: 70px 0 80px;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

    .services-header .eyebrow {
        display: inline-block;
        background: var(--brand-lt);
        color: var(--brand);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        padding: 5px 16px;
        border-radius: 50px;
        margin-bottom: 14px;
    }

    .services-header h2 {
        font-size: 34px;
        font-weight: 700;
        color: var(--dark);
        margin: 0 0 12px;
    }

    .services-header p {
        font-size: 15px;
        color: var(--mid);
        max-width: 500px;
        margin: 0 auto;
    }

.svc-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    margin-bottom: 40px;
    border: 1px solid #e2eaf0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.5s ease forwards;
}

    .svc-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .svc-card:nth-child(2) {
        animation-delay: 0.15s;
    }

    .svc-card:nth-child(3) {
        animation-delay: 0.25s;
    }

    .svc-card:nth-child(4) {
        animation-delay: 0.35s;
    }

    .svc-card:nth-child(5) {
        animation-delay: 0.45s;
    }

    .svc-card:nth-child(6) {
        animation-delay: 0.55s;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.svc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(96,180,253,0.15);
}

.svc-card:nth-child(even) {
    flex-direction: row-reverse;
}

.svc-img-wrap {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    background: var(--brand-lt);
}

    .svc-img-wrap img {
        width: 100%;
        height: 100%;
        min-height: 280px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.svc-card:hover .svc-img-wrap img {
    transform: scale(1.05);
}

.svc-number {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 42px;
    height: 42px;
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(96,180,253,0.35);
}

.svc-card:nth-child(even) .svc-number {
    left: auto;
    right: 18px;
}

.svc-content {
    flex: 1;
    padding: 38px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .svc-content h3 {
        font-size: 21px;
        font-weight: 700;
        color: var(--dark);
        margin: 0 0 12px;
    }

.svc-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #5FB4FD, #7C58FA);
    border-radius: 2px;
    margin-bottom: 16px;
}

.svc-description {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.85;
}

    .svc-description p {
        margin-bottom: 8px;
    }

    .svc-description.collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.read-more-btn {
    border: none;
    background: none;
    color: var(--brand);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-top: 14px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

    .read-more-btn:hover {
        gap: 8px;
        color: var(--brand-dk);
    }

    .read-more-btn i {
        font-size: 11px;
        transition: transform 0.2s;
    }

    .read-more-btn.expanded i {
        transform: rotate(90deg);
    }

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--mid);
}

    .empty-state i {
        font-size: 48px;
        color: #cdd;
        margin-bottom: 16px;
        display: block;
    }


/* ── CTA ── */
.svc-cta {
    background: linear-gradient(135deg, #5FB4FD 0%, #7C58FA 100%);
    padding: 0;
}

.svc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 120px;
    padding: 36px 0;
    flex-wrap: wrap;
}

.svc-cta-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.svc-cta-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.svc-cta-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.svc-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.svc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}

    .svc-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .svc-cta-btn.primary {
        background: #fff;
        color: var(--brand-dk);
    }

        .svc-cta-btn.primary:hover {
            color: var(--brand-dk);
            background: #f0f9ff;
        }

    .svc-cta-btn.wa {
        background: #25d366;
        color: #fff;
    }

        .svc-cta-btn.wa:hover {
            background: #1ebe5c;
            color: #fff;
        }

    .svc-cta-btn i {
        font-size: 15px;
    }

.svc-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.svc-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    border: 1px solid transparent;
    transition: .25s ease;
    backdrop-filter: blur(10px);
}

    .svc-mode-badge i {
        font-size: 11px;
        opacity: .9;
    }

    .svc-mode-badge:hover {
        transform: translateY(-1px);
    }

.mode-online {
    background: rgba(14, 165, 233, 0.08);
    color: #0369a1;
    border-color: rgba(14, 165, 233, 0.15);
}

.mode-onsite {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.15);
}

.mode-training {
    background: rgba(249, 115, 22, 0.08);
    color: #c2410c;
    border-color: rgba(249, 115, 22, 0.15);
}

html[dir="rtl"] .svc-modes {
    justify-content: flex-start;
}

html[dir="rtl"] .svc-mode-badge {
    flex-direction: row-reverse;
}


@media (max-width: 768px) {
    .svc-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
    }

    .svc-cta-actions {
        width: 100%;
        justify-content: center;
    }

    .svc-cta-btn {
        flex: 1;
        justify-content: center;
    }
}



@media (max-width: 768px) {
    .svc-card, .svc-card:nth-child(even) {
        flex-direction: column;
    }

    .svc-img-wrap {
        flex: none;
        height: 220px;
    }

        .svc-img-wrap img {
            min-height: unset;
        }

    .svc-content {
        padding: 24px 22px;
    }

    .svc-card:nth-child(even) .svc-number {
        left: 18px;
        right: auto;
    }

    .services-header h2 {
        font-size: 26px;
    }
}


