﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}


body {
    background: #fff;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

a {
    text-decoration: none; /* لإزالة الخط تحت الرابط */
    color: inherit;
}

.container {
    width: 85%;
    margin: 0 auto
}

hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 5px 0
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* ================= 1. Social ICON ========================== */
.social-icons {
    display: flex;
    gap: 10px;
}

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background-color: #ddd;
        font-weight: 700; /* = bold (الافتراضي) */
        color: #333;
        text-decoration: none;
        font-size: 16px;
    }

        .social-icons a.facebook {
            background-color: #3b5998;
            color: #fff;
        }
        /* أزرق الفيسبوك */
        .social-icons a.twitter {
            background-color: #55acee;
            color: #fff;
        }
        /* أزرق تويتر */
        .social-icons a.instagram {
            background-color: #e1306c;
            color: #fff;
        }
        /* وردي انستجرام */

        .social-icons a:hover {
            opacity: 0.8;
        }


/* ================= 1. Header ========================== */
.header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* يسمح بانتظام العناصر على عدة أسطر عند ضيق المساحة */
    padding: 8px 0;
    gap: 10px; /* مسافة مرنة بين العناصر */
}

.header .social-icons img {
    width: 24px;
    margin-left: 8px;
    cursor: pointer
}

.header .info {
    font-size: .9rem
}

    .header .info span, .header .info a {
        margin-left: 12px;
        color: #333;
        text-decoration: none
    }

.header .ads {
    flex: 1; /* يحتل المساحة المتبقية */
    margin: 0; /* إزالة الهوامش الثابتة */
    height: auto; /* يتكيف مع محتواه */
    max-height: 100px; /* لكن لا يزيد عن 100px */
    display: flex;
    align-items: center;
    justify-content: center;
}
    .header .ads img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.header .logo img {
    height: 60px;
    margin: 0; /* إزالة الهوامش الثابتة */
}

.header .row:nth-of-type(2) {
    gap: 20px
}

/* ================= 2. Navbar ========================= */

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

nav {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

    nav ul {
        list-style: none;
        display: flex;
        gap: 15px;
        margin: 0;
        padding: 0;
    }

        nav ul li a {
            text-decoration: none;
            color: #333;
            font-weight: 700; /* = bold (الافتراضي) */
            transition: color 0.3s ease;
            font-size: 12px;
        }

            nav ul li a:hover {
                color: #b13446;
            }

    nav .search {
        margin-left: 20px;
        flex: 0 0 auto;
    }

        nav .search input {
            width: 200px;
            padding: 6px;
            font-size: 1rem;
        }


/* ================= 3. Breaking-News Bar ============== */
.breaknews {
    display: flex;
    align-items: center;
    background: #000;
    color: #fff;
    padding-inline-start: 0;
    padding-inline-end: 10px;
    overflow: hidden;
    justify-content: space-between
}

    .breaknews .label {
        background: #d32f2f;
        color: #fff;
        font-weight: 700; /* = bold (الافتراضي) */
        align-self: stretch;
        display: flex;
        align-items: center;
        padding: 0 12px;
        flex-shrink: 0;
        margin-inline-end: 15px
    }

    .breaknews .items {
        display: flex;
        gap: 20px;
        margin-inline-end: 15px;
        flex: 1;
        align-items: center;
        overflow: hidden;
        white-space: nowrap;
    }

    .breaknews .item {
        display: flex;
        align-items: center
    }

        .breaknews .item img {
            width: 50px;
            height: 50px;
            object-fit: cover;
            margin-left: 8px;
        }

        .breaknews .item .title {
            white-space: nowrap;
            margin-left: 20px;
            text-align: right;
        }

            .breaknews .item .title a {
                font-weight: 700;
                font-size: 16px; /*big title size */
                color: #fff; /*white*/
            }

            .breaknews .item .title a:hover {
                color: #b13446;
                transition: color 0.7s ease;
            }

    .breaknews .controls {
        display: flex;
        gap: 5px;
        flex-shrink: 0;
        justify-content: flex-end
    }

        .breaknews .controls button {
            background: #d32f2f;
            color: #fff;
            border: none;
            width: 32px;
            height: 32px;
            
            position: relative;
            padding: 0;
            transition: background .2s
        }

        .breaknews .controls .prev::before,
        .breaknews .controls .next::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 3px;
            height: 3px;
            border: 3px solid transparent;
            transform: translate(-50%,-50%) rotate(45deg)
        }

        .breaknews .controls .prev::before {
            border-left-color: #fff;
            border-bottom-color: #fff
        }

        .breaknews .controls .next::before {
            border-right-color: #fff;
            border-top-color: #fff
        }

        .breaknews .controls .prev:hover::before {
            border-left-color: #000;
            border-bottom-color: #000
        }

        .breaknews .controls .next:hover::before {
            border-right-color: #000;
            border-top-color: #000
        }

/* ================= 4. Content Columns (Hero) ========= */
.content {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    align-items: stretch;
    margin-top: 0
}
/* Main hero */
.main-article {
    flex: 2;
    display: flex;
    position: relative;
    overflow: hidden;
    padding: 0
}

    .main-article img {
        flex: 1;
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .main-article::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top,rgba(0,0,0,.6)0%,rgba(0,0,0,0)60%)
    }

    .main-article .overlay {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 50px;
        z-index: 2;
        color: #fff
    }

    .main-article .meta {
        font-size: .8rem;
        color: #ddd;
        margin-bottom: 15px
    }

        .main-article .meta .main-articleviews {
            font-size: .8rem;
            color: #ddd;
        }
        .main-article .meta .main-articledate {
            font-size: .8rem;
            color: #ddd;
        }

     


            .main-article .meta .section {
            background-color: #d32f2f; /* خلفية حمراء */
            color: #ffffff; /* نص أبيض */
            padding: 2px 6px;
            margin-inline-start: 8px;
            transition: background-color .35s ease, color .35s ease; /* انتقال سلس للخاصيتين */

        }

            .main-article .meta .section:hover {
                background: #000;
                color: #fff;
               
            }

    .main-article .main-article-link {
        margin: 5px 0;
        margin-bottom: 15px;
        transition: color 0.3s ease;
        text-align: right;
       
    }

    .main-article .main-article-link a{
        
        font-weight: 700;
        font-size: 16px; /*big title size */
        color: #fff; /*white*/
    }

        .main-article .main-article-link a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }

        .main-article .main-article-link .first-word {
            color: #b13446; /* الكلمة الأولى باللون الأحمر */
        }

    .main-article .text {
        margin: 0;
        text-align: right;
        font-size: 14px;
        line-height: 2;
        color: #fff;
    }

    .main-article img, .side-articles .item img {
        height: 80vh
    }

    
