/* ==========================================
   الستايلات العامة والهيرو سيكشن
========================================== */
.page-header {
    position: relative;
    height: 350px;
    width: 100%;
    /* تم نقل background-image للـ HTML */
    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;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

/* كلاس أزرار السوشيال ميديا بديل الـ Inline Styles */
.social-circle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   أزرار الفلترة للمدونة
========================================== */
.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ==========================================
   كروت المدونة
========================================== */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.blog-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.blog-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.blog-meta i {
    color: var(--primary-color);
    margin-left: 5px;
}

/* للغة الإنجليزية LTR */
html[dir="ltr"] .blog-meta i {
    margin-left: 0;
    margin-right: 5px;
}

.blog-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.blog-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: 0.3s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.read-more-btn:hover {
    color: var(--secondary-color);
}

/* ==========================================
   التقسيم (Pagination)
========================================== */
.pagination .page-link {
    color: var(--dark-color);
    border: none;
    margin: 0 3px;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.pagination .page-link.active, .pagination .page-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn.btn-outline-light.text-dark-scrolled.dropdown-toggle.border-0 {
    background: #f4f4f4;
    border-radius: var(--bs-border-radius-pill) !important;
}