/*
Theme Name: scoretankTheme
Theme URI: https://scoretank.com
Author: scoretank
Author URI: https://scoretank.com
Description: WordPress Theme
Version: 4.1 (Fix Social Icon Specificity)
License: license purchased
License URI: LICENSE
Text Domain: scoretank
Tags: 
*/

/*
=================================================================
*
* SCORE TANK THEME - MODERN DEVELOPMENT V4.1
* (★★ إصلاح: زيادة قوة مُحددات CSS لحل تضارب الأشكال والألوان ★★)
*
* 0. متغيرات CSS وأساسيات (Reset)
* 1. هيكل الهيدر (Mobile-First)
* 2. هيدر الهاتف والقائمة المنسدلة (★ إصلاح الأيقونات)
* 3. تنسيق نموذج البحث (المشترك)
* 4. هيدر الكمبيوتر (Desktop Header) (★ إصلاح الأيقونات)
* 5. نافذة البحث المنبثقة (Desktop Search Modal)
* 6. هيكل الفوتر (الأساسي)
* 7. فوتر الهاتف (Mobile Footer) (★ إصلاح الأيقونات)
* 8. فوتر الكمبيوتر (Desktop Footer) (★ إصلاح الأيقونات)
*
=================================================================
*/

/* --- 0. متغيرات CSS وأساسيات (Reset) --- */
:root {
    /* الألوان الأساسية */
    --c-primary: #007bff;
    --c-text: #333;
    --c-light-text: #666;
    --c-border: #e0e0e0;
    --c-border-light: #f0f0f0;
    --c-bg-light: #f4f4f4;

    /* ألوان الهيدر (الافتراضية) */
    /* (هذه المتغيرات خاصة بالهيدر فقط) */
    --c-header-bg: #1a1a1a;
    --c-header-text: #ffffff;
    --c-header-border: #333;
    --c-header-main-bg: #ffffff;

    /* ألوان الفوتر (الافتراضية) */
    /* (هذه المتغيرات خاصة بالفوتر فقط) */
    --c-footer-bg: #1a1a1a;
    --c-footer-link: #ffffff;
    --c-footer-copy: #888888;
    --c-footer-widget-text: #aaa;
    --c-footer-widget-border: #333;
    
    /* الأحجام */
    --h-mobile: 60px;
    --h-topbar: 70px;
    --h-mainmenu: 50px;
    
    /* الخطوط */
    --f-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* (إعادة تعيين بسيطة وحديثة) */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0; padding: 0; font-family: var(--f-main);
    color: var(--c-text); background: var(--c-bg-light);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
}
ul, ol, li, p, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; list-style: none; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--c-primary); }
img { max-width: 100%; height: auto; display: block; }

/* (هيكل بسيط جداً للويدجات) */
.container {
    width: 100%;    max-width: 1200px;
    padding-left: 15px; padding-right: 15px;
    margin-left: auto; margin-right: auto;
}
.row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.col-lg-3, .col-12 { width: 100%; padding-left: 15px; padding-right: 15px; }
@media (min-width: 992px) { .col-lg-3 { flex: 0 0 25%; max-width: 25%; } }

/* (إخفاء مساعدات قارئ الشاشة) */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: -999;
}
.skip-link:focus {
    clip: auto; height: auto; width: auto; position: static; z-index: 100000;
    padding: 10px; background: #fff; border: 1px solid #000;
}

/* --- 1. هيكل الهيدر (Mobile-First) --- */
.site-header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative; z-index: 999;
}
.site-header-desktop { display: none; }
.site-header-mobile {
    display: block;
    background: var(--c-header-bg); /* (افتراضي: أسود) */
}

/* --- 2. هيدر الهاتف والقائمة المنسدلة --- */
.header-mobile-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: var(--h-mobile); padding: 0 15px;
}
.site-branding-mobile .custom-logo { max-height: 40px; width: auto; }

/* (زر قائمة الهاتف) */
.mobile-menu-toggle {
    background: none; border: 1px solid var(--c-header-border);
    border-radius: 4px; padding: 8px 10px; cursor: pointer; z-index: 1001;
}
.mobile-menu-toggle .icon-bar {
    display: block; width: 22px; height: 2px;
    background-color: var(--c-header-text); /* (افتراضي: أبيض) */
    margin: 4px 0; transition: all 0.2s ease;
}
.mobile-menu-toggle.is-active .icon-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.is-active .icon-bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active .icon-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* (قائمة الهاتف المنسدلة) */
.mobile-menu-container {
    display: none; position: absolute;
    top: var(--h-mobile); right: 0; left: 0; width: 100%;
    background: #fff; border-bottom: 1px solid var(--c-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); z-index: 998;
    max-height: calc(100vh - var(--h-mobile)); overflow-y: auto;
}
.mobile-menu-container.is-active { display: block; }