/* Side heroes */
.side-articles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px
}

    .side-articles .item {
        flex: 1 1 0;
        position: relative;
        overflow: hidden;
    }

        .side-articles .item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .35s ease, /* تكبير داخلي سلس */
            filter .35s ease; /* تحوّل إلى رمادي */
        }

        .side-articles .item::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(to top,rgba(0,0,0,.6)0%,rgba(0,0,0,0)60%)
        }

        .side-articles .item .overlay {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 10px;
            z-index: 2;
            color: #fff;
            font-size: .85rem
        }

            .side-articles .item .overlay .main-article-link {
                text-align: right;
            }


                .side-articles .item .overlay .main-article-link a {
                    font-weight: 700;
                    font-size: 14px; /*big title size */
                    color: #fff; /*white*/
                }

                .side-articles .item .overlay .main-article-link a:hover {
                    color: #b13446; /*red*/
                    transition: color 0.7s ease;
                }


            .side-articles .item .section {
                display: inline-block;
                margin-bottom: 4px;
                padding: 2px 6px;
                width: 50px;
                transition: background-color .35s ease, color .35s ease;
            }

        .side-articles .item .overlay .meta {
            display: flex;
            gap: 8px; /* مسافة بين التاريخ وأيقونة المشاهدة */
            align-items: center;
            margin-bottom: 4px; /* مسافة بسيطة أسفل الشارة */
            font-size: .8rem;
            color: #fff; /*white*/
        }

            .side-articles .item .overlay .meta .side-articles-views {
                /* تنسيق أيقونة المشاهدة */
                margin-left: 8px;
            }

            .side-articles .item .overlay .meta .side-articles-date {
                /* تنسيق أيقونة المشاهدة */
                margin-left: 8px;
            }

       



        .side-articles .item .section:hover {
            background: #000000; /* خلفية سوداء */
            color: #d32f2f; /* النص أحمر */
            
        }

        .side-articles .item:hover img {
            transform: scale(1.1); /* زوم داخلي 10٪ */
            filter: grayscale(100%) /* رمادي بالكامل */
            brightness(1.05); /* رفع خفيف للسطوع */
        }

       

/*        تفيير لون خلفية القسم حسب اسمه 
 القاعدة الأساسية العامة */

.section {
    color: #ffffff;
    padding: 6px 12px; /* زيادة padding لتكبير الخلفية */
    margin-inline-start: 8px;
    transition: background-color .35s ease, color .35s ease;
}

/* ألوان حسب الأقسام */
.section-sports {
    display: inline-block;
    color: #fff;
    font-size: .75rem;
    margin-bottom: 4px;
    text-align: center;
    padding: 4px 8px;
    width: 60px;
    transition: background-color .35s ease, color .35s ease;
    background: #2aa435;
}

   
    .section-sports:hover {
        background: #000000; /* خلفية سوداء */
        color: #d32f2f; /* النص أحمر */
    }
.section-economics {
    display: inline-block;
    color: #fff;
    font-size: .75rem;
    margin-bottom: 4px;
    text-align: center;
    padding: 4px 8px;
    width: 60px;
    transition: background-color .35s ease, color .35s ease;
    background: #2f71c1;
}

    .section-economics:hover {
        background: #000000; /* خلفية سوداء */
        color: #d32f2f; /* النص أحمر */
    }

.section-politics {
    display: inline-block;
    color: #fff;
    font-size: .75rem;
    margin-bottom: 4px;
    text-align: center;
    padding: 4px 8px;
    width: 60px;
    transition: background-color .35s ease, color .35s ease;
    background-color: #d32f2f; /* أحمر للسياسة */
}

    .section-politics:hover {
        background: #000000; /* خلفية سوداء */
        color: #d32f2f; /* النص أحمر */
    }

.section-technology {
    display: inline-block;
    color: #fff;
    font-size: .75rem;
    margin-bottom: 4px;
    text-align: center;
    padding: 4px 8px;
    width: 60px;
    transition: background-color .35s ease, color .35s ease;
    background-color: #673ab7;
}

    .section-technology:hover {
        background: #000000; /* خلفية سوداء */
        color: #d32f2f; /* النص أحمر */
    }


.section-travel {
    display: inline-block;
    color: #fff;
    font-size: .75rem;
    margin-bottom: 4px;
    text-align: center;
    padding: 4px 8px;
    width: 60px;
    transition: background-color .35s ease, color .35s ease;
    background-color: #B497BD;
}

    .section-travel:hover {
        background: #000000; /* خلفية سوداء */
        color: #d32f2f; /* النص أحمر */
    }

