/*
Theme Name: youssef
Author: youssef ben elbachir
Version: 1.2
*/

:root {
    --mag-maroon: #72707062;
    --mag-gold: #f6ab2f;
    --border-color: #eeeeee;
}

body { font-family: 'Cairo', sans-serif; direction: rtl; text-align: right; }

/* القائمة العلوية */
.top-menu { padding: 0; }
.top-menu li { display: inline-block; border-left: 1px solid #ddd; }
.top-menu li:last-child { border-left: none; }
.top-menu li a { color: #444; font-size: 14px; font-weight: bold; padding: 0 12px; text-decoration: none; }
.top-menu li a:hover { color: var(--mag-maroon); }

/* أيقونات التواصل */
.social-icons li a { color: #888; font-size: 17px; margin-right: 12px; transition: 0.3s; }
.social-icons li a:hover { color: var(--mag-gold); }

/* الشعار والبحث */
.mag-logo-wrapper img { max-width: 320px; height: auto; }
.issue-info { font-size: 14px; }
.publisher-text { font-size: 17px; color: #000; }

.search-form-custom {
    border: 1px solid #ddd;
    border-radius: 0;
    width: 220px;

    display: flex;
    align-items: center;
    overflow: hidden;
  

    position: relative; /* 🔥 بدل absolute */
}

/* input */
.search-form-custom .form-control {
    border: none;
    font-size: 12px;
    height: 28px;
    padding: 2px 8px;

    flex: 1;
    width: 100%;
    min-width: 0;

    box-shadow: none;
}

/* button */
.search-btn-gold {
    background-color: var(--mag-gold) !important;
    border: none;
    border-radius: 0;
    padding: 3px 10px;
    height: 28px;

    flex-shrink: 0;
}

/* fix bootstrap */
.search-form-custom .form-control:focus {
    box-shadow: none;
}
.search-form-custom {
    margin-bottom: 8px; /* 👈 تحكم هنا */
}

/* للهواتف */
@media (max-width: 768px) {
    .main-header .row > div { margin-bottom: 20px; text-align: center !important; }
    .top-menu li a { font-size: 11px; padding: 0 5px; }
}



/* =========================================
   تنسيق القائمة بالإطار الأسود والخط الذهبي
   ========================================= */
.navbar-mag {
    background-color: #222222;
    border-bottom: 4px solid var(--mag-gold);
    padding: 0;
    min-height: 50px;
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

.main-menu-ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
}

.main-menu-ul li {
    position: relative;
}

/* فواصل خفيفة جداً بين العناصر */
.main-menu-ul li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.main-menu-ul li:last-child::after {
    display: none;
}

.main-menu-ul li a {
    color: #ffffff !important; /* نص أبيض واضح */
    font-size: 16px;
    font-weight: 700;
    padding: 15px 25px !important;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* تأثير عند تمرير الماوس */
.main-menu-ul li a:hover,
.main-menu-ul li.current-menu-item > a {
    background-color: var(--mag-gold); /* الخلفية تصبح ذهبية عند التمرير */
    color: #000000 !important; /* النص يصبح أسود للوضوح */
}

/* تنسيق الجوال */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #222222;
        max-height: 80vh;
        overflow-y: auto;
    }
    .main-menu-ul {
        flex-direction: column;
        width: 100%;
    }
    .main-menu-ul li::after {
        display: none;
    }
    .main-menu-ul li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 12px 20px !important;
    }
}
/* =========================================
   الحل النهائي والقطعي للقوائم الفرعية
   ========================================= */

/* أنا أقوم هنا بضبط القائمة الرئيسية كحاوية مرنة */
.main-menu-ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* أنا أؤكد أن كل عنصر رئيسي هو نقطة مرجعية لما بداخله */
.main-menu-ul > li {
    position: relative !important;
    display: block !important;
}

/* أنا أقوم بإلغاء أي تأثير لـ flex على القائمة الفرعية وإخفائها بقوة */
.main-menu-ul .sub-menu {
    display: none !important; /* أنا أستخدم الإخفاء التام هنا لمنع الظهور العشوائي */
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background-color: #222222 !important;
    min-width: 220px !important;
    z-index: 99999 !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border-top: 3px solid var(--mag-gold) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    
    /* أنا أضمن أنها لن تأخذ مساحة من الشريط الرئيسي */
    float: none !important;
}

/* أنا أجبر القائمة الفرعية على الظهور فقط عند تمرير الماوس على العنصر الأب */
.main-menu-ul li:hover > .sub-menu {
    display: block !important;
}

/* أنا أنسق الروابط الفرعية لتظهر عمودياً (تحت بعضها) */
.main-menu-ul .sub-menu li {
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

.main-menu-ul .sub-menu li a {
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    display: block !important;
    background: transparent !important;
}

/* أنا أضيف تأثير التمرير العنابي المخصص للمجلة */
.main-menu-ul .sub-menu li a:hover {
    background-color: var(--mag-maroon) !important;
    padding-right: 25px !important;
    color: #ffffff !important;
}

/* أنا أضيف سهم الإرشاد للأقسام التي تحتوي على فروع */
.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    font-size: 11px;
    color: var(--mag-gold);
}






@media (max-width: 991px) {
    .main-menu-ul .sub-menu {
        display: none;
        position: static !important;
        background-color: #111 !important;
        padding-right: 20px;
    }

    .main-menu-ul li.open > .sub-menu {
        display: block !important;
    }

    .menu-item-has-children > a::after {
        content: "\f107"; /* سهم للأسفل */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-right: 8px;
        font-size: 12px;
        color: var(--mag-gold);
        float: left;
    }
}





/* =========================================
   تنسيق قسم السلايدر والعدد الأخير (بدون دوران حواف)
   ========================================= */








.main-slider-section {
    background-color: #eee8ea;
}

/* تنسيق السلايدر */
.slider-img {
    height: 350px;
    object-fit: cover;
}

/* وسم التصنيف (آداب وتراث) حواف حادة */
.slider-cat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #555555;
    color: #ffffff;
    padding: 10px 15px;
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
    border-radius: 0 !important;
}

/* عنوان المقال في الأسفل */
.mag-caption {
    right: 0;
    left: 0;
    bottom: 0;
    padding: 15px 20px;
    background: rgba(12, 12, 12, 0.85);
    text-align: right;
    margin: 0;
}

/* =========================================
   تنسيق أزرار السلايدر (يمين ويسار الوسط)
   ========================================= */

   


/* i am: ضبط حاوية الزر الأيسر */
.carousel-control-prev {
    left: 5px !important;
    right: auto !important; /* إلغاء أي توجيه جهة اليمين */
    width: 50px !important; /* عرض محدد لمنع التداخل */
    opacity: 1;
}

/* i am: ضبط حاوية الزر الأيمن */
.carousel-control-next {
    right: 5px !important;
    left: auto !important; /* إلغاء أي توجيه جهة اليسار */
    width: 50px !important;
    opacity: 1;
}

/* i am: تنسيق الأزرار نفسها لتكون في المنتصف عمودياً */
.mag-carousel-btn {
    width: 45px;
    height: 45px;
    background-color: #555555 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important; /* حواف حادة */
    border: none !important;
    transition: all 0.4s ease;
    
    /* التوسط العمودي */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev .mag-carousel-btn { left: 10px; }
.carousel-control-next .mag-carousel-btn { right: 10px; }

/* تأثير الزجاج عند التمرير */
.mag-carousel-btn:hover {
    background: rgba(85, 85, 85, 0.5) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}





/* =========================================
   تنسيق العدد الأخير (الأيقونة والعنوان)
   ========================================= */
/* i am: تنسيق ترويسة العدد الأخير */
.last-issue-header {
    display: flex;
    align-items: center;
    gap: 8px; /* المسافة بين الأيقونة والنص */
    direction: rtl;
}

/* i am: المربع الذهبي في حال غياب الأيقونة */
.title-icon-square {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--mag-gold, #c5a059); /* لون ذهبي حاد */
    flex-shrink: 0;
    border-radius: 0 !important; /* حواف حادة تماماً */
}

/* i am: تنسيق عنوان العدد الأخير بناءً على طلبك */
.last-issue-title {
    color: #f6ab2f !important; 
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.2;
    text-align: right;
}

/* i am: تنسيق أيقونة الموقع المرافقة للعنوان */
.site-icon-title {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 10px; /* مسافة بين الأيقونة والنص في RTL */
    border-radius: 0 !important;
}

/* i am: المربع الذهبي البديل (حواف حادة) */
.title-icon-square {
    width: 18px;
    height: 18px;
    background-color: #f6ab2f;
    display: inline-block;
    flex-shrink: 0;
    margin-left: 10px;
    border-radius: 0 !important;
}

/* i am: ضمان المحاذاة الأفقية */
.last-issue-header {
    display: flex;
    align-items: center;
    direction: rtl;
}

/* إجبار السلايدر على إظهار العنصر النشط فقط مع حواف حادة */
.carousel-item {
    display: none;
    border-radius: 0 !important;
}

.carousel-item.active {
    display: block !important;
}

























/* =========================================
   تنسيق منطقة التصنيفات (رئيسية الموقع)
   ========================================= */

/* الهيدر الرمادي الغامق للتصنيف */
/* =========================================
   تنسيق ترويسة التصنيف (يمين عربي)
   ========================================= */
/* i am: تنسيق ترويسة القسم */
/* إعدادات المتغيرات */
:root {
    --mag-gold: #f6ab2f;
    --mag-dark: #4a4e52;
}

/* رأس القسم */
.category-header {
    background-color: var(--mag-dark);
    padding: 10px 15px;
    border-bottom: 3px solid var(--mag-gold);
    border-radius: 0 !important;
}

.cat-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.cat-icon-square {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--mag-gold);
}

/* محتوى المربع */
.category-content {
    border-color: #eee !important;
}

.cat-post-img {
    min-height: 160px;
    transition: transform 0.4s ease;
}

.category-block:hover .cat-post-img {
    transform: scale(1.05);
}

/* العناوين والميتا */
.cat-post-title a {
    color: #222;
    font-size: 22px;
    transition: color 0.3s;
}

.cat-post-title a:hover {
    color: var(--mag-gold);
}

.post-meta-extra {
    font-size: 12.5px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 5px;
}

.text-gold {
    color: var(--mag-gold) !important;
}

.cat-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
}

