/* تنسيقات صفحة الخدمات */

/* تنسيقات القائمة */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* تنسيقات البطاقة */
.services-list .card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.services-list .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* تنسيقات الصورة */
.services-list .service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.services-list .card:hover .service-image img {
    transform: scale(1.1);
}

/* تنسيقات الصف */
.services-list .service-row {
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding: 1rem;
}

.services-list .service-row:hover {
    background-color: rgba(0, 33, 71, 0.02);
}

/* تنسيقات المؤشر */
.services-list .service-indicator {
    width: 4px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 4px;
}

/* تنسيقات الملاحظة */
.services-list .service-note {
    position: relative;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* تنسيقات المحتوى */
.services-list .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.services-list .card-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-list .card-text {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

/* تنسيقات الريبون */
.category-ribbon {
    position: absolute;
    top: 0;
    left: -40px;
    padding: 8px 40px;
    color: white;
    transform: rotate(-45deg);
    z-index: 10;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.category-ribbon.cat-1 { background-color: #4CAF50; }
.category-ribbon.cat-2 { background-color: #2196F3; }
.category-ribbon.cat-3 { background-color: #FF9800; }
.category-ribbon.cat-4 { background-color: #E91E63; }
.category-ribbon.cat-5 { background-color: #9C27B0; }
.category-ribbon.cat-6 { background-color: #673AB7; }
.category-ribbon.cat-7 { background-color: #3F51B5; }
.category-ribbon.cat-8 { background-color: #00BCD4; }
.category-ribbon.cat-9 { background-color: #009688; }
.category-ribbon.cat-10 { background-color: #795548; }
.category-ribbon.cat-11 { background-color: #607D8B; }
.category-ribbon.cat-15 { background-color: #FF5722; }

/* تنسيقات الإحصائيات */
.services-list .image-stats {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    margin-top: 10px;
    border-radius: 8px;
}

.services-list .interaction-buttons {
    display: flex;
    gap: 1rem;
}

.services-list .like-btn,
.services-list .share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.services-list .like-btn {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.services-list .share-btn {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
}

.services-list .like-btn:hover {
    background-color: rgba(220, 53, 69, 0.2);
}

.services-list .share-btn:hover {
    background-color: rgba(25, 135, 84, 0.2);
}

/* تنسيقات التاريخ */
.services-list .meta-info {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.services-list .date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* تنسيقات زر القراءة */
.services-list .btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.services-list .btn-read-more:hover {
    transform: translateX(-5px);
}

/* تنسيقات أزرار الفلتر */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn.default { background-color: #2196F3; }
.filter-btn.cat-1 { background-color: #4CAF50; }  /* أخبار */
.filter-btn.cat-2 { background-color: #2196F3; }  /* فعاليات */
.filter-btn.cat-3 { background-color: #FF9800; }  /* إعلانات */
.filter-btn.cat-4 { background-color: #E91E63; }  /* مشروعات */
.filter-btn.cat-5 { background-color: #9C27B0; }  /* رحلات داخلية */
.filter-btn.cat-6 { background-color: #673AB7; }  /* رحلات حج وعمرة */
.filter-btn.cat-7 { background-color: #3F51B5; }  /* معارض التسوق */
.filter-btn.cat-8 { background-color: #00BCD4; }  /* خدمات الاتصالات */
.filter-btn.cat-9 { background-color: #009688; }  /* تدريب */
.filter-btn.cat-10 { background-color: #795548; } /* خدمات إلكترونية */
.filter-btn.cat-11 { background-color: #607D8B; } /* توظيف */
.filter-btn.cat-15 { background-color: #FF5722; } /* خدمات اساسية */

.filter-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.filter-btn.active {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* تنسيقات التجاوب */
@media (max-width: 768px) {
    .services-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .service-image {
        width: 80px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .service-image {
        width: 100%;
        height: 150px;
    }
}

/* تنسيقات إضافية للخدمات */
.service-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
