﻿* {
    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
}

/* ترتيب أيقونات التواصل والمعلومات */
.header .social-icons,
.header .info {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ================= 2. Navbar ========================= */
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;
        }


/* =================== SECTION1 =================== */

.SECTION1 {
    margin-top: 20px;
    direction: rtl;
}

.SECTION1-col:first-child {
    flex: 2; /* العمود الأول يأخذ ثلثين */
}

.SECTION1-col:last-child {
    flex: 1; /* العمود الثاني يأخذ ثلث */
}


.SECTION1-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.SECTION1-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.SECTION1-news-box {
    display: flex;
    gap: 10px;
    /* إزالة الخط الفاصل */
    padding-bottom: 0;
    border-bottom: none;
}

.SECTION1-large-img {
    flex: 0 0 auto;
    height: 220px; /* مجموع ارتفاع صورتين بارتفاع 100px + فراغ بينهما */
    overflow: hidden;
}

.SECTION1-col:nth-child(2) .SECTION1-large-img {
    height: 100px; /* صورة صغيرة */
    width: 40%; /* العرض الثابت ليأخذ العرض الكامل للصورة */
}

.SECTION1-large-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.SECTION1-large-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;

}

    .SECTION1-large-content .title {
        text-align: right;
        margin-bottom:10px;
    }

        .SECTION1-large-content .title a {
        
            font-weight: 700;
            font-size: 16px; /*big title size */
           color:#000; /*black*/
        }

            .SECTION1-large-content .title a:hover {
                color: #b13446; /*red*/
                transition: color 0.7s ease;
            }

    .SECTION1-large-content .meta {
        font-size: .8rem;
        color: #666;
        margin-bottom: 10px;
    }



    .SECTION1-large-content .text {
        text-align: right;
    
        font-size: 14px;
        line-height: 2;
        color: #555;
    }


.SECTION1-small-content {
    display: flex;
    flex-direction: column;
    text-align: right;

}

    .SECTION1-small-content .title {
        text-align: right;
    }

        .SECTION1-small-content .title a {
        
            font-weight: 700;
            font-size: 14px;
            color: #000;
        }

            .SECTION1-small-content .title a:hover {
                color: #b13446;
                transition: color 0.7s ease;
            }

    .SECTION1-small-content .meta {
        font-size: .8rem;
        color: #666;
        margin-top: auto; /* يدفع meta للأسفل */
    }

   


/* ======== SECTION2 ======== */
.SECTION2 {
    margin-top: 20px;
}

.SECTION2-title {
    display: inline-block;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 20px 0 10px;
    text-decoration-line: underline;
    text-decoration-style: double;
    text-decoration-color: #d32f2f;
    text-decoration-thickness: 1px;
    text-underline-offset: 10px;
    padding-bottom: 10px;
}

.SECTION2-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.SECTION2-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.SECTION2-news-box {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.SECTION2-news-img {
    flex: 0 0 45%;
    height: 140px;
    overflow: hidden;
}

    .SECTION2-news-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.SECTION2-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

    .SECTION2-news-content .titel {
    
        font-weight: 700;
        font-size: 16px; /*big title size */
       color:#000; /*black*/
    }


    .SECTION2-news-content .titel a{
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

        .SECTION2-news-content .titel a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }


    .SECTION2-news-content .meta {
        font-size: .8rem;
        color: #666;
        margin-top: auto; /* هذا يدفع العنصر إلى أسفل الحاوية */
    }


/* ======== SECTION3 - إعلان ======== */
.SECTION3 {
    margin: 40px 0;
}

.SECTION3-ad {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

    .SECTION3-ad img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ======== SECTION4 - عناوين فقط ======== */
.SECTION4 {
    background: #f3f3f3;
    padding: 20px;
}

.SECTION4-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;

}

.SECTION4-row {
    display: flex;
    justify-content: space-between;
}

.SECTION4-headline {
    flex: 1;
    font-weight: bold;
    font-size: 0.95rem;
    margin: 0 15px; /* ← أضف هذه لتوفير فراغ أفقي */
}

    .SECTION4-headline .title {
        flex: 1;
        text-align: right;
    }

    .SECTION4-headline .title a {
    
        font-weight: 700;
        font-size: 14px; /*big title size */
        color:#000; /*black*/
    }

        .SECTION4-headline .title a:hover {
            flex: 1;
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }


/* ======== SECTION5 ======== */
.SECTION5 {
    margin-top: 20px;
}

.SECTION5-row {
    display: flex;
    gap: 20px; /* الفراغ بين العمودين */
}

.SECTION5-col-left {
    flex: 0 0 calc(33.333% - 10px); /* طرح نصف الفراغ بين الأعمدة */
    display: flex;
    flex-direction: column;
    gap: 20px; /* الفراغ بين الصورتين */
}

.SECTION5-col-right {
    flex: 0 0 calc(66.666% - 10px); /* طرح نصف الفراغ بين الأعمدة */
}

/* ارتفاع الصورتين في العمود الأيسر = 100px + 100px + 20px gap = 220px */
.SECTION5-large-img {
    height: 220px;
    overflow: hidden;
}

    .SECTION5-large-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.SECTION5-news-box {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
}

.SECTION5-news-img {
    flex: 0 0 45%;
    height: 100px;
    overflow: hidden;
}

    .SECTION5-news-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.SECTION5-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}