.read-more-link {
    color: var(--mag-gold);
    font-weight: bold;
    text-decoration: none;
}

/* عمود المشاركة */
.social-share-col {
    border-left: 1px solid #eeeeee !important;
    background-color: #fafafa;
    min-width: 55px;
}

.share-icon {
    font-size: 17px;
    transition: transform 0.2s ease;
}

.share-icon:hover {
    transform: scale(1.2);
}

/* التجاوب مع الجوال */
@media (max-width: 575px) {
    .social-share-col {
        border-left: none !important;
        border-top: 1px solid #eeeeee;
        flex-direction: row !important;
        width: 100% !important;
        padding: 10px 0;
    }
    .cat-post-img {
        height: 200px !important;
    }
    .cat-post-title a {
        font-size: 19px;
    }
}









/* i am: تنسيقات صفحة الكاتب */
.btn-gold {
    background-color: #f6ab2f !important;
    border-color: #f6ab2f !important;
}

.author-avatar-wrapper img {
    max-width: 120px;
    height: auto;
}

.author-profile-card {
    border-radius: 0 !important;
}

.text-gold {
    color: #f6ab2f !important;
}

/* تحسين المقالات في صفحة الكاتب */
.mag-horizontal-block {
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.mag-horizontal-block:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

@media (max-width: 767px) {
    .author-profile-card .col-sm-4 {
        padding: 30px !important;
    }
    .mag-horizontal-block .section-body {
        flex-direction: column !important;
    }
    .mag-horizontal-block .post-img-box {
        width: 100% !important;
        height: 200px;
    }
}












/* i am: تنسيقات صفحة 404 */
.error-404-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.error-container {
    border-radius: 0 !important;
}

.text-gold { color: #f6ab2f !important; }

.btn-gold {
    background-color: #f6ab2f !important;
    border: none;
    transition: 0.3s;
}

.btn-gold:hover {
    background-color: #4a4e52 !important;
    transform: translateY(-3px);
}

/* تنسيق نموذج البحث داخل صفحة الخطأ */
.search-box-404 .input-group {
    border: 2px solid #eee;
}

.search-box-404 input[type="search"] {
    border: none !important;
    border-radius: 0 !important;
    padding: 12px;
}

.search-box-404 button {
    border-radius: 0 !important;
    background: #4a4e52;
    color: white;
    border: none;
    padding: 0 25px;
}

/* حركة بسيطة للرقم 404 */
.display-1 {
    color: #eee;
    text-shadow: 4px 4px 0px #f6ab2f;
}











/* =========================================
   تنسيق القائمة الجانبية (الإصدار النهائي والمستقر)
   ========================================= */

/* أنا أضمن هنا أن الصف يحتوي العمودين بشكل متساوٍ */
.row.equal-height-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch; /* لتوحيد الطول */
}

/* أنا أضبط الحاوية الجانبية لتكون متناسقة تماماً مع المقالات */
.sidebar-magazine.custom-gold-border {
    border: 2px solid #f6ab2f !important; /* أنا استخدمت اللون مباشرة لضمان الظهور */
    background-color: #ffffff;
    padding: 20px 15px !important;
    height: 100%; /* ليمتد الإطار مع طول المقالات */
    display: flex;
    flex-direction: column;
}

/* أنا أهتم هنا بظهور العناوين بوضوح في المتصفح */
.widget-header {
    background: transparent !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    border: none !important;
}

.widget-title {
    color: #f6ab2f !important; /* اللون الذهبي */
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.2;
    text-align: right;
}

/* أنا أضبط حجم الأيقونة لتكون واضحة بجانب العنوان */
.widget-site-icon {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
}

/* تنسيق الصور النظيفة مع ضمان عدم تمددها */
.widget-clean-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sidebar-widget {
    margin-bottom: 40px; /* مسافة بين كل ودجت وآخر */
}

.sidebar-widget:last-child {
    margin-bottom: 0 !important;
}




/* أنا أجبر الصف على توزيع الارتفاع بالتساوي */
.row.equal-height-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
}