.mobile-menu-container .mobile-menu-list li { border-bottom: 1px solid var(--c-border-light); }
.mobile-menu-container .mobile-menu-list a {
    display: block; padding: 14px 20px;
    font-weight: 500; color: var(--c-text);
}
.mobile-menu-container .mobile-menu-list a:hover { background: #f9f9f9; color: var(--c-primary); }





/* --- 3. تنسيق نموذج البحث (المشترك) --- */
.search-form { display: flex; width: 100%; position: relative; }
.search-field {
    flex-grow: 1; border: 1px solid #ccc; padding: 10px 15px;
    font-size: 1rem; border-radius: 4px 0 0 4px; -webkit-appearance: none;
}
.search-submit {
    flex-shrink: 0; background: var(--c-primary); color: #fff;
    border: none; padding: 0 20px; cursor: pointer;
    font-size: 1rem; font-weight: bold; border-radius: 0 4px 4px 0;
    display: flex; align-items: center; justify-content: center;
}
.search-submit svg { fill: #fff; }
.search-submit .screen-reader-text { display: none; }
.mobile-search-bar { padding: 20px; background: #f9f9f9; border-top: 2px solid #eee; }

/* --- 4. هيدر الكمبيوتر (Desktop Header) --- */
@media (min-width: 992px) {
    .site-header-desktop { display: block; }
    .site-header-mobile,
    .mobile-menu-container { display: none !important; }

    /* (الشريط العلوي) */
    .header-top-bar { background: var(--c-header-bg); color: var(--c-header-text); }
    .header-top-bar-inner {
        display: flex; justify-content: space-between; align-items: center;
        height: var(--h-topbar);
    }
    
    /* (الشعار العلوي) */
    .site-branding-top { flex: 1 0 auto; min-width: 150px; }
    .site-branding-top .custom-logo { max-height: 50px; width: auto; }
    
    

    /* (أيقونة البحث) */
    .top-bar-search {
        flex: 1 0 auto; min-width: 150px;
        display: flex; justify-content: flex-end;
    }
    .top-bar-search .search-toggle {
        background: none; border: none; padding: 10px; cursor: pointer;
        transition: opacity 0.2s ease;
    }
    .top-bar-search .search-toggle svg { fill: var(--c-header-text); opacity: 0.8; }
    .top-bar-search .search-toggle:hover svg { opacity: 1; }
    
    /* (شريط القائمة الرئيسي) */
    .header-main-menu {
        background: var(--c-header-main-bg);
        border-bottom: 1px solid var(--c-border-light);
        height: var(--h-mainmenu);
    }
    .header-main-menu .container {
        display: flex; justify-content: flex-end; align-items: center;
        height: 100%;
    }
    .main-navigation ul { display: flex; }
    .main-navigation li { margin: 0 0 0 15px; position: relative; }
    .main-navigation a {
        display: block; padding: 5px 0;
        line-height: calc(var(--h-mainmenu) - 10px);
        font-weight: 500; color: var(--c-text);
        border-bottom: 3px solid transparent;
        transition: all 0.2s ease;
    }
    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        color: var(--c-primary); border-bottom-color: var(--c-primary);
    }
    /* (القوائم المنسدلة) */
    .main-navigation .sub-menu {
        display: none; position: absolute;
        top: 100%; right: 0; background: #fff;
        border: 1px solid var(--c-border-light);
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        width: 220px; z-index: 10;
    }
    .main-navigation li:hover > .sub-menu { display: block; }
    .main-navigation .sub-menu li { margin: 0; border-bottom: 1px solid var(--c-border-light); }
    .main-navigation .sub-menu li:last-child { border-bottom: none; }
    .main-navigation .sub-menu a {
        line-height: 1.5; padding: 12px 15px; border-bottom: none;
    }
} /* نهاية @media (min-width: 992px) */


/* --- 5. نافذة البحث المنبثقة (Desktop Search Modal) --- */
.search-modal-container {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99998; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-modal-container.is-active { display: flex; opacity: 1; visibility: visible; }
.search-modal-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); cursor: pointer;
}
.search-modal-content {
    position: relative; z-index: 99999;
    width: 90%; max-width: 600px; background: #fff;
    padding: 30px; border-radius: 5px;
    transform: translateY(-20px); transition: transform 0.3s ease;
}
.search-modal-container.is-active .search-modal-content { transform: translateY(0); }
.search-modal-close {
    position: absolute; top: -15px; right: -15px;
    background: #fff; border: none; border-radius: 50%;
    width: 40px; height: 40px; cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
}
.search-modal-close svg { fill: #000; }

/* --- 6. هيكل الفوتر (الأساسي) --- */
.site-footer {
    background: var(--c-footer-bg);
    color: var(--c-footer-widget-text); /* (لون نصوص الويدجات) */
    margin-top: 30px;
}
.site-footer a {
    color: var(--c-footer-link); /* (اللون الافتراضي للروابط) */
    transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--c-primary); }
.site-footer p {
    color: var(--c-footer-copy); /* (لون نصوص الحقوق) */
}

/* (ويدجات الفوتر) */
.footer-widgets {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--c-footer-widget-border);
}
.fwd .widget {
    background: none; border: none; box-shadow: none; padding: 0;
    color: var(--c-footer-widget-text); margin-bottom: 20px;
}
.fwd-title .title {
    color: var(--c-footer-link);
    font-size: 18px; border-bottom: 2px solid var(--c-primary);
    padding-bottom: 10px; margin-bottom: 20px;
}
.fwd .widget ul li {
    border-bottom: 1px solid var(--c-footer-widget-border);
    padding: 8px 0;
}

