/* =====================================
   SERVICES PAGE
===================================== */

.services-page {
    padding: 60px 0 100px;
}

/* فقط برای وسط‌چین شدن محتوای همین صفحه */
.services-page .container {
    width: min(100% - 40px, 1320px);
    margin-right: auto;
    margin-left: auto;
}

.services-header {
    text-align: center;
    margin-bottom: 45px;
}

.header-badge {
    display: inline-flex;
    background: #eaf4ff;
    color: #0b3a5a;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.services-header h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 18px;
    color: var(--color-primary);
}

.services-header p {
    color: #64748b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.service-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: .3s;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .1);
}

.service-image {
    height: 230px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: #94a3b8;
    background: #f8fafc;
}

.service-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h2 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 12px;
    line-height: 1.7;
    color: #0f172a;
}

.service-content p {
    color: #64748b;
    line-height: 2;
    font-size: 14px;
    margin: 0;
}

.service-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: #0f6cbd;
    font-weight: 800;
    font-size: 14px;
    transition: gap .3s;
}

.service-card:hover .service-more {
    gap: 12px;
}

.service-more i {
    font-size: 13px;
}

.empty-result {
    grid-column: 1 / -1;
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 25px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-page {
        padding-top: 35px;
    }

    /* حفظ حاشیه استاندارد و وسط‌چین بودن در موبایل */
    .services-page .container {
        width: min(100% - 30px, 1320px);
    }

    .services-header h1 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card:hover {
        transform: none;
    }

    .service-image {
        height: 220px;
    }

    .service-content {
        padding: 22px;
    }
}