/* أنا أضبط السايدبار ليأخذ كامل الارتفاع ويظهر الإطار الذهبي */
.sidebar-magazine.custom-gold-border {
    border: 2px solid #f6ab2f !important; /* اللون الذهبي للمجلة */
    background-color: #ffffff;
    padding: 20px 15px !important;
    height: 100%; /* هذا هو السر في بقاء الإطار محاذياً للمقالات */
    display: flex;
    flex-direction: column;
}

/* أنا أضمن ظهور العناوين الذهبية في السايدبار بوضوح */
.widget-header {
    background: transparent !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    border: none !important;
}

.widget-title {
    color: #f6ab2f !important; 
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.2;
    text-align: right;
}

.widget-site-icon {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
}

.widget-clean-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}




/* =========================================
   ضبط المحاذاة السفلية لعمود المقالات والسايدبار
   ========================================= */

/* إزالة المسافة السفلية من آخر مقال ليتطابق مع نهاية السايدبار */
.home-categories-wrapper .category-block:last-child {
    margin-bottom: 0 !important;
}

/* ضمان عدم وجود مسافات إضافية مخفية في الحاوية */
.home-categories-wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.sidebar-magazine.custom-gold-border {
    margin-bottom: 0 !important;
}


/* تحويل السايدبار إلى شريط عائم (Sticky) يتحرك مع النزول */
.col-lg-3.col-md-4 {
    position: sticky !important;
    top: 20px; /* المسافة من أعلى الشاشة عند النزول */
    height: max-content;
}

/* في هذه الحالة يجب إلغاء تمدد الإطار الذهبي */
.row.equal-height-row {
    align-items: flex-start !important;
}








/* =========================================
   تنسيق الفوتر الاحترافي (النمط الداكن)
   ========================================= */
.custom-dark-footer {
    background-color: #1a1a1a; /* رمادي غامق جداً قريب للأسود */
    color: #bcbcbc;
    direction: rtl;
}

.footer-top-line {
    height: 3px;
    background-color: #f6ab2f; /* اللون الذهبي */
}

/* عناوين الودجات مع خط تحتها مثل الصورة */
.footer-widget-title {
    color: #f6ab2f;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #f6ab2f;
}

/* روابط الفوتر */
.footer-custom-links li {
    margin-bottom: 12px;
    border-bottom: 1px solid #262626;
    padding-bottom: 8px;
}

.footer-custom-links li a {
    color: #bcbcbc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-custom-links li a:hover {
    color: #f6ab2f;
    padding-right: 10px; /* تأثير حركة عند التمرير */
}

/* أيقونات التواصل الاجتماعي (مربعات ملونة) */
.social-box {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s;
}

