/* ============================
   ✅ خط "Cairo" العربي
============================ */
@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/Cairo-Regular.ttf') format('truetype');
}

/* ============================
   ✅ عنوان البلوك الموحد
============================ */
.ha-block-heading {
  background-color: #ffffff;
  border-bottom: 3px solid #675443;
  color: #675443;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  border-radius: 0;
  font-size: 20px;
  font-weight: bold;
  margin: 0 auto;
  max-width: 1220px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================
   ✅ عنوان قسم سلايدر الكتب (خارج البلوك)
============================ */
.slider-books-block {
  font-family: 'Cairo', sans-serif;
  max-width: 1220px;
  margin: 0 auto 30px auto;
  padding: 0;
  background: #ffffff;
}

/* ============================
   ✅ إعدادات Swiper الخاصة بسلايدر الكتب فقط
============================ */
.slider-books-swiper {
  padding-bottom: 50px;
}

.slider-books-swiper .swiper-wrapper {
  align-items: stretch;
}

.slider-books-swiper .swiper-slide {
  display: block;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ============================
   ✅ بطاقة الكتاب داخل السلايدر
============================ */
.slider-book-card {
  background-color: #ffffff;
  padding: 5px;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.slider-book-card:hover {
  transform: translateY(-5px);
}

/* ============================
   ✅ صورة الكتاب
============================ */
.slider-book-image-container {
  background-color: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.slider-book-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* ============================
   ✅ عنوان الكتاب داخل البطاقة
============================ */
.slider-book-title-box {
  background-color: #faecdf;
  border-bottom: 2px solid #675443;
  border-radius: 0;
  padding: 12px;
  margin-top: 0;
  margin-bottom: 0;
}

.slider-book-title {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  text-align: center;
  line-height: 1.6;
  text-decoration: none;
  display: block;
}

.slider-book-title:hover {
  color: #0000ff;
}

/* ✅ حاوية السلايدر العامة - ملاصقة للعناوين من الأعلى */
.ha-articles-slider-block,
.ha-duas-slider-block,
.ha-news-slider-block,
.hv-videos-slider-block {
  max-width: 1220px;
  margin: 0 auto 30px auto;
  padding: 0;
  background: #ffffff;
}

/* ✅ إعدادات سلايدر Swiper */
.swiper {
  padding-bottom: 35px;
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  border-radius: 0;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.swiper-slide:hover {
  transform: translateY(-5px);
}

/* ✅ البطاقة الموحدة لجميع البلوكات */
.material-box {
  background-color: #ffffff;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
  overflow: hidden;
  transition: transform 0.2s;
  padding: 5px;
}

.material-image img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
  display: block;
}

.material-title {
  padding: 12px;
  background-color: #faecdf;
  border-bottom: 2px solid #675443;
  margin-top: 10px;
  border-radius: 0;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #155724;
  margin-bottom: 0;
  line-height: 1.4;
}

.material-title a {
  color: #000;
  text-decoration: none;
}

.material-title a:hover {
  color: #0000ff;
}

/* ✅ أزرار السلايدر */
.swiper-button-next,
.swiper-button-prev {
  top: 95%;
  width: 30px;
  height: 30px;
  color: #675443;
  border-radius: 50%;
  font-size: 14px;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(25, 135, 84, 0.85);
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

/* ✅ نقاط التصفح */
.swiper-pagination {
  bottom: 0;
  text-align: center;
}

.swiper-pagination-bullet {
  background: #675443;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}
/* ✅ بلوك مقالات مميزة */
/* ✅ الحاوية العامة للبلوك */
.featured-articles-block {
  max-width: 1220px;
  margin: 0 auto 20px auto;
  padding: 10px;
  background: #fff;
}

/* ✅ عنوان البلوك */
.featured-articles-title {
  background-color: #675443;
  color: white;
  font-size: 22px;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ✅ الشبكة */
.featured-articles-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
}

/* ✅ البطاقة بنفس شكل .material-box */
.featured-articles-block {
  max-width: 1220px;
  margin: 0 auto 20px auto;
  padding: 0;
  background: #fff;
  box-sizing: border-box;
}

.featured-article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

/* ✅ الصورة بنفس شكل .material-image img */
.featured-article-image-container img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
  display: block;
}

/* ✅ العنوان بنفس شكل .material-title */
.featured-article-title {
  padding: 12px;
  background-color: #faecdf;
  border-bottom: 2px solid #675443;
  margin-top: 10px;
  border-radius: 0;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 0;
  line-height: 1.4;
}

.featured-article-title a {
  color: #000;
  text-decoration: none;
}

.featured-article-title a:hover {
  color: #0000ff;
}

/* ✅ قسم الأدعية */
.hs-audios-section-block {
  max-width: 1220px;
  margin: 0 auto 30px auto;
  padding: 0;
  background: #ffffff;
  box-sizing: border-box;
}

.hs-audios-section-block .hs-audio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  background-color: #fff;
  padding: 5px;
  border-radius: 8px;
}

.hs-audios-section-block .hs-audio-card {
  background-color: #faecdf;
  border-bottom: 2px solid #675443;
  border-radius: 0;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s;
}

.hs-audios-section-block .hs-audio-card:hover {
  transform: translateY(-4px);
}

.hs-audios-section-block .hs-audio-link {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  display: block;
  direction: rtl;
}

.hs-audios-section-block .hs-audio-link:hover {
  color: #0000ff;
}

/* ✅ قسم الفتاوى */
.hf-fatwas-section-block {
  max-width: 1220px;
  margin: 0 auto 30px auto;
  padding: 0;
  background: #ffffff;
  box-sizing: border-box;
}

.hf-fatwas-section-block .hs-audio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
  background-color: #fff;
  padding: 5px;
  border-radius: 8px;
}

.hf-fatwas-section-block .hs-audio-card {
  background-color: #faecdf;
  border-bottom: 2px solid #675443;
  border-radius: 0;
  padding: 10px;
  text-align: right;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hf-fatwas-section-block .hs-audio-card:hover {
  transform: translateY(-4px);
}

.hf-fatwas-section-block .hs-audio-link {
  font-size: 16px;
  color: #000;
  text-decoration: none;
  display: block;
  direction: rtl;
}

.hf-fatwas-section-block .hs-audio-link:hover {
  color: #0000ff;
}

/* ✅ استجابة الجوال */
@media (max-width: 768px) {
  .hs-audios-section-block .hs-audio-grid,
  .hf-fatwas-section-block .hs-audio-grid {
    grid-template-columns: 1fr;
  }
}