/* ==========================================
   Hydrated Global CSS (use.css)
   خاص بكل الأقسام — Template Hydra-MSMSJ
   ========================================== */

/* ---------- الألوان الأساسية ---------- */
:root {
  
  --body-font-size: 15pt;
  --body-bg: #ffffff;
}

/* ---------- تحسين الـ Article Info ---------- */
dl.article-info {
  background: #f9fff3;
  border: 1.5px solid #c7d3a6;
  border-left: 6px solid var(--cassiopeia-color-primary);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 13pt;
  color: #3b3b3b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

dl.article-info dt { display: none; }

dl.article-info dd {
  margin: 8px 0;
  display: flex;
  align-items: center;
  color: #4a4a4a;
}

dl.article-info dd:hover {
  color: var(--cassiopeia-color-hover);
  transform: translateX(2px);
  transition: all 0.2s ease;
}

dl.article-info dd::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  color: var(--cassiopeia-color-primary);
}

dd.createdby::before,
dd.category-name::before {
  content: none !important;
}

dd.published::before {
  content: "\f017";
}

dl.article-info a {
  color: var(--cassiopeia-color-link);
  text-decoration: none;
  font-weight: 600;
}

dl.article-info a:hover {
  color: var(--cassiopeia-color-hover);
  text-decoration: underline;
}

/* ---------- تحسين محتوى المقال ---------- */
.article-content {
  background: #fffdf5;
  border: 1px solid #e4d9b3;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.06),
              0 4px 10px rgba(0,0,0,0.07);
  font-family: "Noto Serif", "Amiri", serif;
  line-height: 1.8;
  color: #3a2f2f;
  position: relative;
}

.article-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,240,180,0.1));
  pointer-events: none;
}

/* ---------- الهيدر والفوتر ---------- */
header.site-header {
  background: linear-gradient(to right, #f3f7ff, #eaf0fa);
  border-bottom: 2px solid #5460a8;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

footer.site-footer {
  background: #f8f9fb;
  border-top: 2px solid #5460a8;
  color: #444;
  text-align: center;
  padding: 20px 10px;
  font-size: 11pt;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

/* ===========================================================
   MODULE HEADER – Premium Elegant Style  
   =========================================================== */

.card-header,
.moduletable > h3,
.module-title,
h3.moduletitle {
    background: linear-gradient(135deg, #1e3c72, #2a5298);  /* الأزرق الملكي */
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid #ff9800;  /* خط سفلي برتقالي فاخر */
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    font-size: 17px;
    letter-spacing: 0.3px;
}

/* لمعة خفيفة على العنوان (glossy glow) */
.card-header::after,
.moduletable > h3::after,
.module-title::after,
h3.moduletitle::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: rgba(255,255,255,0.12);  /* لمعة subtle */
    pointer-events: none;
}


/* -----------------------------------------------
   أقسام المواضيع (Latest + Popular) — عام
   إزالة الخطوط — تحسين طريقة العرض
   ----------------------------------------------- */

/* UL */
.archery-latest,
.archery-popular {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* العناصر */
.archery-latest-item,
.archery-popular-item {
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* عناوين */
.archery-latest-title,
.archery-popular-title {
  color: var(--cassiopeia-color-hover);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none !important;
  display: block;
  margin-bottom: 6px;
}

/* إزالة الخط تحت روابط الأقسام + تحسين الخط */
.archery-latest-category a,
.archery-popular-category a {
  text-decoration: none !important;
  font-weight: 800;
  font-size: 15px;
  transition: 0.2s;
}

.archery-latest-category a:hover,
.archery-popular-category a:hover {
  color: var(--cassiopeia-color-primary);
}

/* التاريخ والزيارات */
.archery-latest-date,
.archery-popular-hits {
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Pagination عالمي ---------- */
.pagination {
  margin: 28px 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pagination li {
  list-style: none;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
}

.pagination .active span {
  background: var(--cassiopeia-color-primary);
  color: white;
  border-color: var(--cassiopeia-color-primary);
}


/* ========= CSS عام للقالب ========= */

/* تحسين التجاوب */
@media (max-width: 600px) {
  dl.article-info {
    font-size: 12pt;
    padding: 10px;
  }

  .article-content {
    padding: 16px;
  }
}

/* Pagination – عام لكل الأقسام */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 15px 0;
}

.pagination li {
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f7f9fc;
  color: #444;
  text-decoration: none;
  transition: all 0.2s ease;
}

@media (max-width: 600px) {
  .pagination a,
  .pagination span {
    padding: 5px 10px;
    font-size: 12pt;
  }
}

/* إزالة الخط أسفل عناوين المواضيع */
.com-content-category a {
    text-decoration: none !important;
}
.com-content-category a:hover {
    text-decoration: none !important;
}
/* الصندوق العام لقائمة المواضيع */
.com-content-category .category-list {
    background: #f9fbff;
    border-radius: 16px;
    padding: 20px;
}

/* كل موضوع */
.com-content-category .list-title,
.com-content-category .cat-list-row {
    background: #ffffff;
    margin-bottom: 12px;
    padding: 15px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

/* تأثير عند المرور */
.com-content-category .list-title:hover,
.com-content-category .cat-list-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* عنوان الموضوع */
.com-content-category .list-title a {
    font-size: 17px;
    font-weight: bold;
    color: #003366;
}

/* بيانات إضافية (تاريخ - كاتب - زيارات) */
.com-content-category .small {
    color: #777;
    font-size: 13px;
}

/* تحسين الفواصل */
.com-content-category hr {
    display: none;
}
/* الحاوية العامة */
.blog-wall-wrapper{
    margin-top:25px;
    text-align:center;
}

/* زر الجدار */
.blog-wall-button{
    display:inline-block;
    background:linear-gradient(135deg,#6a11cb,#2575fc);
    color:#fff;
    padding:12px 28px;
    border-radius:30px;
    font-weight:bold;
    text-decoration:none;
    box-shadow:0 6px 14px rgba(0,0,0,.15);
    transition:0.3s ease;
}

.blog-wall-button:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 20px rgba(0,0,0,.22);
}
