/* إعادة تعيين التنسيقات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Almarai", sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    text-align: right; /* محاذاة النص إلى اليمين */
    direction: rtl; /* النص من اليمين إلى اليسار */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* الحاوية العلوية */
.top-header {
    padding: 10px 0;
    background-color:#000;

background-image: linear-gradient(to left,red, white, black );
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr; /* إعادة تعيين اتجاه النص للعناصر المحددة */
}

.top-header .email {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.top-header .email i {
    color: #fff;
}

.top-header .social-icons {
    display: flex;
    gap: 15px;
     z-index: 2;
}

.top-header .social-icons a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

.top-header .social-icons a:hover {
    color: #f71f1f;
}

/* الخط الفاصل */
.header-divider {
    height: 2px;
    background-color: #eedede;
}

/* الحاوية السفلية */
.bottom-header {
    padding: 10px 0;
    background-color:black;
    background-image: linear-gradient(to left, red, white, black);
}

.bottom-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    direction: ltr;
}

.bottom-header .logo {
    height: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    height: 450%; /* تعديل الارتفاع حسب الحاجة */
    max-width: 100%; /* حتى لا يتجاوز العرض الحاوية */
    object-fit: contain; /* الحفاظ على الأبعاد */
    margin-top: 15px;
}
    



.bottom-header .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 29px;
}

.bottom-header .menu ul li a {
    color: #0a66ef;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 30px;
    
    transition: color 0.3s ease;
}

.bottom-header .menu ul li a:hover {
    color: #f3ecec;
    background-color: #CE1126;
    border-radius: 5px;
    padding: 10px 15px;
    display: inline-block; /* لمنع تمدد العناصر */
}


/* تنسيق القائمة */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    text-align: center;
}

.menu ul li a:hover {
    color: #ccc;
}

/* زر القائمة */
.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    position: absolute;
padding: top 1px;
    right: 10px;
    z-index: 1001; 
}

/* القائمة المنسدلة للشاشات الصغيرة */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .bottom-header .menu ul {
        display: none;
        flex-direction: column-reverse;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        padding: 10px;
        z-index: 100;
    }

    .bottom-header .menu ul.active {
        display: flex;
    }

    .bottom-header .menu ul li {
        margin: 0 100px;
        text-align: center;
        background-color:rgb(0, 255, 145);
    }
}
.bottom-header .menu ul li :hover{
    background-color: black;
}

/* باقي التنسيقات */
.email a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.email a:hover {
    color: #ccc;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-icon {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.search-icon:hover {
    color: #ccc;
}

.search-box {
    display: none;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    margin-left: 10px;
}

.search-input {
    border: none;
    background: transparent;
    color: white;
    font-size: 14px;
    outline: none;
    width: 150px;
}

.search-input::placeholder {
    color: #ccc;
}