.section-entmt {
    position: absolute;
    top: 10px;
    right: 0;
    display: inline-block;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 700;
    color: #000;
    background-color: #ff9800;
    background-image: linear-gradient(#d32f2f, #d32f2f);
    background-repeat: no-repeat;
    background-size: 0% 100%; /* يبدأ 0% عرض واجتياز كامل الارتفاع */
    background-position: right center;
    transition: background-size .5s ease, color .5s ease; /* تأثير الحركة */
    z-index: 3;
}

    .section-entmt:hover {
        background-size: 100% 100%; /* توسيع خلفية القسم عند التفاعل */
        color: #fff; /* تغيير النص إلى اللون الأبيض عند التفاعل */
    }


.section-education {
    position: absolute;
    top: 10px;
    right: 0;
    display: inline-block;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 700;
    color: #000;
    background-color: #FFEB3B;
    background-image: linear-gradient(#d32f2f, #d32f2f);
    background-repeat: no-repeat;
    background-size: 0% 100%; /* يبدأ 0% عرض واجتياز كامل الارتفاع */
    background-position: right center;
    transition: background-size .5s ease, color .5s ease; /* تأثير الحركة */
    z-index: 3;
}

.section-education:hover {
    background-size: 100% 100%; /* توسيع خلفية القسم عند التفاعل */
    color: #fff; /* تغيير النص إلى اللون الأبيض عند التفاعل */
}


.section-celebrities {
    position: absolute;
    top: 10px;
    right: 0;
    display: inline-block;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 700;
    color: #000;
    background-color: #C2185B;
    background-image: linear-gradient(#d32f2f, #d32f2f);
    background-repeat: no-repeat;
    background-size: 0% 100%; /* يبدأ 0% عرض واجتياز كامل الارتفاع */
    background-position: right center;
    transition: background-size .5s ease, color .5s ease; /* تأثير الحركة */
    z-index: 3;
}

    .section-celebrities:hover {
        background-size: 100% 100%; /* توسيع خلفية القسم عند التفاعل */
        color: #fff; /* تغيير النص إلى اللون الأبيض عند التفاعل */
    }

.section-disasters {
    position: absolute;
    top: 10px;
    right: 0;
    display: inline-block;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 700;
    color: #000;
    background-color: #FF5722;
    background-image: linear-gradient(#d32f2f, #d32f2f);
    background-repeat: no-repeat;
    background-size: 0% 100%; /* يبدأ 0% عرض واجتياز كامل الارتفاع */
    background-position: right center;
    transition: background-size .5s ease, color .5s ease; /* تأثير الحركة */
    z-index: 3;
}

    .section-disasters:hover {
        background-size: 100% 100%; /* توسيع خلفية القسم عند التفاعل */
        color: #fff; /* تغيير النص إلى اللون الأبيض عند التفاعل */
    }

/* =====================================================
   =============  NEW TWO-COLUMN LAYOUT ================
   ===================================================== */
.news-section {
    margin-top: 40px
}

.news-two-column {
    display: flex;
    gap: 30px
}
/* ---- Main 70 % ---- */
.main-area {
    flex: 0 0 calc(70% - 15px); /* خصم نصف مسافة الـ gap */
}

/* Shared group styles */
.group {
    margin-bottom: 40px
}

.group-title {
    /* تنسيق عام للعنوان */
    display: inline-block; /* يظل عرضه بطول الكلمة */
    font-size: 1.25rem;
    margin-bottom: 20px; /* مسافة أسفل العنوان ككل */
    /* 1) خطّان أحمران */
    text-decoration-line: underline;
    text-decoration-style: double; /* خط مزدوج */
    text-decoration-color: #d32f2f; /* لون أحمر */
    /* 2) سمك الخط ومسافته عن النص (يدعمه معظم المتصفحات الحديثة) */
    text-decoration-thickness: 1px; /* سُمك كل خط */
    text-underline-offset: 10px; /* المسافة بين الخط والنص */
    font-weight: 700;
}


 

/* Group 1: أهم الأخبار */
.highlight-card {
    display: flex;
    gap: 20px;
    background: #252525;
    padding: 0;
    margin-bottom: 15px;
    height: 300px; /* ← لتثبيت ارتفاع البطاقة كلها بما فيها الصورة */
    overflow: hidden;
}


    .highlight-card img {
        flex: 0 0 40%;
        max-height: 300px;
        max-width: 400px;
        width: 100%; /* يجعل الصورة تملأ العرض المتاح */
        height: 100%; /* يضمن أن الصورة تملأ الارتفاع المحدد */
        object-fit: cover; /* يضمن أن الصورة تُقص لتناسب الإطار دون تمدد */
    }


.highlight-text {
    flex: 1;
    
 
}

    /* 1) نجعل .meta يستخدم flex لعرض العنصرين جنبًا */
    .highlight-text .meta {
        display: flex;
        gap: 20px; /* مسافة بين المشاهدات والتاريخ */
        margin-top: 30px; /* إذا أردت المسافة نفسها تحت العنوان */
        
    }

    .highlight-text .title { /* عنوان الخبر الرئيسي */
        margin-top: 20px; /* مسافة إضافية تحت الـ meta */
    }

        .highlight-text .title a { /* عنوان الخبر الرئيسي */
            text-align: right;
            font-weight: 700;
            font-size: 16px; /*big title size */
            color: #fff; /*white*/
          
        }

            .highlight-text .title a:hover { /* عنوان الخبر الرئيسي */
                color: #b13446; /*red*/
                transition: color 0.7s ease;
            }

    .highlight-text .summary { /* عنوان الخبر الرئيسي */
        margin-top: 20px; /* مسافة إضافية تحت الـ meta */
        text-align: right;
        font-size: 14px;
        line-height: 2;
        color: #fff;
    }

    .highlight-text .meta .views,
    .highlight-text .meta .author {
        font-size: .8rem;
        color: #fff;
    }
    /* البطاقات المصغّرة ---------------------------------- */
    .horizontal-mini-list .date { /* 🗓️ */
        display: block; /* تجعل التاريخ على سطر مستقل */
        margin-top: 20px; /* نزول خفيف عن الصورة */
    }


.horizontal-mini-list {
    display: flex;
    gap: 30px
}

    .horizontal-mini-list .mini {
        width: 25%;
        min-width: 120px;
        display: flex;
        flex-direction: column;
    }

    .horizontal-mini-list img {
        width: 100%;
        height: 150px;
        object-fit: cover; /* ← يجعل كل الصور تملأ الإطار بنفس الحجم، حتى لو قُصّ منها جزء */
    }


    .horizontal-mini-list .date {
        font-size: .8rem;
        color: #666;
        margin-top: 10px;
    }

    .horizontal-mini-list .title {
        text-align: right;
        margin-top: 10px;
    }

        .horizontal-mini-list .title a {
            font-weight: 700;
            font-size: 14px; /*big title size */
            color:#000; /*black*/
        }

        .horizontal-mini-list .title a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }

/* إطار رمادي حول المجموعة */
.mini-wrapper {
    border: 1px solid #d0d0d0; /* خطّ رمادي رقيق حول الحاوية */
    padding: 12px; /* مسافة داخلية حتى لا يلتصق المحتوى بالحدود */
    background: #fff; /* خلفية بيضاء للحفاظ على لون الصفحة */
}


/*1) “Screen-like” highlight on الصورة عند hover
– بدون تكبير، فقط تفتيح ناعم (smooth) مع تشبع خفيف
====================================================== */


    .highlight-card img:hover {
        /* تفتيح + تشبع = إيحاء Screen / Spotlight */
        filter: brightness(0.8) saturate(1.15);
    }

    .horizontal-mini-list img:hover {
        /* تفتيح + تشبع = إيحاء Screen / Spotlight */
        filter: brightness(1.25) saturate(1.15);
    }

/* ======================================================
   2) تغيّر لون العنوان بسلاسة إلى #d32e2c عند hover
      – مستقل تماماً عن تأثير الصورة
====================================================== */
.highlight-text .title,
.horizontal-mini-list .title {
    transition: color .45s ease-in-out; /* سلاسة ناعمة أطول قليلاً */
    font-weight: 700;
}

    .highlight-text .title:hover,
    .horizontal-mini-list .title:hover {
        color: #d32e2c;
        font-weight: 700;
    }


/* Group 2: آخر الأخبار */
.latest-split {
    display: flex;
    gap: 20px
}

.latest-big {
    flex: 1;
    border: 1px solid #d0d0d0; /* إضافة الإطار الرمادي */
    padding: 0 0 15px;
}

    .latest-big img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    /* 1) نجعل .meta يعرض children أفقياً */
    .latest-big .meta {
        display: flex;
        align-items: center;
        gap: 8px; /* مسافة بين المشاهدات والتاريخ */
        padding: 0 15px; /* حفاظ على الـ padding الحالي */
        margin-top: 10px; /* كما في التصميم الأصلي */
        font-size: .8rem;
        color: #777;
    }


        /* 2) إلغاء أي margin أو padding إضافي كان على .meta */
        .latest-big .meta .latest-bigviews,
        .latest-big .meta .latest-bigdate {
            margin: 0; /* تأكد من عدم وجود مسافات رأسية */
            white-space: nowrap; /* لمنع الكسر إن أردت */
        }

    /* 3) (اختياري) تلوين التاريخ أو المشاهدات عند hover */
    .latest-big .latest-big:hover .meta .latest-bigviews,
    .latest-big .latest-big:hover .meta .latest-bigdate {
        font-size: .8rem;
        color: #666;
    }



    .latest-big .lb-title {
        padding: 5px 15px 0;
        margin-top: 10px;
        text-align: right;
    }

        .latest-big .lb-title a {
            font-weight: 700;
            font-size: 16px; /*big title size */
            color: #000; /*black*/
            transition: color 4.5s ease; /* وقت أطول للعودة */
        }

        .latest-big .lb-title a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }

    .latest-big .summary {
        text-align: right;
        font-size: 14px;
        line-height: 2;
        color: #555;
        padding: 0 15px;
        margin-top: 10px
    }

.latest-vertical {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px

}

    .latest-vertical .lv {
        display: flex; /* استخدام flex لعرض العناصر في سطر واحد */
        gap: 10px; /* المسافة بين الصورة والعنوان */
        border: 1px solid #d0d0d0; /* إضافة الإطار الرمادي حول كل خبر */
        align-items: center; /* محاذاة العناصر بشكل عمودي في الوسط */

    }

    .latest-vertical img {
        width: 120px; /* عرض الصورة */
        height: 120px; /* ارتفاع الصورة */
        object-fit: cover; /* تضمن أن الصورة تملأ المساحة بدون تشويه */
    }

    .latest-vertical .info {
        font-size: .8rem; /* حجم الخط في العنوان */
        display: flex; /* لتمكين المحاذاة بشكل مرن */
        flex-direction: column; /* ترتيب العنوان والتاريخ بشكل عمودي */
    }

        .latest-vertical .info .date {
            font-size: .8rem;
            color: #666;
            margin-top: 10px; /* مسافة بين التاريخ والعنوان */
        }

    .latest-vertical .lv:hover img, .latest-big:hover img {
        filter: grayscale(100%);
    }

    .latest-vertical .lv:hover , .latest-big:hover {
        color: #d32e2c;
    }

    .latest-vertical .info .title {
        transition: color 0.3s ease-in-out; /* Smooth color change for titles */
        font-weight: 700;
        text-align: right;
    }

        .latest-vertical .info .title a {
            font-weight: 700;
            font-size: 14px; /*big title size */
            color: #000; /*black*/
            transition: color 4.5s ease; /* وقت أطول للعودة */
        }

            .latest-vertical .info .title a:hover {
                transition: color 0.7s ease;
                color: #b13446; /*red*/
            }

    .latest-vertical .lv img, .latest-big img {
        transition: filter 0.3s ease-in-out; /* Smooth transition for grayscale effect on images */
    }
    


 /* Group 3: رياضة */
.scene-feature {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden; /* ضروري لمنع تمدد الصورة خارج الإطار */
}

    .scene-feature img {
        width: 100%;
        height: 437px;
        object-fit: cover;
        transition: transform .4s ease, /* تكبير سلس */
        filter .4s ease; /* انتقال سلس للفلتر */
        display: block; /* هذا يمنع المسافة أسفل الصورة */
    }

    .scene-feature .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top,rgba(0,0,0,.6)0%,rgba(0,0,0,0)60%);
       
        
    }

    .scene-feature .ov-data {
        position: absolute;
        bottom: 50px;
        right: 50px;
    }

        .scene-feature .ov-data .section {
            display: inline-block;
            background: #d32f2f;
            color: #fff;
            font-size: .75rem;
            margin-bottom: 4px;
            text-align: center;
            padding: 2px 6px;
            width: 50px
        }

        .scene-feature .ov-data .date {
            padding: 2px 6px;
            margin-left: 8px;
            font-size: .8rem;
            color: #fff;
            margin-right: 3px;
        }



        .scene-feature .ov-data .title {
            font-size: 1rem;
            margin-top: 15px;
            font-weight: 700;
            text-align: right;
        }

            .scene-feature .ov-data .title a {
                font-weight: 700;
                font-size: 16px; /*big title size */
                color: #fff; /*white*/
            }

                .scene-feature .ov-data .title a:hover {
                    color: #b13446; /*red*/
                    transition: color 0.7s ease;
                }


