/**
 * Arabic Single Post (Article Detail) Styles
 * أنماط صفحة تفاصيل المقال العربية
 * 
 * Design: Gold (#D4AF37, #FFD700) and Deep Blue (#003366, #004080) theme
 * Layout: RTL (Right-to-Left)
 * Target: .lang-ar body class on single post pages
 */

/* ============================================================================
   Banner Header Section - قسم رأس الصفحة
   ============================================================================ */

.lang-ar .single-news-page .page-header {
    position: relative;
    background: linear-gradient(135deg, #003366 0%, #004080 50%, #D4AF37 100%) !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 80px 0 60px !important;
    margin-bottom: 60px !important;
    min-height: 300px !important;
    display: flex !important;
    align-items: center !important;
    direction: rtl !important;
}

/* Banner background image overlay */
.lang-ar .single-news-page .page-header:not([style*="background-image"]) {
    background: linear-gradient(135deg, #003366 0%, #004080 50%, #D4AF37 100%) !important;
}

.lang-ar .single-news-page .page-header[style*="background-image"] {
    background-blend-mode: overlay !important;
}

.lang-ar .single-news-page .page-header-overlay {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 64, 128, 0.75) 50%, rgba(212, 175, 55, 0.6) 100%) !important;
    z-index: 1 !important;
}

.lang-ar .single-news-page .page-header .container {
    position: relative !important;
    z-index: 2 !important;
}

/* ============================================================================
   Breadcrumb Navigation - التنقل التفصيلي
   ============================================================================ */

.lang-ar .single-news-page .breadcrumb-nav {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
    font-size: 14px !important;
    direction: rtl !important;
}

.lang-ar .single-news-page .breadcrumb-nav a {
    color: #FFD700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.lang-ar .single-news-page .breadcrumb-nav a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.lang-ar .single-news-page .breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 5px !important;
}

.lang-ar .single-news-page .breadcrumb-nav .current {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
}

/* ============================================================================
   Page Title - عنوان الصفحة
   ============================================================================ */

.lang-ar .single-news-page .page-title {
    color: #ffffff !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 25px 0 !important;
    text-align: right !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================================================
   Article Meta Information - معلومات المقال
   ============================================================================ */

.lang-ar .single-news-page .article-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    align-items: center !important;
    direction: rtl !important;
}

.lang-ar .single-news-page .article-meta > span {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #FFD700 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.lang-ar .single-news-page .article-meta .dashicons {
    color: #FFD700 !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

/* ============================================================================
   Content Area - منطقة المحتوى
   ============================================================================ */

.lang-ar .single-news-page .archive-content {
    background: #f8f9fa !important;
    padding: 0 0 80px 0 !important;
}

.lang-ar .single-news-page .content-area-full-width {
    max-width: 1000px !important;
    margin: 0 auto !important;
    direction: rtl !important;
}

/* ============================================================================
   Article Content - محتوى المقال
   ============================================================================ */

.lang-ar .single-news-page .single-article-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    margin-bottom: 50px !important;
}

/* Featured Image */
.lang-ar .single-news-page .article-featured-image {
    width: 100% !important;
    max-height: 500px !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

.lang-ar .single-news-page .article-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* Article Body */
.lang-ar .single-news-page .article-body {
    padding: 50px 60px !important;
    direction: rtl !important;
    text-align: right !important;
}

.lang-ar .single-news-page .article-body p {
    color: #333333 !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
}

.lang-ar .single-news-page .article-body h2,
.lang-ar .single-news-page .article-body h3,
.lang-ar .single-news-page .article-body h4 {
    color: #003366 !important;
    font-weight: 700 !important;
    margin: 35px 0 20px 0 !important;
    text-align: right !important;
}

.lang-ar .single-news-page .article-body h2 {
    font-size: 32px !important;
    border-right: 4px solid #D4AF37 !important;
    padding-right: 20px !important;
}

.lang-ar .single-news-page .article-body h3 {
    font-size: 26px !important;
}

.lang-ar .single-news-page .article-body h4 {
    font-size: 22px !important;
}

.lang-ar .single-news-page .article-body ul,
.lang-ar .single-news-page .article-body ol {
    margin: 20px 0 !important;
    padding-right: 30px !important;
    padding-left: 0 !important;
}

.lang-ar .single-news-page .article-body li {
    color: #333333 !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    margin-bottom: 10px !important;
}

.lang-ar .single-news-page .article-body blockquote {
    background: #f8f9fa !important;
    border-right: 4px solid #D4AF37 !important;
    border-left: none !important;
    padding: 25px 30px !important;
    margin: 30px 0 !important;
    border-radius: 8px !important;
}

.lang-ar .single-news-page .article-body blockquote p {
    color: #004080 !important;
    font-size: 18px !important;
    font-style: italic !important;
    margin: 0 !important;
}

.lang-ar .single-news-page .article-body a {
    color: #D4AF37 !important;
    text-decoration: underline !important;
    transition: all 0.3s ease !important;
}

.lang-ar .single-news-page .article-body a:hover {
    color: #004080 !important;
}

/* Page Links (for paginated posts) */
.lang-ar .single-news-page .page-links {
    margin-top: 30px !important;
    padding-top: 30px !important;
    border-top: 2px solid #e0e0e0 !important;
    direction: rtl !important;
}

.lang-ar .single-news-page .page-links a {
    display: inline-block !important;
    padding: 8px 16px !important;
    margin: 0 5px !important;
    background: #D4AF37 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.lang-ar .single-news-page .page-links a:hover {
    background: #004080 !important;
    transform: translateY(-2px) !important;
}

/* ============================================================================
   Article Footer - تذييل المقال
   ============================================================================ */

.lang-ar .single-news-page .article-footer {
    padding: 40px 60px !important;
    background: #f8f9fa !important;
    border-top: 2px solid #e0e0e0 !important;
    direction: rtl !important;
}

/* Tags Section */
.lang-ar .single-news-page .article-tags {
    margin-bottom: 30px !important;
}

.lang-ar .single-news-page .article-tags .tags-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #003366 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-left: 15px !important;
}

