/* التنسيقات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #0066cc;
}

ul {
    list-style: none;
}

/* الهيدر */
.header-top {
    background: #116b53;
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info span {
    margin-left: 20px;
}

.header-social a {
    color: white;
    margin-right: 15px;
    font-size: 16px;
}

.header-main {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-left: 15px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-nav a:hover {
    background: #f8f9fa;
    color: #0066cc;
}

/* تنسيقات صفحة المقال */
.article-page {
    padding: 30px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

/* مسار التنقل */
.breadcrumb {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #004499;
}

.breadcrumb .separator {
    color: #666;
    margin: 0 5px;
}

.breadcrumb .current {
    color: #333;
    font-weight: bold;
}

/* المقال الرئيسي - تم التعديل هنا */
.article-single {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.article-header {
    position: relative;
}

.article-image {
    width: 100%;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-single:hover .article-image img {
    transform: scale(1.02);
}

.article-meta {
    padding: 30px;
    background: white;
}

.category-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.meta-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.meta-info i {
    color: #667eea;
    width: 16px;
}

/* محتوى المقال */
.article-content {
    padding: 0 30px 30px;
}

.article-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid #667eea;
    margin-bottom: 30px;
}

.article-summary p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body h2, 
.article-body h3 {
    color: #2c3e50;
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-body h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body ul, 
.article-body ol {
    margin: 20px 0;
    padding-right: 20px;
}

.article-body li {
    margin-bottom: 8px;
}

/* تذييل المقال */
.article-footer {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.article-tags {
    margin-bottom: 25px;
}

.article-tags span:first-child {
    font-weight: bold;
    color: #333;
    margin-left: 10px;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0 5px 5px 0;
    display: inline-block;
    transition: all 0.3s;
}

.tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-buttons span {
    font-weight: bold;
    color: #333;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }

/* مقالات ذات صلة - تم التعديل هنا */
.related-articles {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.related-articles h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-image {
    width: 100%;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.related-item:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.related-content h3 a:hover {
    color: #667eea;
}

.related-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-content .article-meta {
    padding: 0;
    border: none;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

/* التجاوب للهواتف */
@media (max-width: 768px) {
    .article-page {
        padding: 15px 0;
    }
    
    .breadcrumb {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .article-meta {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .meta-info {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .article-content {
        padding: 0 20px 20px;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .article-footer {
        padding: 20px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-articles {
        padding: 20px;
    }
    
    .related-articles h2 {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-summary {
        padding: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .share-buttons span {
        margin-bottom: 10px;
    }
}

/* تحسينات إضافية للعرض على الكمبيوتر */
@media (min-width: 1200px) {
    .article-single {
        margin: 0 auto 40px;
        max-width: 1000px;
    }
    
    .related-articles {
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* تأثيرات التحميل */
.article-image img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* إخفاء تأثير التحميل عند تحميل الصورة */
.article-image img.loaded {
    animation: none;
    background: none;
}

/* باقي الـ CSS يبقى كما هو بدون تغيير */
/* ... [باقي الكود يبقى كما هو] ... */

/* البانر الرئيسي */
.hero {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* الأقسام */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
    color: #2c3e50;
    font-size: 28px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #0066cc;
    margin: 10px auto;
}

/* المقالات المميزة */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.featured-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.featured-item:hover {
    transform: translateY(-5px);
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-content .category {
    background: #0066cc;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    display: inline-block;
}

.featured-content h3 {
    margin: 10px 0;
    font-size: 18px;
}

.featured-content h3 a {
    color: #2c3e50;
}

.featured-content h3 a:hover {
    color: #0066cc;
}

.article-meta {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
}

.article-meta span {
    margin-left: 15px;
}

/* الشبكة الأخبارية - تم التعديل هنا */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

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

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

.news-content .category {
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news-content h3 {
    margin: 10px 0;
    font-size: 16px;
    flex-grow: 1;
}

.news-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* صفحة المقال */
.article-detail .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px auto;
}

.article-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin: 15px 0;
}

.article-image {
    margin: 30px 0;
}

.article-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.article-body {
    line-height: 1.8;
    font-size: 16px;
}

/* المقالات ذات الصلة */
.related-articles {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.related-articles h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.related-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.related-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.related-item span {
    font-size: 12px;
    color: #666;
}

/* الفوتر */
.footer {
    background: #116b53;
    color: white;
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-section p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

/* ... [باقي الكود يبقى كما هو] ... */











/* البانر الرئيسي المحسن */
.hero-modern {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #5a6fd8;
}

/* إحصائيات الموقع */
.stats-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.stat-info p {
    color: #666;
    font-size: 1.1rem;
}

/* رأس الأقسام المحسن */
.section-header-modern {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* المقالات المميزة - التصميم الجديد */
.featured-modern {
    padding: 100px 0;
}

.featured-modern-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.main-featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.main-featured-card:hover {
    transform: translateY(-10px);
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-content-modern {
    padding: 30px;
}

.category-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.featured-content-modern h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-content-modern h3 a {
    color: #333;
    transition: color 0.3s;
}

.featured-content-modern h3 a:hover {
    color: #667eea;
}

.featured-content-modern p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta-modern {
    display: flex;
    gap: 20px;
    align-items: center;
}

.article-meta-modern > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.9rem;
}

/* المقالات الجانبية */
.side-featured {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-featured-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 15px;
    transition: transform 0.3s;
}

.side-featured-card:hover {
    transform: translateX(-5px);
}

.side-featured-image {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.side-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-featured-content {
    flex: 1;
}

.category-tag {
    background: #f1f2f6;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.side-featured-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.side-featured-content h4 a {
    color: #333;
    transition: color 0.3s;
}

.side-featured-content h4 a:hover {
    color: #667eea;
}

.article-meta-compact {
    font-size: 0.8rem;
    color: #888;
}

/* أحدث الأخبار - التصميم الجديد */
.latest-modern {
    padding: 100px 0;
    background: #f8f9fa;
}

.latest-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.latest-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.latest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.latest-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.latest-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}
.category-label {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 3px 8px; /* تقليل الحشوة */
    border-radius: 12px; /* جعلها دائرية أكثر */
    font-size: 0.7rem; /* تصغير الخط قليلاً */
    font-weight: bold;
    line-height: 1; /* ضبط ارتفاع السطر */
    white-space: nowrap; /* منع كسر النص */
}


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

.latest-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.latest-content h3 a {
    color: #333;
    transition: color 0.3s;
}

.latest-content h3 a:hover {
    color: #667eea;
}

.latest-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.latest-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #f1f2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.meta-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.article-date {
    font-size: 0.8rem;
    color: #888;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.8rem;
}

/* النشرة البريدية */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    width: 300px;
    font-size: 1rem;
    outline: none;
}

.newsletter-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-btn:hover {
    background: #ff3742;
}

/* زر تحميل المزيد */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: white;
    color: #333;
    border: 2px solid #f1f2f6;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* العناصر العامة */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-articles i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ddd;
}

/* التجاوب */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .featured-modern-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .latest-modern-grid {
        grid-template-columns: 1fr;
    }
}












/* أنماط لوحة التحكم */
.dashboard {
    padding: 20px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.dashboard-title {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 28px;
    margin: 0;
    color: #333;
}

.stat-info p {
    margin: 5px 0 0;
    color: #666;
}

/* الروابط السريعة */
.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.action-btn i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* الجداول */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* النماذج */
.article-form,
.settings-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* الأزرار */
.btn-primary {
    background: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-edit {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    margin-left: 5px;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
}

/* التنبيهات */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* الصور في الجداول */
.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.no-image {
    color: #999;
    font-style: italic;
}

/* حالة المقال */
.status {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.status.published {
    background: #d4edda;
    color: #155724;
}

.status.draft {
    background: #fff3cd;
    color: #856404;
}

/* رأس الصفحة */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
    color: #333;
}







/* أنماط السلايدر */
.main-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slides-wrapper {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    z-index: 2;
}

.slide-subtitle {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f8f9fa;
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.slide-btn:hover {
    background: #0056b3;
    color: white;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s ease;
}

.slider-nav:hover {
    background: rgba(255,255,255,0.3);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
}

.default-slide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 4rem;
}

@media (max-width: 768px) {
    .main-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
}











/* إزالة تأثير image-overlay من قسم أحدث الأخبار */
.latest-modern .latest-image .image-overlay {
    display: none !important;
}

/* إذا كان هناك أي تأثير آخر على الصور */
.latest-modern .latest-image img {
    filter: none !important;
}

.latest-modern .latest-image::before {
    display: none !important;
}

/* التأكد من أن الصور تظهر بشكل طبيعي */
.latest-modern .latest-image {
    position: relative;
}

.latest-modern .latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}











/* التجاوب */
@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-detail .container {
        grid-template-columns: 1fr;
    }
    
    .featured-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}