/* تذييل الصفحة */
.footer {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.footer-menu ul li {
    margin-left: 20px;
}

.footer-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-menu ul li a:hover {
    text-decoration: underline;
}










/* الحاوية الرئيسية */
.content-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

/* قسم البروفايلات */
.profiles-section {
    width: 65%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* رأس قسم البروفايلات */
.profiles-header {
    background: #fff;
    padding: 10px;
    position: relative;
    text-align: right;
}


.section-title {
    font-size: 22px;
    margin-bottom: 0;
    padding-right: 10px;
}

/* عناصر البروفايلات */
.profile-item {
    text-align: right;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.profile-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.profile-item h3 {
    font-size: 22px;
    margin-bottom: 5px;
    
}


.profile-item p {
    font-size: 19px;
    color: #666;
    
}

.read-more {
    display: inline-block;
    margin-top: 5px;
    font-size: 14px;
    color: #CE1126;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* ودجيت الأكثر قراءة */
.most-read-section {
    width: 30%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.most-read-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.most-read-item img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin-left: 10px;
}

.most-read-item a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.most-read-item a:hover {
    color: #CE1126;
}




/* الحاوية الرئيسية */
.content-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

/* قسم البروفايلات */
.profiles-section {
    width: 75%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}


/* رأس قسم البروفايلات */
.profiles-header {
    background: #fff;
    padding: 5px;
    position: relative;
    text-align: right;
    margin-bottom: 15px;
}

.profiles-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #CE1126;
    position: absolute;
    bottom: 9px;
    left: 0;
}

.section-title {
    font-size: 30px;
    margin-bottom: 0;
    padding-right: 0px;
    color: blue;
}


.section-title-tht {
    font-size: 30px;
    margin-bottom: 7px;
    padding-right: 0px;
    color: blue;
}
/* عناصر البروفايلات */
.profile-item {
    text-align: right;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.profile-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.profile-item h3 {
    font-size: 31px;
    margin-bottom: 5px;
    font-weight: bold;
    color: black;
}

.profile-item p {
    font-size: 19px;
    color:black;
    font-weight: bold;
}

.read-more {
    display: inline-block;
    margin-top: 5px;
    font-size: 18px;
    color: #CE1126;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* ودجيت الأكثر قراءة */
.most-read-section {
    width: 40%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    
    /* هذه هي الإضافات الجديدة للتثبيت */
    position: -webkit-sticky; /* للسفاري */
    position: sticky;
    top: 20px; /* المسافة من أعلى الصفحة */
    align-self: flex-start; /* مهم إذا كان داخل flex container */
    height: fit-content; /* يتكيف مع محتواه */
    /* الحد الأقصى للارتفاع */
    overflow-y: auto; /* يسمح بالتمرير إذا زاد المحتوى */
}

/* تنسيق العناصر داخل ودجيت الأكثر قراءة */
.most-read-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.most-read-item img {
    width: 110px;
    height: 110px;
    border-radius: 4px;
    margin-left: 10px;
}

.most-read-item a {
    font-size:23px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.most-read-item a:hover {
    color: #CE1126;
}

/* ⭐ تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .profiles-section,
    .most-read-section {
        width: 100%;
    }

    .most-read-item a{

        font-size: 16px;
    }


    .profiles-header::after {
        width: 100%;
    }

    .most-read-section {
        order: 2; /* يجعل "الأكثر قراءة" ينتقل أسفل البروفايلات */
        overflow-y: hidden;

    }
}



/* ✅ تنسيق عنوان "الأكثر قراءة" */
.most-read-header {
    background: #fff;
    padding: 5px;
    position: relative;
    text-align: right;
    margin-bottom: 15px; /* هامش أسفل العنوان */
                                          /*كان مكتوب هنا الفونت سايز 40بكسل مسحته لأنه غير فعال زينة*/
    font-weight: bold;
}

/* ✅ إضافة الخط الأحمر أسفل عنوان "الأكثر قراءة" */
.most-read-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #CE1126;
    position: absolute;
    bottom: 9px; /* يبعد الخط عن العنوان */
    left: 0;
}

/* ✅ إضافة هامش بين الخط الأحمر وأول عنصر في الأكثر قراءة */
.most-read-section .most-read-item:first-child {
    margin-top: 15px;
}

/*تنسيقات للخط منسوحة من قوقل فونت*/


  
/* اضفنا التالي لجعل عناوين البروفايلات تظهر باللون الأحمر وللحفاظ على تنسيقات اتش 3 جعلت الروابط داخله لأنه كان السبب في عدم فعالية التنسيق ةلكن له تنسيقات سابقا*/


/* ✅ التأكد من تنسيق جميع الروابط داخل قسم البروفايلات */
.profiles-section a {
    text-decoration: none; /* إزالة التسطير */
    color: #000000 !important; /* اللون الافتراضي */
    font-weight: bold; /* اجعل العناوين بارزة */
    transition: color 0.3s ease; /* تأثير الانتقال */
}

/* ✅ تغيير لون الرابط عند تمرير الماوس */
.profiles-section a:hover {
    color: #CE1126 !important; /* اللون الأحمر عند التمرير */
}


.profile-author {
    font-size: 14px;
    color: #777;
    margin: 5px 0;
    font-weight: bold;
}

.profile-author span {
    color: #c70f1e; /* لون مميز لاسم الكاتب */
}


/*لإضافة نص ملون على صور الأكثر قراءة*/
/* تنسيق صندوق نوع المحتوى */
.content-type {
    position: absolute;
    bottom: 8px; /* يحدد المسافة من الأسفل */
    right: 8px; /* يحدد المسافة من اليمين */
    background-color: #CE1126; /* لون أحمر مشابه للمواقع الإخبارية */
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

/* تأكد أن الصور لها موقع نسبي لوضع النص فوقها */
.profile-item {
    position: relative;
}

/* نفس التنسيق لعناصر الأكثر قراءة */
.most-read-item {
    position: relative;
}

.bottom-header {
    padding: 17px 0; /* زيادة التباعد العلوي والسفلي */
}




/* تهيئة عامة - خطوط وألوان */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700&display=swap');

:root {
  --primary-color: #C00;
  --secondary-color: #333;
  --light-gray: #f5f5f5;
  --white: #ffffff;
}


/* النشرة البريدية */
.newsletter {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    text-align: center;
    margin-top: 40px;
    font-family: "Almarai", sans-serif;
  }
  
  .newsletter input {
    padding: 10px;
    width: 60%;
    border: none;
    border-radius: 4px;
  }
  
  .newsletter button {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    margin-right: 5px;
  }
  
  /* تجاوب مع الشاشات الصغيرة */
  @media (max-width: 768px) {
    .hero-section {
      grid-template-columns: 1fr;
    }
    
    .content-grid {
      grid-template-columns: 1fr;
    }
    
    .newsletter input {
      width: 100%;
      margin-bottom: 10px;
    }
  }
  
  
  a{
    text-decoration: none;
    color: #000000;
  }
  a:hover{
    color: #CE1126;
  }
  
  /* وضع هذا في ملف CSS الخاص بك */
  .footer ~ ul, 
  .footer ~ li, 
  .newsletter + ul, 
  .newsletter + li {
    display: none !important;
  }
  
  
  .social-share-container {
      display: flex;
      align-items: center;  /* محاذاة رأسية */
      gap: 15px;           /* مسافة بين العناصر */
      margin: 15px 0;
  }
  
  .social-media {
      display: flex;
      gap: 10px;           /* مسافة بين الأيقونات */
  }
  
  .social-media a {
      color: #fff;
      font-size: 20px;
      transition: 0.3s;
  }
  
  .share-button {
      background: #4267B2;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 5px;
      cursor: pointer;
      transition: 0.3s;
      display: flex;
      align-items: center;
      gap: 5px;
  }
  
  .white-stripe {
    /* تأثيرات إضافية */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
  }
  
  /* تنسيقات العناصر الداخلية */
  .national-symbol {
    text-align: center;
    
  }
  
  .national-symbol p{
   font-size: 16px;

  }

  .container p{
    font-size: 16px;
  }
  .eagle-icon {
    width: 100px;
    height: auto;
    animation: float 3s ease-in-out infinite;
  }
  
  
  .eagle-icon{
    visibility: hidden; /* يخفي المحتوى مع الحفاظ على المساحة */
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  /* حجم أساسي للأيقونة */
  .share-button i {
    font-size: 7px; /* الحجم الافتراضي */
  }
  
  /* تعديل الحجم للشاشات الصغيرة */
  @media (max-width: 768px) {
    .share-button i {
      font-size: 14px; /* حجم أصغر للجوال */
    }
    
    .share-button {
      padding: 5px 10px; /* تعديل حجم الزر نفسه */
      font-size: 12px; /* حجم نص أصغر */
    }
  }
  
  @media (max-width: 768px) {
    .social-media-wrapper {
      text-align: center;
    }
    
    .social-media {
      display: inline-flex; /* يحافظ على التنسيق الأفقي */
    }
  }
  
  .social-container {
    display: flex;
    align-items: center; /* يضمن محاذاة جميع العناصر */
    gap: 10px;
  }
  
  .share-pin {
    margin: 0;
    padding: 0;
    line-height: 1; /* يمنع أي فراغ غير ضروري */
  }
  
  .share-pin {
    display: inline-flex; /* بدلاً من inline-block */
    align-items: center; /* محاذاة رأسية */
    vertical-align: middle; /* محاذاة مع العناصر المجاورة */
    position: relative;
    top: 1px; /* تعديل دقيق للموقع */
  }
  
  
  .yemen-stats {
    display: flex;
    justify-content: space-around;
    font-family: "Almarai", sans-serif;
  }
  .stat-item {
    text-align: center;
  }
  .number {
    font-size: 2rem;
    color: #CE1126;
    font-weight: bold;
  }
  .yemen-stats {
    display: flex;
    justify-content: space-around;
    position: relative; /* هذه السطر ضروري */
    padding-bottom: 40px; /* لتجنب تداخل المحتوى */
  }
  

  /* تنسيقات شريط المشاركة */
.share-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .share-options {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    position: relative;
  }
  
  .share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .share-btn:hover {
    transform: scale(1.1);
  }
  
  .facebook { background: #3b5998; color: white; }
  .twitter { background: #1da1f2; color: white; }
  .whatsapp { background: #25d366; color: white; }
  .copy { background: #555; color: white; }
  
  .share-close {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #CE1126;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
  }