/**
 * Professional Article Design 2025
 * تصميم احترافي للمقالات - بدون تأثيرات حركة
 * @package Lahzat_News
 * @version 1.0
 */

/* ========================================
   CSS Variables - متغيرات التصميم
   ======================================== */
:root {
    --primary-color: #00A859;
    --primary-light: #00c46e;
    --primary-dark: #008a4a;
    --accent-color: #ff6b00;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --border-color: #dee2e6;
    --border-light: #f1f3f4;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-strong: 0 8px 32px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 25px;
    --spacing-xxl: 30px;
}

/* ========================================
   Breadcrumb Navigation - شريط التنقل
   ======================================== */
.breadcrumb-container {
    margin: var(--spacing-xs) 0;
    padding: 0 var(--spacing-xs);
}

.breadcrumb-wrapper {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.breadcrumb-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.breadcrumb-nav {
    position: relative;
    z-index: 2;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    margin: 0 var(--spacing-xs);
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    background: transparent;
}

.breadcrumb-link:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.breadcrumb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: inherit;
}

.breadcrumb-text {
    font-weight: inherit;
}

.breadcrumb-item.current {
    color: var(--primary-color);
    font-weight: 700;
}

.breadcrumb-item.current .breadcrumb-icon {
    color: var(--primary-color);
}

.breadcrumb-item.current .breadcrumb-text {
    color: var(--primary-color);
}

/* ========================================
   Article Header - عنوان المقال
   ======================================== */
.article-header {
    margin: var(--spacing-xs) 0;
    padding: 0 var(--spacing-xs);
}

.title-container {
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.title-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
}

.article-title {
    font-family: 'Cairo', sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    padding-right: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.title-accent {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-lg);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    z-index: 2;
}

/* ========================================
   Article Meta - معلومات المقال
   ======================================== */
.article-meta {
    margin: var(--spacing-xs) 0;
    padding: 0 var(--spacing-xs);
}

.meta-container {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.meta-author,
.meta-date,
.meta-updated {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.meta-author:hover,
.meta-date:hover,
.meta-updated:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
}

.meta-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.meta-value:hover {
    color: var(--primary-color);
}

.author-name {
    color: var(--primary-color);
}

.publish-date,
.update-date {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========================================
   Featured Image - الصورة البارزة
   ======================================== */
.featured-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin: var(--spacing-xs) 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--bg-tertiary);
}

.featured-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

/* Category Overlay - القسم في الشمال فوق */
.category-overlay {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 10;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.category-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.category-link:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    color: var(--bg-primary);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.category-text {
    font-weight: inherit;
    white-space: nowrap;
}

/* Alt Text Overlay - النص البديل في اليمين أسفل */
.alt-text-overlay {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 10;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    max-width: 60%;
}

.alt-text-overlay {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.85);
    color: var(--bg-primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.alt-text-overlay:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.alt-text-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--primary-light);
}

.alt-text-content {
    font-weight: inherit;
    line-height: 1.3;
    word-break: break-word;
}

/* ========================================
   Responsive Design for Featured Image
   ======================================== */
@media (max-width: 768px) {
    .featured-image-container {
        height: 300px;
        padding-bottom: 0;
        margin: var(--spacing-xs) 0;
    }
    
    .category-overlay {
        top: var(--spacing-sm);
        left: var(--spacing-sm);
    }
    
    .category-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 12px;
        border-radius: 15px;
    }
    
    .category-icon {
        width: 14px;
        height: 14px;
    }
    
    .alt-text-overlay {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        max-width: 70%;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 11px;
        border-radius: 15px;
    }
    
    .alt-text-icon {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .featured-image-container {
        height: 250px;
    }
    
    .category-link {
        font-size: 11px;
        padding: 6px var(--spacing-xs);
    }
    
    .alt-text-overlay {
        font-size: 10px;
        padding: 6px var(--spacing-xs);
        max-width: 80%;
    }
}

/* ========================================
   Print Styles for Featured Image
   ======================================== */