.scene-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .scene-list .sl {
        display: flex;
        align-items: flex-start; /* تأكد من أن العناصر تبدأ من الأعلى */
        gap: 10px;
        border: 1px solid #d0d0d0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* إضافات مهمة */
        flex-wrap: nowrap; /* منع العناصر من الانتقال لسطر جديد */
    }

    .scene-list img {
        flex-shrink: 0; /* ❗ لا تسمح بتصغير الصورة */
        width: 240px;
        height: 200px;
        object-fit: cover;
        aspect-ratio: 6 / 5;
        overflow: hidden;
        display: block;
    }

    .scene-list .txt {
        flex-grow: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

        /* نجمع views و date (وأي span آخر داخل meta) في سطر واحد */
        .scene-list .txt .meta {
            display: flex;
            align-items: center;
            gap: 12px; /* مسافة بين العناصر */
            font-size: .8rem;
            color: #666;
            margin-right: 8px; /* مسافة بين الـ views والتاريخ */
            margin-top: 5px;
        }

         

        .scene-list .txt .title {
            margin-bottom: 10px; /* Add space between the title and other text */
            margin-top: 20px;
            text-align: right;
        }

            .scene-list .txt .title a {
                font-weight: 700;
                font-size: 14px; /*big title size */
              color:#000; /*black*/
                transition: color 5.5s ease; /* وقت أطول للعودة */
            }


            .scene-list .txt .title a:hover {
                color: #b13446; /*red*/
                transition: color 0.7s ease;
            }


    .scene-list .summary {
        margin-top: 10px;
        /* احذف السطر التالي إذا كان موجودًا: */
        /* white-space: nowrap; */
        /* اختياري: تأكد من عدم وجود قيود تمنع لف النص */
        overflow: hidden; /* يمكنك إزالته إذا كنت تريد عرض النص بالكامل */
        text-overflow: ellipsis; /* أزلها أيضًا إذا لم تعد ضرورية */
        text-align: right;
        font-size: 14px;
        line-height: 2;
        color: #555;
    }


.scene-feature:hover img {
    transform: scale(1.15);
    filter: grayscale(100%) brightness(1.15); /* ✅ دمج الفلاتر بشكل صحيح */
}



/* انتقال ناعم لكل من الخلفية واللون */
.scene-feature .ov-data .section {
    transition: background .3s ease, color .3s ease;
}

    /* عند المرور بالمؤشر */
    .scene-feature .ov-data .section:hover {
        background: #000; /* خلفية سوداء */
        color: #d32f2f; /* نص أحمر (يمكنك تغييره حسب الدرجة المطلوبة) */
         /* يعطى إحساس أنه زر قابل للنقر */
    }



/* انتقالات سلسة للعناصر داخل بطاقة الخبر */
.scene-list .sl img {
    transition: transform .35s ease, filter .35s ease;
}


/* تأثير عند المرور بالمؤشر على بطاقة الخبر */
.scene-list .sl:hover img {
    filter: grayscale(100%) brightness(1.1); /* ✅ دمج الفلاتر بشكل صحيح */
}




/* ---- Sidebar 30 % ---- */
.sidebar {
    flex: 0 0 calc(30% - 15px); /* خصم نصف مسافة الـ gap */
    display: flex;
    flex-direction: column;
    gap: 30px
}



.ads-vertical {
    background: #eee;
    height: 517px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700; /* = bold (الافتراضي) */
}

    .ads-vertical img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }


