﻿:root {
    --primary-color: #030f27;
    --secondary-color: #fdbe33;
}

/* Modern Arabic Blog Styles */
.modern-arabic-blog {
    text-align: right;
    direction: rtl;
    padding: 80px 0;
    background-color: #f9f9f9;
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    display: block;
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-line {
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 0 10px;
}

.divider-icon {
    color: var(--secondary-color);
    font-size: 18px;
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--primary-color);
    position: relative;
}

.widget-title i {
    color: var(--secondary-color);
}

/* Search Widget */
.search-form .input-group {
    position: relative;
}

.search-form .form-control {
    height: 50px;
    border-radius: 5px;
    padding-right: 20px;
    border: 1px solid #eee;
    background: #f9f9f9;
    transition: all 0.3s;
}

.search-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: none;
    background: #fff;
}

.search-form .btn {
    position: absolute;
    left: 5px;
    top: 5px;
    height: 40px;
    width: 40px;
    border-radius: 5px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.categories-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 0;
}

.categories-list li a:hover,
.categories-list li.active a {
    color: var(--primary-color);
}

.categories-list li a .count {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.categories-list li.active a .count,
.categories-list li a:hover .count {
    background: var(--primary-color);
    color: #fff;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud .tag {
    display: inline-block;
    padding: 5px 15px;
    background: #f5f5f5;
    color: #555;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.tags-cloud .tag:hover,
.tags-cloud .tag.active {
    background: var(--primary-color);
    color: #fff;
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-item .post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-left: 15px;
    flex-shrink: 0;
}

.popular-post-item .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-post-item:hover .post-thumb img {
    transform: scale(1.1);
}

.popular-post-item .post-info {
    flex-grow: 1;
}

.popular-post-item .post-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-item .post-info h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.popular-post-item .post-info h4 a:hover {
    color: var(--secondary-color);
}

.popular-post-item .post-date {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
}

.popular-post-item .post-date i {
    margin-left: 5px;
    color: var(--secondary-color);
}

/* Blog Grid */
.blog-grid {
    margin-right: -15px;
    margin-left: -15px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(3,15,39,0.1);
}

.blog-media {
    position: relative;
    overflow: hidden;
}

.blog-card:hover .blog-media img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 2;
    font-weight: 600;
}

.blog-category a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}

.blog-meta span {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.blog-meta a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-meta a:hover {
    color: var(--primary-color);
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-color);
}

.blog-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--secondary-color);
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-right: 5px;
    transition: transform 0.3s;
    color: var(--secondary-color);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(-5px);
}

.blog-stats {
    display: flex;
}

.stats-item {
    display: flex;
    align-items: center;
    color: #777;
    font-size: 13px;
    margin-right: 15px;
}

.stats-item i {
    margin-left: 5px;
    color: var(--secondary-color);
}

/* Pagination */
.blog-pagination .pagination {
    margin: 0;
}

.blog-pagination .page-item {
    margin: 0 3px;
}

.blog-pagination .page-link {
    color: #555;
    border: none;
    border-radius: 5px !important;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.blog-pagination .page-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.blog-pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.blog-pagination .page-item.disabled .page-link {
    color: #ccc;
}

/* Empty State */
.no-posts-found {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.empty-state {
    padding: 40px 0;
}

.empty-state-icon {
    font-size: 60px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.empty-state-text {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .blog-sidebar {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .modern-arabic-blog {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .blog-grid {
        margin-right: 0;
        margin-left: 0;
    }
    
    .blog-card {
        margin-bottom: 20px;
    }
    
    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-stats {
        margin-top: 10px;
    }
}

