/* Services listing page (moved verbatim from service.blade.php inline <style>). */
:root {
    --primary-color: #2c5aa0;
    --primary-gradient: linear-gradient(135deg, #2c5aa0, #3a7bd5);
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.process-steps:before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--section-bg);
    z-index: 1;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 200px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--section-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
    border: 3px solid white;
    box-shadow: var(--shadow);
    font-size: 1.2rem;
}

.process-step.active .step-number {
    background: var(--primary-gradient);
    color: white;
}

.step-content {
    text-align: center;
    padding: 0 10px;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    font-size: 0.9rem;
    color: #666;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.service-features {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-features span {
    background: var(--section-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-color);
}

.service-duration {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 8px;
    text-align: center;
}

.btn-service {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-service:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 7px 15px rgba(44, 90, 160, 0.3);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin: 1rem 0 0.8rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.card p {
    flex-grow: 1;
    color: #555;
    line-height: 1.6;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps:before {
        display: none;
    }

    .process-step {
        flex-direction: row;
        text-align: right;
        min-width: 100%;
    }

    .step-number {
        margin-bottom: 0;
        margin-left: 1rem;
        flex-shrink: 0;
    }

    .step-content {
        text-align: right;
        padding: 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.2rem;
        margin-bottom: 0;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .service-features {
        gap: 0.4rem;
    }

    .service-features span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .btn-service {
        padding: 0.9rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card {
        padding: 1rem;
        border-radius: 10px;
    }

    .card-image {
        height: 160px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .service-duration {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-intro {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* تحسينات للشاشات الكبيرة جداً */
@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* ---- Additions for the bilingual / SEO version of the page ---- */
ol.process-steps {
    list-style: none;
    padding: 0;
}

.step-content .step-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card h3 .card-title-link {
    color: inherit;
    text-decoration: none;
}

.card h3 .card-title-link:hover {
    color: var(--primary-color);
}

.card-image {
    display: block;
}

.services-grid-heading {
    text-align: center;
    font-size: 1.6rem;
    margin: 1rem 0 2rem;
    color: var(--primary-color);
}

.services-empty {
    text-align: center;
    opacity: 0.8;
    padding: 2rem 0;
}

.services-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--section-bg);
    border-radius: 15px;
}

.services-cta h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.services-cta p {
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 768px) {
    [dir="ltr"] .process-step,
    [dir="ltr"] .step-content {
        text-align: left;
    }

    [dir="ltr"] .step-number {
        margin-left: 0;
        margin-right: 1rem;
    }
}