/* (الفوتر السفلي) */
.footer-bottom-bar { padding: 20px 0; }


/* --- 7. فوتر الهاتف (Mobile Footer) --- */
.footer-bottom-desktop { display: none; }
.footer-bottom-mobile { display: block; text-align: center; }

/* (قائمة الفوتر للهاتف) */
.footer-mobile-menu { text-align: right; margin-bottom: 20px; }
.footer-mobile-menu-title {
    color: var(--c-footer-link); font-size: 18px;
    margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 2px solid var(--c-primary); display: inline-block;
}
.footer-navigation-mobile ul {
    display: flex; flex-direction: column;
    align-items: flex-start; padding-right: 10px;
}
.footer-navigation-mobile li { padding: 5px 0; }
.footer-navigation-mobile a { font-size: 15px; color: var(--c-footer-link); }



/* (حقوق الفوتر للهاتف) */
.footer-copyright-mobile { text-align: center; }
.footer-copyright-mobile p { font-size: 14px; color: var(--c-footer-copy); }


/* --- 8. فوتر الكمبيوتر (Desktop Footer) --- */
@media (min-width: 992px) {
    .footer-bottom-desktop { display: block; }
    .footer-bottom-mobile { display: none; }
    
    /* (الصف العلوي) */
    .footer-bottom-row {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 15px; padding-bottom: 15px;
        border-bottom: 1px solid var(--c-footer-widget-border); /* (استخدام متغير الفوتر) */
    }
    
    /* (قائمة الفوتر للكمبيوتر) */
    .footer-navigation { flex: 1 1 auto; }
    .footer-navigation ul { display: flex; flex-wrap: wrap; justify-content: flex-start; }
    .footer-navigation li { margin: 0 0 0 15px; }
    .footer-navigation a {
        font-size: 15px; font-weight: 500; color: var(--c-footer-link);
    }

   
 
 
 
 
 /*
=================================================================
*
* 10. (★ جديد) تنسيقات الصفحة الرئيسية (V4.0)
*
* 10a. الهيكل العام والأعمدة
* 10b. السلايدر ثلاثي الأبعاد (Swiper Coverflow)
* 10c. الشريط الجانبي للإعلانات
* 10d. كروت المقالات (الأقسام الجديدة)
*
=================================================================
*/

/* --- 10a. الهيكل العام والأعمدة --- */

/* (إخفاء قسم السلايدر والإعلانات العلوي على الهاتف) */
.desktop-only {
    display: none;
}
@media (min-width: 992px) {
    .desktop-only {
        display: block;
    }
}

/* (إدارة الأعمدة للكمبيوتر) */
@media (min-width: 992px) {
    .homepage-slider-area.col-lg-8 {
        flex: 0 0 70%;
        max-width: 70%;
    }
    .homepage-top-sidebar.col-lg-4 {
        flex: 0 0 30%;
        max-width: 30%;
    }
    .homepage-content-area.col-lg-8 {
        flex: 0 0 70%;
        max-width: 70%;
    }
    .homepage-main-sidebar.col-lg-4 {
        flex: 0 0 30%;
        max-width: 30%;
    }
}

/* --- 10b. السلايدر ثلاثي الأبعاد (Swiper Coverflow) --- */

.homepage-slider-container {
    width: 100%;
    padding-top: 50px; /* (مساحة للأزرار) */
    padding-bottom: 50px;
    position: relative;
    overflow: hidden; /* (مهم للتأثير) */
}

.homepage-slider-container .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 420px; /* (عرض الكارت الرئيسي) */
    height: 250px; /* (ارتفاع الكارت الرئيسي) */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.homepage-slider-container .slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* (طبقة الصورة + التمويه 30%) */
.homepage-slider-container .slide-image-blur {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* (تطبيق التمويه) */
    filter: blur(4px) brightness(70%); /* (70% = تمويه 30%) */
    transform: scale(1.1); /* (لمنع ظهور حواف بيضاء بسبب التمويه) */
}

/* (طبقة الرابط الشفافة) */
.homepage-slider-container .slide-link-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
}

