/* ============================================
   بخش خدمات - اسکرول افقی
   ============================================ */

   .services-section {
    padding: 60px 0;
    background: #f8fafc;
    position: relative;
    direction: rtl;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر بخش */
.services-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.services-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.services-subtitle {
    font-size: 16px;
    color: #64748b;
}

.services-description {
    font-size: 14px;
    color: #94a3b8;
    max-width: 600px;
    margin: 10px auto 0;
}

/* کانتینر اسکرول */
.services-scroll-container {
    position: relative;
    margin: 30px 0;
}

.services-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 10px 0;
    border-radius: 16px;
}

.services-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.services-scroll-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.services-scroll-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
}

/* گرید افقی */
.services-grid-horizontal {
    display: flex;
    gap: 20px;
    padding: 5px 5px 15px 5px;
    min-width: min-content;
    justify-content: center;
}

/* کارت خدمات - اندازه ثابت */
.service-card {
    flex: 0 0 220px;
    width: 220px;
    transition: all 0.3s ease;
}

.service-card-inner {
    background: white;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover .service-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

/* آیکون - کوچک‌تر */
.service-icon-wrapper {
    margin-bottom: 15px;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transform: scale(1.05);
}

.service-icon i {
    font-size: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    color: white;
}

.service-icon-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* عنوان - کوچک‌تر */
.service-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* توضیحات - کوتاه‌تر */
.service-description {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* لینک */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #6366f1;
    text-decoration: none;
    padding: 5px 0;
    transition: all 0.3s ease;
    justify-content: center;
}

.service-link:hover {
    gap: 8px;
    color: #8b5cf6;
}

.service-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(-3px);
}

/* دکمه‌های اسکرول */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.scroll-btn:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.05);
}

.scroll-prev {
    right: -20px;
}

.scroll-next {
    left: -20px;
}

.scroll-btn i {
    font-size: 18px;
}

/* نشانگر اسکرول */
.scroll-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.scroll-progress {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* دکمه مشاهده همه */
.services-footer {
    text-align: center;
    margin-top: 30px;
}

.services-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.services-view-all:hover {
    transform: translateY(-2px);
    gap: 15px;
    color: white;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .service-card {
        flex: 0 0 200px;
        width: 200px;
    }
    
    .scroll-prev {
        right: -10px;
    }
    
    .scroll-next {
        left: -10px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 40px 0;
    }
    
    .services-title {
        font-size: 26px;
    }
    
    .service-card {
        flex: 0 0 180px;
        width: 180px;
    }
    
    .service-card-inner {
        padding: 20px 12px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 22px;
    }
    
    .service-title {
        font-size: 14px;
    }
    
    .service-description {
        font-size: 11px;
    }
    
    .service-link {
        font-size: 11px;
    }
    
    .scroll-btn {
        width: 32px;
        height: 32px;
    }
    
    .scroll-btn i {
        font-size: 14px;
    }
    
    .scroll-prev {
        right: -5px;
    }
    
    .scroll-next {
        left: -5px;
    }
}

@media (max-width: 480px) {
    .service-card {
        flex: 0 0 160px;
        width: 160px;
    }
    
    .service-card-inner {
        padding: 15px 10px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
    }
    
    .service-icon i {
        font-size: 20px;
    }
    
    .service-title {
        font-size: 13px;
    }
}