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

:root {
    /* الألوان الأساسية */
    --primary-color: #0a2463;
    --secondary-color: #d00000;
    --accent-color: #ff9500;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-color: #333;
    
    /* ظلال */
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* حواف مستديرة */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-circle: 50%;
    
    /* انتقالات */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* المسافات البادئة */
    --section-padding: 80px 0;
}

/* ==========================================================================
   تنسيقات البريدكرمب
   ========================================================================== */
.breadcrumb-container {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
    margin-top: 15px;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   قسم الهيرو - خدماتنا
   ========================================================================== */
.page-title-section {
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9) 0%, rgba(10, 36, 99, 0.8) 100%), url('../images/pattern-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 149, 0, 0.1);
    z-index: 1;
}

.page-title-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(208, 0, 0, 0.05);
    z-index: 1;
}

.page-title-section .section-header {
    position: relative;
    z-index: 2;
}

.page-title-section h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow);
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--secondary-color);
    right: -50px;
    top: 0;
}

.section-divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: var(--secondary-color);
    right: -80px;
    top: 0;
}

/* تنسيقات قسم البحث */
.search-section {
    background-color: var(--light-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.search-section .form-control {
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
}

.search-section .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(10, 36, 99, 0.15);
    border-color: var(--primary-color);
}

.search-section .btn {
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-medium);
}

.search-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.search-section .btn-primary:hover {
    background-color: #0d2d7a;
    border-color: #0d2d7a;
    transform: translateY(-2px);
}

.search-section .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.search-section .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
}

/* تنسيقات قسم الخدمات */
.services-section {
    padding: var(--section-padding);
    background-color: white;
}

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

/* للتوافق مع المتصفحات القديمة التي لا تدعم متغيرات CSS */
.services-list .card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: none;
    margin-bottom: 1.5rem;
}

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

/* تنسيقات البطاقة */
.services-list .card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
    position: relative;
    border: none;
    margin-bottom: 1.5rem;
}

.services-list .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.services-list .card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition-medium);
}

.services-list .card:hover::before {
    opacity: 1;
}

.services-list .card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 576px) {
    .services-list .card-body {
        flex-direction: column;
        gap: 1rem;
    }
}

/* تنسيقات الصورة */
.services-list .service-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .services-list .service-image {
        width: 100%;
        height: 180px;
        margin-bottom: 1rem;
    }
}

.services-list .service-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0;
    transition: var(--transition-medium);
}

.services-list .card:hover .service-image::after {
    opacity: 1;
}

.services-list .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

/* تنسيقات الصف */
.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;
    justify-content: space-between;
}

.services-list .card-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.services-list .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition-medium);
}

.services-list .card:hover .card-title::after {
    width: 80px;
}

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

/* تنسيقات الريبون */
.category-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    padding: 8px 35px;
    color: white;
    transform: rotate(45deg);
    z-index: 10;
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px 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;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #0a2463;
    color: #0a2463;
}

.services-list .btn-read-more:hover {
    background-color: #0a2463;
    color: white;
    transform: translateX(-5px);
}

.services-list .btn-read-more i {
    transition: all 0.3s ease;
}

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

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

/* إضافة تنسيقات للإحصائيات */
.image-stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 5;
}

.interaction-buttons {
    display: flex;
    gap: 10px;
}

.like-btn, .share-btn {
    background-color: rgba(255, 255, 255, 0.8);
    color: #0a2463;
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.like-btn i {
    color: #d00000;
}

.share-btn i {
    color: #0a2463;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: var(--transition-medium);
    z-index: -1;
}

.filter-btn:hover::before {
    transform: translateX(0);
}

.filter-btn.default { background-color: var(--primary-color); }
.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: var(--accent-color); } /* خدمات اساسية */

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 50%;
    transform: translateX(50%);
    width: 30%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
}

.filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* تنسيقات الترقيم */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination {
    gap: 0.3rem;
}

.pagination .page-item .page-link {
    border-radius: var(--border-radius-md);
    color: var(--primary-color);
    border: none;
    padding: 0.6rem 1rem;
    font-weight: 600;
    transition: var(--transition-medium);
}

.pagination .page-item .page-link:hover {
    background-color: rgba(10, 36, 99, 0.1);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 3px 8px rgba(10, 36, 99, 0.3);
}

/* تنسيقات التجاوب */
@media (max-width: 992px) {
    .services-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.8rem;
    }
    
    .page-title-section {
        padding: 60px 0 40px;
    }
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .filter-buttons {
        justify-content: center;
        gap: 0.6rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-divider::before,
    .section-divider::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .services-list .service-image {
        height: 180px;
    }
    
    .services-list .card-title {
        font-size: 1.1rem;
    }
    
    .services-list .card-text {
        font-size: 0.9rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .category-ribbon {
        font-size: 0.75rem;
        padding: 6px 30px;
        right: -30px;
        top: 10px;
    }
}

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