/* (العنوان في المنتصف) */
.homepage-slider-container .slide-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 3;
    margin: 0;
    padding: 0;
    text-align: center; /* (في المنتصف كما طلبت) */
}
.homepage-slider-container .slide-title a {
    font-size: 1.1rem; /* (خط صغير) */
    font-weight: bold;
    color: var(--c-white, #FFFFFF); /* (يتم التحكم به من لوحة التحكم) */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* (ظل للنص لزيادة الوضوح) */
    text-decoration: none;
    line-height: 1.4;
}
.homepage-slider-container .slide-link-overlay:hover + .slide-title a {
    text-decoration: underline;
}

/* (تنسيق أزرار التنقل) */
.homepage-slider-container .swiper-button-next,
.homepage-slider-container .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.homepage-slider-container .swiper-button-next:after,
.homepage-slider-container .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}
.homepage-slider-container .swiper-pagination-bullet-active {
    background: #fff;
}


/* --- 10c. الشريط الجانبي للإعلانات --- */

.homepage-top-sidebar .homepage-ad-box {
    width: 100%;
    min-height: 100px; /* (ارتفاع افتراضي) */
    background: #f0f0f0; /* (خلفية احتياطية) */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}
.homepage-top-sidebar .ad-box-1 {
    margin-bottom: 20px;
}
/* (تأكد من أن الإعلان يملأ الحاوية) */
.homepage-top-sidebar .homepage-ad-box img,
.homepage-top-sidebar .homepage-ad-box ins {
    width: 100%;
}


/* --- 10d. كروت المقالات (الأقسام الجديدة) --- */

/* (حاوية القسم) */
.category-section {
    margin-bottom: 25px;
}
/* (تنسيق كلاسات `box` و `box-title` لديك) */
.box {
    background: #fff;
    border: 1px solid var(--c-border-light);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    padding: 20px;
}
.box-title {
    border-bottom: 2px solid var(--c-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.box-title .title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* (تنسيق كارت المقال) */
.category-card {
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* (للتحويم) */
}
/* (تأثير التحويم) */
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.07);
}

.category-card .card-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* (أطراف دائرية بسيطة) */
    background: #f0f0f0;
    height: 150px; /* (ارتفاع موحد للصورة) */
}
/* (طبقة الصورة + التمويه 30%) */
.category-card .card-image-blur {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* (تطبيق التمويه) */
    filter: blur(3px) brightness(70%); /* (70% = تمويه 30%) */
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
/* (طبقة التعتيم عند التحويم) */
.category-card .card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1); /* (تعتيم خفيف) */
    z-index: 2;
}
/* (تأثير زووم للصورة عند التحويم) */
.category-card:hover .card-image-blur {
    transform: scale(1.2);
}

/* (العنوان أسفل الصورة) */
.category-card .card-title {
    margin: 10px 0 0;
    padding: 0 5px;
}
.category-card .card-title a {
    font-size: 0.95rem; /* (خط صغير) */
    font-weight: 600;
    line-height: 1.5;
    color: var(--c-text, #333); /* (يتم التحكم به من لوحة التحكم) */
    text-decoration: none;
}
.category-card .card-title a:hover {
    color: var(--c-primary);
}

/* (تنسيق الهاتف: كارتين في الصف) */
.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 7px; /* (تقليل المسافات للهاتف) */
}
/* (تصغير خط العنوان أكثر للهاتف) */
.category-card .card-title a {
    font-size: 0.85rem;
    font-weight: 500;
}