@media print {
    .featured-image-container {
        height: auto;
        padding-bottom: 0;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .category-overlay,
    .alt-text-overlay {
        display: none;
    }
}

/* ========================================
   Accessibility for Featured Image
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .category-link,
    .alt-text-overlay {
        transition: none;
    }
}

/* High Contrast Mode for Featured Image */
@media (prefers-contrast: high) {
    .category-link {
        background: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
    
    .alt-text-overlay {
        background: #000000;
        color: #ffffff;
        border: 1px solid #ffffff;
    }
}



@media (max-width: 480px) {
    .related-posts-title {
        font-size: 20px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .related-post-number {
        width: 45px;
    }
    
    .number-circle {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .related-post-title {
        font-size: 14px;
    }
}

/* ========================================
   Print Styles for Related Posts
   ======================================== */
@media print {
    .related-posts-new-section {
        margin: 0;
        padding: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .related-posts-header {
        background: transparent !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .related-posts-title {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #000 !important;
    }
    
    .related-post-item {
        background: transparent !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
}

/* ========================================
   Accessibility for Related Posts
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .related-post-item,
    .related-post-link {
        transition: none;
    }
}

/* High Contrast Mode for Related Posts */
@media (prefers-contrast: high) {
    .related-posts-new-section {
        background: #ffffff;
        border: 3px solid #000000;
    }
    
    .related-posts-header {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .related-posts-title {
        background: #ffffff;
        border: 2px solid #000000;
        color: #000000;
    }
    
    .title-icon {
        background: #000000;
        color: #ffffff;
    }
    
    .related-post-item {
        background: #ffffff;
        border: 2px solid #000000;
    }
}
    
/* تم حذف جميع أنماط أخبار ذات صلة */

/* ========================================
   Responsive Design - التصميم المتجاوب
   ======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 5px;
        --spacing-sm: 8px;
        --spacing-md: 12px;
        --spacing-lg: 15px;
        --spacing-xl: 18px;
        --spacing-xxl: 20px;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb-container {
        margin: var(--spacing-xs) 0;
        padding: 0 var(--spacing-xs);
    }
    
    .breadcrumb-wrapper {
        padding: var(--spacing-md);
    }
    
    .breadcrumb-list {
        gap: var(--spacing-xs);
    }
    
    .breadcrumb-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 13px;
    }
    
    .breadcrumb-icon {
        width: 14px;
        height: 14px;
    }
    
    /* Article Header Mobile */
    .article-header {
        margin: var(--spacing-xs) 0;
        padding: 0 var(--spacing-xs);
    }
    
    .title-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .article-title {
        font-size: 22px;
        line-height: 1.3;
        padding-right: var(--spacing-md);
    }
    
    .title-accent {
        width: 40px;
        height: 3px;
        bottom: var(--spacing-sm);
        right: var(--spacing-md);
    }
    
    /* Article Meta Mobile */
    .article-meta {
        margin: var(--spacing-xs) 0;
        padding: 0 var(--spacing-xs);
    }
    
    .meta-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .meta-author,
    .meta-date,
    .meta-updated {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .meta-icon {
        width: 35px;
        height: 35px;
    }
    
    .meta-label {
        font-size: 11px;
    }
    
    .meta-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }
    
    .breadcrumb-link {
        font-size: 12px;
    }
    
    .meta-value {
        font-size: 13px;
    }
}

/* ========================================
   Print Styles - أنماط الطباعة
   ======================================== */
@media print {
    .breadcrumb-container,
    .article-header,
    .article-meta {
        margin: 0;
        padding: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .breadcrumb-wrapper,
    .title-container,
    .meta-container {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .article-title {
        color: #000 !important;
        font-size: 24px !important;
    }
    
    .meta-value {
        color: #000 !important;
    }
}

/* ========================================
   Accessibility - إمكانية الوصول
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .breadcrumb-link,
    .meta-author,
    .meta-date,
    .meta-updated {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-primary: #000000;
        --text-secondary: #000000;
        --border-color: #000000;
        --bg-primary: #ffffff;
        --bg-secondary: #ffffff;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --text-muted: #999999;
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-tertiary: #404040;
        --border-color: #404040;
        --border-light: #333333;
    }
}

/* ========================================
   أخبار ذات صلة - نماذج جديدة احترافية
   ======================================== */

/* القسم الرئيسي */
.related-posts-new-section {
    margin: 20px 0;
    padding: 5px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.related-posts-new-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00A859, #007a42);
    opacity: 0.3;
}

/* العنوان الرئيسي */
.related-posts-header {
    margin-bottom: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #00A859 0%, #007a42 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 168, 89, 0.2);
    position: relative;
    overflow: hidden;
}

.related-posts-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.related-posts-header:hover::before {
    left: 100%;
}

.related-posts-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.title-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

/* الشبكة */
.related-posts-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* النموذج الأول - كلاسيكي */
.related-posts-model1 .related-posts-grid {
    grid-template-columns: 1fr;
}

.related-post-model1 {
    background: #ffffff;
    border-bottom: 2px solid #e9ecef;
}

.related-post-model1:last-child {
    border-bottom: none;
}

.related-post-model1:hover {
    background: #f8f9fa;
}

.related-post-model1 .related-post-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
}

.related-post-model1 .related-post-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    position: relative;
    padding-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.related-post-model1 .related-post-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00A859, #007a42);
}

.related-post-model1:hover .related-post-title::after {
    width: 100%;
}

.related-post-model1 .related-post-meta {
    font-size: 13px;
    color: #6c757d;
}

/* النموذج الثاني - عصري */
.related-posts-model2 .related-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.related-post-model2 {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.related-post-model2:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #00A859;
}

.related-post-model2 .related-post-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.related-post-model2 .related-post-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.related-post-model2 .related-post-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00A859, #007a42);
    border-radius: 2px;
}

.related-post-model2:hover .related-post-title::after {
    width: 100%;
}

.related-post-model2 .related-post-meta {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-post-model2 .related-post-meta::before {
    content: '📅';
    font-size: 14px;
}

/* تأثيرات إضافية للنموذج الثاني */
.related-post-model2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00A859, #007a42);
    transform: scaleX(0);
}

.related-post-model2:hover::before {
    transform: scaleX(1);
}

/* ========================================
   أحدث الأخبار - نماذج جديدة احترافية
   ======================================== */

/* القسم الرئيسي */
.latest-news-section {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00A859, #007a42);
    opacity: 0.8;
}

/* العنوان الرئيسي */
.latest-news-header {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #00A859 0%, #007a42 100%);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 168, 89, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-news-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.latest-news-header:hover::before {
    transform: translateX(100%);
}

.latest-news-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.latest-news-icon {
    font-size: 22px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* الشبكة الأساسية */
.latest-news-grid {
    display: grid;
    gap: 0;
}

/* ========================================
   النموذج الأول: صورة وعنوان أسفلها
   ======================================== */

.latest-news-model1 .latest-news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 0;
}

.latest-news-model1 .latest-news-item {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.latest-news-model1 .latest-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #00A859;
}

.latest-news-model1 .latest-news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.latest-news-model1 .latest-news-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.latest-news-model1 .latest-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

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

.latest-news-model1 .latest-news-date-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(0, 168, 89, 0.9) 0%, rgba(0, 122, 66, 0.9) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.latest-news-model1 .latest-news-content {
    padding: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.latest-news-model1 .latest-news-title-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.latest-news-model1 .latest-news-title-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00A859, #007a42);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.latest-news-model1 .latest-news-item:hover .latest-news-title-text::after {
    width: 100%;
}

/* ========================================
   النموذج الثاني: صورة وعنوان شمالها
   ======================================== */

.latest-news-model2 .latest-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 0;
}

.latest-news-model2 .latest-news-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.latest-news-model2 .latest-news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00A859, #007a42);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latest-news-model2 .latest-news-item:hover::before {
    opacity: 1;
}

.latest-news-model2 .latest-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #00A859;
}

.latest-news-model2 .latest-news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.latest-news-model2 .latest-news-horizontal {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
}

.latest-news-model2 .latest-news-image-horizontal {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.latest-news-model2 .latest-news-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.latest-news-model2 .latest-news-item:hover .latest-news-image-horizontal img {
    transform: scale(1.08);
}

.latest-news-model2 .latest-news-image-horizontal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 168, 89, 0.1) 0%, rgba(0, 122, 66, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latest-news-model2 .latest-news-item:hover .latest-news-image-horizontal::after {
    opacity: 1;
}

.latest-news-model2 .latest-news-content-horizontal {
    flex: 1;
}

.latest-news-model2 .latest-news-title-horizontal {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.latest-news-model2 .latest-news-title-horizontal::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00A859, #007a42);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.latest-news-model2 .latest-news-item:hover .latest-news-title-horizontal::after {
    width: 100%;
}

.latest-news-model2 .latest-news-meta-horizontal {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.latest-news-model2 .latest-news-date-horizontal,
.latest-news-model2 .latest-news-category-horizontal {
    font-size: 11px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    padding: 3px 8px;
    background: rgba(0, 168, 89, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 89, 0.1);
    transition: all 0.3s ease;
}

.latest-news-model2 .latest-news-item:hover .latest-news-date-horizontal,
.latest-news-model2 .latest-news-item:hover .latest-news-category-horizontal {
    background: rgba(0, 168, 89, 0.1);
    border-color: rgba(0, 168, 89, 0.2);
    color: #00A859;
}

/* ========================================
   التجاوب للشاشات المختلفة
   ======================================== */

/* الشاشات المتوسطة (Tablet) */
@media (max-width: 1024px) {
    .latest-news-model1 .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .latest-news-model1 .latest-news-image {
        height: 160px;
    }
    
    .latest-news-model1 .latest-news-content {
        padding: 10px;
    }
    
    .latest-news-model1 .latest-news-title-text {
        font-size: 13px;
    }
    
    .latest-news-model2 .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .latest-news-model2 .latest-news-horizontal {
        padding: 12px;
        gap: 10px;
    }
    
    .latest-news-model2 .latest-news-image-horizontal {
        width: 100px;
        height: 70px;
    }
    
    .latest-news-model2 .latest-news-title-horizontal {
        font-size: 14px;
    }
    
    .latest-news-model2 .latest-news-date-horizontal,
    .latest-news-model2 .latest-news-category-horizontal {
        font-size: 10px;
    }
}

/* الشاشات الصغيرة (Mobile) */
@media (max-width: 768px) {
    .latest-news-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .latest-news-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .latest-news-title {
        font-size: 20px;
    }
    
    .latest-news-icon {
        font-size: 24px;
        padding: 8px;
    }
    
    /* النموذج الأول في الموبايل */
    .latest-news-model1 .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .latest-news-model1 .latest-news-image {
        height: 150px;
    }
    
    .latest-news-model1 .latest-news-content {
        padding: 10px;
    }
    
    .latest-news-model1 .latest-news-title-text {
        font-size: 13px;
    }
    
    /* النموذج الثاني في الموبايل */
    .latest-news-model2 .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .latest-news-model2 .latest-news-horizontal {
        padding: 12px;
        gap: 10px;
    }
    
    .latest-news-model2 .latest-news-image-horizontal {
        width: 80px;
        height: 60px;
    }
    
    .latest-news-model2 .latest-news-title-horizontal {
        font-size: 13px;
    }
    
    .latest-news-model2 .latest-news-date-horizontal,
    .latest-news-model2 .latest-news-category-horizontal {
        font-size: 10px;
    }
}

/* التحكم في عرض الموبايل - صف واحد */
@media (max-width: 768px) {
    .mobile-1 .latest-news-model1 .latest-news-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-1 .latest-news-model2 .latest-news-grid {
        grid-template-columns: 1fr;
    }
}

/* التحكم في عرض الموبايل - صفين */
@media (max-width: 768px) {
    .mobile-2 .latest-news-model1 .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-2 .latest-news-model2 .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* الشاشات الصغيرة جداً (Small Mobile) */
@media (max-width: 480px) {
    .latest-news-section {
        margin: 15px 0;
        padding: 10px;
    }
    
    .latest-news-header {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .latest-news-title {
        font-size: 18px;
    }
    
    .latest-news-icon {
        font-size: 20px;
        padding: 6px;
    }
    
    .latest-news-model1 .latest-news-grid {
        gap: 5px;
    }
    
    .latest-news-model1 .latest-news-image {
        height: 140px;
    }
    
    .latest-news-model1 .latest-news-content {
        padding: 8px;
    }
    
    .latest-news-model1 .latest-news-title-text {
        font-size: 12px;
    }
    
    .latest-news-model2 .latest-news-grid {
        gap: 5px;
    }
    
    .latest-news-model2 .latest-news-horizontal {
        padding: 10px;
        gap: 8px;
    }
    
    .latest-news-model2 .latest-news-image-horizontal {
        width: 70px;
        height: 50px;
    }
    
    .latest-news-model2 .latest-news-title-horizontal {
        font-size: 12px;
    }
    
    .latest-news-model2 .latest-news-date-horizontal,
    .latest-news-model2 .latest-news-category-horizontal {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* ========================================
   الصورة البارزة - إظهار عند تحريك الماوس
   ======================================== */

/* إخفاء الصورة البارزة افتراضياً */
.entry-featured-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* إظهار الصورة البارزة عند تحريك الماوس على المقال */
.entry-content:hover .entry-featured-image {
    opacity: 1;
}

/* إظهار الصورة البارزة عند تحريك الماوس على الصورة نفسها */
.entry-featured-image:hover {
    opacity: 1;
}

/* ========================================
   صور المحتوى المتجاوبة مع النص البديل
   ======================================== */

/* صور المحتوى الأساسية */
.entry-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: contain;
    box-sizing: border-box;
}

.entry-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* إظهار النص البديل */
.entry-content img::after {
    content: attr(alt);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.entry-content img:hover::after {
    opacity: 1;
}

/* صور WordPress Blocks */
.entry-content .wp-block-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: contain;
    box-sizing: border-box;
}

.entry-content .wp-block-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.entry-content .wp-block-image img::after {
    content: attr(alt);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.entry-content .wp-block-image img:hover::after {
    opacity: 1;
}

/* صور Figure */
.entry-content figure img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: contain;
    box-sizing: border-box;
}

.entry-content figure img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.entry-content figure img::after {
    content: attr(alt);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.entry-content figure img:hover::after {
    opacity: 1;
}

/* صور محاذاة اليسار واليمين */
.entry-content .alignleft,
.entry-content .alignright {
    float: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.entry-content .alignleft img,
.entry-content .alignright img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: contain;
    box-sizing: border-box;
}

.entry-content .alignleft img:hover,
.entry-content .alignright img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.entry-content .alignleft img::after,
.entry-content .alignright img::after {
    content: attr(alt);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.entry-content .alignleft img:hover::after,
.entry-content .alignright img:hover::after {
    opacity: 1;
}

/* التجاوب للشاشات المتوسطة (Tablet) */
@media (max-width: 1024px) and (min-width: 769px) {
    /* صور المحتوى في الشاشات المتوسطة */
    .entry-content img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 18px 0;
        border-radius: 10px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .entry-content .wp-block-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 18px 0;
        border-radius: 10px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .entry-content figure img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 18px 0;
        border-radius: 10px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        display: block;
        margin: 18px auto;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .entry-content .alignleft img,
    .entry-content .alignright img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0;
        box-sizing: border-box;
    }
}

/* التجاوب */
@media (max-width: 768px) {
    /* صور المحتوى متجاوبة */
    .entry-content img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 15px 0;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .entry-content .wp-block-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 15px 0;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .entry-content figure img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 15px 0;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        display: block;
        margin: 15px auto;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .entry-content .alignleft img,
    .entry-content .alignright img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0;
        box-sizing: border-box;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-model2 .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-title {
        font-size: 20px;
    }
    
    .related-post-model1 .related-post-link,
    .related-post-model2 .related-post-link {
        padding: 12px 15px;
    }
    
    .related-post-model1 .related-post-title,
    .related-post-model2 .related-post-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* صور المحتوى في الشاشات الصغيرة */
    .entry-content img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 10px 0;
        border-radius: 6px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .entry-content .wp-block-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 10px 0;
        border-radius: 6px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .entry-content figure img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 10px 0;
        border-radius: 6px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        display: block;
        margin: 10px auto;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .entry-content .alignleft img,
    .entry-content .alignright img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0;
        box-sizing: border-box;
    }
    
    .related-posts-new-section {
        margin: 15px 0;
        padding: 3px;
    }
    
    .related-posts-header {
        padding: 12px 15px;
    }
    
    .related-posts-title {
        font-size: 18px;
    }
    
    .title-icon {
        font-size: 20px;
        padding: 6px;
    }
    
    .related-post-model1 .related-post-link,
    .related-post-model2 .related-post-link {
        padding: 10px 12px;
    }
    
    .related-post-model1 .related-post-title,
    .related-post-model2 .related-post-title {
        font-size: 13px;
    }
}