.lang-ar .single-news-page .article-tags .dashicons {
    color: #D4AF37 !important;
}

.lang-ar .single-news-page .article-tags .tags-list {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.lang-ar .single-news-page .article-tags .tag-item {
    display: inline-block !important;
    padding: 6px 16px !important;
    background: #ffffff !important;
    color: #003366 !important;
    border: 2px solid #D4AF37 !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.lang-ar .single-news-page .article-tags .tag-item:hover {
    background: #D4AF37 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Share Section */
.lang-ar .single-news-page .article-share {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.lang-ar .single-news-page .article-share .share-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #003366 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.lang-ar .single-news-page .article-share .dashicons {
    color: #D4AF37 !important;
}

.lang-ar .single-news-page .share-buttons {
    display: flex !important;
    gap: 12px !important;
}

.lang-ar .single-news-page .share-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: #ffffff !important;
    border: 2px solid #D4AF37 !important;
    border-radius: 50% !important;
    color: #003366 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.lang-ar .single-news-page .share-btn:hover {
    background: #D4AF37 !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
}

.lang-ar .single-news-page .share-btn .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

/* ============================================================================
   Related Articles Section - قسم المقالات ذات الصلة
   ============================================================================ */

.lang-ar .single-news-page .related-articles {
    margin-top: 60px !important;
    direction: rtl !important;
}

.lang-ar .single-news-page .related-articles .section-title {
    color: #003366 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 40px !important;
    text-align: right !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #D4AF37 !important;
}

.lang-ar .single-news-page .news-grid-archive {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* News Cards */
.lang-ar .single-news-page .news-card-archive {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    direction: rtl !important;
}

.lang-ar .single-news-page .news-card-archive:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25) !important;
}

.lang-ar .single-news-page .news-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
}

.lang-ar .single-news-page .news-image-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.lang-ar .single-news-page .news-card-archive:hover .news-image-link img {
    transform: scale(1.1) !important;
}

.lang-ar .single-news-page .news-image-placeholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%) !important;
    color: #999999 !important;
    text-decoration: none !important;
}

.lang-ar .single-news-page .news-image-placeholder .dashicons {
    font-size: 48px !important;
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 10px !important;
}

.lang-ar .single-news-page .news-category-tag {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 14px !important;
    background: rgba(212, 175, 55, 0.95) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.lang-ar .single-news-page .news-category-tag .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.lang-ar .single-news-page .news-card-content {
    padding: 25px !important;
}

.lang-ar .single-news-page .news-meta {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 15px !important;
    direction: rtl !important;
}

.lang-ar .single-news-page .news-meta span {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #666666 !important;
    font-size: 13px !important;
}

.lang-ar .single-news-page .news-meta .dashicons {
    color: #D4AF37 !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.lang-ar .single-news-page .news-card-title {
    margin: 0 0 15px 0 !important;
}

.lang-ar .single-news-page .news-card-title a {
    color: #003366 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: block !important;
}

.lang-ar .single-news-page .news-card-title a:hover {
    color: #D4AF37 !important;
}

.lang-ar .single-news-page .news-card-excerpt {
    color: #666666 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

.lang-ar .single-news-page .news-card-footer {
    padding-top: 20px !important;
    border-top: 1px solid #e0e0e0 !important;
}

.lang-ar .single-news-page .news-card-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #D4AF37 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.lang-ar .single-news-page .news-card-link:hover {
    color: #004080 !important;
    gap: 12px !important;
}

.lang-ar .single-news-page .news-card-link .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    transform: rotate(180deg) !important;
}

/* ============================================================================
   Comments Section - قسم التعليقات
   ============================================================================ */

.lang-ar .single-news-page .comments-wrapper {
    margin-top: 60px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 50px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    direction: rtl !important;
}

/* ============================================================================
   Responsive Design - التصميم المتجاوب
   ============================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .lang-ar .single-news-page .page-title {
        font-size: 36px !important;
    }
    
    .lang-ar .single-news-page .article-body {
        padding: 40px 40px !important;
    }
    
    .lang-ar .single-news-page .article-footer {
        padding: 30px 40px !important;
    }
    
    .lang-ar .single-news-page .news-grid-archive {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .lang-ar .single-news-page .page-header {
        padding: 60px 0 40px !important;
        min-height: 250px !important;
    }
    
    .lang-ar .single-news-page .page-title {
        font-size: 28px !important;
    }
    
    .lang-ar .single-news-page .article-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .lang-ar .single-news-page .article-body {
        padding: 30px 25px !important;
    }
    
    .lang-ar .single-news-page .article-body h2 {
        font-size: 26px !important;
    }
    
    .lang-ar .single-news-page .article-body h3 {
        font-size: 22px !important;
    }
    
    .lang-ar .single-news-page .article-body p,
    .lang-ar .single-news-page .article-body li {
        font-size: 16px !important;
    }
    
    .lang-ar .single-news-page .article-footer {
        padding: 25px 25px !important;
    }
    
    .lang-ar .single-news-page .article-share {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .lang-ar .single-news-page .news-grid-archive {
        grid-template-columns: 1fr !important;
    }
    
    .lang-ar .single-news-page .related-articles .section-title {
        font-size: 26px !important;
    }
    
    .lang-ar .single-news-page .comments-wrapper {
        padding: 30px 25px !important;
    }
}
