/* ==========================================
   الستايلات العامة والهيرو سيكشن
========================================== */
.page-header {
    position: relative;
    height: 350px;
    width: 100%;
    /* تم نقل صورة الخلفية للـ HTML كـ Inline Style */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.page-header::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
}

.page-header-content { 
    position: relative; 
    z-index: 2; 
}

.breadcrumb { 
    background: transparent; 
    padding: 0; 
    justify-content: center; 
    margin-bottom: 0; 
}

.breadcrumb-item a { 
    color: #ccc; 
    text-decoration: none; 
}

.breadcrumb-item.active { 
    color: #fff; 
}

.breadcrumb-item + .breadcrumb-item::before { 
    color: #ccc; 
}

/* ==========================================
   السايد بار والودجات (الفلاتر)
========================================== */
.sidebar-widget { 
    background: #fff; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.03); 
    margin-bottom: 25px; 
    border: 1px solid #eee; 
}

.widget-title { 
    font-weight: 700; 
    margin-bottom: 20px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid #f1f1f1; 
    position: relative; 
}

/* وضع التنسيق الافتراضي للغة العربية (RTL) */
.widget-title::after { 
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    right: 0; 
    width: 50px; 
    height: 2px; 
    background: var(--primary-color, #0d6efd); 
}

/* تعديل الاتجاه تلقائياً للغة الإنجليزية (LTR) */
html[dir="ltr"] .widget-title::after { 
    right: auto; 
    left: 0; 
}

/* ==========================================
   كروت الخدمات (Service Cards)
========================================== */
.service-card { 
    background: #fff; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
}

.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
    border-color: var(--primary-color, #0d6efd); 
}

.service-img-wrapper { 
    position: relative; 
    height: 200px; 
    overflow: hidden; 
    background: #f4f4f4; 
}

.service-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.3s; 
    display: block; 
}

.service-card:hover .service-img { 
    transform: scale(1.05); 
}

.service-category-badge { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: rgba(0,0,0,0.6); 
    color: #fff; 
    padding: 3px 10px; 
    border-radius: 20px; 
    font-size: 0.7rem; 
    z-index: 2; 
}

.service-body { 
    padding: 15px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.user-info { 
    display: flex; 
    align-items: center; 
    margin-bottom: 12px; 
}

.user-avatar { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    object-fit: cover; 
}

.service-title { 
    font-size: 1.05rem; 
    font-weight: 700; 
    line-height: 1.5; 
    color: var(--dark-color); 
}

.service-rating i { 
    color: #ffc107; 
}

.service-footer { 
    padding: 10px 15px; 
    border-top: 1px solid #f4f4f4; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.9rem; 
}

.price-label { 
    font-size: 0.8rem; 
    color: #777; 
}

.price-value { 
    font-weight: 800; 
    color: var(--primary-color, #0d6efd); 
    font-size: 1.1rem; 
}

/* ==========================================
   التنسيقات العامة والفلاتر
========================================== */
.filter-label { 
    font-weight: bold; 
    margin-bottom: 8px; 
    font-size: 0.9rem; 
    display: block; 
}

.pagination .page-link { 
    color: #333; 
    border: none; 
    margin: 0 3px; 
    border-radius: 5px; 
}

.pagination .page-item.active .page-link { 
    background-color: var(--primary-color, #0d6efd); 
    color: white; 
}

/* ==========================================
   التنسيقات المتعلقة بالخدمات المميزة
========================================== */
/* التنسيق الافتراضي للغة العربية (RTL) */
.featured-badge { 
    position: absolute; 
    top: 15px; 
    left: -30px; 
    background: #ffc107; 
    color: #000; 
    padding: 5px 35px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    transform: rotate(-45deg); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
    z-index: 3; 
}

/* تعديل الاتجاه تلقائياً للغة الإنجليزية (LTR) */
html[dir="ltr"] .featured-badge { 
    left: auto; 
    right: -30px; 
    transform: rotate(45deg); 
}

.featured-service-card { 
    border: 2px solid #ffc107 !important; 
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.12); 
}

.featured-service-card:hover { 
    border-color: #ffb300 !important; 
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.25); 
}

.client-featured-badge { 
    background-color: #ffc107; 
    color: #000; 
    font-size: 0.65rem; 
    font-weight: 700; 
    padding: 2px 6px; 
    border-radius: 10px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    display: inline-flex; 
    align-items: center; 
    gap: 3px; 
}

.client-featured-badge i { 
    color: #000 !important; 
    margin: 0 !important; 
    font-size: 0.6rem; 
}

.featured-service-card {
  border: 1px solid #eee !important;
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0) !important;
}
.featured-service-card:hover {
  border-color: var(--primary-color, #0d6efd) !important;
}