﻿* {
    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;
        }

/* ============ Section Base ============ */
section {
    margin: 40px 0;
}

/* ============ Section 1 ============ */
.section1-columns {
    display: flex;
    gap: 20px;
}

.section1-col-left, .section1-col-right {
    width: 25%;
}

.section1-col-center {
    width: 50%;
}

.section1-news-box,
.section1-side-item {
    margin-bottom: 15px;
}

.section1-img-container-middel {
    width: 100%;
    height: 430px;
    overflow: hidden;
}

.section1-img-middel {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section1-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.section1-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section1-img-side {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.section1-side-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section1-side-title {
    text-align: right;
}

    .section1-side-title a {
        
        font-weight: 700;
        font-size: 14px; /*big title size */
         color:#000; /*black*/
    }

        .section1-side-title a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }

.section1-main-title {
    margin: 10px 0;
    text-align: right;
}

    .section1-main-title a {
        
        font-weight: 700;
        font-size: 16px; /*big title size */
       color:#000; /*black*/
    }

    .section1-main-title a:hover {
        color: #b13446; /*red*/
        transition: color 0.7s ease;
    }



.section1-title {
    margin: 10px 0;
    text-align: right;
}


.section1-title a{
    
    font-weight: 700;
    font-size: 14px; /*big title size */
    color:#000; /*black*/
}

    .section1-title a:hover {
        color: #b13446; /*red*/
        transition: color 0.7s ease;
    }
/* ============ Section 2 ============ */
.section2-columns {
    display: flex;
    gap: 20px;
}

.section2-main {
    width: 65%;
}

.section2-side {
    width: 35%;
}

.section2-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* يجعل النص يبدأ من الأعلى بجانب الصورة */
}

.section2-img-wrapper-main {
    width: 55%;
    height: 320px;
    overflow: hidden;
}

.section2-img-wrapper {
    width: 55%;
    height: 160px;
    overflow: hidden;
}


.section2-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ حاوية النص */
.section2-text {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.section2-title {
    text-align: right;
}

    .section2-title a {
        
        font-weight: 700;
        font-size: 16px; /*big title size */
       color:#000; /*black*/
    }

        .section2-title a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }


.section2-paragraph {
    margin-top: 10px;
    text-align: right;
    
    font-size: 14px;
    line-height: 2;
    color: #555;
}

.section2-highlight {
    margin-bottom: 20px;
}

.section2-inline-highlight {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
}

    .section2-inline-highlight .section2-year-inline {
        font-size: .8rem;
        color: #666;
    }

    .section2-inline-highlight .section2-inline-title {
        text-align: right;
    }

        .section2-inline-highlight .section2-inline-title a {
            
            font-weight: 700;
            font-size: 14px; /*big title size */
           color:#000; /*black*/
        }
            .section2-inline-highlight .section2-inline-title a:hover {
                color: #b13446; /*red*/
                transition: color 0.7s ease;
            }


.section2-list-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.section2-year-inline {
    font-size: .8rem;
    color: #666;
}

.section2-inline-title {
    text-align: right;
}

    .section2-inline-title a {
        
        font-weight: 700;
        font-size: 14px; /*big title size */
        color:#000; /*black*/
    }

    .section2-inline-title a:hover {
        color: #b13446; /*red*/
        transition: color 0.7s ease;
    }

/* ============ Section 3 ============ */
.section3-img-banner {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

/* ============ Section 4 ============ */
.section4-columns {
    display: flex;
    gap: 20px;
}

.section4-main {
    width: 65%;
}

.section4-side {
    width: 35%;
}

.section4-img-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.section4-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section4-img-mini {
    width: 90px;
    height: 70px;
    object-fit: cover;
}

.section4-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.section4-header {
    display: inline-block;
    font-weight: 700;
    font-size: 20px;
    margin: 5px 0 20px;
    text-decoration-line: underline;
    text-decoration-style: double;
    text-decoration-color: #d32f2f;
    text-decoration-thickness: 1px;
    text-underline-offset: 10px;
    padding-bottom: 10px;
}
.section4-title {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: right;
}

    .section4-title a {
       
        
        font-weight: 700;
        font-size: 16px; /*big title size */
       color:#000; /*black*/
    }

        .section4-title a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }


.section4-text {
    flex: 1;
}

.section4-year {
    font-size: .8rem;
    color: #666;
}

.section4-subtitle {
    text-align: right;
}

    .section4-subtitle a {
        
        font-weight: 700;
        font-size: 14px; /*big title size */
       color:#000; /*black*/
    }

    .section4-subtitle a:hover {
        color: #b13446; /*red*/
        transition: color 0.7s ease;
    }

.section4-summary {
    text-align: right;
    
    font-size: 14px;
    line-height: 2;
    color: #555;
}


/* ============ Section 5 ============ */
.section5 {
    margin: 40px 0;
}

.section5-title {
    margin-top: 10px;
    display: inline-block;
    font-weight: 700;
    font-size: 20px;
    margin: 5px 0 20px;
    text-decoration-line: underline;
    text-decoration-style: double;
    text-decoration-color: #d32f2f;
    text-decoration-thickness: 1px;
    text-underline-offset: 10px;
    padding-bottom: 10px;
}

/* ✅ توزيع 4 عناصر بعرض الصفحة */
.section5-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ✅ عرض ثابت لكل عنصر */
.section5-item {
    width: calc(25% - 15px); /* 4 عناصر + فجوات 20px بينها */
    display: flex;
    flex-direction: column;
}

/* ✅ ضبط حجم الصورة داخل الحاوية */
.section5-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}


.section5-subtitle {
    text-align: right;
}

.section5-subtitle a {
    
    font-weight: 700;
    font-size: 14px; /*big title size */
   color:#000; /*black*/
}

    .section5-subtitle a:hover {
        color: #b13446; /*red*/
        transition: color 0.7s ease;
    }

.section5-text {
    text-align: right;
    
    font-size: 14px;
    line-height: 2;
    color: #555;
    margin-top: 1px; /* أضف هذا أو قلل القيمة */
}


/* =================== 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;
}

/* ==== Hamburger Button ==== */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}


/* ==== Responsive @768px ==== */
@media (max-width: 768px) {
    /* أظهر زر الهامبرغر */
    .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;
        border-top: 1px solid #ddd;
        z-index: 1400;
    }
        /* عند الفتح */
        nav ul.open {
            display: flex;
        }

    /* حوّل كل الأقسام متعددة الأعمدة إلى عمود واحد */
    .section1-columns,
    .section2-columns,
    .section4-columns,
    .section5-grid {
        flex-direction: column;
    }

    .section1-col-left,
    .section1-col-center,
    .section1-col-right,
    .section2-main,
    .section2-side,
    .section4-main,
    .section4-side,
    .section5-item {
        width: 100% !important;
    }

    /* الصور الرئيسية تتناسب تلقائيًا */
    .section1-img-container-middel,
    .section2-img-wrapper-main,
    .section4-img-wrapper {
        height: auto !important;
        aspect-ratio: 16/9;
    }
}

/* ==== Responsive @576px ==== */
@media (max-width: 576px) {
    /* وسّع لمس روابط القائمة */
    nav ul li a {
        padding: 12px 0;
        font-size: 1rem;
    }
    /* تكبير نص العناوين قليلاً */
    .section1-main-title a,
    .section2-title a,
    .section1-side-title a,
    .section4-header,
    .section5-title {
        font-size: 1rem;
    }


    .header .social-icons {
        gap: 5px; /* تقليل المسافات بين الأيقونات */
    }

    .header .info {
        font-size: 0.8rem; /* تصغير النص */
    }

}