/* (إعادة ضبط تنسيقات الكمبيوتر) */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
        padding: 0 10px; /* (مسافات للكمبيوتر) */
    }
    .category-card .card-title a {
        font-size: 0.95rem; /* (إعادة الخط لحجمه الطبيعي) */
        font-weight: 600;
    }
}

/*
=================================================================
*
* 11. (★ جديد) تنسيقات صفحة المقال الفردي (V4.0)
*
* 11a. هيكل الصندوق والإعلانات
* 11b. العنوان (في المنتصف)
* 11c. الوسوم الحديثة (Modern Tags)
* 11d. شريط المشاركة (Share Bar)
* 11e. مقالات ذات صلة (Related Posts)
* 11f. تصميم التعليقات (Comments Redesign)
*
=================================================================
*/

/* --- 11a. هيكل الصندوق والإعلانات --- */
.scoretank-single .single-post-box {
    padding: 25px;
}

/* (توسيط العنوان) */
.scoretank-single .centered-title {
    text-align: center;
    margin-bottom: 20px;
}

/* (تنسيق حاويات الإعلانات) */
.scoretank-single .single-ad-box {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.scoretank-single .single-ad-box.ad-top {
    margin-bottom: 20px;
}
.scoretank-single .single-ad-box.ad-mid {
    margin: 25px auto;
    clear: both;
}
.scoretank-single .single-ad-box.ad-bottom {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* --- 11b. العنوان (في المنتصف) --- */
.scoretank-single .post-title {
    font-size: 1.8rem; /* (خط صغير معقول) */
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-text, #333); /* (يتم التحكم به من لوحة التحكم) */
    margin: 0;
}
@media (min-width: 992px) {
    .scoretank-single .post-title {
        font-size: 2.2rem; /* (أكبر قليلاً للكمبيوتر) */
    }
}

/* (إزالة التنسيق القديم للعنوان) */
.scoretank-single .page-title {
    border: none;
    padding: 0;
}
.scoretank-single .conteneur_barre_outils {
    display: none; /* (إخفاء شريط الوقت القديم) */
}

/* (تنسيق خط المقال لسرعة القراءة) */
.scoretank-single .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.scoretank-single .entry-content p {
    margin-bottom: 1.5rem;
}

/* --- 11c. الوسوم الحديثة (Modern Tags) --- */
.modern-post-tags {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--c-border-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.modern-post-tags .tags-title {
    font-weight: 700;
    margin-left: 10px; /* (RTL: margin-right) */
    font-size: 1rem;
}
.modern-post-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* (مسافات بين الوسوم) */
}
.modern-post-tags li {
    margin: 0;
}
.modern-post-tags a {
    display: block;
    font-size: 0.85rem;
    color: var(--c-light-text, #666);
    background: var(--c-bg-light, #f4f4f4);
    padding: 5px 12px;
    border-radius: 20px; /* (إطارات صغيرة جذابة) */
    border: 1px solid var(--c-border-light, #f0f0f0);
    transition: all 0.2s ease;
}
.modern-post-tags a:hover {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

/* --- 11d. شريط المشاركة (Share Bar) --- */
.single-share-bar {
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}
.single-share-bar .share-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.single-share-bar .social-share-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.single-share-bar .social-share-links a {
    display: block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.single-share-bar .social-share-links a:hover {
    opacity: 0.85;
}
/* (ألوان الأيقونات) */
.single-share-bar .share-facebook { background: #1877F2; }
.single-share-bar .share-twitter   { background: #1DA1F2; }
.single-share-bar .share-whatsapp  { background: #25D366; }
.single-share-bar .share-telegram  { background: #2AABEE; }

/* --- 11e. مقالات ذات صلة (Related Posts) --- */
.related-posts-box {
    margin-bottom: 25px;
}
/* (تعديل ارتفاع الصور في "مقالات ذات صلة" لتكون أصغر) */
.related-posts-box .category-card .card-thumbnail {
    height: 120px;
}
@media (min-width: 992px) {
    .related-posts-box .category-card .card-thumbnail {
        height: 140px;
    }
}


/* --- 11f. تصميم التعليقات (Comments Redesign) --- */
.comments-section-box {
    padding: 25px;
}
/* (إزالة التنسيق القديم) */
#comments {
    background: none;
    padding: 0;
}
/* (العنوان الرئيسي للتعليقات) */
.comments-area .comments-t {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-primary);
    display: inline-block;
}

/* (تصميم قائمة التعليقات) */
.comment-list {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}
.comment-list .comment {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--c-border-light);
}
.comment-list .children {
    list-style: none;
    margin-right: 30px; /* (RTL) */
    margin-top: 20px;
}
.comment-list .comment-body {
    display: flex;
    gap: 15px;
}
.comment-list .avatar {
    border-radius: 50%;
    flex-shrink: 0;
}
.comment-list .comment-content-wrap {
    flex-grow: 1;
}
.comment-list .comment-meta {
    font-size: 0.9rem;
    margin-bottom: 10px;
    background: var(--c-bg-light, #f4f4f4);
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.comment-list .fn {
    font-weight: 700;
    font-style: normal;
}
.comment-list .comment-metadata a {
    font-size: 0.85rem;
    color: var(--c-light-text, #666);
}
.comment-list .comment-content {
    line-height: 1.7;
}
.comment-list .reply {
    font-size: 0.9rem;
    font-weight: 600;
}
.comment-list .reply a {
    color: var(--c-primary);
}

/* (تصميم نموذج التعليق الحديث) */
#respond {
    background: var(--c-bg-light, #f4f4f4);
    padding: 25px;
    border-radius: 5px;
}
#respond .comment-reply-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}
#respond .comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#respond .comment-notes {
    font-size: 0.9rem;
}
#respond .comment-form-comment,
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-url {
    margin: 0;
    padding: 0;
}
/* (تنسيق حقول الإدخال) */
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--c-border, #e0e0e0);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#respond textarea {
    min-height: 120px;
}
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus,
#respond textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
    outline: none;
}
/* (تنسيق زر الإرسال) */
#respond .form-submit .submit {
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
#respond .form-submit .submit:hover {
    background: #0056b3;
}


/*
=================================================================
*
* 12. (★ جديد) تنسيقات الصفحة الثابتة (page.php)
*
=================================================================
*/

/* (تطبيق نفس تنسيقات الصندوق والعنوان) */
.scoretank-page .single-post-box {
    padding: 25px;
}

.scoretank-page .centered-title {
    text-align: center;
    margin-bottom: 20px;
}

.scoretank-page .page-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-text, #333); /* (يتم التحكم به من لوحة التحكم) */
    margin: 0;
}

@media (min-width: 992px) {
    .scoretank-page .page-title h1 {
        font-size: 2.2rem;
    }
}

/* (تنسيق خط الصفحة لسرعة القراءة) */
.scoretank-page .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.scoretank-page .entry-content p {
    margin-bottom: 1.5rem;
}

/* Jannah Header Structure Mockup */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; position: relative; }
.tie-row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.tie-col-md-4 { width: 33.333%; padding: 0 15px; }
.tie-col-md-8 { width: 66.666%; padding: 0 15px; }
.tie-alignleft { float: left; }
.tie-alignright { float: right; }
.rtl .tie-alignleft { float: right; }
.rtl .tie-alignright { float: left; }

/* Top Nav */
#top-nav { background: #2c2f34; color: #fff; font-size: 12px; line-height: 34px; height: 34px; border-bottom: 1px solid #222; }
#top-nav a { color: #ccc; text-decoration: none; margin-left: 15px; }
#top-nav a:hover { color: #fff; }
.topbar-wrapper { display: flex; justify-content: space-between; }
.top-menu li { display: inline-block; margin-right: 15px; }

/* Header Content */
.header-container { padding: 30px 0; background: #fff; }
.logo-container img { max-height: 80px; width: auto; }
.header-ads-container { text-align: left; } /* عكس الاتجاه في العربية */
.rtl .header-ads-container { text-align: left; }

/* Main Nav */
.main-nav-wrapper { background: #0088ff; /* Jannah Blue */ position: relative; z-index: 99; }
#main-nav ul.menu { margin: 0; padding: 0; list-style: none; display: flex; }
#main-nav ul.menu > li > a { color: #fff; display: block; padding: 0 15px; line-height: 50px; font-weight: bold; text-decoration: none; font-size: 14px; }
#main-nav ul.menu > li > a:hover { background: rgba(0,0,0,0.1); }
.main-menu-wrapper { display: flex; justify-content: space-between; align-items: center; }

/* Mobile Trigger (Simple) */
.mobile-menu-trigger { display: none; }
@media (max-width: 991px) {
    .mobile-menu-trigger { display: block; }
    .main-menu-wrap { display: none; } /* Hide menu on mobile for now */
    .tie-col-md-4, .tie-col-md-8 { width: 100%; text-align: center; }
    .header-ads-container { display: none; }
}

/* =========================================
   4. تنسيقات القائمة الرئيسية (Jannah Style)
   ========================================= */

/* حاوية القائمة (الشريط الأزرق) */
.main-nav-wrapper {
    background-color: #0088ff; /* لون جنة الافتراضي */
    color: #fff;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 999;
}

.main-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px; /* ارتفاع القائمة */
}

/* تنسيق روابط القائمة */
.main-nav .menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .menu > li > a {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 0 15px;
    line-height: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* تأثير عند المرور (Hover) */
.main-nav .menu > li:hover > a,
.main-nav .menu > li.current-menu-item > a {
    background-color: rgba(0,0,0,0.1); /* تغميق خفيف */
}

/* خط صغير تحت العنصر النشط (مثل جنة) */
.main-nav .menu > li > a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.3s;
}
.main-nav .menu > li:hover > a:after {
    opacity: 1;
}

/* القائمة المنسدلة (Sub Menu) */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0; /* يمين في العربية يتم تعديله تلقائياً */
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-top: 3px solid #0088ff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu li {
    border-bottom: 1px solid #f5f5f5;
}

.main-nav .sub-menu a {
    color: #333 !important; /* نص أسود في القائمة المنسدلة */
    padding: 12px 20px;
    display: block;
    line-height: 1.4;
    font-size: 14px;
    font-weight: normal;
}

.main-nav .sub-menu a:hover {
    color: #0088ff !important;
    background: #f9f9f9;
    padding-right: 25px; /* حركة بسيطة عند التحويم */
}

/* زر البحث (Search Icon) */
.search-bar .tie-search-trigger {
    display: block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    border-right: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}
.rtl .search-bar .tie-search-trigger {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.search-bar .tie-search-trigger:hover {
    background-color: rgba(0,0,0,0.1);
}

/* أيقونة البحث SVG (بسيطة) */
.tie-icon-search:before {
    content: "\1F50D"; /* رمز عدسة */
    font-family: sans-serif;
}

/* استجابة الهاتف (Mobile) */
@media (max-width: 991px) {
    .main-nav-wrapper {
        background: #fff; /* في الموبايل تكون بيضاء عادة */
        border-bottom: 1px solid #eee;
    }
    .main-nav-wrapper .container {
        padding: 0;
    }
    .main-menu-wrap {
        display: none; /* القائمة مخفية وتظهر بالزر */
    }
    .mobile-menu-trigger {
        display: block;
    }
    .mobile-menu-btn {
        background: transparent;
        border: none;
        padding: 15px;
        cursor: pointer;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px 0;
    }
    /* في الموبايل البحث لونه أسود */
    .search-bar .tie-search-trigger {
        color: #333;
        border: none;
    }
}

/* --- Breaking News Ticker --- */
.breaking-news-container {
    display: flex;
    align-items: center;
    margin-right: 20px; /* مسافة بينه وبين التاريخ */
    overflow: hidden;
    height: 30px; /* نفس ارتفاع الشريط العلوي تقريباً */
}

.breaking-title {
    background-color: #ff0000; /* لون أحمر مثل جنة */
    color: #fff;
    padding: 0 10px;
    font-size: 12px;
    font-weight: bold;
    line-height: 30px;
    height: 100%;
    display: block;
    margin-left: 10px;
    border-radius: 2px;
}

.breaking-news-ticker {
    overflow: hidden;
    height: 30px;
    line-height: 30px;
    flex-grow: 1;
    position: relative;
}

.breaking-news-ticker ul {
    margin: 0;
    padding: 0;
    list-style: none;
    /* سيتم تحريك هذا العنصر بالجافاسكربت */
}

.breaking-news-ticker li {
    display: none; /* إخفاء الكل، والجافاسكربت سيظهر واحداً تلو الآخر */
    margin: 0;
    white-space: nowrap;
}
.breaking-news-ticker li:first-child {
    display: block;
}

.breaking-news-ticker a {
    color: #ccc;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}
.breaking-news-ticker a:hover {
    color: #fff;
}

/* RTL Fixes */
.rtl .breaking-news-container { margin-right: 0; margin-left: 20px; }
.rtl .breaking-title { margin-left: 0; margin-right: 10px; }

/* ====================
   HEADER LAYOUTS
   ==================== */

/* --- Top Nav --- */
.top-nav-wrapper { background: #222; color: #fff; font-size: 13px; border-bottom: 1px solid #333; }
.top-bar-inner { display: flex; justify-content: space-between; height: 40px; align-items: center; }
.tie-alignleft, .tie-alignright { display: flex; align-items: center; gap: 15px; }

/* --- Breaking News Ticker --- */
.breaking-news-container { display: flex; align-items: center; }
.breaking-title { background: #ff0000; color: #fff; padding: 0 10px; height: 26px; line-height: 26px; font-size: 11px; font-weight: bold; border-radius: 2px; margin-left: 10px; }
.breaking-news { width: 300px; overflow: hidden; height: 26px; position: relative; }
.breaking-news ul { margin: 0; padding: 0; list-style: none; }
.breaking-news li { display: none; line-height: 26px; } /* الجافا سكربت سيظهرها */
.breaking-news a { color: #ccc; text-decoration: none; }

/* --- General Main Nav --- */
.main-nav-wrapper { background: #0088ff; color: #fff; position: relative; z-index: 999; }
.main-menu-wrapper { display: flex; align-items: center; height: 60px; justify-content: space-between; }
.main-menu ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-menu ul li a { color: #fff; padding: 0 15px; line-height: 60px; display: block; font-weight: bold; text-decoration: none; }
.main-menu ul li:hover > a { background: rgba(0,0,0,0.1); }

/* --- Layout 1: Inline Logo & Menu --- */
.header-layout-1 .main-nav-wrapper { background: #fff; border-bottom: 1px solid #eee; height: 80px; }
.header-layout-1 .main-menu ul li a { color: #333; line-height: 80px; }
.header-layout-1 .logo-container img { max-height: 60px; }

/* --- Layout 2: Centered --- */
.header-layout-2 .centered-content { padding: 20px 0; background: #fff; }
.header-layout-2 .logo-container.text-center { text-align: center; justify-content: center; display: flex; }
.header-layout-2 .main-menu-wrapper { justify-content: center; }

/* --- Layout 4: Boxed --- */
.header-layout-4 .box-layout-menu .container { background: #0088ff; border-radius: 4px; margin-top: -20px; } /* تداخل بسيط */

/* --- Header Styles (Jannah Style) --- */

/* 1. Top Nav */
#top-nav {
    background-color: #1a1a1a; /* لون غامق افتراضي */
    color: #fff;
    font-size: 13px;
    height: 40px;
    line-height: 40px;
    position: relative;
    z-index: 1030;
}
#top-nav a { color: #ccc; transition: 0.3s; }
#top-nav a:hover { color: #fff; }
#top-nav .container { height: 100%; }
#top-nav .topbar-wrapper { height: 100%; }

/* Components */
.date-component, .login-component { margin: 0 10px; }
.social-component ul { margin: 0; padding: 0; display: inline-block; }
.social-component li { display: inline-block; margin: 0 5px; }

/* 2. Header Content (Logo & Ads) */
.header-content-area {
    background: #fff;
    padding: 20px 0;
    position: relative;
}
.header-content-area .logo-container img {
    max-height: 90px; /* يمكن التحكم به من PHP */
    width: auto;
}

/* 3. Main Nav */
.main-nav-wrapper {
    background-color: #fff; /* الافتراضي */
    border-bottom: 2px solid #f1f1f1;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.main-nav-wrapper.dark-skin {
    background-color: #23282d;
    border-bottom: none;
}
.main-nav-wrapper.fixed-nav {
    position: sticky;
    top: 0;
}

.main-nav .menu {
    margin: 0; padding: 0; list-style: none;
    display: flex;
}
.main-nav .menu > li > a {
    display: block;
    padding: 0 15px;
    line-height: 50px;
    font-weight: 700;
    color: #333;
    font-size: 15px;
}
.main-nav-wrapper.dark-skin .menu > li > a { color: #fff; }
.main-nav .menu > li:hover > a { color: #0088ff; }

/* 4. Breaking News (Ticker) */
.breaking-news-outer {
    display: inline-flex;
    align-items: center;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    height: 30px;
    line-height: 30px;
    max-width: 600px;
}
.breaking-title {
    background: #ff3e3e;
    color: #fff;
    padding: 0 10px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}
.breaking-news ul {
    margin: 0; padding: 0; list-style: none;
    display: inline-block;
    padding-left: 10px;
}
.breaking-news li { display: none; }
.breaking-news li:first-child { display: block; }
.breaking-news a { color: #fff; font-size: 12px; }

/* 5. Icons */
.tie-icon-search:before { content: "\f002"; font-family: FontAwesome; }
.tie-icon-calendar:before { content: "\f073"; font-family: FontAwesome; }