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

: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.png');
    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: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

/* ==========================================================================
   قسم الأخبار
   ========================================================================== */
.news-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.news-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.news-card:hover .news-title {
    color: var(--secondary-color);
}

.news-summary {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-author {
    display: flex;
    align-items: center;
}

.news-author-image {
    width: 30px;
    height: 30px;
    border-radius: var(--border-radius-circle);
    overflow: hidden;
    margin-left: 10px;
}

.news-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-author-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.news-stats {
    display: flex;
    align-items: center;
}

.news-stat {
    display: flex;
    align-items: center;
    margin-right: 15px;
    color: var(--text-color);
    font-size: 0.85rem;
}

.news-stat i {
    margin-left: 5px;
    color: var(--accent-color);
}

.news-stat:last-child {
    margin-right: 0;
}

.news-read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: 15px;
}

.news-read-more:hover {
    color: var(--secondary-color);
}

.news-read-more i {
    margin-right: 5px;
    transition: var(--transition-fast);
}

.news-read-more:hover i {
    transform: translateX(-5px);
}

/* تنسيقات الترقيم الصفحي */
.pagination-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.page-item:not(.active) .page-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    width: auto;
    padding: 0 15px;
}

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

.filter-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 600;
    border: none;
    cursor: pointer;
    background-color: white;
    box-shadow: var(--card-shadow);
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    color: var(--primary-color);
}

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

/* تنسيقات التصنيفات */
.filter-btn.cat-1 { border-bottom: 3px solid #4CAF50; }  /* أخبار */
.filter-btn.cat-2 { border-bottom: 3px solid #2196F3; }  /* فعاليات */
.filter-btn.cat-3 { border-bottom: 3px solid var(--accent-color); }  /* إعلانات */
.filter-btn.cat-4 { border-bottom: 3px solid var(--secondary-color); }  /* مشروعات */

/* تنسيقات الفلاتر الجانبية */
.sidebar {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    padding: 25px;
    height: 100%;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.category-count {
    background-color: white;
    color: var(--primary-color);
    border-radius: var(--border-radius-circle);
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.category-link:hover .category-count {
    background-color: var(--accent-color);
    color: white;
}

/* تنسيقات الأخبار الشائعة */
.popular-news {
    margin-top: 30px;
}

.popular-news-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-bg);
}

.popular-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-news-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-left: 15px;
}

.popular-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-news-content {
    flex: 1;
}

.popular-news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.popular-news-item:hover .popular-news-title {
    color: var(--primary-color);
}

.popular-news-date {
    font-size: 0.85rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.popular-news-date i {
    margin-left: 5px;
    color: var(--accent-color);
}

/* تنسيقات الوسوم */
.tags-section {
    margin-top: 30px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* تنسيقات النشرة الإخبارية */
.newsletter-section {
    margin-top: 30px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: 25px;
    color: white;
}

.newsletter-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form .form-control {
    border-radius: var(--border-radius-sm);
    padding: 12px 15px;
    border: none;
    margin-bottom: 15px;
}

.newsletter-form .btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    background-color: var(--accent-color);
    border: none;
    color: white;
    font-weight: 600;
    transition: var(--transition-fast);
}

.newsletter-form .btn:hover {
    background-color: #e68600;
    transform: translateY(-2px);
}

/* تنسيقات الاستجابة */
@media (max-width: 991px) {
    .sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .page-title-section {
        padding: 60px 0 40px;
    }
    
    .page-title-section h1 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        width: auto;
        text-align: center;
    }
    
    .search-section .btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .page-title-section h1 {
        font-size: 1.75rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 200px;
    }
    
    .pagination .page-link {
        width: 35px;
        height: 35px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}
