﻿/* ================= 0. Reset & Globals ================= */
* {
    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 1 =================== */
.SECTION1 {
    margin-top: 20px;
}

.SECTION1-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch; /* تجعل جميع الأعمدة بنفس الارتفاع */
}

.SECTION1-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.first-col {
    flex: 0 0 40%;
}

.second-col {
    flex: 0 0 40%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

}

.third-col {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
}

.SECTION1-news-box {
    display: flex;
    flex-direction: column; /* تعديل لتكون الصورة والنص عمودياً */
    gap: 10px;
    padding-bottom: 0;
    border-bottom: none;
}

.SECTION1-large-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

    .SECTION1-large-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }



.SECTION1-large-content .title {
    margin-bottom: 10px;
    text-align: right;
}

        .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: 4px 0;
    margin-bottom: 10px;
}

.SECTION1-large-content .text {
    justify-content: space-between;
    text-align: right;

    font-size: 14px;
    line-height: 2;
    color: #555;
}

   

.SECTION1-large-content {
    text-align: right;
   
}

.SECTION1-small-news-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.SECTION1-small-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.SECTION1-small-content .title {
    text-align: right;
    margin-bottom: 10px;
}

    .SECTION1-small-content .title a {
    
        font-weight: 700;
        font-size: 14px; /*big title size */
       color:#000; /*black*/
    }

        .SECTION1-small-content .title a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }

.SECTION1-small-content .meta {
    font-size: .8rem;
    color: #666;
}

.SECTION1-news-item {
    margin-bottom: 10px;
}

    .SECTION1-news-item .title {
        text-align: right;
        margin-bottom: 10px;
    }

        .SECTION1-news-item .title a {
        
            font-weight: 700;
            font-size: 12px; /*big title size */
           color:#000; /*black*/
        }

        .SECTION1-news-item .title a:hover {
            color: #b13446; /*red*/
            transition: color 0.7s ease;
        }

    .SECTION1-news-item .meta {
        font-size: .8rem;
        color: #666;
        margin-bottom: 10px;
    }

/* كلاس خاص للخط الفاصل */
.SECTION1-news-item-border {
    border-bottom: 1px solid #ccc; /* إضافة الخط الفاصل */
    width: 90%; /* تحديد عرض الخط الفاصل */
    margin-left: 5%; /* توازن بين العنصر والخط الفاصل */
}


   

.SECTION1-col.half-col {
    flex: 0 0 50%; /* تقسيم العمود الثاني إلى عمودين بالتساوي */
}


.SECTION1-advertisement {
    flex: 1; /* السماح للعنصر بأن يملأ المساحة بالكامل في العمود */
    width: 100%;
    height: 100%; /* السماح للعنصر أن يملأ العمود من حيث الطول */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* لمنع ظهور أجزاء الصورة التي تتجاوز الحدود */
}

    .SECTION1-advertisement img {
        width: 100%; /* تأكد من أن الصورة تغطي العرض بالكامل */
        height: 100%; /* تأكد من أن الصورة تغطي الطول بالكامل */
        object-fit: cover; /* تأكد من أن الصورة تغطي المساحة بالكامل دون تشويه */
    }

/* =================== SECTION 2 =================== */
.SECTION2 {
    margin-top: 50px;
}

.SECTION2-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.SECTION2-news-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.SECTION2-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

    .SECTION2-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.SECTION2-content .title {
    text-align: right;
}

    .SECTION2-content .title a {
    
        font-weight: 700;
        font-size: 14px; /*big title size */
       color:#000; /*black*/
    }

    .SECTION2-content .title a:hover {
        color: #b13446; /*red*/
        transition: color 0.7s ease;
    }

.SECTION2-content .meta {
    font-size: .8rem;
    color: #666;
}

/* =================== SECTION 3 =================== */
.SECTION3 {
    margin-top: 100px;
}

.SECTION3-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.SECTION3-img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.SECTION3-content .title {
    text-align: right;
    margin-bottom: 10px;
}

    .SECTION3-content .title a {
    
        font-weight: 700;
        font-size: 16px; /*big title size */
       color:#000; /*black*/
    }

    .SECTION3-content .title a:hover {
        color: #b13446; /*red*/
        transition: color 0.7s ease;
    }

.SECTION3-content .text {
    margin: 5px 0;
    margin-bottom: 10px;
    text-align: right;

    font-size: 14px;
    line-height: 2;
    color: #555;
}



.SECTION3-content .meta {
    font-size: .8rem;
    color: #666;
}


/* =================== 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 ===================== */

/* أخفِ زرّ الهامبرغر على الشاشات الكبيرة */
.menu-toggle {
    display: none;
}

/* ===== أجهزة التابلت والمتوسطة (≤768px) ===== */
@media (max-width: 768px) {
    /* ===== Navbar ===== */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: transparent;
        border: none;
        cursor: pointer;
        margin: 10px;
    }

    .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;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
    }

        nav ul.open {
            display: flex;
        }

    nav .search input {
        width: 100%;
    }

    /* ===== SECTION1 ===== */
    .SECTION1-row {
        flex-direction: column;
    }

    .SECTION1-col,
    .first-col,
    .second-col,
    .third-col {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    /* ===== SECTION2 ===== */
    .SECTION2-row {
        flex-direction: column;
    }

    .SECTION2-news-item {
        width: 100%;
    }

    /* ===== SECTION3 ===== */
    .SECTION3-news-item {
        flex-direction: column;
    }

    .SECTION3-img img {
        width: 100%;
        height: auto;
    }

    /* ===== Main Columns ===== */
    .main-columns {
        flex-direction: column;
    }

    .main-left, .main-middle, .main-right {
        width: 100%;
        margin-bottom: 20px;
    }

    /* ===== Hot Stocks Bar ===== */
    .hot-stocks {
        flex-wrap: wrap;
        padding: 10px;
    }

    /* ===== What to Watch ===== */
    .what-to-watch .watch-item {
        width: calc(50% - 15px);
        margin-bottom: 20px;
    }

    /* ===== second-main & third-main ===== */
    .second-main, .third-main {
        flex-direction: column;
    }

        .second-main .col40, .second-main .col30,
        .third-main .right-half, .third-main .left-half {
            width: 100%;
            margin-bottom: 20px;
        }

    /* ===== success & tech sections ===== */
    .success-section .news-item,
    .tech-section .news-item {
        width: calc(50% - 15px);
        margin-bottom: 20px;
    }

    /* ===== media-top & media-bottom ===== */
    .media-top .news-item {
        width: calc(50% - 15px);
    }

    .media-bottom {
        flex-direction: column;
    }

    .media-col-40, .media-col-30 {
        width: 100%;
    }

    /* ===== SECTION5 ===== */
    .SECTION5-list .SECTION5-item {
        flex-direction: column;
    }

    .SECTION5_LIST .SECTION5_ITEM img {
        width: 100%;
        height: auto;
    }
}

/* ===== الهواتف الصغيرة (≤576px) ===== */
@media (max-width: 576px) {
    /* تكبير مساحات اللمس */
    nav ul li a {
        padding: 10px;
        font-size: 1rem;
    }

    /* SECTION1-secondary يكبر عرض العنصر */
    .SECTION1-secondary-item {
        flex: 1 1 100%;
    }

    /* What to Watch عنصر كامل */
    .what-to-watch .watch-item {
        width: 100%;
    }

    .header .social-icons {
        gap: 5px; /* تقليل المسافات بين الأيقونات */
    }

    .header .info {
        font-size: 0.8rem; /* تصغير النص */
    }


}