.social-box:hover { transform: translateY(-3px); color: #fff; }
.fb { background-color: #3b5998; }
.tw { background-color: #000000; }
.inst { background-color: #e4405f; }
.yt { background-color: #cd201f; }

/* معلومات الاتصال */
.footer-contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gold-icon { color: #f6ab2f; }

/* شريط الحقوق السفلي */
.footer-copyright-bar {
    background-color: #111;
    border-top: 1px solid #222;
    font-size: 14px;
}


/* ضبط اتجاه الفوتر والمحاذاة لليمين */
.custom-dark-footer {
    direction: rtl !important;
    text-align: right !important;
    background-color: #1a1a1a;
    color: #bcbcbc;
}



.footer-site-title {
    color: #f6ab2f;
    font-weight: 800;
    font-size: 24px;
}

/* ضبط القوائم لتكون بلا هوامش يمين (لأننا في وضع RTL) */
.footer-custom-links, .footer-contact-info {
    padding-right: 0 !important;
    list-style: none;
}

.footer-custom-links li a:hover {
    padding-right: 10px; /* حركة لليمين عند التمرير */
    padding-left: 0;
}

/* أيقونات التواصل */
.footer-social-links {
    justify-content: flex-start;
}

/* تباعد الأيقونة عن النص في الاتصال */
.footer-contact-info li i {
    margin-left: 10px;
    margin-right: 0;
}


/* أنا أزلت أي حدود أو خلفيات قد تسبب المستطيل الأبيض */
.footer-logo-wrapper {
    background: transparent !important;
    border: none !important;
    display: block;
    line-height: 0; /* لمنع أي مسافات إضافية تحت الصورة */
}

.footer-custom-logo, .footer-main-logo-filtered {
    max-width: 220px;
    height: auto;
    display: inline-block;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* أنا قمت بتعطيل الفلتر مؤقتاً للتأكد من ظهور الصورة الأصلية */
.footer-main-logo-filtered {
    filter: brightness(0) invert(1); 
}




/* تنسيق الجريد (Feature Grid) */
.category-feature-grid .main-post-card {
    min-height: 420px; /* ارتفاع المقال الكبير */
}

.category-feature-grid .small-post-card {
    height: 200px; /* ارتفاع المقالات الصغيرة */
}

/* تأثير التظليل الأسود فوق الصور لتسهيل القراءة */
.post-overlay, .post-overlay-small {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    transition: all 0.3s ease;
}

.main-post-card:hover .post-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 100%);
}

.bg-gold {
    background-color: #f6ab2f !important;
    color: #fff;
}

.border-gold-bottom {
    border-bottom: 4px solid #f6ab2f !important;
    width: fit-content;
}

/* ضبط الصور لتغطي المساحة بالكامل */
.object-fit-cover {
    object-fit: cover;
}

.w-fit-content {
    width: fit-content;
}


/* تنسيق البيانات فوق الصورة */
.post-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    transition: all 0.3s ease;
    text-align: right;
}

.post-overlay-small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
    text-align: right;
}

/* الأيقونة الرمادية */
.grey-site-icon {
    width: 14px;
    height: 14px;
    filter: grayscale(100%) brightness(0.8); /* تحويل الأيقونة للون رمادي */
    opacity: 0.7;
}

.text-gold {
    color: #f6ab2f !important;
}

.x-small {
    font-size: 10px;
}

.meta-sep {
    color: rgba(255,255,255,0.3);
}

.object-fit-cover {
    object-fit: cover;
}























/* تنسيق شريط العنوان الممتد */
.full-width-header-bar {
    background-color: #222222; /* اللون البني الداكن أو الأسود */
    border-bottom: 4px solid #f6ab2f; /* الخط الذهبي */
    width: 100%;
}
.header-box-styled {
    padding: 12px 0;
}
.header-icon-fix {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
    display: inline-block !important;
}
.header-text-white-style {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 800;
}
.gold-dot-fix {
    width: 12px; height: 12px; background: #f6ab2f; display: block;
}

/* تنسيق إطار المقالات */
.main-articles-border-box {
    border: 2px solid #c9c6c6; /* الإطار البني */
    background-color: #ffffff;
    border-radius: 5px;
}

/* تقسيم 8 مقالات */
.custom-col-8 {
    flex: 0 0 auto;
    width: 100%;
}
/* التنسيق الأساسي لكل الأعمدة */
.custom-col-8 {
    padding: 5px; /* مسافة صغيرة جداً بين الكروت */
    box-sizing: border-box;
}

/* الشاشات الكبيرة جداً (8 مقالات) */
@media (min-width: 1200px) {
    .custom-col-8 { 
        flex: 0 0 12.5%; 
        max-width: 12.5%; 
    }
}

/* أجهزة التابلت (4 مقالات في السطر) */
@media (max-width: 1199px) and (min-width: 768px) {
    .custom-col-8 { 
        flex: 0 0 25%; 
        max-width: 25%; 
    }
}

/* أجهزة التابلت الصغيرة والموبايل العريض (3 مقالات) */
@media (max-width: 767px) and (min-width: 481px) {
    .custom-col-8 { 
        flex: 0 0 33.33%; 
        max-width: 33.33%; 
    }
}

/* الجوال (مقالتان في السطر - الأفضل للقراءة) */
@media (max-width: 480px) {
    .custom-col-8 { 
        flex: 0 0 50%; 
        max-width: 50%; 
    }
}

/* تعديل حجم الخط للعنوان في الجوال ليناسب المساحة */
@media (max-width: 575px) {
    .article-title-small {
        font-size: 0.75rem !important;
        height: 35px; /* توحيد الارتفاع لمنع التداخل */
        overflow: hidden;
    }
    .header-text-white-style {
        font-size: 1rem !important;
    }
    .header-icon-fix {
        width: 20px !important;
        height: 20px !important;
    }
}

/* تنسيق الكروت والنصوص */
.article-card-fix {
    transition: transform 0.3s ease;
    padding: 5px;
}
.article-card-fix:hover {
    transform: translateY(-5px);
}
.article-img-wrapper {
    border-radius: 3px;
    overflow: hidden;
}
.article-title-small {
    color: #e6920b;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.7;
}
.article-meta-small {
    font-size: 13px;
    display: flex;
    flex-direction: column;
}
.author-gold-fix {
    color: #585856;
    font-weight: bold;
}
.date-gray-fix {
    color: #999;
}
.text-decoration-none { text-decoration: none !important; }









/* تنسيق شريط العنوان الممتد */
.l2-full-width-bar {
    background-color: #222222; /* نفس لون الشريط في loop1 */
    border-bottom: 4px solid #f6ab2f; /* الخط الذهبي */
    width: 100%;
}

.l2-header-styled-box {
    padding: 12px 0;
}

.l2-header-icon {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
    display: block !important;
}

.l2-header-title {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 800;
}

/* الإطار البني المحيط */
.l2-main-border-box {
    border: 2px solid #c5c3c3;
    background-color: #9c9b9b27;
}

/* أبعاد الصور بنمط اليوتيوب (16:9) */
.youtube-ratio {
    aspect-ratio: 16 / 9; /* يضمن أن العرض أكبر من الطول دائماً */
    object-fit: cover;
    height: auto !important;
}

.youtube-ratio-small {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    height: auto !important;
}

/* تراكب النصوص فوق الفيديو */
.l2-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    text-align: right;
}

.l2-v-title { font-size: 1.2rem; font-weight: bold; text-shadow: 1px 1px 3px #000; }
.l2-v-title-small { font-size: 0.8rem; font-weight: bold; line-height: 1.2; }
.l2-v-author { color: #f6ab2f; font-size: 11px; font-weight: bold; }

/* أيقونة التشغيل */
.l2-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(100, 31, 19, 0.85);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f6ab2f;
    transition: 0.3s ease;
}

.big-play { width: 55px; height: 55px; font-size: 22px; }
.small-play { width: 32px; height: 32px; font-size: 11px; }

.l2-video-card:hover { transform: scale(1.02); transition: 0.3s; }
.l2-video-card:hover .l2-play-btn { background: #f6ab2f; color: #000; }








/* تنسيق حاوية العنوان */
.l4-title-container {
    border-bottom: 2px solid #f6ab2f; /* خط بني طويل تحت العنوان */
    position: relative;
}

.l4-title-box {
    background-color: #222222; /* الحاوية البنية للعنوان */
    width: 100%;
    display: inline-block;
    padding: 6px 15px;
    position: relative;
    margin-bottom: -2px; /* لتلتصق بالخط السفلي */
}

.l4-title-text {
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

/* الخط الفاصل العمودي بين الأقسام */
@media (min-width: 992px) {
    .border-left-divider {
        border-left: 1px solid #e0e0e0; /* خط رمادي فاتح فاصل */
    }
}

/* تنسيق المقالات العمودية */
.l4-post-thumb img {
    width: 85px;
    height: 65px;
    transition: transform 0.3s ease;
}

.l4-post-entry:hover img {
    transform: scale(1.05);
}

.border-bottom-light {
    border-bottom: 1px solid #f0f0f0;
}

.l4-post-entry:last-child {
    border-bottom: none;
}

.l4-entry-title {
    font-size: 0.9rem;
    color: #222;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s;
}

.l4-post-entry:hover .l4-entry-title {
    color: #f6ab2f; /* يتغير للذهبي عند التمرير */
}

.l4-entry-meta {
    font-size: 11px;
    color: #888;
}

/* تحسينات للجوال */
@media (max-width: 991px) {
    .border-left-divider {
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 20px;
    }
}


/* تنسيق الأيقونة */
.l4-nav-icon {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    object-fit: contain;
    /* i am قمت بإزالة الفلتر للتأكد من ظهور الألوان الأصلية للأيقونة */
}

/* في حال عدم وجود أيقونة */
.l4-fallback-dot {
    width: 8px;
    height: 8px;
    background-color: #f6ab2f;
    border-radius: 50%;
    display: inline-block;
}

/* الصندوق البني */
.l4-title-box {
    background-color: #222222;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    min-height: 35px; /* ضمان ارتفاع ثابت */
}

.l4-title-text {
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

/* الخط الذهبي */
.l4-gold-line {
    width: 100%;
    height: 3px;
    background-color: #f6ab2f;
}


















    /* تنسيق موحد لضمان التساوي */
.lp-unified-section .h-100 {
    min-height: 380px; /* i am حددت ارتفاعاً أدنى لضمان التساوي البصري */
    display: flex;
    flex-direction: column;
}

.lp-col-header { background: #222222; border-radius: 2px 2px 0 0; }
.lp-col-title { color: #fff !important; font-size: 0.95rem; font-weight: 700; }
.lp-gold-divider { height: 3px; background: #f6ab2f; width: 100%; }

.lp-post-img img { width: 65px; height: 50px; }
.lp-post-title { font-size: 0.85rem; color: #222; font-weight: 700; line-height: 1.3; }
.lp-post-date { font-size: 10px; color: #999; }
.border-bottom-faint { border-bottom: 1px solid #f5f5f5; }

/* ويدجت الصلاة */
.prayer-header-box { background: #222222; border-bottom: 3px solid #f6ab2f; }
.prayer-times-body .time-row span { font-weight: bold; color: #555; font-size: 0.9rem; }
.prayer-times-body .time-row b { color: #222222; }















/* --- 1. الحاوية الزجاجية الرئيسية --- */
/* --- تصميم عنوان الحاوية (Loop 3 Style) --- */
/* --- تصميم عنوان الحاوية (Loop 3 Style) --- */
.l5-loop3-header {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
}

.l5-loop3-header .l5-title {
    display: inline-flex;
    align-items: center;
    background: #222222; /* لون الهوية البني */
    color: #fff;
    margin: 0;
    padding: 10px 25px;
    font-size: 1.15rem;
    font-weight: 900;
    position: relative;
    border-radius: 5px 5px 0 0;
    z-index: 3;
}



/* --- الخط الذهبي الممتد أسفل العنوان --- */
.l5-loop3-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px; /* سمك الخط الذهبي */
    background: #f6ab2f; /* اللون الذهبي */
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- الحاوية الزجاجية (تم تعديل الهامش العلوي) --- */
.l5-glass-container {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none; /* إزالة الحدود العلوية لأن الخط الذهبي يحل محلها */
    border-radius: 0 0 12px 12px;
    padding-top: 20px !important; /* مسافة إضافية أسفل الخط الذهبي */
}

/* تحسين وضوح الخطوط الداخلية */
.border-bottom-faint {
    border-bottom: 2px solid rgba(100, 31, 19, 0.15);
    margin-bottom: 15px;
}



















/* الحاوية الخارجية للسلايدر */
.l6-full-slider {
    width: 100%;
    height: 80px !important;
    background: #fff;
    border-bottom: 3px solid #f6ab2f; /* الخط الذهبي */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 999;
}

/* مسار الحركة - أنيميشن ناعم */
.l6-ticker-track {
    display: flex;
    width: max-content;
    animation: scrollL6 40s linear infinite;
}

.l6-full-slider:hover .l6-ticker-track {
    animation-play-state: paused; /* يتوقف عند تمرير الماوس */
}

/* العنصر الفردي */
.l6-item {
    display: flex;
    align-items: center;
    padding: 0 30px;
    height: 80px;
    border-left: 1px solid #d8d3d3;
    white-space: nowrap;
}

.l6-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

/* الصورة الدائرية */
.l6-img-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #a37e06;
    flex-shrink: 0;
}

.l6-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* النصوص */
.l6-text-group {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.l6-cat-tag {
    font-size: 10px;
    color: #f6ab2f;
    font-weight: bold;
    margin-bottom: 2px;
}

.l6-post-title {
    font-size: 0.9rem;
    color: #222;
    font-weight: 800;
    margin: 0;
}

/* حركة السلايدر */
@keyframes scrollL6 {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } /* اتجاه RTL */
}

























/* --- تصميم Loop 7 الحديث --- */

/* الحاوية العامة لكل عمود */
.l7-column-wrapper {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

/* العنوان الصغير لكل حاوية */
.l7-mini-header {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px !important;
    border-bottom: 2px solid rgba(100, 31, 19, 0.05);
}

.l7-mini-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* النقطة الذهبية النابضة بجانب العنوان */
.l7-mini-title::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #f6ab2f;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #f6ab2f;
}

/* البطاقة المصغرة الحديثة */
.l7-mini-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 15px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(228, 206, 11, 0.03);
    position: relative;
    overflow: hidden;
}

.l7-mini-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(100, 31, 19, 0.1);
    border-color: rgba(187, 186, 185, 0.3);
}

/* تنسيق الصورة (مربعة بحواف دائرية كبيرة) */
.l7-mini-img-box {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.l7-mini-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.l7-mini-card:hover .l7-mini-img-box img {
    transform: scale(1.15);
}

/* النصوص والمعلومات */
.l7-mini-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.l7-mini-post-title {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 800;
    line-height: 1.4;
    transition: color 0.3s;
}

.l7-mini-card:hover .l7-mini-post-title {
    color: #f6ab2f; /* لون الهوية عند التمرير */
}

/* التاريخ وتصنيف صغير */
.l7-mini-date {
    font-size: 11px;
    color: #f6ab2f;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

.l7-mini-date::after {
    content: "•";
    color: #f6ab2f;
}

/* إضافة لمسة فنية (خلفية مرقمة باهتة خلف البطاقة) */
.l7-column-wrapper {
    position: relative;
    z-index: 1;
}

/* تأثير التدرج عند التمرير على الحاوية كاملة */
.l7-column-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(246, 171, 47, 0.05) 0%, rgba(100, 31, 19, 0.05) 100%);
    z-index: -1;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s;
}

.col-lg-4:hover .l7-column-wrapper::before {
    opacity: 1;
}
/* تأكد من إضافة هذا التنسيق لظهور العنوان */
/* تنسيق الحاوية السوداء للعناوين */
.l7-mini-header {
    display: flex; /* تغيير لـ flex لضمان محاذاة العناصر داخله */
    align-items: center;
    width: 100%;
    height: 45px; /* ارتفاع ثابت وأنيق */
    margin-bottom: 20px;
    padding: 0 15px; /* مسافة داخلية للكتابة */
    background: #222222;
    border-bottom: 3px solid #f6ab2f; /* الخط الذهبي */
    border-radius: 5px 5px 0 0; /* انحناء بسيط من الأعلى */
    position: relative;
}

/* تنسيق النص (الكتابة) */
.l7-mini-title {
    color: #ffffff !important; /* لون أبيض ناصع للتباين مع الأسود */
    font-size: 1.1rem !important; /* حجم خط مريح للعين */
    font-weight: 800 !important; /* خط عريض لإبراز العنوان */
    margin: 0;
    font-family: 'Cairo', sans-serif; /* يفضل استخدام خط كعربي حديث مثل Cairo */
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* ظل خفيف جداً لزيادة الوضوح */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* إضافة لمسة احترافية (مربع ذهبي صغير قبل النص) */
.l7-mini-title::before {
    content: "";
    width: 8px;
    height: 18px;
    background: #f6ab2f;
    display: inline-block;
    border-radius: 2px;
}
/* النقطة الذهبية قبل العنوان لزيادة الجاذبية */
.l7-mini-title::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #f6ab2f;
    border-radius: 50%;
    margin-left: 10px;
    display: inline-block;
}












/* =========================================
   تنسيق صفحة الأرشيف (إصدار i am المطور)
   ========================================= */
/* i am: تنسيق ترويسة القسم */
.archive-header {
    border-right: 6px solid #f6ab2f; /* الخط الذهبي جهة اليمين */
    border-radius: 0 !important;
}

.text-gold { color: #f6ab2f !important; }

/* i am: بلوك المقال الأفقي */
.mag-horizontal-block {
    height: 200px; /* ارتفاع ثابت متناسق */
    border-radius: 0 !important;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mag-horizontal-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* i am: صندوق الصورة */
.post-img-box {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-img-box img {
    transition: transform 0.5s ease;
}

.mag-horizontal-block:hover .post-img-box img {
    transform: scale(1.1); /* تأثير الزوم عند التمرير */
}

/* i am: عمود المشاركة الجانبي */
.share-column-sidebar {
    width: 50px;
    background: #f6ab2f;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    gap: 15px;
    border-right: 1px solid #eee;
}

.share-column-sidebar a {
    color: #fffdfd;
    font-size: 14px;
    transition: 0.3s;
}

.share-column-sidebar a:hover { color: #aaa9a8; }

.share-label {
    writing-mode: vertical-rl; /* نص عمودي */
    font-size: 11px;
    color: #ccc;
    font-weight: bold;
    letter-spacing: 1px;
}

/* i am: العناوين */
.post-title-main a {
    transition: color 0.3s;
}

.post-title-main a:hover {
    color: #f6ab2f !important;
}

/* i am: أرقام الصفحات */
.pagination .page-numbers {
    padding: 8px 15px;
    background: #fff;
    margin: 0 3px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.pagination .page-numbers.current, 
.pagination .page-numbers:hover {
    background: #f6ab2f;
    color: #fff;
}

/* i am: التوافق مع الجوال */
@media (max-width: 768px) {
    .mag-horizontal-block { height: auto; }
    .section-body { flex-direction: column !important; }
    .post-img-box { width: 100%; height: 200px; }
    .share-column-sidebar { display: none !important; }
}


/* i am: التنسيق الافتراضي للمقالة (قبل التمرير) */
.mag-horizontal-block {
    background: #ffffff;
    border: 1px solid #f0f0f0; /* إطار خفيف جداً */
    border-radius: 0 !important; /* حواف حادة كما طلبت */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* حركة انسيابية */
    position: relative;
    overflow: hidden;
}

/* i am: التأثير عند تمرير الماوس على المقالة بالكامل */
.mag-horizontal-block:hover {
    transform: translateY(-8px); /* رفع المقالة قليلاً للأعلى */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important; /* ظل ناعم وعميق */
    border-color: #f6ab2f; /* تغيير لون الإطار للذهبي */
}

/* i am: تأثير الصورة عند التمرير */
.post-img-box img {
    transition: transform 0.6s ease;
}

.mag-horizontal-block:hover .post-img-box img {
    transform: scale(1.1); /* تكبير الصورة */
    filter: brightness(0.9); /* تقليل السطوع قليلاً */
}

/* i am: تغيير لون العنوان عند التمرير */
.mag-horizontal-block:hover .post-title-main a {
    color: #f6ab2f !important; /* تحول العنوان للون الذهبي */
}

/* i am: إضافة خط ذهبي سفلي يظهر عند التمرير */
.mag-horizontal-block::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: #f6ab2f;
    transition: width 0.4s ease;
}

.mag-horizontal-block:hover::after {
    width: 100%; /* تمدد الخط الذهبي من اليمين لليسار */
}

/* i am: تحريك أيقونة التقويم عند التمرير */
.mag-horizontal-block:hover .post-meta-small i {
    transform: rotate(15deg);
    transition: transform 0.3s ease;
}


/* i am: ضبط اتجاه الصفحة العام */
.category-posts-wrapper {
    direction: rtl;
    text-align: right;
}




/* i am: التأكد من محاذاة النص لليمين بدلاً من اليسار */
.post-text-content {
    text-align: right !important; /* تحويل الكتابة لليمين */
    direction: rtl; /* ضمان ترتيب الحروف والرموز بشكل صحيح */
    background-color:#f5f3f313;
    border-right: 1px solid #5857576b;
    
}

/* i am: إذا كنت تستخدم بوتستراب 5، تأكد من حذف التعديل القديم واستخدام هذا */
.text-end {
    text-align: right !important;
}

/* i am: ضبط العناوين والفقرات */
.post-title-main, 
.post-excerpt-text {
    text-align: right !important;
    display: block;
    width: 100%;
}








/* i am: ترويسة الأرشيف */
.archive-header {
    border-right: 6px solid #f6ab2f !important; /* خط ذهبي عريض جهة اليمين */
    border-radius: 0 !important;
}

.text-gold { color: #f6ab2f !important; }

/* i am: بلوك المقال الأفقي */
.mag-horizontal-block {
    height: 180px; /* ارتفاع ثابت متناسق */
    border-radius: 0 !important;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

/* التأثير عند تمرير الماوس على المقالة */
.mag-horizontal-block:hover {
    transform: translateX(-5px); /* إزاحة خفيفة لليسار لإبراز جهة اليمين */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border-right: 5px solid #f6ab2f; /* يظهر الخط الذهبي عند التمرير */
}

/* i am: تنسيق الصورة والزوم */
.post-img-box {
    width: 260px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-img-box img {
    transition: transform 0.6s ease;
    border-radius: 0 !important;
}

.mag-horizontal-block:hover .post-img-box img {
    transform: scale(1.1);
}

/* i am: النصوص والعناوين */
.post-title-main a {
    color: #222 !important;
    font-weight: 800 !important;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.mag-horizontal-block:hover .post-title-main a {
    color: #f6ab2f !important;
}

.post-meta-small {
    color: #f6ab2f;
    font-size: 11px;
    font-weight: bold;
}

/* i am: عمود المشاركة الجانبي */
.share-column-sidebar {
    width: 45px;
    background: #313030;
    border-right: 1px solid #eee;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.share-label {
    writing-mode: vertical-rl;
    font-size: 10px;
    color: #f6ab2f;
    font-weight: bold;
    letter-spacing: 1px;
}

/* i am: للجوال */
@media (max-width: 768px) {
    .mag-horizontal-block { height: auto; }
    .section-body { flex-direction: column !important; }
    .post-img-box { width: 100%; height: 200px; }
}




/* ==========================================================================
   i am: التنسيق الكامل لصفحة أرشيف المجلة (CSS)
   ========================================================================== */

/* 1. الحاوية العامة وترويسة الصفحة */
.archive-header {
    background-color: #ffffff;
    border-radius: 0 !important; /* حواف حادة تماماً */
    border-right: 6px solid #f6ab2f !important; /* الخط الذهبي المميز جهة اليمين */
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.archive-title {
    font-size: 2rem;
    color: #222;
    margin: 0;
}

/* 2. تنسيق قوائم الاختيار (Dropdowns) */
.archive-header .form-select {
    border-radius: 0 !important;
    border: 1px solid #eee !important;
    background-color: #f9f9f9;
    font-weight: bold;
    color: #555;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-header .form-select:focus {
    background-color: #fff !important;
    border-color: #f6ab2f !important;
    box-shadow: none !important;
    outline: none;
}

/* 3. حاوية المقال الأفقي (The Card) */
.mag-horizontal-block {
    background-color: #ffffff;
    border-radius: 0 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    margin-top: 35px; /* مسافة لبروز الوسم الذهبي */
}

/* تأثير تمرير الماوس على الحاوية */
.mag-horizontal-block:hover {
    transform: translateX(-8px); /* إزاحة خفيفة لليسار لإبراز حافة اليمين الذهبية */
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

/* 4. وسم التصنيف العلوي (Category Badge) */
.category-badge-top {
    position: absolute;
    top: -15px;
    right: 20px;
    z-index: 10;
}

.category-badge-top a {
    display: inline-block;
    background-color: #f6ab2f !important; /* اللون الذهبي */
    color: #ffffff !important;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    border-radius: 0 !important; /* حواف حادة */
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-badge-top a:hover {
    background-color: #222 !important; /* يتحول للأسود عند المرور */
    transform: translateY(-3px);
}

/* 5. تنسيق الصورة وتأثير الزووم */
.post-img-box {
    background-color: #f0f0f0;
    overflow: hidden;
}

.slider-img {
    transition: transform 0.8s ease;
    border-radius: 0 !important;
}

.mag-horizontal-block:hover .slider-img {
    transform: scale(1.1); /* زووم هادئ للصورة */
}

/* 6. عناوين المقالات والنصوص */
.title-hover-link {
    transition: color 0.3s ease;
}

.mag-horizontal-block:hover .title-hover-link {
    color: #f6ab2f !important; /* العنوان يصبح ذهبياً عند تمرير الماوس على المقال */
}

.post-excerpt-text {
    line-height: 1.7;
    color: #666;
    font-size: 0.95rem;
}

/* 7. أيقونات الميتا (التاريخ) */
.post-meta-small {
    font-weight: 700;
}

.post-meta-small i {
    color: #f6ab2f; /* أيقونة التقويم ذهبية */
}

/* 8. تنسيق أرقام الصفحات (Pagination) */
.pagination-nav .page-numbers {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #eee;
    border-radius: 0 !important;
    transition: 0.3s;
}

.pagination-nav .page-numbers.current,
.pagination-nav .page-numbers:hover {
    background-color: #f6ab2f !important;
    color: #ffffff !important;
    border-color: #f6ab2f !important;
}



/* تنسيق خاص للجوال */
@media (max-width: 768px) {
    /* المقالات تتحول من أفقي إلى عمودي */
    .mag-horizontal-block {
        flex-direction: column !important;
        margin-top: 20px;
    }

    /* الصورة تأخذ العرض الكامل */
    .post-img-box {
        width: 100% !important;
        min-height: 200px;
    }

    /* النصوص تحت الصورة وبمحاذاة وسطية */
    .post-text-content {
        padding: 15px !important;
        text-align: center !important;
    }

    /* العنوان أصغر قليلاً */
    .archive-title {
        font-size: 1.5rem;
    }

    /* وسوم التصنيف تتحرك للأعلى بشكل مناسب */
    .category-badge-top {
        position: static !important;
        margin-bottom: 10px;
        text-align: center;
    }
}













/* i am: تنسيقات الصفحات الثابتة */
.page-container {
    border-radius: 0 !important; /* الحواف الحادة */
}

.text-gold { color: #f6ab2f !important; }

.page-main-title {
    position: relative;
    display: inline-block;
}

/* i am: تحسين مظهر النصوص داخل الصفحات */
.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2, .entry-content h3 {
    color: #222;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-right: 15px;
    border-right: 4px solid #f6ab2f; /* الخط الذهبي الجانبي للعناوين الفرعية */
}

/* تنسيق القوائم داخل المحتوى */
.entry-content ul {
    list-style: none;
    padding-right: 20px;
}

.entry-content ul li::before {
    content: "\f054"; /* أيقونة سهم FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #f6ab2f;
    margin-left: 10px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .page-main-title { font-size: 1.8rem !important; }
    .page-content { padding: 25px !important; }
}














/* i am: تنسيقات قسم التعليقات */
.comment-list {
    margin-bottom: 3rem;
}

.comment-list .comment {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    list-style: none;
}

.comment-list .vcard img {
    border-radius: 0 !important; /* حواف حادة لصور المعلقين */
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-left: 15px;
}

.comment-list .comment-metadata {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.comment-list .comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.comment-reply-link {
    display: inline-block;
    font-size: 12px;
    color: #f6ab2f;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

/* تنسيق النموذج */
#commentform input, #commentform textarea {
    border: 1px solid #ddd;
    background-color: #fafafa;
}

#commentform input:focus, #commentform textarea:focus {
    border-color: #f6ab2f;
    box-shadow: none;
    background-color: #fff;
}

.btn-gold {
    background-color: #f6ab2f !important;
}

.btn-gold:hover {
    background-color: #4a4e52 !important;
}







/* i am: تنسيق الصور داخل محتوى المقال */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0 !important; /* حواف حادة */
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.post-navigation a {
    color: #444;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.post-navigation a:hover {
    color: #f6ab2f;
}









/* i am: تنسيق المقالات ذات الصلة */
.related-post-card {
    transition: 0.3s;
    border-radius: 0 !important;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.related-img-hover {
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-img-hover {
    transform: scale(1.1);
}

.small-title-link {
    line-height: 1.5;
    display: block;
    font-size: 0.95rem;
}

.small-title-link:hover {
    color: #f6ab2f !important;
}











/* تنسيق صندوق الناشر تحت الشعار */
.publisher-info-box {
    border-right: 3px solid var(--mag-gold); /* خط ذهبي جانبي يربط المعلومات بالشعار */
    padding-right: 15px;
    margin-right: 5px;
}

/* تنسيق البحث في المنتصف */
.search-form-custom {
    border-radius: 0 !important;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* --- تحسين هيدر الإعلان الاحترافي --- */

/* --- i am: البنير الاحترافي بالإطار الذهبي والتمدد الذكي --- */

.header-ads-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* يعتمد على ارتفاع الصف (Row) */
    overflow: hidden;
    display: flex;
    /* إضافة الإطار الذهبي الأنيق */
    border: 2px solid var(--mag-gold); 
    box-sizing: border-box;
    background-color: #fff;
    transition: var(--transition);
}

.header-ads-wrapper a {
    width: 100%;
    height: 100%;
    display: flex;
    line-height: 0;
}

.header-ads-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* ملء المساحة بذكاء دون تشويه */
    border-radius: 0 !important;
    tran.header-ads-wrapper {    position: fixed;    top: 100px;    left: 0;    max-width: 250px; /* أقصى عرض */    width: 100%;    height: 100vh; /* ياخذ طول الشاشة */    display: flex;    justify-content: center;    align-items: center;    border: 2px solid var(--mag-gold);    background: #fff;    overflow: hidden;}.header-ads-wrapper img {    height: 100%;       /* يتحكم فيه الارتفاع */    width: auto;        /* العرض يتغير تلقائياً */    max-width: 100%;    /* ما يفوتش الحاوية */    object-fit: contain; /* يحافظ على الشكل */}sition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* تأثير اللمعة (Flash) عند التمرير */
.header-ads-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.header-ads-wrapper:hover::after {
    left: 150%;
    transition: all 0.8s ease;
}

/* تأثير عند تمرير الماوس على الإطار والصورة */
.header-ads-wrapper:hover {
    box-shadow: 0 0 15px rgba(246, 171, 47, 0.4); /* توهج ذهبي خفيف */
    border-color: #222; /* يتغير لون الإطار للأسود عند التمرير لجمالية أكثر */
}

.header-ads-wrapper:hover img {
    transform: scale(1.05); /* زووم خفيف جداً */
    filter: brightness(1.1);
}

/* --- ضبط التجاوب --- */

/* إزالة هوامش Bootstrap الجانبية ليلتصق الإطار بالحواف */
.main-header .col-md-5 {
    padding-left: 0 !important;
    padding-right: 5px !important;
}

/* --- إصلاح توافق البانر مع الجوال --- */

@media (max-width: 767px) {
    /* i am: إلغاء الارتفاع الثابت ومنع التمدد خارج الشاشة */
    .header-ads-wrapper {
        height: auto !important; /* السماح للبانر بأخذ ارتفاعه الطبيعي */
        max-width: 100% !important; /* منع الخروج عن واجهة الجوال */
        margin: 15px 0;
        border-width: 1px;
        display: block; /* تغيير من flex لضمان الثبات */
    }

    .header-ads-wrapper a {
        width: 100%;
        height: auto;
        display: block;
    }

    .header-ads-wrapper img {
        width: 100% !important;
        height: auto !important; /* جعل الارتفاع يتناسب مع العرض تلقائياً */
        object-fit: contain !important; /* تغيير من cover لضمان ظهور كامل الإعلان */
        max-width: 100% !important;
    }

    /* إلغاء تأثير اللمعة في الجوال لتسريع التصفح ومنع مشاكل التموضع */
    .header-ads-wrapper::after {
        display: none !important;
    }

    /* ضمان أن العمود نفسه لا يملك هوامش تسبب التمدد */
    .main-header .col-md-5 {
        padding-left: 15px !important; 
        padding-right: 15px !important;
        overflow: hidden; /* قص أي زيادة تخرج عن العمود */
    }
}






/* --- إصلاح تمدد البانر في الجوال --- */
@media (max-width: 767px) {
    .header-ads-wrapper {
        height: auto !important; /* السماح بالارتفاع التلقائي */
        max-width: 100% !important;
        overflow: hidden;
    }
    .header-ads-wrapper img {
        height: auto !important; /* منع شد الصورة عمودياً */
        object-fit: contain !important; /* ضمان رؤية كامل الإعلان */
    }
    /* إلغاء التمدد القسري للصف في الجوال */
    .row.d-flex.align-items-stretch {
        display: block !important;
    }
}

/* --- إصلاح ظهور أقسام قائمة الجوال عند الضغط --- */
@media (max-width: 991px) {
    /* إجبار Bootstrap على إظهار الحاوية عند تفعيل الـ Collapse */
    .collapse.navbar-collapse.show {
        display: block !important;
        background-color: #222 !important; /* لون خلفية القائمة */
        padding: 15px;
    }
    .main-menu-ul {
        flex-direction: column !important;
        display: block !important;
    }
    .main-menu-ul li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-menu-ul li a {
        display: block !important;
        padding: 12px 0 !important;
    }
}



.main-header {    width: 100%;    background: #fff; /* أو اللون ديالك */    margin: 0;    padding: 0;}



#lastIssueSlider {
    overflow: hidden;
}

#lastIssueSlider .carousel-item img {
    height: 260px;
    object-fit: cover;
    transition: transform 5s ease;
}

/* Zoom احترافي أثناء الحركة */
#lastIssueSlider .carousel-item.active img {
    transform: scale(1.08);
}

/* caption */
#lastIssueSlider .carousel-caption {
    right: 0;
    left: 0;
    bottom: 0;
    text-align: center;
}










.smart-img {
    object-fit: cover;
    transition: transform .4s ease;
}

.post-featured-image:hover .smart-img {
    transform: scale(1.03);
}





.cat-post-img {
    transition: transform .4s ease;
}

a:hover .cat-post-img {
    transform: scale(1.05);
}




.smart-img {
    object-fit: cover;
    transition: 0.3s ease;
}

.smart-img:hover {
    transform: scale(1.03);
}



.smart-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
}


.smart-thumb {
    transition: 0.2s ease;
}

.smart-thumb:hover {
    transform: scale(1.05);
}
img {
    object-fit: cover;
}


.widget-clean-img {
    object-fit: cover;
    width: 100%;
    height: auto;
    transition: .3s ease;
}

.widget-clean-img:hover {
    transform: scale(1.03);
}