.sidebar-section-title {
    display: inline-block; /* يظل عرضه بطول الكلمة */
    font-size: 1.25rem;
    margin-bottom: 20px; /* مسافة أسفل العنوان ككل */
    /* 1) خطّان أحمران */
    text-decoration-line: underline;
    text-decoration-style: double; /* خط مزدوج */
    text-decoration-color: #d32f2f; /* لون أحمر */
    /* 2) سمك الخط ومسافته عن النص (يدعمه معظم المتصفحات الحديثة) */
    text-decoration-thickness: 1px; /* سُمك كل خط */
    text-underline-offset: 10px; /* المسافة بين الخط والنص */
    font-weight: 700;
}


.sidebar-feature {
    position: relative;
    width: 100%;
    height: 300px; /* تأكد من تحديد ارتفاع ثابت للحاوية */
    overflow: hidden; /* يمنع الصورة من الخروج من حدود الكارت */
    margin-bottom: -5px;
}

    .sidebar-feature img {
        width: 100%;
        height: 100%; /* تأكد من أن الصورة تملأ الكارت بالكامل */
        object-fit: cover; /* لضمان أن الصورة تغطي المساحة دون تشويه */
        transition: transform .35s ease;
    }

    .sidebar-feature .section {
        position: absolute;
        top: 10px;
        right: 0;
        display: inline-block;
        padding: 5px 10px;
        font-size: .8rem;
        font-weight: 700;
        color: #000;
        background-color: #fff;
        background-image: linear-gradient(#d32f2f, #d32f2f);
        background-repeat: no-repeat;
        background-size: 0% 100%; /* يبدأ 0% عرض واجتياز كامل الارتفاع */
        background-position: right center;
        transition: background-size .5s ease, color .5s ease; /* تأثير الحركة */
        z-index: 3;
    }


    .sidebar-feature .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
        transition: background .35s ease;
    }

    .sidebar-feature .ov {
        position: absolute;
        bottom: 30px;
        right: 10px;
        color: #fff;
    }

        .sidebar-feature .ov .title {
            margin-top: 4px;
            margin-bottom: 10px;
            text-align: right;
        }

            .sidebar-feature .ov .title a {
                font-weight: 700;
                font-size: 16px; /*big title size */
                color: #fff; /*white*/
            }

            .sidebar-feature .ov .title a:hover {
                color: #b13446; /*red*/
                transition: color 0.7s ease;
            }



        .sidebar-feature .ov .meta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 4px;
            color: #fff;
            font-size: .8rem;
        }

        .sidebar-feature .ov .sidebar-featuredate, .sidebar-feature .ov .sidebar-featureview {
            display: flex;
        }


            .sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

                /* 1) على مستوى كل عنصر sb */
                .sidebar-list .sb {
                    display: flex;
                    gap: 8px;
                    align-items: center; /* يجعل محتوى .si (العنوان + التاريخ) في منتصف ارتفاع الصورة */
                    border: 1px solid #d0d0d0;
                }


    .sidebar-list img {
        width: 120px;
        height: 100%;
        object-fit: cover;

    }
                .sidebar-list .sb .si {
                    display: flex;
                    flex-direction: column;
                    justify-content: center; /* يجعل العنوان والتاريخ يتوسّطان عموديًا داخل الـ .si نفسها */
                    gap: 4px; /* مسافة 4px بين العنوان والتاريخ */
                }

                .sidebar-list .si .date {
                    font-size: .8rem;
                    color: #666;
                }

                .sidebar-list .sb .si .title {
                    margin-bottom: 10px; /* يضيف 4px تحت العنوان */
                    text-align: right;
                }

                    .sidebar-list .sb .si .title a {
                        font-weight: 700;
                        font-size: 14px; /*big title size */
                        color: #000; /*white*/
                    }

                    .sidebar-list .sb .si .title a:hover {
                        color: #b13446; /*red*/
                        transition: color 0.7s ease;
                    }

            

