/* تنسيقات قسم الأخبار */
.news-section {
    padding: 2rem 0;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-list .card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.news-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(13, 104, 50, 0.2);
}

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

.news-list .news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

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

.news-list .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

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

.news-list .meta-info {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.news-list .stats-row {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0 0 10px 10px;
    margin-bottom: 1rem;
}

.news-list .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.news-list .category-ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

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

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

/* تنسيقات التصنيفات */
.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; }  /* مشروعات */

/* تنسيقات الترقيم */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.page-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* تنسيقات البحث */
.search-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.search-section .form-control {
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    border: 1px solid #dee2e6;
}

.search-section .btn {
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
}

/* تنسيقات متجاوبة */
@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

    .search-section .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}
