/* ==================================================
   1. الأساسيات والهيدر (المستقر والمحمي)
   ================================================== */
:root {
    --bg-matrix: #F3F6FD;
    --surface-matrix: #FFFFFF;
    --text-matrix: #0F172A;
    --accent-matrix: #10B981;
    --border-matrix: rgba(0,0,0,0.06);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

body.dark-mode {
    --bg-matrix: #07090E;
    --surface-matrix: #121723;
    --text-matrix: #F8FAFC;
    --border-matrix: rgba(255,255,255,0.06);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; outline: none; }
ul, li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
li::before, li::after { display: none !important; }

body { background: var(--bg-matrix); color: var(--text-matrix); font-family: var(--sl-font-body, 'Noto Naskh Arabic'), serif; margin: 0; direction: rtl; transition: 0.3s; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
body.no-scroll { overflow: hidden !important; }

/* الهيدر الذي يعمل بنجاح */
.main-header-2030 { background: var(--surface-matrix); border-bottom: 1px solid var(--border-matrix); height: 85px; position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; backdrop-filter: blur(10px); }
.header-container-fluid { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.matrix-logo-img { height: 42px !important; width: auto !important; display: block; }
.header-nav-center-2030 { flex: 1; display: flex; justify-content: center; }
.elite-nav-links { display: flex; gap: 30px; }
.elite-nav-links li a { font-weight: 800; padding: 10px; color: var(--text-matrix); }
.elite-nav-links li a:hover { color: var(--accent-matrix); }
.header-tools-left-2030 { display: flex; gap: 10px; }
.tool-action-btn { background: var(--bg-matrix); border: 1px solid var(--border-matrix); color: var(--text-matrix); width: 45px; height: 45px; border-radius: 12px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.tool-action-btn:hover { background: var(--accent-matrix); color: #fff; transform: translateY(-3px); }
.mobile-menu-toggle-btn { display: none; }

/* ==================================================
   2. إصلاح شريط البحث (سينمائي ويملأ الشاشة 100%)
   ================================================== */
.elite-search-overlay {
    position: fixed; inset: 0; width: 100%; height: 100vh;
    background: rgba(11, 15, 25, 0.95); backdrop-filter: blur(15px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.4s ease;
}
.elite-search-overlay.open { opacity: 1; visibility: visible; }
.search-inner-2030 { width: 100%; max-width: 800px; position: relative; padding: 0 20px; }
.search-form-2030 { display: flex; width: 100%; position: relative; }
.search-field-2030 {
    width: 100%; height: 75px; border-radius: 40px; border: 2px solid var(--accent-matrix);
    background: transparent; color: #fff; font-size: 22px; padding: 0 30px 0 80px; font-family: var(--sl-font-body, 'Noto Naskh Arabic'), serif;
}
.search-field-2030::placeholder { color: rgba(255,255,255,0.5); }
.search-btn-2030 {
    position: absolute; left: 10px; top: 10px; height: 55px; width: 55px;
    border-radius: 50%; background: var(--accent-matrix); border: none; font-size: 20px; cursor: pointer; color: #fff;
}
.close-search-2030 {
    position: absolute; top: -60px; left: 20px; background: none; border: none;
    color: #fff; font-size: 50px; cursor: pointer; line-height: 1;
}

/* ==================================================
   3. الأقسام الملونة بالكامل (ألوان الأندية الصريحة)
   ================================================== */
.elite-interface-wrapper { margin-top: 40px; margin-bottom: 60px; }

.club-matrix-section {
    border-radius: 24px; padding: 30px; margin-bottom: 40px;
    box-shadow: var(--shadow-soft); overflow: hidden;
}

/* التلوين الشامل للأقسام */
.theme-hilal   { background: linear-gradient(135deg, #001f54, #0046BE); color: #fff; }
.theme-nassr   { background: linear-gradient(135deg, #FFC400, #FF9800); color: #111; }
.theme-ahli    { background: linear-gradient(135deg, #004d26, #008148); color: #fff; }
.theme-ittihad { background: linear-gradient(135deg, #111, #222); color: #FFC400; border: 2px solid #FFC400; }
.theme-latest  { background: var(--surface-matrix); color: var(--text-matrix); border: 1px solid var(--border-matrix); }

.elite-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 2px solid currentColor; padding-bottom: 10px; opacity: 0.9; }
.elite-section-header h2 { font-size: 26px; font-weight: 900; margin: 0; }
.see-all-btn { font-weight: 700; font-size: 15px; background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 8px; }
.theme-nassr .see-all-btn { background: rgba(0,0,0,0.1); }

/* شبكة الأخبار (متينة جداً ولا تنكسر) */
.matrix-news-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 25px; }

/* الخبر الرئيسي (الكبير) */
.hero-post-card { position: relative; border-radius: 16px; overflow: hidden; height: 400px; display: block; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.hero-post-card img { width: 100%; height: 100%; transition: 0.5s; }
.hero-post-card:hover img { transform: scale(1.05); }
.hero-post-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 25px; }
.hero-post-overlay h3 { color: #fff; font-size: 24px; font-weight: 900; margin: 0; line-height: 1.4; }

/* القائمة الجانبية (الأخبار المتعددة) */
.side-posts-list { display: flex; flex-direction: column; gap: 15px; justify-content: space-between; }
.side-post-item { 
    display: flex; gap: 15px; align-items: center; padding: 12px; border-radius: 12px; 
    background: rgba(255,255,255,0.08); transition: 0.3s; height: 100%;
}
.theme-nassr .side-post-item { background: rgba(0,0,0,0.05); }
.theme-latest .side-post-item { background: var(--bg-matrix); border: 1px solid var(--border-matrix); }

.side-post-item:hover { transform: translateX(-5px); background: rgba(255,255,255,0.15); }
.theme-nassr .side-post-item:hover { background: rgba(0,0,0,0.1); }

.img-wrapper { flex-shrink: 0; width: 120px; height: 85px; border-radius: 8px; overflow: hidden; }
.img-wrapper img { width: 100%; height: 100%; }
.info-wrapper h4 { margin: 0 0 8px 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.time-badge { font-size: 12px; opacity: 0.7; }

/* ==================================================
   4. الموبايل المتجاوب (عصري جداً)
   ================================================== */
.side-panel-2030 { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--surface-matrix); z-index: 2000; transition: 0.4s; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.side-panel-2030.open { right: 0; }
.panel-header-matrix { padding: 25px 20px; border-bottom: 1px solid var(--border-matrix); display: flex; justify-content: space-between; align-items: center; }
.panel-logo-img { height: 35px; width: auto; }
.close-panel-2030 { font-size: 35px; background: none; border: none; cursor: pointer; color: var(--text-matrix); }
.panel-items-list li a { display: block; padding: 18px 25px; font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--border-matrix); text-align: right; }
.panel-dimmer-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; z-index: 1999; backdrop-filter: blur(4px); }

@media (max-width: 992px) {
    .hide-mobile { display: none !important; }
    .mobile-menu-toggle-btn { display: flex !important; }
    .main-header-2030 { height: 75px; }
    
    /* ضبط الموبايل للأقسام الملونة */
    .club-matrix-section { padding: 20px; border-radius: 16px; margin-bottom: 25px; }
    .matrix-news-grid { grid-template-columns: 1fr; gap: 15px; }
    .hero-post-card { height: 280px; }
    .hero-post-overlay h3 { font-size: 18px; }
    
    .side-post-item { padding: 8px; }
    .img-wrapper { width: 100px; height: 75px; }
    .info-wrapper h4 { font-size: 14px; }
}

/* ==================================================
   🚀 5. قسم الواجهة الرئيسية (Hero Grid 2030)
   ================================================== */
.premium-hero-section { margin: 30px 0 50px; }
.hero-grid-2030 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }

.hero-card { position: relative; border-radius: 20px; overflow: hidden; display: block; box-shadow: var(--shadow-soft); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s; }
.hero-card:hover img { transform: scale(1.05); }

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 70%); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; }
.flash-badge { background: #FF0055; color: #fff; padding: 5px 15px; border-radius: 5px; font-size: 13px; font-weight: 900; align-self: flex-start; margin-bottom: 15px; }

.hero-main-article .big-card { height: 460px; }
.hero-main-article .big-card h1 { color: #fff; font-size: 32px; font-weight: 900; margin: 0; line-height: 1.4; }

.hero-sub-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.hero-sub-articles .small-card { height: 222px; border-radius: 15px; }
.hero-sub-articles .small-card h3 { color: #fff; font-size: 16px; font-weight: 700; margin: 0; line-height: 1.5; }

@media (max-width: 992px) {
    .hero-grid-2030 { grid-template-columns: 1fr; }
    .hero-main-article .big-card { height: 350px; }
    .hero-main-article .big-card h1 { font-size: 24px; }
    .hero-sub-articles { grid-template-columns: 1fr; }
    .hero-sub-articles .small-card { height: 200px; }
}

/* ==================================================
   🎬 6. تصميم الفيديوهات (Video Cinema)
   ================================================== */
.theme-video { background: #0B0F19 !important; color: #fff !important; border: none !important; }
.theme-video .see-all-btn { background: #FF0055; color: #fff; }
.video-grid-2030 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.video-item { display: block; }
.video-thumb { position: relative; border-radius: 16px; overflow: hidden; height: 180px; margin-bottom: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.video-thumb img { width: 100%; height: 100%; transition: 0.4s; filter: brightness(0.8); }
.video-item:hover .video-thumb img { filter: brightness(0.5); transform: scale(1.05); }
.play-btn-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(255, 0, 85, 0.9); border-radius: 50%; color: #fff; display: flex; justify-content: center; align-items: center; font-size: 24px; padding-left: 5px; box-shadow: 0 0 20px rgba(255,0,85,0.5); transition: 0.3s; }
.video-item:hover .play-btn-overlay { transform: translate(-50%, -50%) scale(1.1); }
.video-item h4 { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0; }

/* ==================================================
   ✍️ 7. تصميم مقالات الرأي (Opinion Elegance)
   ================================================== */
.theme-opinion { background: var(--surface-matrix); color: var(--text-matrix); border: 1px solid var(--border-matrix); }
.opinion-grid-2030 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.opinion-item { display: flex; gap: 20px; align-items: center; padding: 20px; background: var(--bg-matrix); border-radius: 20px; border: 1px solid var(--border-matrix); transition: 0.3s; }
.opinion-item:hover { border-color: var(--accent-matrix); transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.opinion-author-img { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent-matrix); padding: 3px; background: var(--surface-matrix); }
.opinion-author-img img { border-radius: 50%; width: 100%; height: 100%; }
.opinion-content h4 { font-size: 17px; font-weight: 800; line-height: 1.5; margin: 0; }

/* ==================================================
   📰 8. تصميم آخر الأخبار (قائمة نصية عمودية بدون صور)
   ================================================== */
.theme-latest { background: transparent; border: none; padding: 0 !important; box-shadow: none !important; }
.theme-latest .elite-section-header { border-bottom-color: var(--accent-matrix); }
.theme-latest .elite-section-header h2 { color: var(--text-matrix); }
.theme-latest .see-all-btn { background: var(--accent-matrix); color: #fff; }

.latest-news-text-list {
    display: flex;
    flex-direction: column;
    background: var(--surface-matrix);
    border-radius: 16px;
    border: 1px solid var(--border-matrix);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.text-news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-matrix);
    transition: 0.3s var(--ease-matrix);
    position: relative;
}

/* إخفاء الخط السفلي لآخر خبر */
.text-news-item:last-child {
    border-bottom: none;
}

/* تأثير احترافي عند مرور الماوس (ينزلق الخبر قليلاً) */
.text-news-item:hover {
    background: rgba(16, 185, 129, 0.05); /* خلفية خفيفة جداً بلون الموقع */
    padding-right: 35px; 
}

/* النقطة المضيئة بجانب الخبر بدلاً من الصورة */
.news-bullet {
    width: 8px;
    height: 8px;
    background: var(--accent-matrix);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent-matrix);
    transition: 0.3s;
}

.text-news-item:hover .news-bullet {
    transform: scale(1.5);
}

.text-news-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.6;
    color: var(--text-matrix);
    transition: 0.3s;
}

.text-news-item:hover .text-news-info h4 {
    color: var(--accent-matrix);
}

/* ==================================================
   📱 الموبايل لآخر الأخبار (مريح وسريع للقراءة)
   ================================================== */
@media (max-width: 992px) {
    .text-news-item {
        padding: 15px 20px;
    }
    .text-news-item:hover {
        padding-right: 25px; /* تقليل الانزلاق في الموبايل */
    }
    .text-news-info h4 {
        font-size: 15px;
    }
}
/* ابحث عن هذا الجزء في ملف main.css وقم بتحديثه */

.social-icon.x-twitter:hover {
    background: #000;
    border-color: #000;
}

.social-icon.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

/* تم تغيير انستغرام ليوتيوب باللون الأحمر */
.social-icon.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
}

/* ==================================================
   🏁 9. الفوتر الاحترافي (Premium Footer 2030)
   ================================================== */
.elite-footer-2030 {
    background: var(--surface-matrix);
    border-top: 1px solid var(--border-matrix);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid-2030 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* جعلنا الأعمدة متساوية بعد حذف النص */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 45px;
    max-width: 200px;
    margin-bottom: 15px;
    display: block;
}

.footer-links-col h3, .footer-social-col h3 {
    font-size: 19px;
    font-weight: 900;
    color: var(--text-matrix);
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 12px;
}

.footer-links-col h3::after, .footer-social-col h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 4px;
    background: var(--accent-matrix);
    border-radius: 5px;
}

.footer-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-list li a {
    color: var(--text-matrix);
    font-size: 15px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

/* سهم تفاعلي يظهر عند المرور بالماوس */
.footer-menu-list li a::before {
    content: '\2190'; /* سهم لليسار */
    margin-left: 8px;
    color: var(--accent-matrix);
    opacity: 0;
    transform: translateX(10px);
    transition: 0.3s;
    font-size: 18px;
}

.footer-menu-list li a:hover {
    color: var(--accent-matrix);
    transform: translateX(-5px);
}

.footer-menu-list li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* أيقونات التواصل الاجتماعي */
.social-icons-wrapper {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-matrix);
    border: 1px solid var(--border-matrix);
    color: var(--text-matrix);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s var(--ease-matrix);
}

.social-icon:hover {
    transform: translateY(-5px);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

/* ألوان الشبكات عند التأشير (تم التعديل ليوتيوب) */
.social-icon.x-twitter:hover { background: #000; border-color: #000; }
.social-icon.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-icon.youtube:hover { background: #FF0000; border-color: #FF0000; } /* يوتيوب بدلاً من انستجرام */

body.dark-mode .social-icon.x-twitter:hover { background: #fff; color: #000; border-color: #fff; }

/* شريط الحقوق السفلي */
.footer-bottom-2030 {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-matrix);
    color: var(--text-matrix);
    font-size: 15px;
    opacity: 0.8;
}

.footer-bottom-2030 strong {
    color: var(--accent-matrix);
}

/* ==================================================
   📱 الموبايل للفوتر (توسيط وترتيب)
   ================================================== */
@media (max-width: 992px) {
    .elite-footer-2030 { padding: 40px 0 20px; margin-top: 50px; }
    .footer-grid-2030 { grid-template-columns: 1fr; gap: 35px; text-align: center; }
    
    .footer-logo img { margin: 0 auto 15px auto; }
    
    .footer-links-col h3::after, .footer-social-col h3::after {
        left: 0; right: 0; margin: 0 auto; /* توسيط الخط التجميلي */
    }
    
    .social-icons-wrapper { justify-content: center; }
    
    .footer-menu-list li a:hover { transform: translateX(0); }
}

/* ==================================================
   📁 10. إضافات الأرشيف (التصنيفات، التاجات) والصفحات 
   ================================================== */
.archive-container { padding: 40px 20px; margin-bottom: 60px; }

.archive-header { 
    text-align: center; margin-bottom: 50px; background: var(--surface-matrix); 
    padding: 40px; border-radius: 28px; border: 1px solid var(--border-matrix); 
    box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.archive-header::before {
    content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--accent-matrix), #34e89e);
}
.archive-title { font-size: 34px; font-weight: 900; color: var(--text-matrix); margin: 0; }
.archive-description { color: var(--text-muted); font-size: 17px; margin-top: 15px; font-weight: 500;}

/* شبكة مقالات الأرشيف */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.archive-card { 
    background: var(--surface-matrix); border-radius: 20px; overflow: hidden; 
    border: 1px solid var(--border-matrix); transition: 0.3s var(--ease-matrix); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.02); height: 100%; display: flex; flex-direction: column; 
    min-width: 0; /* 🛡️ السطر السحري: يمنع الصور من كسر حجم الكارت */
}
.archive-card:hover { transform: translateY(-8px); border-color: var(--accent-matrix); box-shadow: 0 15px 30px rgba(16, 185, 129, 0.1); }
.archive-card .card-thumb img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.archive-card .card-content { padding: 25px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.archive-card h3 { font-size: 19px; font-weight: 800; line-height: 1.6; margin: 0 0 15px 0; color: var(--text-matrix); }
.archive-card .card-meta { font-size: 14px; color: var(--accent-matrix); font-weight: 700; }

/* أزرار التصفح (Pagination) */
.modern-pagination { margin-top: 60px; text-align: center; }
.modern-pagination .nav-links { 
    display: inline-flex; gap: 8px; background: var(--surface-matrix); 
    padding: 10px; border-radius: 50px; border: 1px solid var(--border-matrix); 
    box-shadow: var(--shadow-soft); align-items: center;
}
.modern-pagination a, .modern-pagination span { 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 45px; height: 45px; border-radius: 50%; font-weight: 800; 
    font-size: 16px; color: var(--text-matrix); transition: 0.3s; 
}
.modern-pagination a:hover { background: var(--bg-matrix); color: var(--accent-matrix); }
.modern-pagination .current { background: var(--accent-matrix); color: #fff; box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3); }
.modern-pagination .prev, .modern-pagination .next { width: auto; padding: 0 20px; border-radius: 30px; }
.modern-pagination .dots { background: none; color: var(--text-muted); width: auto; }

/* تنسيقات الصفحات الثابتة */
.page-container { margin-top: 40px; margin-bottom: 60px; }
.page-layout-wrapper { max-width: 900px; margin: 0 auto; } 
.single-page-content { background: var(--surface-matrix); padding: 60px; border-radius: 28px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-matrix); }
.page-header-center { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px dashed var(--border-matrix); }
.page-title { font-size: 38px; font-weight: 900; color: var(--text-matrix); margin: 0; }
.page-body { font-size: 20px; line-height: 2.2; color: var(--text-matrix); text-align: justify; }

/* الموبايل للأرشيف والصفحات */
@media (max-width: 992px) {
    .archive-container { padding: 20px 15px; }
    .archive-header { padding: 30px 20px; margin-bottom: 30px; border-radius: 20px; }
    .archive-title { font-size: 24px; }
    .archive-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .single-page-content { padding: 35px 20px; border-radius: 20px; border: none; border-top: 5px solid var(--accent-matrix); }
    .page-title { font-size: 28px; }
    
    .modern-pagination .nav-links { padding: 5px; gap: 5px; }
    .modern-pagination a, .modern-pagination span { width: 38px; height: 38px; font-size: 14px; }
    .modern-pagination .prev, .modern-pagination .next { padding: 0 15px; }
}

/* ==================================================
   11. تصميم بطاقة الكاتب الفخمة (Author VIP Box)
   ================================================== */
.elite-author-box {
    background: var(--surface-matrix);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid var(--border-matrix);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 35px;
    position: relative;
    overflow: hidden;
}

/* شريط التدرج اللوني العلوي */
.elite-author-box::before {
    content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--accent-matrix), #34e89e);
}

.author-avatar-wrapper { flex-shrink: 0; position: relative; }
.author-avatar-wrapper img { 
    width: 140px; height: 140px; border-radius: 50%; 
    border: 4px solid var(--bg-matrix); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.author-info-wrapper { flex: 1; }
.author-name { font-size: 32px; font-weight: 900; color: var(--text-matrix); margin: 0 0 10px 0; }

.author-badges .badge { 
    background: rgba(16, 185, 129, 0.1); color: var(--accent-matrix); 
    padding: 6px 15px; border-radius: 50px; font-size: 14px; font-weight: 800; 
    display: inline-block; margin-bottom: 15px; 
}

.author-bio { 
    font-size: 18px; line-height: 1.8; color: var(--text-muted); 
    margin: 0 0 25px 0; max-width: 850px; 
}

.author-social-link { 
    display: inline-flex; align-items: center; gap: 8px; 
    background: #000; color: #fff; padding: 12px 25px; 
    border-radius: 50px; font-weight: 800; font-size: 15px; transition: 0.3s; 
}
.author-social-link:hover { 
    transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); color: #fff; 
}

/* الوضع الداكن لزر إكس */
body.dark-mode .author-social-link { background: #fff; color: #000; }

/* تجاوب بطاقة الكاتب للموبايل */
@media (max-width: 768px) {
    .elite-author-box { 
        flex-direction: column; text-align: center; padding: 35px 20px; gap: 20px;
    }
    .author-name { font-size: 26px; }
    .author-bio { font-size: 16px; margin-bottom: 20px; }
    .author-avatar-wrapper img { width: 110px; height: 110px; }
}

/* === theme fixes === */
.hide-on-mobile{display:block}
.hide-on-desktop{display:block}
.author-avatar-placeholder,
.comment-avatar-placeholder{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-weight:900;
    color:#fff;
    background:linear-gradient(135deg,var(--accent-matrix),#0ea5e9);
    box-shadow:var(--shadow-soft);
}
.author-avatar-placeholder{width:140px;height:140px;font-size:52px;}
.comment-avatar-placeholder{width:55px;height:55px;font-size:22px;}
.footer-menu-list,
.panel-items-list,
.elite-nav-links{list-style:none;margin:0;padding:0}
#sidebarOverlayBg[hidden]{display:none !important}
@media (max-width: 768px){
    .hide-on-mobile{display:none !important;}
    .author-avatar-placeholder{width:110px;height:110px;font-size:42px;}
}
@media (min-width: 769px){
    .hide-on-desktop{display:none !important;}
}


/* ==================================================
   6. دمج الرئيسية مع تاكسونومي الإضافة
   ================================================== */
.elite-section-titlebox{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    min-width:0;
}

.elite-source-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:6px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    background:rgba(255,255,255,.14);
    color:currentColor;
    border:1px solid rgba(255,255,255,.22);
    white-space:nowrap;
}

.theme-latest .elite-source-pill,
.theme-video .elite-source-pill,
.theme-opinion .elite-source-pill,
.theme-saudi .elite-source-pill{
    background:rgba(15,23,42,.06);
    border-color:rgba(15,23,42,.1);
}

.video-grid-2030{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.video-item,
.opinion-item{
    display:block;
    min-width:0;
}

.video-thumb{
    position:relative;
    border-radius:16px;
    overflow:hidden;
    margin-bottom:12px;
}

.video-thumb img{
    width:100%;
    height:220px;
}

.play-btn-overlay{
    position:absolute;
    inset:auto 12px 12px auto;
    width:46px;
    height:46px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.58);
    color:#fff;
    font-size:18px;
}

.opinion-grid-2030{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.opinion-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px;
    border-radius:16px;
    background:rgba(255,255,255,.08);
}

.theme-latest .opinion-item,
.theme-video .opinion-item,
.theme-saudi .opinion-item{
    background:var(--bg-matrix);
    border:1px solid var(--border-matrix);
}

.opinion-author-img{
    width:64px;
    height:64px;
    border-radius:50%;
    overflow:hidden;
    flex:0 0 64px;
}

.opinion-author-img img{
    width:100%;
    height:100%;
}

.opinion-content h4,
.video-item h4{
    margin:0;
    line-height:1.6;
    font-size:17px;
    font-weight:800;
}

.latest-news-text-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.text-news-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 0;
    border-bottom:1px solid rgba(148,163,184,.22);
}

.text-news-item:last-child{
    border-bottom:0;
    padding-bottom:0;
}

.news-bullet{
    width:10px;
    height:10px;
    border-radius:50%;
    background:currentColor;
    margin-top:10px;
    flex:0 0 10px;
}

.text-news-info h4{
    margin:0;
    font-size:18px;
    line-height:1.65;
    font-weight:800;
}

@media (max-width: 992px) {
    .elite-section-header{
        gap:14px;
        align-items:flex-start;
        flex-direction:column;
    }

    .elite-section-titlebox{
        width:100%;
        justify-content:space-between;
    }

    .video-grid-2030,
    .opinion-grid-2030{
        grid-template-columns:1fr;
    }
}