/* عند المرور على الشِّارة (أو غيّر إلى `.sidebar-feature:hover .section` لو تريد عند تحويم البطاقة) */
.sidebar-feature .section:hover {
    background-size: 100% 100%; /* يملأ الخلفية بالأحمر من اليسار إلى اليمين */
    
}

/* 2) طبّق الانزلاق الأحمر عند المرور على البطاقة كاملة */
.sidebar-feature:hover .section {
    background-size: 100% 100%; /* يملأ اللون الأحمر من اليسار إلى اليمين */
    
}


/* 2) On hover over the card */
.sidebar-feature:hover img {
    transform: scale(1.1); /* internal zoom */
}

.sidebar-feature:hover .overlay {
    background: rgba(0,0,0,0.5); /* dark translucent layer */
}



/* 1. انتقال سلس */
.sidebar-list .sb img {
    transition: filter .3s ease;
}

/* 2. عند المرور على البطاقة (.sb) */
.sidebar-list .sb:hover img {
    filter: grayscale(100%); /* تتحول الصورة إلى رمادي */
}



/* ===== Row Merge : 3 horizontal cards ===== */
.merged-row {
    margin: 20px 0
}
.merged-title {
    /* تنسيق عام للعنوان */
    display: inline-block; /* يظل عرضه بطول الكلمة */
    font-size: 1.25rem;
    margin-bottom: 20px; /* مسافة أسفل العنوان ككل */
    /* 1) خطّان أحمران */
    text-decoration-line: underline;
    text-decoration-style: double; /* خط مزدوج */
    text-decoration-color: #d32f2f; /* لون أحمر */
    /* 2) سمك الخط ومسافته عن النص (يدعمه معظم المتصفحات الحديثة) */
    text-decoration-thickness: 1px; /* سُمك كل خط */
    text-underline-offset: 10px; /* المسافة بين الخط والنص */
    font-weight: 700;
}

    .merged-list {
    display: flex;
}

.merged-card {
    flex: 1;
    position: relative;
    overflow: hidden;
}


    .merged-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block; /* ضروري لإلغاء الفراغات */
    }

    /* طبقة overlay */
    .merged-card .overlay {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 0; /* ✅ تبدأ بدون ارتفاع */
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: top 0.4s ease, height 0.4s ease; /* ✅ حركة طبيعية */
    }

    /* أيقونة الفيديو */
    .merged-card .play-icon .circle {
        width: 70px;
        height: 70px;
        border: 3px solid #d32f2f;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .merged-card .play-icon .triangle {
        width: 0;
        height: 0;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-left: 20px solid #d32f2f; /* السهم نفسه باللون الأحمر */
        background: transparent;
    }

    .merged-card .ov {
        position: absolute;
        bottom: 10px;
        right: 10px;
        left: 10px;
        color: #fff;
        font-size: .85rem;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .merged-card .meta {
        display: flex;
        justify-content: flex-start; /* كل عنصر من اليسار لليمين */
        gap: 20px; /* مسافة بين التاريخ والمشاهدات */
        font-size: .8rem;
        color: #666;
    }
        .merged-card .meta .date,
        .merged-card .meta .views {
            white-space: nowrap; /* منع كسر النص للأسطر الثانية */
        }

    .merged-card .title {
        text-align: right;
    }

        .merged-card .title a {
            font-weight: 700;
            font-size: 16px; /*big title size */
          color:#000; /*black*/
        }

        .merged-card .title a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }



  

    .merged-card:hover .overlay {
        top: 0;
        height: 100%; /* ✅ تفتح بالكامل بارتفاع مضبوط على الصورة */
    }

    .merged-card:hover .play-icon {
        opacity: 1;
        transform: scale(1);
    }

    

/* ===== Topics Row (two × 35 %) ===== */

