@font-face {
    font-family: 'Uthman';
    src: url('/theme_system/themes/alkadri/assets/fonts/Uthman.ttf') format('truetype');
    font-weight: normal;
}

/* ✅ فرض خط العثمان على المقالات */
.article-content-box, .article-content-box * {
    font-family: 'Uthman' !important;
}

/* ✅ فرض خط العثمان على الأخبار */
.news-content, .news-content * {
    font-family: 'Uthman' !important;
}

/* ✅ فرض خط العثمان على الأدعية */
.duas-content, .dua-content-box * {
    font-family: 'Uthman' !important;
}

/* ✅ فرض خط العثمان على الفتاوى */
.fatwas-content, .fatwas-content * {
    font-family: 'Uthman' !important;
}

/* بداية كود تنسيق الأقسام الرئيسية */
.main-section {
    max-width: 1220px;
    margin: 0px auto;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    background-color: #fff; /* الخلفية الموحدة للبلوك */
    padding: 0;
    box-sizing: border-box;
    color: #0d3c61; /* لون النص بشكل عام */
}

/* عنوان القسم */
.section-title {
  background-color: #ffffff;
 border-bottom: 3px solid #675443;
  color: #675443;
  text-align: center;
  padding: 10px  0px;
  border-radius: 0px 0px 0 0; /* زوايا علوية فقط */
  font-size: 20px;
  font-weight: bold;
  margin: 0px 0px 0px 0px; /* هامش علوي فقط */
  max-width: 1220px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* محتوى الأقسام */
.content-wrapper {
    padding: 10px;
    margin: 0;
    border-radius: 0 0 12px 12px; /* حواف دائرية أسفل البلوك */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    box-sizing: border-box;
    background-color: #fff; /* توحيد خلفية المحتوى مع بطاقات الأقسام */
}

/* بطاقة القسم */
.category-box {
    background-color: #faecdf; /* لون أبيض مميز */
    border-bottom: 5px solid #675443;
    border-radius: 0px;
    padding: 10px 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    color: #000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.category-box:hover {
    background-color: #e9e5d5;
    transform: translateY(-2px);
    color: #0000ff;
}

/* رابط القسم */
.category-link {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* أيقونة القسم */
.category-icon {
    font-size: 20px;
    color: #675443;
}

/* عداد المقالات */
.item-count {
    background-color: #675443;
    color: white;
    padding: 6px 10px;
    border-radius: px;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

/* استجابة الأجهزة الصغيرة */
@media (max-width: 768px) {
    .category-box {
        flex: 1 1 100%;
    }
}
/* بداية كود تنسيق قسم المقالات */
/* 🌟 [المقالات] حاوية القسم */
.articles-main-section {
    max-width: 1200px;
    margin: 0px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    background-color: #ffffff;
    padding: 0;
    box-sizing: border-box;
    color: #0d3c61;
}

/* ✅ [المقالات] عنوان القسم */
.articles-section-title {
    background-color: #675443;
    color: white;
    text-align: center;
    padding: 15px;
    margin: 0 0 20px;
    font-size: 24px;
}

/* ✅ [المقالات] الحاوية */
.articles-wrapper {
    padding: 10px;
    border-radius: 0px;
    margin-top: 10px;
}

/* ✅ [المقالات] بطاقة المادة */
.article-card {
    background-color: #ffffff;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0px;
    overflow: hidden;
    transition: transform 0.2s;
    padding: 0;
}
.article-card:hover {
    transform: translateY(-5px);
}

/* ✅ [المقالات] صندوق الصورة */
.article-image-box {
    width: 100%;
    overflow: hidden;
    border-bottom: 0px solid #ccc;
}

.article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ✅ [المقالات] صندوق العنوان */
.article-title-box {
    padding: 8px;
    margin-top: 8px;
    background-color: #faecdf;
    text-align: center;
    border-bottom: 3px solid #675443;
    border-top: 0px solid #675443;
}

.article-title  {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

/* ✅ [المقالات] توزيع الأعمدة */
.articles-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.articles-wrapper .col-md-4 {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

/* ✅ [المقالات] استجابة الهاتف */
@media (max-width: 768px) {
    .articles-wrapper .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* بداية كود تنسيق عرض المادة */
/* 🌟 [المادة] الحاوية الرئيسية */
.article-wrapper {
    max-width: 1200px;
    margin: 0px auto;
    background: #fff;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #ddd;
    direction: rtl;
}

/* ✅ [المادة] ترويسة: عنوان + معلومات */
.article-header-box {
    background: #fff;
    padding: 5px 10px;
    border-radius: 0px;
    margin-bottom: 10px;
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    border-bottom: 3px solid #675443;
}

/* ✅ عنوان المادة */
.single-article-title {
    background-color: #fff;
     border-bottom: 3px solid #675443;
    font-size: 18px;
    color: #000;
    text-align: center;
    padding: 10px;
    margin-top: 0px;
}
/* ✅ [المادة] صندوق المحتوى */
.article-content-box {
     background: #ffffff;
    padding: 5px;
    border-radius: 12px;
    font-size: 18px;
    color: #000;
    line-height: 1.9;
    text-align: right;
    font-family: 'Uthman', serif;
}

/* ✅ تحسينات للجوال */
@media (max-width: 768px) {
    .single-article-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .article-header-box {
        font-size: 14px;
        padding: 5px 10px;
    }

    .article-content-box {
        padding: 2px;
        font-size: 14px;
    }
}
/* بداية كود تنسيق قسم الصوتيات */
/* 🌟 تنسيقات عرض المواد داخل القسم(audios/details.php) */
.audios-main-section {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    color: #0d3c61;
    box-sizing: border-box;
}

.audios-section-title {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 22px;
    margin: 0 0 20px;
}

.cardaudio-wrapper {
    padding: 20px;
}

/* ✅ الشبكة: 3 أعمدة تلقائيًا */
.gridaudio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ✅ البطاقة */
.cardaudio {
    background-color: #faecdf;
    border-bottom: 5px solid #675443;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cardaudio:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ✅ الرابط داخل البطاقة */
.audio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* ✅ الأيقونة */
.audio-icon {
    font-size: 30px;
    color: #675443;
}

/* ✅ العنوان */
.audio-title {
    font-size: 16px;
    color: #000;
}
.audio-title:hover {
    font-size: 17px;
    color: #0000ff;
}

/* ✅ للجوال: عمود واحد */
@media (max-width: 768px) {
    .gridaudio {
        grid-template-columns: 1fr;
    }
}

/* 🌟 تنسيقات عرض المادة الصوتية المفردة (audios/details.php) */

.audio-wrapper {
    max-width: 1200px;
    margin: 0px auto;
    background: #ffffff;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #ddd;
    direction: rtl;
}

.audio-header-box {
  background: #fff;
  border-bottom: 3px solid #000;
  padding: 10px;
  border-radius: 0px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.audio-header-box .meta-title {
    background-color: #fff;
     border-bottom: 3px solid #675443;
    font-size: 18px;
    color: #000;
    text-align: center;
    padding: 10px;
    margin-top: 0px;
     font-weight: bold;
}

.audio-meta {
  font-size: 14px;
  color: #555;
}

.audio-player {
  width: 100%;
  margin: 20px 0;
}

.audio-description {
  background: #eef7ff;
  padding: 15px;
  border-radius: 8px;
  line-height: 1.7;
  font-size: 15px;
  color: #333;
}

/* بداية كود تنسيق قسم الأخبار */
/* 🌟 تنسيقات صفحة عرض الأخبار داخل الأقسام */

.news-main-section {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  background-color: #675443;
  color: white;
  padding: 15px 0;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  box-sizing: border-box;
}/* ✅ الشبكة الجديدة لعرض الأخبار */
.news-grid {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  background-color: #ffffff;
  border-radius: 0 0 12px 12px;
  box-sizing: border-box;
}

/* ✅ بطاقة خبر فردية */
.news-card {
    background-color: #c9c9b5;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    padding: 5;
}

.news-card:hover {
  transform: translateY(-4px);
}

/* ✅ صورة الخبر */
.news-img-box {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #ccc;
}

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ✅ عنوان الخبر داخل البطاقة */
.news-title-box {
  background-color: #675443;
  text-align: center;
  padding: 10px;
}

.news-title-box .news-title {
  font-size: 16px;
  color: #ffffff;
  margin: 0;
  text-decoration: none;
  display: inline-block;
}

/* 📱 استجابة الهاتف المحمول */
@media (max-width: 768px) {
  .news-grid {
    padding: 15px;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }

  .news-card-img {
    height: 180px;
  }
}
/* 🌟 تنسيقات عرض الخبر المفرد (news/details.php) */

.news-wrapper {
  max-width: 1200px;
  margin: 0px auto;
  background: #ffffff;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  border: 1px solid #ddd;
  direction: rtl;
}

/* ✅ ترويسة الخبر: العنوان + المعلومات */
.news-header-box {
    background: #fff;
    padding: 5px 10px;
    border-radius: 0px;
    margin-bottom: 10px;
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    border-bottom: 3px solid #000;
}

/* ✅ عنوان الخبر */
.single-news-title {
    background-color: #675443;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    padding: 10px;
     margin-top: 0px;
}


/* ✅ بيانات الكاتب والتاريخ والمشاهدات */
.news-meta-list {
  background-color: #f0f4ff;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  border: 1px solid #d0d9e9;
  max-width: 450px;
}
/* ✅ محتوى الخبر */
.news-content {
     background: #ffffff;
    padding: 5px;
    border-radius: 12px;
    font-size: 18px;
    color: #000;
    line-height: 1.9;
    text-align: right;
    font-family: 'Uthman', serif;
}

/* ✅ تحسينات للهواتف */
@media (max-width: 768px) {
  .single-news-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .news-meta-list {
    font-size: 14px;
    padding: 5px 10px;
  }

  .news-content {
    padding: 2px;
    font-size: 14px;
  }
}


/* 🌟 تنسيقات عرض الكتب داخل الأقسام */
/* ✅ تنسيق الحاوية والعنوان مثل الأخبار */
.books-main-section {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  background-color: #675443;
  color: white;
  padding: 15px 0;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  box-sizing: border-box;
}

.books-wrapper.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  background-color: #fff;
  padding: 10px 10px;
  border-radius: 0 0 12px 12px;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto 20px auto;
}

.book-card {
  background-color: #675443;
  padding: 10px;
  border-radius: 0px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-thumbnail {
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 506px;
  overflow: hidden;
  border-radius: 0px 0px 0 0;
}

.book-title {
    padding: 8px;
    margin-top: 8px;
    background-color: #faecdf;
    text-align: center;
    border-bottom: 3px solid #675443;
    border-top: 0px solid #675443;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}
.book-author {
  font-size: 14px;
  color: #444;
}

@media (max-width: 768px) {
  .book-thumbnail {
    height: 100%;
  }
}
/* 🌟 الحاوية العامة لصفحة عرض الكتاب */
.book-details-wrapper {
  max-width: 1200px;
  margin: 0px auto;
  padding: 10px;
  background-color: #fdfdfd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  box-sizing: border-box;
}

/* ✅ صندوق الغلاف */
.cover-box {
  text-align: center;
}

.cover-box img {
  width: 380px;
  height: auto;
  border-radius: 0px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 3px solid #dbba4f;
}

/* ✅ صندوق المعلومات */
.info-box {
  width: 100%;
}

/* ✅ عنوان الكتاب */
.info-box h1 {
    background-color: #fff;
     border-bottom: 3px solid #675443;
    font-size: 16px;
    color: #675443;
    text-align: center;
    padding: 10px;
    margin-top: 0px;
        font-weight: bold;
}

/* ✅ بيانات القسم، المؤلف، التاريخ، المشاهدات */
.meta-box {
    background: #fff;
    padding: 5px 10px;
    border-radius: 0px;
    margin-bottom: 10px;
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    border-bottom: 3px solid #000;
}

/* ✅ وصف الكتاب */
.description {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

/* ✅ زر تحميل الكتاب */
.download-box {
  text-align: center;
}

.download-btn,
.read-btn {
  display: inline-block;
  padding: 10px 130px;
  background-color: #675443;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.2s ease-in-out;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 10px; /* ✅ مسافة أسفل الزر */
}

.download-btn:hover,
.read-btn:hover {
  background-color: #c9c9b5;
  color: #000;
}

/* ✅ استجابة الجوال */
@media (max-width: 768px) {
  .book-details-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .cover-box img {
    width: 98%;
    max-width: 380px;
  }

  .info-box h1 {
    font-size: 22px;
  }

  .download-btn,
  .read-btn {
    display: block;
    width: 100%;
    max-width: 250px;
    padding: 12px 20px;
    font-size: 17px;
    white-space: normal;
    margin: 10px auto;
  }
}

/* 🌟 تنسيقات صفحة عرض الفتاوى داخل الأقسام */
/* ✅ الحاوية العامة للقسم (مثل الكتب والمقالات) */
.fatwa-main-section {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    color: #0d3c61;
    box-sizing: border-box;
}

.fatwa-section-title {
    background-color: #675443;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 24px;
    margin: 0 0 20px;
}

.cardfatwa-wrapper {
    padding: 20px;
    margin-top: 10px;
}

.gridfatwa {
    display: grid;
    grid-template-columns: 1fr; /* ✅ سطر واحد دائمًا */
    gap: 15px;
}

/* ✅ البطاقة */
.cardfatwa {
    background-color: #faecdf;
    border-bottom: 3px solid #675443;
    border-radius: 0px;
    padding: 10px;
    text-align: right;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cardfatwa:hover {
    transform: translateY(-0px);
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
}
.cardfatwa a {
    text-decoration: none;
    color: #000;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}
.cardfatwa a:hover {
    color: #0000ff;

}
/* ✅ للجوال */
@media (max-width: 768px) {
    .gridfatwa {
        grid-template-columns: 1fr;
    }
}

/* 🌟 تنسيق عرض فتوى مفردة */


/* ✅ الحاوية العامة */
.wrapper {
    max-width: 1200px;
    margin: 0px auto;
    background: #ffffff;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #ddd;
    direction: rtl;
}

/* ✅ رأس الفتوى: القسم + العنوان + التاريخ + المشاهدات */
.header-box {
  background: #fff;
  border-bottom: 3px solid #000;
  padding: 10px;
  border-radius: 0px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.header-box .meta-title {
    background-color: #fff;
     border-bottom: 3px solid #675443;
    font-size: 18px;
    color: #000;
    text-align: center;
    padding: 10px;
    margin-top: 0px;
        font-weight: bold;
}

.header-box .meta {
  font-size: 14px;
  color: #000;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ✅ صندوق السؤال */
.question-box {
  background: #ebebe0;
  padding: 10px;
  border-radius: 10px;
  line-height: 1.9;
  font-size: 18px;
  color: #000;
  margin-bottom: 10px;
  border-right: 4px solid #675443;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.question-box .box-title,
.answer-box .box-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 12px;
  color: #000;
}

.question-box .box-content,
.question-box .box-content *,
.answer-box .box-content,
.answer-box .box-content * {
  text-align: justify;
  line-height: 1.9;
  color: #000;
  font-family: 'Uthman' !important;
  font-size: 18px;
}


/* ✅ صندوق الجواب */
.answer-box {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  border-right: 4px solid #0d6efd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);

}

/* 🌟 تنسيقات قسم الفيديوهات */
/* 🌟 حاوية قسم الفيديوهات */
.video-main-section {
    max-width: 1200px;
    margin: 10px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    background-color: #ffffff;
    padding: 0;
    box-sizing: border-box;
    color: #0d3c61;
}

/* ✅ عنوان القسم */
.video-section-title {
    background-color: #675443;
    color: white;
    text-align: center;
    padding: 15px;
    margin: 0 0 20px;
    font-size: 24px;
}

/* ✅ حاوية البطاقات */
.cardvideo-wrapper {
    padding: 10px;
    margin-top: 10px;
}

/* ✅ تنسيق كل بطاقة فيديو */
.cardvideo {
    background-color: #ffffff;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0px;
    overflow: hidden;
    transition: transform 0.2s;
    padding: 0;
}
.cardvideo:hover {
    transform: translateY(-5px);
}

/* ✅ صورة الفيديو */
.video-thumb {
    width: 100%;
    height: 173px;
    object-fit: cover;
    display: block;
}

/* ✅ عنوان الفيديو */
.video-title {
    padding: 8px;
    margin-top: 8px;
    background-color: #faecdf;
    text-align: center;
    border-bottom: 3px solid #675443;
    border-top: 0px solid #675443;
}
.video-title a {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-decoration: none; 
}
.video-title a:hover {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-decoration: none; 
}

/* ✅ توزيع 3 بطاقات في الصف */
.cardvideo-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.cardvideo-wrapper .col-md-4 {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

/* ✅ استجابة الجوال */
@media (max-width: 768px) {
    .cardvideo-wrapper .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ✅ تفاصيل الفيديو الواحد */
.video-wrapper {
   max-width: 1200px;
    margin: 0px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    border: 1px solid #ddd;
    direction: rtl;
}
.video-title1 {
    background-color: #fff;
     border-bottom: 3px solid #675443;
    font-size: 16px;
    color: #675443;
    text-align: center;
    padding: 10px;
    margin-top: 0px;
}
/* ✅ بيانات القسم والتاريخ والمشاهدات */
.meta-box-video {
    background: #fff;
    padding: 5px 10px;
    border-radius: 0px;
    margin-bottom: 10px;
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    border-bottom: 3px solid #000;
}

/* ✅ صندوق عرض الفيديو */
.video-frame {
  position: relative;
  padding-bottom: 56.25%; /* نسبة العرض:الارتفاع 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}
/* 🌟 تنسيقات صفحة عرض الأدعية داخل الأقسام /* 🌟 تنسيقات صفحة عرض الأدعية داخل الأقسام */

.duas-main-section {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    background-color: #ffffff;
    padding: 0;
    box-sizing: border-box;
    color: #0d3c61;
}

/* ✅ عنوان قسم الأدعية */
.duas-section-title {
    background-color: #675443;
    color: white;
    text-align: center;
    padding: 15px;
    margin: 0 0 20px;
    font-size: 24px;
}

/* ✅ حاوية بطاقات الأدعية */
.duas-wrapper {
    padding: 10px;
    border-radius: 0px;
    margin-top: 10px;
}

/* 📌 تصميم بطاقة الدعاء الواحدة */
.dua-card {
    background-color: #c9c9b5;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0px;
    overflow: hidden;
    transition: transform 0.2s;
    padding: 5;
}

.dua-card:hover {
    transform: translateY(-5px);
}

/* ✅ صورة الدعاء */
.dua-image-box {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #ccc;
}

.dua-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ✅ عنوان الدعاء داخل البطاقة */
.dua-title-box {
    padding: 10px;
    background-color: #675443;
    text-align: center;
}

.dua-title-box .dua-title {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
}

/* ✅ توزيع الأدعية على 3 أعمدة */
.duas-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.duas-wrapper .col-md-4 {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

/* ✅ استجابة الهاتف المحمول */
@media (max-width: 768px) {
    .duas-wrapper .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* ✅ تنسيق صفحة عرض دعاء مفرد */

.dua-wrapper {
  max-width: 1200px;
  margin: 0px auto;
  background: #ffffff;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  border: 1px solid #ddd;
  direction: rtl;
}

/* ✅ الترويسة: العنوان + المعلومات */
.dua-header-box {
    background: #fff;
    padding: 5px 10px;
    border-radius: 0px;
    margin-bottom: 10px;
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    border-bottom: 3px solid #000;
}

/* ✅ عنوان الدعاء */
.single-dua-title {
    font-size: 20px;
    color: #000;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: right;
}

/* ✅ محتوى الدعاء */
.dua-content-box {
     background: #ffffff;
    padding: 0px;
    border-radius: 12px;
    font-size: 18px;
    color: #000;
    line-height: 1.9;
    text-align: right;
    font-family: 'Uthman', serif;
}

/* ✅ تحسينات للجوال */
@media (max-width: 768px) {
  .single-dua-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .dua-header-box {
    font-size: 14px;
    padding: 15px 20px;
  }

  .dua-content-box {
    padding: 20px;
    font-size: 16px;
  }
}


/* ✅ تنسيق موحّد لقسم "جديد هذا القسم" لكل أنواع المحتوى */

.related-section-box {
  margin-top: 20px;
  padding: 10px;
  background-color: #ffffff;
  border: 0px solid #000;
  border-radius: 5px;
}

.related-section-box h4 {
   background-color: #675443;
   padding: 8px;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
  border-right: 10px solid #000;
  padding-right: 10px;

}

.related-section-entry {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  transition: background-color 0.2s;
  padding: 8px;
  border-radius: 0px;
  background-color: #faecdf;
  border-bottom: 2px solid #675443;

}
.related-section-entry img {
  width: 50px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  margin-left: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.related-section-entry a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  
}

.related-section-entry a:hover {
  color: #0000ff;
  text-decoration: none;
  font-size: 15px;
}
/* ✅ قسم الصور - تصميم موحّد */
.image-main-section {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 25px;
  padding: 10px 15px;
  background-color: #675443;
  color: white;
  border-radius: 8px;
  text-align: center;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.image-card {
  display: block;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  color: #333;
  text-decoration: none;
  text-align: center;
}

.image-card:hover {
  transform: translateY(-5px);
}

.image-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.image-card .image-title {
  padding: 12px;
  font-size: 17px;
  font-weight: bold;
  color: #675443;
  background-color: #ffffff;
}
.image-title a {
  color: #675443;
  text-decoration: none;
  transition: color 0.2s;
}

.image-title a:hover {
  text-decoration: underline;
  color: #145c32;
}
/* ✅ الحاوية العامة لعرض صورة */
.image-details-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  background-color: #fdfdfd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* ✅ صندوق المعلومات */
.image-info-box {
  width: 100%;
}

/* ✅ عنوان الصورة */
.image-info-box h1 {
  background-color: #675443;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
}

/* ✅ بيانات التصنيف والتاريخ والمشاهدات */
.image-meta {
  background: #fff;
  padding: 5px 10px;
  border-radius: 0px;
  margin-bottom: 10px;
  text-align: right;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  border-bottom: 3px solid #000;
}

/* ✅ عرض الصورة */
.image-display-box img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

/* ✅ وصف الصورة */
.image-description {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  text-align: justify;
}

/* ✅ صور مشابهة */
.related-images-section {
  margin-top: 40px;
}

.related-images-section h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.related-image-entry {
  margin: 4px 0;
}

.related-image-entry a {
  text-decoration: none;
  color: #0d6efd;
}

.related-image-entry a:hover {
  text-decoration: underline;
}

/* ✅ استجابة الجوال */
@media (max-width: 768px) {
  .image-display-box img {
    width: 100%;
    max-width: 100%;
  }
}
/* ✅ عند وجود القائمة الجانبية على اليمين */
.with-sidebar-right .article-wrapper,
.with-sidebar-right .news-wrapper,
.with-sidebar-right .book-details-wrapper,
.with-sidebar-right .video-wrapper,
.with-sidebar-right .wrapper,
.with-sidebar-right .dua-wrapper {
    margin-right: 5px;
}

/* ✅ عند وجود القائمة الجانبية على اليسار */
.with-sidebar-left .article-wrapper,
.with-sidebar-left .news-wrapper,
.with-sidebar-left .book-details-wrapper,
.with-sidebar-left .video-wrapper,
.with-sidebar-left .wrapper,
.with-sidebar-left .dua-wrapper {
    margin-left: 5px;
}