.SECTION5-small-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    /* SECTION5 فقط */
.SECTION5-small-content .titel {
    text-align: right;
}

.SECTION5-small-content .titel a {

    font-weight: 700;
    font-size: 14px; /*big title size */
    color: #000; /*black*/
}

.SECTION5-small-content .titel a:hover {
    color: #b13446; /*red*/
    transition: color 0.7s ease;
}

.SECTION5-small-content .meta {
    font-size: .8rem;
    color: #666;
    margin-top: auto;
}

    .SECTION5-small-content .summary {
        text-align: right;
    
        font-size: 14px;
        line-height: 2;
        color: #555;
        margin-top: 10px;
    }





.SECTION5-large-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* SECTION5 فقط */
    .SECTION5-large-content .titel {
        text-align: right;
    }

        .SECTION5-large-content .titel a {
        
            font-weight: 700;
            font-size: 16px; /*big title size */
             color:#000; /*black*/
        }

        .SECTION5-large-content .titel a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }

    .SECTION5-large-content .meta {
        font-size: .8rem;
        color: #666;
        margin-top: 10px;
    }

    .SECTION5-large-content .summary {
        text-align: right;
    
        font-size: 14px;
        line-height: 2;
        color: #555;
        margin-top: 10px;
    }



/* =================== 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 (Tabs ≤768px) ========== */

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}


@media (max-width: 768px) {
    /* ـــ Hamburger menu ـــ */
    .menu-toggle {
        display: block;
    }

    .header .row {
        flex-direction: column; /* تحويل الترتيب إلى عمودي */
        align-items: center; /* توسيط العناصر */
    }

    .header .logo img {
        height: 50px; /* تصغير اللوغو قليلاً */
    }

    .header .ads {
        display: none; /* إخفاء الإعلان على الشاشات المتوسطة */
    }

    .header .social-icons {
        gap: 5px; /* تقليل المسافات بين الأيقونات */
    }


    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000;
    }

        nav ul.open {
            display: flex;
        }

    /* SECTION1: من صفوف متعددة إلى عمود واحد */
    .SECTION1-row,
    .SECTION2-row,
    .SECTION5-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .SECTION1-col,
    .SECTION2-col,
    .SECTION5-col-left,
    .SECTION5-col-right {
        width: 100% !important;
        flex: none !important;
    }
    /* SECTION3, SECTION4: من شبكات أعمدة إلى عمود واحد */
    .SECTION3,
    .SECTION4 {
        display: block;
    }

    /* تضمين أي GRID آخر تحوّل إلى عمود واحد */
    .SECTION3-ad,
    .SECTION3-col-1, .SECTION3-col-2, .SECTION3-col-3,
    .SECTION4-row, .SECTION4-left, .SECTION4-right {
        width: 100% !important;
        display: block !important;
    }
}

/* ========== Responsive (Mobiles ≤576px) ========== */
@media (max-width: 576px) {
    /* تسهيل لمس روابط القائمة */
    nav ul li a {
        padding: 12px 0;
        font-size: 1rem;
    }
    /* SECTION1 الصور: ارتفاع تلقائي */
    .SECTION1-large-img,
    .SECTION5-large-img {
        height: auto !important;
        aspect-ratio: 16/9;
    }
    /* SECTION2 النصوص أكبر قليلًا */
    .SECTION2-news-content .titel a,
    .SECTION1-small-content .title a {
        font-size: 1rem;
    }


    .header .social-icons {
        gap: 5px; /* تقليل المسافات بين الأيقونات */
    }

    .header .info {
        font-size: 0.8rem; /* تصغير النص */
    }


}