/* =========================================
   عام للأغلفة الرئيسية
========================================= */
.topics-science-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.topics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


    /* =========================================
   تصميم لكل مجموعة topic-group عامة
========================================= */
    .topics-row .topic-group {
        flex: 0 0 calc(50% - 5px);
        padding: 0 0 15px;
    }

/* =========================================
   عنوان القسم العام
========================================= */
.topic-group .tg-title {
    display: inline-block;
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-decoration-line: underline;
    text-decoration-style: double;
    text-decoration-color: #d32f2f;
    text-decoration-thickness: 1px;
    text-underline-offset: 10px;
    font-weight: 700;
}

/* =========================================
   كارت الخبر الرئيسي - مشترك بين الجميع
========================================= */
.topic-feature {
    border: 1px solid #d0d0d0;
    padding: 0 0 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 15px;
}


    .topic-feature img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
        flex-shrink: 0;
        /* تمنع تجاوز الصورة حدود العنصر */
        max-width: 100%;
        max-height: 250px;
        overflow: hidden;
    }


    .topic-feature .meta {
        display: flex; /* توزيع العناصر بجانب بعض */
        align-items: center; /* محاذاة عمودية في المنتصف */
        font-size: .8rem;
        color: #666;
        padding: 0 15px;
        margin-top: 10px;
        gap: 10px; /* مسافة بين المشاهدة والتاريخ */
        flex-shrink: 0; /* لا تنكمش لكن لا تتمدد */
        overflow: hidden;
        white-space: nowrap;
    }




    .topic-feature .tf-title {
        padding: 0 15px 0;
        margin-top: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* عدد السطور المسموح بها */
        -webkit-box-orient: vertical;
        text-align: right;
        min-height: calc(1.8em * 2); /* حد أدنى = سطرين */
    }

    .topic-feature .tf-title a {
        font-weight: 700;
        font-size: 16px; /*big title size */
        color:#000; /*black*/
    }

        .topic-feature .tf-title a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }


    .topic-feature .summary {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        padding: 0 15px 0;
        margin-top: 10px;
        text-align: right;
        font-size: 14px;
        line-height: 2;
        color: #555;
    }



/* =========================================*/

.sport-group {
    margin-top: -10px; /* حرك قسم الرياضة للأعلى */
    width: calc(50% - 5%)
}



.sport-main img {
    transition: filter 0.3s ease; /* ✅ انتقال ناعم */
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.sport-main:hover img {
    filter: grayscale(100%); /* ✅ تحويل الصورة إلى رمادي عند المرور */
}

/* =========================================
   خبر رئيسي خاص بالمحليات

    /* فقط تأثير hover خاص بالمحليات */


.local-group {
    margin-top: -10px; /* حرك قسم الرياضة للأعلى */
    width: calc(50% - 5%)
}



.local-main img {
    transition: filter 0.3s ease; /* ✅ انتقال ناعم */
}
.local-main:hover img {
    filter: grayscale(100%); /* ✅ تحويل الصورة إلى رمادي عند المرور */
}
/* =========================================
   الأخبار المصغرة العامة
========================================= */
.topic-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

    .topic-mini-list .tm {
        display: flex;
        align-items: stretch;
        height: 100px;
        border: 1px solid #d0d0d0;
        overflow: hidden;
        padding: 0;
    }

    .topic-mini-list img {
        width: 120px;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .topic-mini-list .info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px;
        flex: 1;
    }

        .topic-mini-list .info .title {
            font-size: 0.9rem;
            color: #333;
            font-weight: 700;
        }

        .topic-mini-list .info .title {
            font-size: 0.9rem;
            color: #333;
            font-weight: 700;
        }


        .topic-mini-list .info .date {
            font-size: 0.75rem;
            color: #777;
        }

/* =========================================
   أخبار مصغرة لقسم الرياضة فقط
========================================= */
.sport-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

    .sport-mini-list .tm {
        display: flex;
        align-items: stretch;
        height: 100px;
        border: 1px solid #d0d0d0;
        overflow: hidden;
        padding: 0;
        margin-top: 3px;
    }


    .sport-mini-list img {
        width: 120px;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .sport-mini-list .info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px;
        flex: 1;
    }

        .sport-mini-list .info .title {
            text-align: right;
        }

            .sport-mini-list .info .title a {
                
                font-weight: 700;
                font-size: 14px; /*big title size */
                color:#000; /*black*/
                
               
            }

            .sport-mini-list .info .title a:hover {
                color: #b13446; /*red*/
                transition: color 0.7s ease;
            }

        .sport-mini-list .info .date {
            font-size: .8rem;
            color: #666;
            margin-top: 10px;
        }

      

    .sport-mini-list img  {
        transition: filter 0.3s ease; /* ✅ انتقال ناعم */
    }

        .sport-mini-list  img:hover {
            filter: grayscale(100%); /* ✅ تحويل الصورة إلى رمادي عند المرور */
        }
/* =========================================
   أخبار مصغرة لقسم المحليات فقط
========================================= */
.local-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

    .local-mini-list .tm {
        display: flex;
        align-items: stretch;
        height: 100px;
        border: 1px solid #d0d0d0;
        overflow: hidden;
        padding: 0;
        margin-top: 3px;
    }

    .local-mini-list img {
        width: 120px;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .local-mini-list .info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px;
        flex: 1;
    }

        .local-mini-list .info .title {
            text-align: right;
        }

            .local-mini-list .info .title a {
                font-weight: 700;
                font-size: 14px; /*big title size */
               color:#000; /*black*/
            }

            .local-mini-list .info .title a:hover {
                color: #b13446; /*red*/
                transition: color 0.7s ease;
            }

        .local-mini-list .info .date {
            font-size: .8rem;
            color: #666;
            margin-top: 10px;
        }

       

    .local-mini-list img {
        transition: filter 0.3s ease; /* ✅ انتقال ناعم */
    }

        .local-mini-list img:hover {
            filter: grayscale(100%); /* ✅ تحويل الصورة إلى رمادي عند المرور */
        }


/* ===== Side-30 % “علوم” ===== */
.science-side {
    flex: 0 0 30%;
}
.science-group .sg-title {
    display: inline-block;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-decoration-line: underline;
    text-decoration-style: double;
    text-decoration-color: #d32f2f;
    text-decoration-thickness: 1px;
    text-underline-offset: 10px;
}


.science-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.science-card {
    position: relative;
    overflow: hidden;
}

    .science-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        transition: transform .35s ease;
    }

