/* --- تنظیمات مشترک --- */
:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --dark-color: #1e293b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --radius: 12px;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Vazirmatn', sans-serif; 
    background-color: var(--light-bg); 
    color: var(--text-color); 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

img { 
    max-width: 100%; 
    display: block; 
}

/* --- استایل هدر --- */
.page-header {
    background: linear-gradient(135deg, #00a793 0%, #0d9488 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header .lead {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- استایل کارت‌های خدمات --- */
.services-section {
    padding: 60px 0;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-body {
    padding: 25px;
}

.service-title {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.service-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-meta {
    padding-top: 15px;
}

.btn-detail {
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-detail:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* --- استایل پیج بندی --- */
.pagination .page-link {
    color: var(--dark-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 8px;
}

/* --- واکنش‌گرایی --- */
@media (max-width: 992px) {
    .service-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .service-img {
        height: 180px;
    }
    
    .services-section {
        padding: 30px 0 !important;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .service-img {
        height: 160px;
    }
    
    .service-body {
        padding: 20px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
}