/* ======================
   الحاوية العامة
====================== */
.single-article-section .container-fluid {
  max-width: 1500px;
  padding-inline: 40px;
  background: #fff;
}

/* ======================
   العنوان والتاريخ
====================== */
.article-content .article-title {
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 .90rem;
  font-weight: 450;
  text-align: start;
  color: #000;
}

/* 🎯 تصغير حجم عنوان المقالة فقط على الموبايل */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.2rem !important;
    line-height: 1.7;
  }
}

.article-date {
  font-size: .95rem;
  line-height: 1.6;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ======================
   نص المقال
====================== */
.article-body {
  direction: rtl;
  text-align: justify;
  font-size: 1.06rem;
  line-height: 1.95;
  color: #000;
  overflow-wrap: anywhere;
  word-break: normal;
  padding-inline: 10px;
}

.article-body [style*="font-size"] { font-size: inherit !important; }
.article-body [style*="line-height"] { line-height: inherit !important; }

.article-body h2, .article-body h3, .article-body h4 {
  font-weight: 800;
  line-height: 1.35;
  margin: 1.25rem 0 .5rem;
  color: #000;
}
.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.35rem; }
.article-body h4 { font-size: 1.18rem; }

.article-body blockquote {
  background: #f9fafb;
  padding: .75rem 1rem;
  border-radius: 12px;
  color: #000;
}

/* إجبار الصور والفيديوهات داخل المقال على المقاسات الموحدة */
.article-body figure img {
  width: 100% !important;
  height: 350px !important;   /* 🔸 ارتفاع ثابت للصور */
  object-fit: cover !important;
  border-radius: 10px;
  display: block;
}

.article-body iframe {
  width: 100% !important;
  height: 450px !important;   /* 🔸 ارتفاع خاص للفيديو */
  border: none;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* لمنع أي أنماط مضمّنة من التداخل */
.article-body figure[style],
.article-body figure img[style],
.article-body iframe[style] {
  height: auto !important;
}

/* تجاوب الموبايل */
@media (max-width: 768px) {
  .article-body figure img {
    height: 250px !important;
  }
  .article-body iframe {
    height: 320px !important;
  }
}

.article-body video {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

@media (max-width: 768px) {
  .article-body video {
    height: 320px;
  }
}


.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 14px;
  object-fit: contain;
}

.article-body a {
  color: #b30000;
  text-decoration: none;
}
.article-body a:hover {
  text-decoration: underline;
}

/* ======================
   ودجات أسفل المقال
====================== */
.widgets-section {
  background: transparent;
  border-radius: 16px;
  padding: 40px 30px;
  margin-top: 50px;
}

.widget-block {
  border-top: 1px solid #b30000;
  padding: 25px 0;
  transition: box-shadow 0.3s ease;
}
.widget-block:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.widget-block:last-child {
  border-bottom: none;
}

.widget-title {
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  border-right: 4px solid #b30000;
  padding-right: 10px;
  display: inline-block;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
}

/* ======================
   ودجت تابعنا
====================== */
.follow-us {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.follow-us .widget-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #222;
  border-right: 4px solid #b30000;
  padding-right: 10px;
  margin: 0;
}

.social-links a {
  display: inline-block;
  color: #444;
  font-size: 1.6rem;
  margin: 0 8px;
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: #b30000;
  transform: scale(1.1);
}

/* ======================
   ودجت عن المنصة + التصنيفات
====================== */
.about-widget {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 25px;
  margin-bottom: 25px;
}

.about-widget p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.categories-list {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.categories-list ul {
  padding: 0;
  margin: 0;
}

.categories-list li {
  display: inline-block;
  margin: 0 8px 8px 0;
}

.categories-list a {
  color: #b30000;
  text-decoration: none;
  font-weight: 500;
  background: #f9f9f9;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.categories-list a:hover {
  background: #b30000;
  color: #fff;
}

/* ======================
   السايدبار العام
====================== */
.sidebar {
  background: transparent;
  padding-top: 10px;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.single-article-section .row {
  flex-direction: row-reverse !important;
}

@media (max-width: 992px) {
  .single-article-section .row {
    flex-direction: column;
  }
  .sticky-sidebar {
    position: static;
    margin-top: 30px;
  }
}

/* ======================
   النشرة البريدية
====================== */
.newsletter-widget {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.newsletter-widget input[type="email"] {
  border-radius: 8px 0 0 8px;
  border: 1px solid #ddd;
  padding: 10px;
}

.newsletter-widget button {
  background: #b30000;
  border: none;
  color: #fff;
  border-radius: 0 8px 8px 0;
  transition: 0.3s ease;
}

.newsletter-widget button:hover {
  background: #900000;
}

.newsletter-widget p {
  font-size: 0.9rem;
  color: #555;
}

/* ==============================
   🧩 توحيد الصور داخل الودجات
================================= */

/* ✅ الصور الكبيرة (تحقيقات مختارة أو بعرض كامل) */
.featured-investigation img,
.widget-block img.full-width-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background-color: #f6f6f6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ✅ الصور الصغيرة (آخر المقالات، من نفس التصنيف) */
.sidebar-article img.sidebar-thumb {
  display: block;
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #f6f6f6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* hover */
.featured-investigation img:hover,
.sidebar-article img.sidebar-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* ==============================
   📰 ودجت آخر المقالات
================================= */
.sidebar-article {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.sidebar-title {
  font-weight: 600;
  color: #111;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}
.sidebar-title:hover { color: #b30000; }

.sidebar-date {
  font-size: 0.8rem;
  color: #777;
}

/* ==============================
   🕵️‍♂️ ودجت التحقيقات المختارة
================================= */
.featured-investigations {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 25px;
}

.featured-investigation {
  text-align: center;
  margin-bottom: 20px;
}

.featured-investigation h6 {
  margin-top: 10px;
  font-size: 1rem;
  color: #111;
  font-weight: 600;
  transition: color 0.2s ease;
}
.featured-investigation h6:hover { color: #b30000; }

/* ==============================
   📱 تحسين الموبايل
================================= */
@media (max-width: 992px) {
  .featured-investigation img { height: 160px; }
  .sidebar-article img.sidebar-thumb { width: 100px; height: 70px; }
}

@media (max-width: 600px) {
  .featured-investigation img { height: 130px; }
  .sidebar-article img.sidebar-thumb { width: 90px; height: 65px; }
}

/* ==============================
   نافذة عرض الصور (Lightbox)
================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  object-fit: contain;
  transition: transform 0.2s ease;
}

.lightbox-overlay img:hover {
  transform: scale(1.02);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}