.science-section {
    position: absolute;
    top: 10px;
    right: 0;
    display: inline-block;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 700; /* = bold (الافتراضي) */
    color: #000;
    background-color: #fff;
    background-image: linear-gradient(#d32f2f, #d32f2f);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: right center;
    transition: background-size .5s ease, color .5s ease;
    z-index: 3;
}

/* طبقة شفافة فوق الصورة */
.science-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 60%);
    transition: background .35s ease;
}

/* النصوص فوق الصورة */
.science-ov {
    position: absolute;
    bottom: 30px;
    right: 10px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.science-card .science-ov .science-title {
    text-align: right;
    margin-top: 4px;
    margin-bottom: 8px;
}

.science-card .science-ov .science-title a {
    font-weight: 700;
    font-size: 16px; /*big title size */
    color: #fff; /*white*/
}

    .science-card .science-ov .science-title a:hover {
        color: #b13446; /*red*/
        transition: color 0.7s ease;
    }

.science-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: #fff;
}

.science-date,
.science-views {
    display: flex;
}

/* Hover Effects خاص بالعلوم */
.science-card:hover img {
    transform: scale(1.1);
}

.science-card:hover .science-overlay {
    background: rgba(0,0,0,0.5);
}


/* عنوان قسم الكوارث */
.disaster-title {
    display: inline-block;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 40px 0 20px; /* مسافة فوق وتحت العنوان */
    text-decoration-line: underline;
    text-decoration-style: double;
    text-decoration-color: #d32f2f;
    text-decoration-thickness: 1px;
    text-underline-offset: 10px;
}

.disaster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.disaster-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 92px;
}

    .disaster-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ✅ الطبقة الرمادية */
.disaster-gray {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* ✅ فقط نصف الصورة رمادي */
    height: 100%;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: grayscale(100%);
    transition: width 0.5s ease;
    z-index: 2;
}

/* ✅ عند المرور: الطبقة الرمادية تختفي */
.disaster-img:hover .disaster-gray {
    width: 0;
}

/* ============ Horizontal Ads (full) ============ */
.ads-horizontal {
    background: #eee;
    height: 120px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700; /* = bold (الافتراضي) */
}

    .ads-horizontal img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
/* =================== Footer =================== */
.site-footer {
    background-color: #b13446;
    padding: 40px 20px 20px;
    direction: rtl;
    text-align: right;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff; /* أبيض للعناوين */
    margin-bottom: 20px;
    border-bottom: 2px solid #ffffff50; /* خط سفلي شفاف قليلاً */
    padding-bottom: 8px;
}


.footer-logo {
    width: 300px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 0.9rem;
    color: #dddddd; /* 🔵 نبذة بلون رمادي فاتح واضح */
    line-height: 1.6;
}

/* =================== Social Post =================== */
/* توحيد ارتفاع كل بوست */
.social-post {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 100px;
    max-height: 100px;
    overflow: hidden;
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

/* إطار الصورة */
.social-img-frame {
    width: 130px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

    /* الصورة داخل الإطار */
    .social-img-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }


/* عند المرور تكبر الصورة */
.social-post:hover .social-img-frame img {
    transform: scale(1.1);
}
/* =================== Title and Date =================== */
.post-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #eeeeee;
    margin-bottom: 5px;
    line-height: 1.3;
    max-height: 2.6em; /* سطرين */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}




.post-date {
    font-size: 0.75rem;
    color: #cccccc; /* 🔵 تاريخ الخبر بلون رمادي أفتح */
}

/* =================== Hover Effects =================== */
/* عند المرور على الفيسبوك: لون خاص للعنوان */
.facebook .social-post:hover .post-title {
    color: #5ab0bd; /* لون وردي فاتح يتناسق مع الخلفية */
    transition: color 0.3s ease;
    font-weight: 700;
}

/* عند المرور على انستغرام: لون خاص للعنوان */
.instagram .social-post:hover .post-title {
    color: #f56040; /* لون أصفر ذهبي دافئ يتناسب مع الخلفية */
    transition: color 0.3s ease;
    font-weight: 700;
}


/* خط سفلي للفوتر */
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #dddddd; /* 🔵 نص الحقوق بلون واضح */
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ffffff50; /* 🔵 خط أبيض شفاف */
}
.fb-posts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.fb-post-col {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ================= Responsive Media Queries ================= */

/* 1) أجهزة التابلت والمتوسطة (≤768px) */

/* ==== زر الهمبرغر ==== */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
@media (max-width: 768px) {
    /* أظهر زر الهامبرغر فقط على هذه الشاشات */
    .menu-toggle {
        display: block;
    }
    /* أخفِ القائمة الأفقية واجعلها عمودية عند الضغط */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
    }

        nav ul.open {
            display: flex;
        }
    /* حوّل المحتوى الرئيسي والعمودين إلى عمودي */
    .content,
    .news-two-column,
    .latest-split {
        flex-direction: column;
    }
    /* اجعل الشريط الجانبي بعرض 100% أسفل المحتوى */
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
    /* أعد ضبط ارتفاع الصور لتكون تلقائياً */
    .main-article img,
    .side-articles .item img {
        height: auto !important;
        max-height: 300px;
    }
}

/* 2) الهواتف الصغيرة (≤576px) */
@media (max-width: 576px) {
    /* حقل البحث يحتل كامل العرض */
    nav .search input {
        width: 100%;
    }
    /* مساحة أكبر للعناصر في القائمة لتسهيل اللمس */
    nav ul li a {
        padding: 10px;
        font-size: 1rem;
    }
}
