/* =====================================================
   CDIS Premium Q1 Theme - Scientific IRG
   Burgundy Professional Edition
===================================================== */

/* ================= BASE ================= */
body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  background-color: #ffffff;
}

/* ================= HEADINGS ================= */
h1, h2, h3, h4, h5, h6,
.pkp_page_title,
.obj_article_summary .title a {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.25px;
  color: #7a1f2b; /* نبيتي أكاديمي */
}

/* ================= NAVIGATION ================= */
.pkp_navigation_primary > li > a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pkp_navigation_primary > li > a:hover {
  color: #7a1f2b;
}

/* ================= HERO HEADER ================= */
.pkp_structure_head {
  background: linear-gradient(135deg, #7a1f2b 0%, #4a0f18 100%);
  color: #fff;
}

/* اسم المجلة */
.pkp_site_name .is_text {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* ================= ARTICLE CARDS ================= */
.obj_article_summary {
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #ffffff;
  transition: all 0.25s ease;
}

.obj_article_summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* ================= ARTICLE PAGE ================= */
.obj_article_details {
  font-size: 16px;
  line-height: 1.75;
}

.obj_article_details .item .label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* ================= BUTTONS ================= */
button,
.pkp_button,
.cmp_button,
input[type="submit"] {
  font-family: 'Poppins', sans-serif !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

button:hover,
.pkp_button:hover,
.cmp_button:hover {
  transform: translateY(-1px);
}

/* ================= LINKS ================= */
a {
  color: #7a1f2b;
  transition: color 0.2s ease;
}

a:hover {
  color: #5a1620;
  text-decoration: underline;
}

/* ================= FORMS ================= */
input,
select,
textarea {
  font-family: 'Roboto', sans-serif !important;
  border-radius: 6px;
}

/* ================= FOOTER ================= */
.pkp_structure_footer_wrapper {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  background: #f8f9fb;
}

/* ================= DARK MODE ================= */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0f172a;
    color: #e5e7eb;
  }

  .obj_article_summary {
    background: #111827;
    border-color: #1f2937;
  }

  .pkp_structure_footer_wrapper {
    background: #020617;
  }

  a {
    color: #fca5a5;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #fca5a5;
  }

  .pkp_structure_head {
    background: linear-gradient(135deg, #5a1620 0%, #2b0a0f 100%);
  }
}

/* ================= ARABIC SUPPORT ================= */
html[lang="ar"] body {
  font-family: 'Cairo', sans-serif !important;
}

/* ===== FORCE SHOW REFERENCES ===== */

.references,
.ref-list,
.item.references,
.citation_output,
.article-references,
.cmp_article_references,
.entry_details .references {

    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
}

/* تحسين الشكل */

.references h2,
.references h3,
.cmp_article_references h2 {
    color: #e67e22;
    font-weight: 700;
    margin-top: 30px;
}

.references li {
    margin-bottom: 8px;
    line-height: 1.6;
}
