@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@300;400;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   issue_toc.css — تقارب Academic Journal Theme
   Bootstrap 3 compatible · RTL · Arabic typography
   تحسينات: بطاقة العدد · ac-chip-row · ac-actions على الهاتف
   ═══════════════════════════════════════════════════════════════ */

/* ── Token Map ─────────────────────────────────────────────── */
.ac-current-issue {
  --ac-primary:       #1a3a5c;
  --ac-accent:        #c8a84b;
  --ac-accent2:       #2e6da4;
  --ac-line:          #dce4ed;
  --ac-text:          #1c2b3a;
  --ac-muted:         #6a7f95;
  --ac-bg-card:       #ffffff;
  --ac-bg-soft:       #f4f7fb;
  --ac-red:           #b84035;
  --ac-views-bg:      #eef4fd;
  --ac-views-border:  #c5d9f5;
  --ac-views-color:   #1a5896;
  --ac-dl-bg:         #edf7f1;
  --ac-dl-border:     #b8e4c8;
  --ac-dl-color:      #1a6b3f;

  direction: ltr;
  text-align: left;
  color: var(--ac-text);
  font-family: 'Source Serif 4', 'Amiri', Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin-top: 24px;
}

/* ── Reveal Animation ──────────────────────────────────────── */
.ac-current-issue .ac-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.ac-current-issue .ac-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   ISSUE CARD — تصميم جديد كلياً · مستقل عن Bootstrap
   Mobile: Banner + Stats Strip + Footer
   Desktop: Cover side + Info side
   ═══════════════════════════════════════════════════════════════ */

/* ── الحاوية ── */
.ac-current-issue .ac-issue-card {
  background: var(--ac-bg-card);
  border: 1px solid var(--ac-line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(26,58,92,.10);
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* ══ MOBILE LAYOUT (default) ══════════════════════════════════ */

/* ── Banner: خلفية داكنة مع الغلاف عائماً ── */
.ac-current-issue .ac-card-banner {
  background: var(--ac-primary);
  padding: 18px 16px 18px;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}
.ac-current-issue .ac-card-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,75,.12);
  pointer-events: none;
}
.ac-current-issue .ac-card-banner::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(-90deg, transparent, var(--ac-accent) 40%, var(--ac-accent) 60%, transparent);
}

/* الغلاف يعوم على يسار الـ banner */
.ac-current-issue .ac-cover-float {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 78px;
  z-index: 2;
}
.ac-current-issue .ac-cover-image {
  width: 78px;
  height: auto;
  border-radius: 7px;
  border: 2px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  display: block;
  transition: transform .3s ease;
}
.ac-current-issue .ac-cover-image:hover { transform: translateY(-3px) scale(1.03); }

/* شارة + عنوان على يمين الغلاف */
.ac-current-issue .ac-banner-content {
  padding-right: 98px;
}

.ac-current-issue .ac-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(200,168,75,.18);
  color: #f0d078;
  border: 1px solid rgba(200,168,75,.35);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 8px;
  width: fit-content;
}
.ac-current-issue .ac-current-badge .glyphicon {
  color: #f0d078;
  font-size: 11px;
}

.ac-current-issue .ac-issue-title {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* ── Stats Strip: 4 خانات أفقية ── */
.ac-current-issue .ac-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--ac-line);
}
.ac-current-issue .ac-stat-cell {
  padding: 11px 4px;
  text-align: center;
  border-left: 1px solid var(--ac-line);
  transition: background .2s;
}
.ac-current-issue .ac-stat-cell:first-child { border-left: none; }
.ac-current-issue .ac-stat-cell:hover { background: var(--ac-bg-soft); }

.ac-current-issue .ac-stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--ac-muted);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.ac-current-issue .ac-stat-label .glyphicon {
  font-size: 10px;
  color: var(--ac-accent2);
}
.ac-current-issue .ac-stat-value {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ac-primary);
  line-height: 1;
  display: block;
}
.ac-current-issue .ac-stat-value.ac-stat-sm { font-size: 13px; line-height: 1.3; }

/* ── Footer Row: إجمالي + شارة الحالة ── */
.ac-current-issue .ac-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--ac-bg-soft);
  border-top: 1px solid var(--ac-line);
  flex-wrap: wrap;
  gap: 8px;
}
.ac-current-issue .ac-issue-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ac-muted);
  font-size: 13px;
}
.ac-current-issue .ac-issue-count strong {
  color: var(--ac-primary);
  font-size: 15px;
  font-family: 'Source Serif 4', serif;
}
.ac-current-issue .ac-issue-count .glyphicon {
  color: var(--ac-accent2);
  font-size: 14px;
}
.ac-current-issue .ac-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef7f1;
  border: 1px solid var(--ac-dl-border);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ac-dl-color);
}
.ac-current-issue .ac-status-badge .glyphicon {
  color: var(--ac-dl-color);
  font-size: 11px;
}

/* ── إخفاء العناصر القديمة غير المستخدمة ── */
.ac-current-issue .ac-issue-info,
.ac-current-issue .ac-meta-grid,
.ac-current-issue .ac-meta-item { display: none !important; }

/* ── ac-card-right-header: مخفي على الجوال ── */
.ac-current-issue .ac-card-right-header { display: none; }

/* ══ DESKTOP LAYOUT (≥768px) ══════════════════════════════════ */
@media (min-width: 768px) {

  .ac-current-issue .ac-issue-card {
    display: flex;
    flex-direction: row;
    border-radius: 16px;
    min-height: 200px;
  }

  /* العمود الأيسر: غلاف على خلفية داكنة */
  .ac-current-issue .ac-card-banner {
    flex: 0 0 140px;
    min-height: unset;
    padding: 20px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
  }
  .ac-current-issue .ac-card-banner::after {
    top: 0; bottom: 0; left: 0; right: unset;
    width: 3px; height: 100%;
    background: linear-gradient(-180deg, transparent, var(--ac-accent) 40%, var(--ac-accent) 60%, transparent);
  }
  .ac-current-issue .ac-cover-float {
    position: static;
    transform: none;
    width: 100%;
  }
  .ac-current-issue .ac-cover-image {
    width: 100%;
    max-width: 110px;
    margin: 0 auto;
    border-width: 3px;
  }
  .ac-current-issue .ac-banner-content { display: none; }

  /* إظهار رأس العمود الأيمن على الديسكتوب */
  .ac-current-issue .ac-card-right-header { display: block; }

  /* العمود الأيمن: يصبح flex column */
  .ac-current-issue .ac-card-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  /* رأس: شارة + عنوان */
  .ac-current-issue .ac-card-right-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--ac-line);
  }
  .ac-current-issue .ac-current-badge {
    background: #fff8e6;
    color: #7d5f12;
    border-color: #e8d490;
    margin-bottom: 8px;
  }
  .ac-current-issue .ac-current-badge .glyphicon { color: var(--ac-accent); }
  .ac-current-issue .ac-issue-title {
    font-size: 22px;
    color: var(--ac-primary);
    text-shadow: none;
    margin: 0;
  }

  /* Stats: 4 خانات */
  .ac-current-issue .ac-stats-strip {
    flex: 1;
    border-top: none;
    border-bottom: 1px solid var(--ac-line);
    align-items: stretch;
  }
  .ac-current-issue .ac-stat-cell {
    padding: 14px 8px;
    border-left: none;
    border-right: 1px solid var(--ac-line);
  }
  .ac-current-issue .ac-stat-cell:last-child { border-right: none; }
  .ac-current-issue .ac-stat-value { font-size: 22px; }
  .ac-current-issue .ac-stat-value.ac-stat-sm { font-size: 16px; }
  .ac-current-issue .ac-stat-label { font-size: 11px; margin-bottom: 5px; }

  /* Footer */
  .ac-current-issue .ac-card-footer { border-radius: 0; }
  .ac-current-issue .ac-issue-count { font-size: 14px; }
  .ac-current-issue .ac-issue-count strong { font-size: 16px; }
}

/* ── إخفاء العناصر القديمة غير المستخدمة ── */
.ac-current-issue .ac-issue-info,
.ac-current-issue .ac-meta-grid,
.ac-current-issue .ac-meta-item { display: none; }

/* ═══════════════════════════════════════════════════════════════
   ARTICLES LIST — عنوان القائمة
   ═══════════════════════════════════════════════════════════════ */
.ac-current-issue .ac-list-title {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ac-primary);
  padding-bottom: 12px;
  margin: 0 0 24px;
  border-bottom: 2px solid var(--ac-line);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-current-issue .ac-list-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--ac-accent);
}
.ac-current-issue .ac-list-title .glyphicon {
  color: var(--ac-accent);
  font-size: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE CARD — بطاقة المقال
   ═══════════════════════════════════════════════════════════════ */
.ac-current-issue .ac-article-card {
  background: var(--ac-bg-card);
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(26,58,92,.05);
  transition: box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.ac-current-issue .ac-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ac-line);
  border-radius: 8px 0 0 8px;
  transition: background .25s ease;
}
.ac-current-issue .ac-article-card:hover {
  box-shadow: 0 6px 24px rgba(26,58,92,.12);
  border-color: #bfcee0;
}
.ac-current-issue .ac-article-card:hover::before {
  background: var(--ac-accent);
}

/* رقم المقال */
.ac-current-issue .ac-article-no {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ac-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* عنوان المقال */
.ac-current-issue .ac-article-title {
  font-family: 'Source Serif 4', serif;
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 700;
}
.ac-current-issue .ac-article-title a {
  color: var(--ac-primary);
  text-decoration: none;
  transition: color .2s;
}
.ac-current-issue .ac-article-title a:hover {
  color: var(--ac-accent2);
}

/* خط ذهبي */
.ac-current-issue .ac-title-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--ac-accent);
  margin: 8px 0 10px;
  border-radius: 2px;
}

/* سطر المؤلفين */
.ac-current-issue .ac-author-line {
  margin: 0 0 12px;
  color: var(--ac-muted);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.ac-current-issue .ac-author-line .glyphicon {
  color: var(--ac-accent2);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   AC-CHIP-ROW — شرائح البيانات (محسَّنة للجوال)
   ═══════════════════════════════════════════════════════════════ */
.ac-current-issue .ac-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
  align-items: center;
}

/* chip الأساسي */
.ac-current-issue .ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ac-bg-soft);
  border: 1px solid var(--ac-line);
  color: var(--ac-muted);
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.ac-current-issue .ac-chip .glyphicon {
  color: var(--ac-accent2);
  font-size: 12px;
  flex-shrink: 0;
}

/* ── شرائح الإحصاء (مشاهدات / تحميلات) ─────────────────────── */
.ac-current-issue .ac-chip--stat {
  gap: 4px;
  transition: opacity .3s ease;
}

/* المشاهدات: أزرق */
.ac-current-issue .ac-chip--views {
  background: var(--ac-views-bg);
  border-color: var(--ac-views-border);
  color: var(--ac-views-color);
}
.ac-current-issue .ac-chip--views .glyphicon {
  color: var(--ac-views-color);
}

/* التحميلات: أخضر */
.ac-current-issue .ac-chip--downloads {
  background: var(--ac-dl-bg);
  border-color: var(--ac-dl-border);
  color: var(--ac-dl-color);
}
.ac-current-issue .ac-chip--downloads .glyphicon {
  color: var(--ac-dl-color);
}

/* القيمة الرقمية */
.ac-current-issue .ac-chip--stat .ac-chip-stat-val {
  font-weight: 700;
  font-size: 13px;
}
.ac-current-issue .ac-chip--stat .ac-chip-stat-lbl {
  font-size: 12px;
  font-weight: 500;
  opacity: .9;
}

/* ═══════════════════════════════════════════════════════════════
   AC-ACTIONS — أزرار الإجراءات (محسَّنة للجوال)
   ═══════════════════════════════════════════════════════════════ */
.ac-current-issue .ac-actions {
  border-top: 1px solid var(--ac-line);
  padding-top: 14px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.ac-current-issue .ac-actions .btn {
  border-radius: 5px;
  font-size: 14px;
  padding: 8px 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s ease;
  line-height: 1.4;
  min-height: 40px;
}
.ac-current-issue .ac-actions .btn .glyphicon {
  font-size: 13px;
  flex-shrink: 0;
}

/* زر القراءة */
.ac-current-issue .ac-btn-read {
  background: var(--ac-primary);
  border-color: var(--ac-primary);
  color: #fff !important;
}
.ac-current-issue .ac-btn-read:hover,
.ac-current-issue .ac-btn-read:focus {
  background: #0f2540;
  border-color: #0f2540;
  color: #fff !important;
}

/* زر PDF */
.ac-current-issue .ac-btn-pdf {
  background: #fff;
  border: 1px solid #c8d4e0;
  color: var(--ac-red) !important;
}
.ac-current-issue .ac-btn-pdf:hover,
.ac-current-issue .ac-btn-pdf:focus {
  background: #fdf4f4;
  border-color: var(--ac-red);
  color: var(--ac-red) !important;
}
.ac-current-issue .ac-btn-pdf .glyphicon {
  color: var(--ac-red);
}

/* زر الملخص */
.ac-current-issue .ac-btn-abstract {
  background: #fff;
  border: 1px solid #c8d4e0;
  color: var(--ac-accent2) !important;
}
.ac-current-issue .ac-btn-abstract:hover,
.ac-current-issue .ac-btn-abstract:focus {
  background: #f0f6fc;
  border-color: var(--ac-accent2);
  color: var(--ac-accent2) !important;
}
.ac-current-issue .ac-btn-abstract .glyphicon {
  color: var(--ac-accent2);
}

/* ── لوحة الملخص ──────────────────────────────────────────── */
.ac-current-issue .ac-abstract-panel {
  margin-top: 14px;
  padding: 16px 8px;
  border: 1px solid #cdddf0;
  border-radius: 4px;
  background: #f6faff;
  color: var(--ac-text);
  line-height: 2;
  font-size: 15px;
}

/* ── زر تحميل المزيد ──────────────────────────────────────── */
.ac-current-issue .ac-load-more-btn {
  background: transparent;
  border: 2px solid var(--ac-primary);
  color: var(--ac-primary);
  border-radius: 5px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ac-current-issue .ac-load-more-btn:hover {
  background: var(--ac-primary);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — المقالات فقط (البطاقة الرئيسية متجاوبة في CSS أعلاه)
   ═══════════════════════════════════════════════════════════════ */

/* ── تعديلات بطاقة العدد على الشاشات الصغيرة جداً ── */
@media (max-width: 360px) {
  .ac-current-issue .ac-card-banner   { padding: 14px 12px 14px; min-height: 88px; }
  .ac-current-issue .ac-cover-float  { width: 66px; right: 10px; }
  .ac-current-issue .ac-cover-image  { width: 66px; }
  .ac-current-issue .ac-banner-content { padding-right: 84px; }
  .ac-current-issue .ac-issue-title  { font-size: 14px; }
  .ac-current-issue .ac-stat-value   { font-size: 15px; }
  .ac-current-issue .ac-stat-value.ac-stat-sm { font-size: 12px; }
  .ac-current-issue .ac-stat-label   { font-size: 9px; }
}

/* ── تعديلات Desktop: md (768–991px) ── */
@media (min-width: 768px) and (max-width: 991px) {
  .ac-current-issue .ac-issue-title   { font-size: 18px; }
  .ac-current-issue .ac-stat-value    { font-size: 18px; }
  .ac-current-issue .ac-card-banner   { flex: 0 0 120px; }
  .ac-current-issue .ac-cover-image   { max-width: 90px; }
}

/* ── بطاقات المقالات ── */
@media (max-width: 991px) {
  .ac-current-issue .ac-list-title    { font-size: 22px; }
  .ac-current-issue .ac-article-title { font-size: 19px; }
  .ac-current-issue .ac-actions       { flex-direction: column; align-items: stretch; gap: 8px; }
  .ac-current-issue .ac-actions .btn  { width: 100%; justify-content: center; min-height: 46px; font-size: 15px; }
}

@media (max-width: 767px) {
  .ac-current-issue .ac-article-card  { padding: 16px 14px; }
  .ac-current-issue .ac-article-title { font-size: 18px; }
  .ac-current-issue .ac-chip-row      { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .ac-current-issue .ac-chip          { font-size: 12px; padding: 4px 9px; white-space: normal; justify-content: flex-start; }
  .ac-current-issue .ac-actions       { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 12px; }
  .ac-current-issue .ac-actions .btn  { width: 100%; min-height: 48px; font-size: 15px; border-radius: 6px; }
}

@media (max-width: 480px) {
  .ac-current-issue                   { font-size: 15px; }
  .ac-current-issue .ac-article-card  { padding: 14px 15px; border-radius: 6px; }
  .ac-current-issue .ac-article-title { font-size: 17px; line-height: 1.5; }
  .ac-current-issue .ac-chip-row      { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; }
  .ac-current-issue .ac-chip          { font-size: 11px; padding: 4px 8px; gap: 4px; }
  .ac-current-issue .ac-chip .glyphicon { font-size: 11px; }
  .ac-current-issue .ac-chip--stat .ac-chip-stat-val { font-size: 12px; }
  .ac-current-issue .ac-chip--stat .ac-chip-stat-lbl { font-size: 11px; }
  .ac-current-issue .ac-actions .btn  { min-height: 50px; }
  .ac-current-issue .ac-load-more-btn { width: 100%; justify-content: center; padding: 12px; }
}



/* Sidebar redesign for Bootstrap3 blocks */
.pkp_structure_sidebar,
.pkp_block {
  font-family: 'Source Serif 4', Tahoma, Arial, sans-serif;
}

.pkp_structure_sidebar .pkp_block {
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 10px 24px -20px rgb(248, 250, 252);
  margin-bottom: 16px;
  overflow: hidden;
}

.pkp_structure_sidebar .pkp_block .title {
  margin: 0;
  padding: 18px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, rgb(46, 122, 184) 0%, rgb(26, 90, 138) 100%) !important;
  border-bottom: 1px solid #dbe4f0;
}

.pkp_structure_sidebar .pkp_block .content,
.pkp_structure_sidebar .pkp_block > ul,
.pkp_structure_sidebar .pkp_block .menu {
  padding: 10px 14px;
}

.pkp_structure_sidebar .pkp_block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pkp_structure_sidebar .pkp_block li {
  border-bottom: 1px dashed #e1e8f2;
}

.pkp_structure_sidebar .pkp_block li:last-child {
  border-bottom: 0;
}

.pkp_structure_sidebar .pkp_block a {
  display: block;
  padding: 10px 2px;
  color: #274c84;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.pkp_structure_sidebar .pkp_block a:hover {
  color: #d54638;
  transform: translateX(-2px);
}

.pkp_structure_sidebar .pkp_block button,
.pkp_structure_sidebar .pkp_block .btn,
.pkp_structure_sidebar .pkp_block input[type="submit"] {
  border-radius: 6px;
  border: 1px solid #274c84;
  background: #274c84;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
}

.pkp_structure_sidebar .pkp_block img {
  max-width: 100%;
  height: auto;
}
/* ============================================================
   Modern Issue Archive Styles for OJS Bootstrap 3 Theme
   v3.0 - SVG Icons + Standard Pagination + Original Mobile
   ============================================================ */

/* --- SVG Icon helpers - inline icons for instant render --- */
.icon-svg {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: middle;
	fill: currentColor;
	flex-shrink: 0;
}

/* --- Archive Header --- */
.archive-header {
	padding: 40px 20px;
	margin-bottom: 30px;
	background: linear-gradient(-135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 8px;
	border: 1px solid #dee2e6;
	margin-top: 20px;
}

.archive-icon {
	width: 70px;
	height: 70px;
	margin: 0 auto 15px;
	background: #2c3e50;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.archive-icon .icon-svg {
	width: 28px;
	height: 28px;
	color: #fff;
}

.archive-title {
	font-size: 28px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0 0 8px;
}

.archive-desc {
	font-size: 15px;
	color: #6c757d;
	margin: 0;
}

/* --- Issues Grid --- */
.issues-archive-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 30px;
}

/* --- Issue Card --- */
.issue-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.issue-card:hover {
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	border-color: #c0c0c0;
	transform: translateY(-2px);
}

.issue-card-inner {
	display: flex;
	align-items: stretch;
}

/* --- Cover Column --- */
.issue-cover-col {
	padding: 0;
}

.issue-cover-link {
	display: block;
	height: 100%;
}

.issue-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 200px;
}

/* Placeholder cover when no image */
.issue-cover-placeholder {
	width: 100%;
	height: 100%;
	min-height: 220px;
	background: linear-gradient(-135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.issue-cover-placeholder::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.issue-cover-placeholder-inner {
	text-align: center;
	color: #fff;
	position: relative;
	z-index: 1;
	padding: 20px;
}

.issue-volume-num {
	display: block;
	font-size: 48px;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 4px;
	opacity: 0.95;
}

.issue-volume-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
	opacity: 0.8;
}

.issue-number-badge {
	display: inline-block;
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 20px;
	padding: 4px 16px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 8px;
}

.issue-year {
	display: block;
	font-size: 18px;
	font-weight: 700;
	opacity: 0.7;
}

/* --- Info Column --- */
.issue-info-col {
	padding: 0;
}

.issue-info-body {
	padding: 22px 25px;
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* Meta badges */
.issue-meta-badges {
	margin-bottom: 12px;
}

.issue-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #f1f3f5;
	color: #495057;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 20px;
	margin-right: 6px;
	margin-bottom: 5px;
}

.issue-badge .icon-svg {
	width: 11px;
	height: 11px;
	color: #6c757d;
}

/* Title */
.issue-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 6px;
}

.issue-card-title a {
	color: #2c3e50;
	text-decoration: none;
	transition: color 0.2s ease;
}

.issue-card-title a:hover,
.issue-card-title a:focus {
	color: #1a5276;
	text-decoration: none;
}

/* Series */
.issue-card-series {
	font-size: 14px;
	color: #6c757d;
	font-weight: 600;
	margin: 0 0 10px;
}

/* Description */
.issue-card-desc {
	font-size: 14px;
	color: #6c757d;
	line-height: 1.7;
	margin: 0 0 15px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Actions */
.issue-card-actions {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.issue-card-actions .btn {
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	padding: 7px 16px;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.issue-card-actions .btn-primary {
	background: #2c3e50;
	border-color: #2c3e50;
}

.issue-card-actions .btn-primary:hover {
	background: #1a252f;
	border-color: #1a252f;
}

.issue-card-actions .btn-default {
	background: #fff;
	border-color: #dee2e6;
	color: #495057;
}

.issue-card-actions .btn-default:hover {
	background: #f8f9fa;
	border-color: #adb5bd;
}

.issue-card-actions .icon-svg {
	width: 12px;
	height: 12px;
}

/* --- Empty State --- */
.archive-empty {
	text-align: center;
	padding: 40px;
	font-size: 16px;
	border-radius: 10px;
}

.archive-empty .icon-svg {
	width: 24px;
	height: 24px;
	margin-right: 8px;
	vertical-align: middle;
}

/* --- Pagination Enhancement (Bootstrap 3 Compatible) --- */
.cmp_pagination {
	margin-top: 30px;
}

.cmp_pagination .pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 10px;
}

.cmp_pagination .pagination > li > a,
.cmp_pagination .pagination > li > span {
	border-radius: 6px;
	margin: 0 2px;
	padding: 8px 16px;
	font-weight: 600;
	font-size: 13px;
	color: #495057;
	border: 1px solid #dee2e6;
	transition: all 0.2s ease;
}

.cmp_pagination .pagination > li > a:hover,
.cmp_pagination .pagination > li > a:focus {
	background: #e9ecef;
	border-color: #ced4da;
	color: #2c3e50;
}

.cmp_pagination .pagination > .active > span {
	background: #2c3e50;
	border-color: #2c3e50;
	color: #fff;
	border-radius: 6px;
}

.cmp_pagination .pagination > .previous > a,
.cmp_pagination .pagination > .next > a {
	background: #fff;
}

.cmp_pagination .pagination > .previous > a:hover,
.cmp_pagination .pagination > .next > a:hover {
	background: #2c3e50;
	border-color: #2c3e50;
	color: #fff;
}

/* --- Filter Bar --- */
.archive-filter-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 25px;
	padding: 15px 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	flex-wrap: wrap;
}

.archive-filter-bar .filter-label {
	font-size: 14px;
	font-weight: 700;
	color: #2c3e50;
	white-space: nowrap;
}

.archive-filter-bar .filter-label .icon-svg {
	margin-right: 5px;
	width: 12px;
	height: 12px;
}

.archive-filter-bar .filter-buttons {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.archive-filter-bar .btn {
	border-radius: 20px;
	font-weight: 600;
	font-size: 13px;
	padding: 5px 16px;
	transition: all 0.2s ease;
}

.archive-filter-bar .btn-primary {
	background: #2c3e50;
	border-color: #2c3e50;
}

.archive-filter-bar .btn-default {
	background: #f8f9fa;
	border-color: #dee2e6;
	color: #495057;
}

.archive-filter-bar .btn-default:hover {
	background: #e9ecef;
	border-color: #ced4da;
}

/* --- Color variations for placeholder covers (cycle through issues) --- */
.issues-archive-grid .issue-card:nth-child(6n+2) .issue-cover-placeholder {
	background: linear-gradient(-135deg, #1a5276 0%, #2471a3 50%, #1a5276 100%);
}

.issues-archive-grid .issue-card:nth-child(6n+3) .issue-cover-placeholder {
	background: linear-gradient(-135deg, #117a65 0%, #148f77 50%, #117a65 100%);
}

.issues-archive-grid .issue-card:nth-child(6n+4) .issue-cover-placeholder {
	background: linear-gradient(-135deg, #7d3c98 0%, #8e44ad 50%, #7d3c98 100%);
}

.issues-archive-grid .issue-card:nth-child(6n+5) .issue-cover-placeholder {
	background: linear-gradient(-135deg, #a04000 0%, #ba4a00 50%, #a04000 100%);
}

.issues-archive-grid .issue-card:nth-child(6n+6) .issue-cover-placeholder {
	background: linear-gradient(-135deg, #1b4f72 0%, #21618c 50%, #1b4f72 100%);
}

/* --- RTL Adjustments --- */
[dir="rtl"] .issue-badge {
	margin-right: 0;
	margin-left: 6px;
}

[dir="rtl"] .issue-card-actions .icon-svg {
	margin-right: 0;
	margin-left: 4px;
}

[dir="rtl"] .archive-empty .icon-svg {
	margin-right: 0;
	margin-left: 8px;
}

[dir="rtl"] .archive-filter-bar .filter-label .icon-svg {
	margin-right: 0;
	margin-left: 5px;
}

/* ============================================================
   MOBILE - Original Design (Restored)
   ============================================================ */

@media (max-width: 767px) {
	.archive-header {
		padding: 25px 15px;
		margin-bottom: 20px;
	}

	.archive-icon {
		width: 56px;
		height: 56px;
	}

	.archive-icon .icon-svg {
		width: 22px;
		height: 22px;
	}

	.archive-title {
		font-size: 22px;
	}

	.archive-desc {
		font-size: 13px;
	}

	/* Card layout - horizontal on mobile (cover right, info left) */
	.issue-card-inner {
		flex-direction: row-reverse;
	}

	/* Cover on the right - small and compact */
	.issue-cover-col {
		width: 38% !important;
		min-width: 130px;
		max-width: 170px;
		flex-shrink: 0;
		order: 2;
	}

	.issue-cover-img,
	.issue-cover-placeholder {
		min-height: 100%;
		height: 100%;
		max-height: none;
	}

	.issue-cover-placeholder {
		min-height: 150px;
	}

	.issue-cover-placeholder-inner {
		padding: 8px;
	}

	.issue-volume-num {
		font-size: 24px;
		margin-bottom: 2px;
	}

	.issue-volume-label {
		font-size: 9px;
		margin-bottom: 4px;
		letter-spacing: 0.3px;
	}

	.issue-number-badge {
		font-size: 9px;
		padding: 2px 8px;
		margin-bottom: 3px;
	}

	.issue-year {
		font-size: 12px;
	}

	/* Info on the left */
	.issue-info-col {
		order: 1;
		flex: 1;
		min-width: 0;
	}

	.issue-info-body {
		padding: 12px 14px;
	}

	.issue-card-title {
		font-size: 16px;
		line-height: 1.5;
	}

	.issue-card-series {
		font-size: 13px;
	}

	.issue-card-desc {
		font-size: 13px;
		line-height: 1.6;
	}

	.issue-badge {
		font-size: 11px;
		padding: 4px 10px;
	}

	/* Buttons - side by side on mobile (original design) */
	.issue-card-actions {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px;
	}

	.issue-card-actions .btn {
		font-size: 12px;
		padding: 6px 12px;
		min-height: 36px;
	}

	/* Filter bar */
	.archive-filter-bar {
		padding: 12px;
		gap: 8px;
	}

	.archive-filter-bar .filter-label {
		font-size: 13px;
	}

	.archive-filter-bar .btn {
		font-size: 12px;
		padding: 5px 12px;
	}

	/* Pagination */
	.cmp_pagination .pagination {
		padding: 8px;
	}

	.cmp_pagination .pagination > li > a,
	.cmp_pagination .pagination > li > span {
		padding: 6px 12px;
		font-size: 12px;
	}
}

/* Small phones */
@media (max-width: 360px) {
	.issue-card-actions .btn {
		font-size: 11px;
		padding: 5px 10px;
	}

	.issue-badge {
		font-size: 10px;
		padding: 3px 8px;
	}

	.archive-title {
		font-size: 20px;
	}
}

/* --- Hidden utility --- */
.hidden {
	display: none !important;
}
/* ============================================================
   Academic Journal Theme - Bootstrap 3 Compatible v5
   SVG Icons - Clean Topbar - Modern Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@300;400;600;700&display=swap');

/* ===== BASE ===== */
body {
  font-family: 'Source Serif 4', sans-serif !important;
  direction: ltr;
  text-align: left;
  background: #f8fafc;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(-90deg, #c9a227, #d4af37, #c9a227);
  background-size: 200% 100%;
  z-index: 99999;
  width: 0%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 300% 0; }
}

/* ===== SVG ICONS BASE ===== */
.topbar-svg-icon,
.search-svg-icon,
.btn-svg-icon,
.stat-svg-icon,
.badge-svg-icon,
.menu-svg-icon,
.caret-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.topbar-svg-icon {
  width: 14px;
  height: 14px;
  stroke: #c9a227;
}

.caret-svg {
  width: 10px;
  height: 10px;
  stroke: rgba(255,255,255,0.6);
  margin-left: 2px;
  transition: transform 0.2s;
}

.open .caret-svg {
  transform: rotate(-180deg);
}

.menu-svg-icon {
  width: 14px;
  height: 14px;
  stroke: #c9a227;
  margin-right: 6px;
}

.search-svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.btn-svg-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.stat-svg-icon {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.badge-svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* ===== TOP BAR ===== */
.academic-topbar {
  background: #1e3a5f;
  position: relative;
  z-index: 1001;
}

.academic-topbar::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(-90deg, transparent 0%, #c9a227 20%, #d4af37 50%, #c9a227 80%, transparent 100%);
  background-size: 200% 100%;
  animation: goldLine 3s linear infinite;
}

@keyframes goldLine {
  0% { background-position: -100% 0; }
  100% { background-position: 300% 0; }
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  min-height: 42px;
}

.topbar-contact-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-actions-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.topbar-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}

.topbar-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
  margin: 0 6px;
}

/* Dropdowns in topbar */
.topbar-dropdown {
  display: inline-block;
}

.topbar-dropdown .dropdown-menu {
  border: none;
  border-radius: 14px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
  padding: 8px 0;
  min-width: 180px;
  margin-top: 8px;
  border-top: 3px solid #c9a227;
  text-align: left;
}

.topbar-dropdown .dropdown-menu > li > a {
  padding: 10px 18px;
  font-size: 13px;
  color: #475569;
  transition: all 0.15s;
  display: flex;
  align-items: center;
}

.topbar-dropdown .dropdown-menu > li > a:hover {
  background: #f8fafc;
  color: #1e3a5f;
}

.topbar-dropdown .dropdown-menu .divider {
  margin: 6px 12px;
  background: #e2e8f0;
}

/* ===== HEADER ===== */
.academic-header {
  background: #fff;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1000;
  margin-bottom: 20px;
}

/* ===== NAVBAR ===== */
.navbar-academic {
  background: #fff;
  border: none;
  margin-bottom: 0;
  border-radius: 0;
  min-height: 70px;
}

.navbar-academic .navbar-brand {
  height: 70px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #1e3a5f !important;
}

.navbar-academic .navbar-brand:hover {
  opacity: 0.85;
}

.navbar-academic .navbar-brand .site-logo {
  max-height: 50px;
  width: auto;
}

.navbar-academic .navbar-brand .brand-text {
  display: inline-block;
  line-height: 1.3;
}

/* Navbar Toggle */
.navbar-academic .navbar-toggle {
  margin-top: 16px;
  margin-bottom: 16px;
  border: none;
  background: #f1f5f9 !important;
  border-radius: 12px;
  padding: 12px;
}

.navbar-academic .navbar-toggle .icon-bar {
  background-color: #1e3a5f;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
}

/* Nav Menu */
.navbar-academic .navbar-nav {
  margin-top: 20px !important;
  margin-left: 50px;
}

.navbar-academic .navbar-nav > li > a {
  color: #085680;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  position: relative;
  transition: all 0.25s;
  border-radius: 10px;
}

.navbar-academic .navbar-nav > li > a:hover,
.navbar-academic .navbar-nav > li > a:focus {
  color: #055da7 !important;
  background: #f8fafc;
}

.navbar-academic .navbar-nav > li.active > a {
  color: #1e3a5f;
  background: #f8fafc;
}

/* Underline effect */
.navbar-academic .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2.5px;
  background: linear-gradient(-90deg, #c9a227, #d4af37);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-academic .navbar-nav > li > a:hover::after,
.navbar-academic .navbar-nav > li.active > a::after {
  transform: scaleX(1);
}

/* Dropdown menus */
.navbar-academic .dropdown-menu {
  border: none;
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.12);
  padding: 12px 0;
  min-width: 220px;
  margin-top: 10px;
  animation: dropdownFade 0.25s ease;
  overflow: hidden;
}

.navbar-academic .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 3px;
  background: linear-gradient(-90deg, #c9a227, #d4af37);
  border-radius: 0 0 3px 3px;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.navbar-academic .dropdown-menu > li > a {
  color: #475569;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.navbar-academic .dropdown-menu > li > a:hover {
  background: #f8fafc;
  color: #1e3a5f;
  padding-left: 28px;
}

.navbar-academic .dropdown-menu > li > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #c9a227;
  border-radius: 3px 0 0 3px;
  transition: height 0.2s;
}

.navbar-academic .dropdown-menu > li > a:hover::before {
  height: 50%;
}

.navbar-academic .dropdown .caret {
  margin-left: 5px;
  color: #94a3b8;
  transition: transform 0.3s;
}

.navbar-academic .dropdown.open .caret {
  transform: rotate(-180deg);
}

/* ===== NAV ACTIONS ===== */
.nav-actions {
  display: flex;
  align-items: center;
  margin-top: 10px !important;
}

.nav-actions > li {
  float: none;
  display: inline-block;
}

/* Search Toggle */
.nav-actions .search-toggle-wrapper {
  margin-right: 8px;
}

.nav-actions > li > a.search-toggle,
.navbar-academic .nav-actions > li > a.search-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 16px;
  transition: all 0.3s;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 0 !important;
  line-height: 44px;
  border: none;
}

.nav-actions > li > a.search-toggle:hover,
.navbar-academic .nav-actions > li > a.search-toggle:hover {
  background: #1e3a5f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,58,95,0.25);
}

.nav-actions > li > a.search-toggle.active,
.navbar-academic .nav-actions > li > a.search-toggle.active {
  background: #1e3a5f;
  color: #fff;
  box-shadow: 0 8px 25px rgba(30,58,95,0.3);
}

/* Submit Button */
.submit-btn-wrapper {
  margin-left: 12px;
}

.btn-submit {
  background: linear-gradient(-135deg, #0d4f79 0%, #0e4c76 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 24px !important;
  border-radius: 14px;
  
  transition: all 0.3s !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.btn-submit:hover {
  background: linear-gradient(-135deg, #d0aa31 0%, #e5ebf2 100%);
  box-shadow: 0 10px 30px rgba(30,58,95,0.35);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ===== SEARCH BAR ===== */
.search-bar-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s;
  background: linear-gradient(-180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid transparent;
  opacity: 0;
}

.search-bar-wrapper.open {
  max-height: 250px;
  padding: 30px 0;
  border-bottom-color: #e2e8f0;
  opacity: 1;
}

.search-box {
  display: flex;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.search-box:focus-within {
  border-color: #c9a227;
  box-shadow: 0 8px 40px rgba(30,58,95,0.1);
}

.search-input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 15px;
  font-family: 'Source Serif 4', sans-serif;
  background: transparent;
  outline: none;
  color: #334155;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-btn {
  padding: 16px 28px;
  background: linear-gradient(-135deg, #1e3a5f, #234876);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Source Serif 4', sans-serif;
  cursor: pointer;
  transition: padding 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn:hover {
  padding-left: 32px;
}

.search-tags {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.tag-link:hover {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30,58,95,0.2);
  text-decoration: none;
}

/* ===== STICKY HEADER ===== */
.academic-header.is-sticky {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  animation: slideDown 0.35s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

body.has-sticky-header {
  padding-top: 70px;
}

/* ===== HERO SECTION ===== */
.academic-hero {
  position: relative;
  background: linear-gradient(-135deg, #1e3a5f 0%, #234876 50%, #1e3a5f 100%);
  padding: 80px 0 120px;
  overflow: hidden;
  text-align: center;
  margin-top: -20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(-90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: rgba(201,162,39,0.08);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  filter: blur(100px);
}

.academic-hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  color: #f0c94a;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-title {
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.9;
  max-width: 580px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(-135deg, #c9a227, #d4af37);
  color: #1e3a5f;
  font-weight: 800;
  font-size: 15px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 8px 30px rgba(201,162,39,0.3);
  transition: all 0.3s;
  text-decoration: none !important;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201,162,39,0.4);
  color: #1e3a5f !important;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s;
  text-decoration: none !important;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  color: #fff !important;
}

.hero-stats {
  margin-top: 60px;
}

.stat-item {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 26px 18px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.12);
}

.stat-number {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  right: 0;
  left: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .topbar-contact-group {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .navbar-academic .navbar-brand {
    height: 65px;
    font-size: 15px;
    padding: 10px 0;
    margin-left: 25px;
  }

  .navbar-academic .navbar-brand .site-logo {
    max-height: 45px;
  }

  .navbar-academic .navbar-toggle {
    margin-top: 25px;
    margin-bottom: 12px;
    margin-right: 25px;
  }

  .academic-hero {
    padding: 50px 0 80px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    margin-top: 50px;
  }

  .search-bar-wrapper.open {
    padding: 20px 0;
  }

  .search-box {
    flex-direction: column;
  }

  .search-input {
    border-radius: 16px 16px 0 0;
    border: 2px solid #e2e8f0;
    border-bottom: none;
  }

  .search-btn {
    border-radius: 0 0 16px 16px;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  
  .navbar-academic .navbar-nav {
    margin-top: 0;
    padding: 15px 0;
  }

  .navbar-academic .navbar-nav > li > a {
    padding: 14px 18px;
  }

  .navbar-academic .navbar-nav > li > a::after {
    display: none;
  }

  .nav-actions {
    padding: 15px;
    border-top: 1px solid #f1f5f9;
    margin-top: 0 !important;
  }

  .navbar-academic .dropdown-menu {
    box-shadow: none;
    border-radius: 16px;
    background: #f8fafc;
    margin: 8px 15px;
    padding: 8px 0;
  }

  .navbar-academic .dropdown-menu::before {
    right: 15px;
    left: 15px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .stat-item {
    margin-bottom: 15px;
  }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.sr-only:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 20px 25px;
  margin: 0;
  clip: auto;
  background: #fff;
  z-index: 99999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border-radius: 0 0 24px 0;
  border: 2px solid #1e3a5f;
  color: #1e3a5f;
  font-weight: 700;
}
/**
 * أنماط منطقة وصف المجلة بنظام Tabs
 * متجاوب بالكامل مع الهواتف المحمولة
 */

/* ===== Container ===== */
.journal-description-tabs {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  margin-bottom: 30px;
  direction: ltr !important;
  text-align: left !important;
}

/* ===== Banner ===== */
.jdt-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(-135deg, #f8fafc 0%, #f8fafc 50%, #f8fafc 100%);
}

.jdt-banner-deco1,
.jdt-banner-deco2,
.jdt-banner-deco3 {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  opacity: 0.06;
  pointer-events: none;
}

.jdt-banner-deco1 {
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-width: 18px;
  border-color: #fbbf24;
}

.jdt-banner-deco2 {
  bottom: -25px;
  right: -25px;
  width: 100px;
  height: 100px;
  border-width: 14px;
  border-color: #fbbf24;
}

.jdt-banner-deco3 {
  left: 25%;
  top: 40%;
  width: 70px;
  height: 70px;
  border-width: 10px;
  border-color: #fbbf24;
  opacity: 0.04;
}

@media (min-width: 768px) {
  .jdt-banner-deco1 {
    top: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-width: 28px;
  }
  .jdt-banner-deco2 {
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-width: 20px;
  }
  .jdt-banner-deco3 {
    left: 35%;
    top: 50%;
    width: 120px;
    height: 120px;
    border-width: 16px;
  }
}

.jdt-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 16px;
}

@media (min-width: 768px) {
  .jdt-banner-inner {
    gap: 28px;
    padding: 40px 32px;
  }
}

@media (min-width: 992px) {
  .jdt-banner-inner {
    gap: 32px;
    padding: 48px 48px;
  }
}

.jdt-banner-content {
  flex: 1;
  min-width: 0;
  text-align: left;
  order: 2;
}

.jdt-banner-cover {
  order: 1;
  flex-shrink: 0;
}

/* Badge */
.jdt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background-color: rgb(30, 94, 144);
  color: #fcd34d;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid rgb(28, 93, 142);
  backdrop-filter: blur(4px);
}

.jdt-badge svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .jdt-badge {
    font-size: 13px;
    padding: 6px 16px;
    margin-bottom: 14px;
    gap: 5px;
  }
  .jdt-badge svg {
    width: 14px;
    height: 14px;
  }
}

/* Title */
.jdt-title {
  margin: 0 0 4px 0;
  color: #122033;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

@media (min-width: 768px) {
  .jdt-title {
    font-size: 32px;
    margin-bottom: 8px;
  }
}

@media (min-width: 992px) {
  .jdt-title {
    font-size: 20px;
  }
}

/* Subtitle */
.jdt-subtitle {
  margin: 0 0 10px 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .jdt-subtitle {
    font-size: 16px;
    margin-bottom: 18px;
    line-height: 1.6;
  }
}

/* Banner Meta Info */
.jdt-banner-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 10px;
  font-size: 10px;
  color: #79889b;
}

@media (min-width: 768px) {
  .jdt-banner-meta {
    gap: 6px 18px;
    font-size: 13px;
  }
}

.jdt-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.jdt-meta-item svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: #fbbf24;
}

@media (min-width: 768px) {
  .jdt-meta-item svg {
    width: 14px;
    height: 14px;
  }
}

/* Banner Cover */
.jdt-banner-cover {
  flex-shrink: 0;
}

.jdt-cover-img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jdt-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(-180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.5);
  color: #fbbf24;
  padding: 10px;
  text-align: center;
}

.jdt-cover-placeholder svg {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  opacity: 0.8;
}

.jdt-cover-placeholder span {
  font-size: 8px;
  color: #94a3b8;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .jdt-cover-img,
  .jdt-cover-placeholder {
    width: 150px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
  }
  .jdt-cover-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }
  .jdt-cover-placeholder span {
    font-size: 11px;
  }
}

@media (min-width: 992px) {
  .jdt-cover-img,
  .jdt-cover-placeholder {
    width: 170px;
    height: 225px;
  }
}

/* ===== Tabs Navigation ===== */
.jdt-tabs-nav {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  position: relative;
}

.jdt-tabs-nav::before,
.jdt-tabs-nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 1px;
  width: 30px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.jdt-tabs-nav::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc, transparent);
}

.jdt-tabs-nav::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc, transparent);
}

.jdt-tabs-nav.is-scrollable-right::before {
  opacity: 1;
}

.jdt-tabs-nav.is-scrollable-left::after {
  opacity: 1;
}

.jdt-tabs-nav::-webkit-scrollbar {
  height: 3px;
}

.jdt-tabs-nav::-webkit-scrollbar-track {
  background: transparent;
}

.jdt-tabs-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.jdt-tabs-nav {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.jdt-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
  flex: 1 0 auto;
  min-width: 0;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}

.jdt-tab-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.jdt-tab-btn:hover {
  color: #334155;
  background: rgba(148, 163, 184, 0.08);
}

.jdt-tab-btn.jdt-tab-active {
  color: #0f172a;
  background: rgba(245, 158, 11, 0.06);
}

.jdt-tab-btn.jdt-tab-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 8px;
  left: 8px;
  height: 3px;
  background: linear-gradient(-90deg, #f59e0b, #fbbf24);
  border-radius: 3px 3px 0 0;
}

@media (max-width: 359px) {
  .jdt-tab-btn {
    padding: 10px 8px;
    font-size: 11px;
    gap: 3px;
  }
  .jdt-tab-btn svg {
    width: 13px;
    height: 13px;
  }
}

@media (min-width: 360px) and (max-width: 767px) {
  .jdt-tab-btn {
    padding: 12px 12px;
    font-size: 12px;
  }
  .jdt-tab-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 768px) {
  .jdt-tabs-nav {
    justify-content: center;
  }
  .jdt-tab-btn {
    padding: 16px 20px;
    font-size: 14px;
    flex: 0 1 auto;
  }
  .jdt-tab-btn svg {
    width: 17px;
    height: 17px;
  }
  .jdt-tabs-nav::before,
  .jdt-tabs-nav::after {
    display: none;
  }
}

@media (min-width: 992px) {
  .jdt-tab-btn {
    padding: 16px 28px;
    font-size: 15px;
  }
  .jdt-tab-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== Tab Panels ===== */
.jdt-tabs-content {
  min-height: 250px;
  padding: 20px 16px;
}

.jdt-tab-panel {
  display: none;
  animation: jdtFadeIn 0.3s ease-out;
}

.jdt-tab-panel.jdt-tab-panel-active {
  display: block;
}

@keyframes jdtFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .jdt-tabs-content {
    padding: 32px;
  }
}

/* ===== About Tab - Hero ===== */
.jdt-about-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(-135deg, #2469a0 0%, #276ea6 50%, #2b73af 100%);
  padding: 24px 20px;
  margin-bottom: 20px;
}

.jdt-about-hero-deco1 {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 22px solid #fbbf24;
  opacity: 0.07;
  pointer-events: none;
}

.jdt-about-hero-deco2 {
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 16px solid #fbbf24;
  opacity: 0.06;
  pointer-events: none;
}

.jdt-about-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .jdt-about-hero {
    padding: 32px 28px;
    margin-bottom: 28px;
  }
  .jdt-about-hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }
}

.jdt-about-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(-135deg, #fbbf24, #d97706);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.jdt-about-hero-icon svg {
  width: 26px;
  height: 26px;
}

@media (min-width: 768px) {
  .jdt-about-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .jdt-about-hero-icon svg {
    width: 32px;
    height: 32px;
  }
}

.jdt-about-hero-text h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.jdt-about-hero-text p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .jdt-about-hero-text h3 {
    font-size: 22px;
  }
  .jdt-about-hero-text p {
    font-size: 15px;
  }
}

.jdt-section-title {
  margin: 28px 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
}

@media (min-width: 768px) {
  .jdt-section-title {
    font-size: 18px;
    margin: 36px 0 20px 0;
  }
}

/* Quote Block */
.jdt-quote-block {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(-135deg, #fffbeb 0%, #fef3c7 100%);
  padding: 28px 20px;
  text-align: center;
}

.jdt-quote-deco1 {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fde68a;
  opacity: 0.4;
  pointer-events: none;
}

.jdt-quote-deco2 {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #fed7aa;
  opacity: 0.35;
  pointer-events: none;
}

.jdt-quote-inner {
  position: relative;
  z-index: 1;
}

.jdt-quote-inner svg {
  width: 30px;
  height: 30px;
  color: #f59e0b;
  margin-bottom: 10px;
}

.jdt-quote-inner p {
  margin: 0 auto;
  max-width: 450px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  color: #78350f;
}

@media (min-width: 768px) {
  .jdt-quote-block {
    padding: 36px 28px;
  }
  .jdt-quote-inner svg {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
  }
  .jdt-quote-inner p {
    font-size: 16px;
    max-width: 500px;
  }
}

/* ===== Board Tab ===== */
.jdt-board-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 768px) {
  .jdt-board-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.jdt-board-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  transition: all 0.2s;
}

.jdt-board-card:hover {
  border-color: #fde68a;
  background: #fffbeb;
}

.jdt-board-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  flex-shrink: 0;
}

.jdt-board-avatar svg {
  width: 22px;
  height: 22px;
}

.jdt-board-info h4 {
  margin: 0 0 2px 0;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.jdt-board-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #d97706;
  margin-bottom: 1px;
}

.jdt-board-dept {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .jdt-board-avatar {
    width: 48px;
    height: 48px;
  }
  .jdt-board-avatar svg {
    width: 24px;
    height: 24px;
  }
  .jdt-board-info h4 {
    font-size: 14px;
  }
}

/* ===== Researchers Tab (Leaderboard) ===== */
.jdt-researchers-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.jdt-researchers-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #23699f;
  color: #fbbf24;
}

.jdt-researchers-icon svg {
  width: 18px;
  height: 18px;
}

.jdt-researchers-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

@media (min-width: 768px) {
  .jdt-researchers-header h3 {
    font-size: 18px;
  }
}

.jdt-researchers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jdt-researcher-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  transition: all 0.25s ease;
}

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

.jdt-researcher-stripe {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.jdt-rank-1 .jdt-researcher-stripe {
  background: linear-gradient(-180deg, #fbbf24, #f59e0b);
}

.jdt-rank-2 .jdt-researcher-stripe {
  background: linear-gradient(-180deg, #cbd5e1, #94a3b8);
}

.jdt-rank-3 .jdt-researcher-stripe {
  background: linear-gradient(-180deg, #fdba74, #ea580c);
}

.jdt-rank-4 .jdt-researcher-stripe {
  background: linear-gradient(-180deg, #7dd3fc, #3b82f6);
}

.jdt-researcher-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 14px;
}

.jdt-researcher-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.jdt-researcher-badge svg {
  width: 22px;
  height: 22px;
}

.jdt-researcher-rank {
  position: absolute;
  top: -4px;
  left: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #23699f;
  color: #fbbf24;
  font-size: 9px;
  font-weight: 700;
  border: 2px solid #ffffff;
}

.jdt-badge-gold {
  background: linear-gradient(-135deg, #fbbf24, #d97706);
}

.jdt-badge-silver {
  background: linear-gradient(-135deg, #e2e8f0, #94a3b8);
}

.jdt-badge-bronze {
  background: linear-gradient(-135deg, #fdba74, #c2410c);
}

.jdt-badge-blue {
  background: linear-gradient(-135deg, #7dd3fc, #2563eb);
}

.jdt-researcher-info {
  min-width: 0;
  flex: 1;
}

.jdt-researcher-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.jdt-researcher-top h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.jdt-researcher-tag {
  display: none;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
}

@media (min-width: 768px) {
  .jdt-researcher-tag {
    display: inline-block;
  }
  .jdt-researcher-top h4 {
    font-size: 15px;
  }
}

.jdt-tag-gold {
  background: linear-gradient(-90deg, #fbbf24, #d97706);
}

.jdt-tag-silver {
  background: linear-gradient(-90deg, #94a3b8, #64748b);
}

.jdt-tag-bronze {
  background: linear-gradient(-90deg, #fdba74, #ea580c);
}

.jdt-tag-blue {
  background: linear-gradient(-90deg, #7dd3fc, #3b82f6);
}

.jdt-researcher-uni {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.jdt-researcher-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.jdt-researcher-stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #64748b;
}

.jdt-researcher-stats svg {
  width: 12px;
  height: 12px;
}

@media (min-width: 768px) {
  .jdt-researcher-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .jdt-researcher-badge svg {
    width: 26px;
    height: 26px;
  }
  .jdt-researcher-rank {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .jdt-researcher-stats span {
    font-size: 12px;
  }
  .jdt-researcher-stats svg {
    width: 14px;
    height: 14px;
  }
}

/* ===== Guidelines Tab ===== */
.jdt-guidelines-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jdt-guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.jdt-guideline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #23699f;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.jdt-guideline-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
}

@media (min-width: 768px) {
  .jdt-guideline-item {
    padding: 12px 14px;
    gap: 12px;
  }
  .jdt-guideline-num {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .jdt-guideline-item p {
    font-size: 13px;
  }
}
/* RTL */
html[dir="rtl"] body {
    direction: ltr !important;
    text-align: left !important;
}

/* LTR */
html[dir="ltr"] body {
    direction: rtl !important;
    text-align: right !important;
}
body {
  font-family: Source Serif 4 !important;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  direction: ltr !important;
}

@media (min-width: 768px) {
  .navbar-header {
    float: left !important;
  }
}
@media (min-width: 768px) {
  .navbar-nav {
    float: left !important;
    margin: 0;
  }
}
.dropdown-menu {
  font-size: 14px;
  text-align: left !important;
  list-style: none;
}
@media (min-width: 992px) {
  .pull-md-right {
    float: right !important;
  }
}
@media (min-width: 768px) {
  .navbar-left {
    float: right !important;
  }
}
.pull-right, .header_view .download {
  float: left !important;
}
.nav-pills > li {
  float: left !important;
}
.navbar-brand {
  float: left;
  height: 90px !important;
  padding: 15px 15px;
  font-size: 18px;
  line-height: 20px;
}
.navbar-nav > li > a {
    padding-top: 10px !important;
    padding-bottom: 15px;
    font-family: Source Serif 4 !important;
    font-weight: 700 !important;
    color: #055da7;
  }
.dropdown-menu > li > a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #0764ad !important;
  white-space: nowrap;
  font-family: Source Serif 4 !important;
}
.nav-pills > li + li {
  margin-left: 2px !important;
}
.navbar-default .nav > li > a, .header_view .nav > li > a {
  color: #0f4064 !important;
}
.badge {
  display: inline-block;
  min-width: 10px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background-color: #0e476e !important;
  border-radius: 10px;
}
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px !important;
}
.nav-pills > li > a > .badge {
  margin-left: 3px !important;
}
.checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
  position: absolute;
  margin-top: 4px \9;
  margin-left: -20px !important;
}
.ac-current-issue .ac-head h3 {
  font-size: 24px !important;
  line-height: 1.3;
  margin: 6px 0;
  font-weight: 700;
}
.ac-current-issue .ac-issue-title {
  font-size: 20px !important;
  margin: 12px 0;
  font-weight: 700;
}
.ac-current-issue .ac-meta-item .val {
  display: block;
  font-size: 14px !important;
  font-weight: 700;
}
.ac-current-issue .ac-issue-count {
  color: #5d6e81;
  font-size: 15px !important;
  border-top: 1px solid var(--ac-line);
  margin: 0;
  padding-top: 12px;
}
.ac-current-issue .ac-list-title {
  color: var(--ac-red);
  font-size: 20px !important;
  font-weight: 700;
  border-bottom: 1px solid var(--ac-line);
  padding-bottom: 8px;
  margin: 0 0 16px;
}
.ac-current-issue .ac-article-title {
  font-size: 18px !important;
  line-height: 1.45;
  font-weight: 700;
}
.ac-current-issue .ac-actions {
  border-top: 1px solid var(--ac-line);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start !important;
}
.ac-current-issue .ac-btn-read {
  background: #f5f8fc !important;
  border-color: #cfd8e7 !important;
  color: #3f4ea6 !important;
}

@media (min-width: 768px) {
  .navbar-nav > li {
    float: left !important;
  }
}
.ac-load-more-btn {
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.ac-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.jis-title {
  color: #fff !important;
}
.jis-eyebrow {
  font-size: 18px !important;
  color: #fff !important;
}
.jis-eyebrow::before {
  background: #fff !important;
}

.jis-header {
  display: none !important;
}
.nav {
  padding-right: 0 !important;
}
.jis-card {
  direction: ltr !important;
  text-align: left !important;
}
/* ============================================================
   Creative Academic Footer Styles — LTR Version
   For English / Left-to-Right Languages
   Compatible with Bootstrap 3 OJS Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@300;400;600;700&display=swap');

.academic-footer {
  font-family: "Source Serif 4", serif;
  background: linear-gradient(180deg, #0c1220 0%, #0f172a 30%, #1a1f3a 100%) !important;
  color: #94a3b8;
  margin-top: 0;
  border-top: none;
  direction: ltr;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* ===== Animated Top Border ===== */
.af-top-border {
  position: relative;
  height: 3px;
  overflow: hidden;
}

.af-border-line {
  position: absolute;
  top: 0;
  height: 100%;
  animation: borderSlide 3s ease-in-out infinite;
}

.af-border-gold {
  width: 60%;
  background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, #f59e0b, transparent);
  left: -60%;
  animation-delay: 0s;
}

.af-border-blue {
  width: 40%;
  background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, #3b82f6, transparent);
  left: -40%;
  animation-delay: 1.5s;
}

@keyframes borderSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(250%); }
}

/* ===== Floating Decorative Elements ===== */
.af-deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
  animation: floatDeco 8s ease-in-out infinite;
}

.af-deco-1 {
  width: 300px;
  height: 300px;
  background: #f59e0b;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.af-deco-2 {
  width: 250px;
  height: 250px;
  background: #3b82f6;
  bottom: 100px;
  left: -80px;
  animation-delay: 2s;
}

.af-deco-3 {
  width: 200px;
  height: 200px;
  background: #8b5cf6;
  top: 50%;
  right: 50%;
  animation-delay: 4s;
}

@keyframes floatDeco {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, -30px) scale(1.1); }
  66% { transform: translate(20px, 20px) scale(0.9); }
}

/* ===== Main Footer ===== */
.af-main {
  padding: 70px 0 50px;
  position: relative;
  z-index: 1;
}

/* ===== Accordion Toggle (Mobile Only) ===== */
.af-accordion-toggle {
  display: none;
}

/* Desktop: always show content */
@media (min-width: 992px) {
  .af-accordion-content {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
    overflow: visible !important;
    max-height: none !important;
    padding-bottom: 0 !important;
  }
}

/* Mobile: accordion behavior */
@media (max-width: 991px) {
  .af-accordion {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }

  .af-accordion:last-of-type {
    border-bottom: none;
  }

  .af-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .af-accordion-toggle:focus {
    outline: none;
  }

  .af-toggle-inner {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .af-toggle-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #60a5fa;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }

  .af-accordion-toggle:hover .af-toggle-icon-wrap {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
  }

  .af-accordion-toggle .af-section-title {
    margin-bottom: 0;
    font-size: 16px;
  }

  .af-toggle-chevron {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
  }

  .af-accordion-toggle:hover .af-toggle-chevron {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
  }

  .af-icon-down,
  .af-icon-up {
    font-size: 12px;
    color: #94a3b8;
    transition: color 0.3s ease, opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .af-accordion-toggle:hover .af-icon-down,
  .af-accordion-toggle:hover .af-icon-up {
    color: #fbbf24;
  }

  .af-icon-down { opacity: 1; }
  .af-icon-up { opacity: 0; }

  .af-accordion-toggle.af-open .af-icon-down { opacity: 0; }
  .af-accordion-toggle.af-open .af-icon-up { opacity: 1; }

  .af-accordion-toggle.af-open .af-toggle-chevron {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
  }

  .af-accordion-toggle.af-open .af-icon-up {
    color: #fbbf24;
  }

  .af-accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.3s ease;
    padding-bottom: 0;
  }

  .af-accordion-content.af-open {
    max-height: 800px;
    opacity: 1;
    padding-bottom: 20px;
  }
}

/* ===== Brand Section ===== */
.af-brand {
  padding-right: 20px;
}

.af-brand-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.af-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.af-brand:hover .af-brand-icon {
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.35);
}

.af-brand-text h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.af-brand-en {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
}

.af-brand-desc {
  font-size: 14px;
  line-height: 1.9;
  color: #94a3b8;
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 2px solid rgba(251, 191, 36, 0.2);
}

/* ===== Social Links ===== */
.af-social {
  display: flex;
  gap: 10px;
}

.af-social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.af-social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.af-social-link:hover::before {
  width: 150%;
  height: 150%;
}

.af-social-link:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.af-social-link .glyphicon {
  position: relative;
  z-index: 1;
  top: 0;
}

/* ===== Section Title ===== */
.af-section-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Quick Links ===== */
.af-links-wrap {
  padding: 0 10px;
}

.af-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.af-links li {
  margin-bottom: 4px;
}

.af-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.af-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), transparent);
  transition: width 0.4s ease;
  border-radius: 10px;
}

.af-links a:hover::before {
  width: 100%;
}

.af-links a:hover {
  color: #fbbf24;
  padding-left: 20px;
}

.af-link-num {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  font-family: 'Courier New', monospace;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.af-links a:hover .af-link-num {
  color: #fbbf24;
}

.af-link-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.af-link-arrow {
  font-size: 10px;
  color: #475569;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  top: 0;
}

.af-links a:hover .af-link-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #fbbf24;
}

/* ===== Contact Section ===== */
.af-contact-wrap {
  padding: 0 10px;
}

.af-contact-list {
  margin-bottom: 0;
}

.af-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.06);
  transition: all 0.3s ease;
}

.af-contact-item:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(251, 191, 36, 0.1);
  transform: translateX(3px);
}

.af-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #60a5fa;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.af-contact-item:hover .af-contact-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
  border-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.af-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.af-contact-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.af-contact-value {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

/* ===== OJS Section ===== */
.af-ojs-section {
  padding: 25px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  position: relative;
  z-index: 1;
}

.af-ojs-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.af-ojs-logo img {
  max-height: 50px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(30%);
}

.af-ojs-logo:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

.af-ojs-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.af-ojs-badge,
.af-ojs-license {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  transition: color 0.3s ease;
}

.af-ojs-badge:hover,
.af-ojs-license:hover {
  color: #94a3b8;
}

.af-ojs-badge .glyphicon,
.af-ojs-license .glyphicon {
  font-size: 13px;
  color: #475569;
  top: 0;
}

.af-ojs-divider {
  color: #334155;
  font-size: 12px;
}

/* ===== Bottom Bar ===== */
.af-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  position: relative;
  z-index: 1;
}

.af-bottom-text {
  color: #475569;
  font-size: 12px;
  margin: 0;
  letter-spacing: 0.3px;
}

.af-bottom-sep {
  margin: 0 10px;
  color: #334155;
}

/* ===== Mobile Bottom Navigation Bar ===== */
.af-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .af-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }

  .af-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
  }

  .af-bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 0.3s ease;
    border-radius: 0 0 2px 2px;
  }

  .af-bottom-nav-item:hover,
  .af-bottom-nav-item:active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
  }

  .af-bottom-nav-item:hover::before,
  .af-bottom-nav-item:active::before {
    width: 40%;
  }

  .af-bottom-nav-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
  }

  .af-bottom-nav-item:hover .af-bottom-nav-icon {
    transform: translateY(-2px);
  }

  .af-bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
  }

  /* Add bottom padding to page content to avoid overlap */
  body {
    padding-bottom: 64px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .af-main {
    padding: 20px 0 30px;
  }

  .af-brand {
    padding-right: 0;
  }

  .af-section {
    margin-bottom: 0;
  }

  .af-deco {
    display: none;
  }
}

@media (max-width: 767px) {
  .af-main {
    padding: 10px 0 20px;
  }

  .af-brand-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .af-brand-text {
    text-align: center;
  }

  .af-brand-desc {
    text-align: center;
    border-left: none;
    border-bottom: 2px solid rgba(251, 191, 36, 0.2);
    padding-left: 0;
    padding-bottom: 15px;
  }

  .af-social {
    justify-content: center;
  }

  .af-links a {
    padding: 12px 16px;
  }

  .af-contact-item:hover {
    transform: translateX(0);
  }

  .af-ojs-content {
    flex-direction: column;
    gap: 15px;
  }

  .af-ojs-divider {
    display: none;
  }
}

/* ===== Fix Bootstrap 3 Conflicts ===== */
.academic-footer .container,
.academic-footer .row,
.academic-footer .col-md-3,
.academic-footer .col-md-4,
.academic-footer .col-md-5,
.academic-footer .col-md-12 {
  box-sizing: border-box;
}

.academic-footer a {
  color: inherit;
}

.academic-footer a:hover,
.academic-footer a:focus {
  color: inherit;
  text-decoration: none;
}

/**
 * Custom Academic Article Details Stylesheet
 * Compatible with OJS 3.5.0.3 + Bootstrap 3 Theme
 * Enhanced for Statistics Tab (API + UsageEvent)
 * Author: Academic Theme Designer
 */

/* ============================================
   ROOT VARIABLES & BASE STYLES
   ============================================ */
:root {
    --primary-color: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #154360;
    --accent-color: #e67e22;
    --accent-light: #f39c12;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e6ed;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    /* Statistics specific colors */
    --stats-views: #2c5aa0;
    --stats-downloads: #27ae60;
    --stats-views-light: rgba(44, 90, 160, 0.08);
    --stats-downloads-light: rgba(39, 174, 96, 0.08);
}

/* ============================================
   ARTICLE HEADER SECTION
   ============================================ */
.academic-article-wrapper {
    font-family: Source Serif 4;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-light);
    padding-bottom: 20px;
    overflow-x: hidden;
    width: 100%;
}

.academic-article-wrapper .container {
    max-width: 1140px;
}

/* Ensure all direct children handle overflow properly */
.academic-article-wrapper .authors-section,
.academic-article-wrapper .quick-info-bar,
.academic-article-wrapper .academic-tabs-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.academic-article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 50px 0 40px;
    position: relative;
    z-index: 1;
    direction: ltr;
}

.academic-article-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.academic-article-header::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.article-header-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

/* RTL padding for header content */
html[dir="ltr"] .article-header-content {
    padding: 0 15px;
}

/* Ensure Bootstrap container doesn't conflict */
.academic-article-header .container {
    position: relative;
    z-index: 2;
}

.article-journal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.article-journal-badge i {
    font-size: 14px;
}

.article-title-main {
    font-family: Source Serif 4;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.article-title-main small {
    display: block;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 8px;
    font-family: Source Serif 4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.9;
}

.article-meta-header span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 12px;
    transition: var(--transition);
}

.article-meta-header i {
    font-size: 14px;
    opacity: 0.8;
}

/* ============================================
   STATS BADGE IN HEADER
   ============================================ */
.stats-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.stats-badge-header i {
    font-size: 13px;
    opacity: 1;
}

.stats-badge-header:hover {
    background: rgba(255,255,255,0.3);
}

.stats-badge-header--downloads {
    background: rgba(39, 174, 96, 0.2);
    border-color: rgba(39, 174, 96, 0.35);
}

.stats-badge-header--downloads:hover {
    background: rgba(39, 174, 96, 0.35);
}

/* Stats badge in tab navigation */
.stats-badge-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   AUTHORS SECTION
   ============================================ */
.authors-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: inherit;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    margin-right: -15px;

    
}

.authors-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
    direction: ltr;
}

.authors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.author-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.author-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 3px;
    text-align: left;
}

.author-affiliation {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
}

.author-orcid {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--primary-light);
    text-decoration: none;
}

.author-orcid:hover {
    color: var(--primary-color);
}

.author-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.role-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-weight: 500;
}

/* ============================================
   QUICK INFO BAR
   ============================================ */
.quick-info-bar {
    background: var(--bg-white);
    padding: 18px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-right: -15px;
    direction: ltr;
}

.quick-info-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    text-align: left;
}

.quick-info-item .info-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(26, 82, 118, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.quick-info-item .info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.quick-info-item .info-value {
    font-weight: 600;
    color: var(--text-dark);
}

.quick-info-item .info-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.quick-info-item .info-value a:hover {
    text-decoration: underline;
}

/* ============================================
   TABS NAVIGATION
   ============================================ */
.academic-tabs-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
    margin-right: -15px;
    direction: ltr;
}

.academic-tabs-nav {
    display: flex;
    background: linear-gradient(to right, var(--bg-light), #fff);
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.academic-tabs-nav::-webkit-scrollbar {
    display: none;
}

.academic-tabs-nav li {
    flex: 1;
    min-width: 140px;
}

.academic-tabs-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.academic-tabs-nav li a i {
    font-size: 16px;
}

.academic-tabs-nav li a:hover {
    color: var(--primary-color);
    background: rgba(26, 82, 118, 0.03);
}

.academic-tabs-nav li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(26, 82, 118, 0.05);
}

.academic-tabs-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px 3px 0 0;
}

/* ============================================
   TAB CONTENT
   ============================================ */
.academic-tab-content {
    padding: 35px 30px;
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ABSTRACT TAB
   ============================================ */
.abstract-content {
    font-family: Source Serif 4;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-dark);
}

.abstract-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.abstract-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.keywords-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-color);
}

.keywords-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(26, 82, 118, 0.06);
    border: 1px solid rgba(26, 82, 118, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.keyword-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(26, 82, 118, 0.2);
}

.keyword-tag i {
    font-size: 10px;
}

/* ============================================
   FULL TEXT TAB
   ============================================ */
.galleys-section {
    margin-bottom: 30px;
}

.galleys-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.galleys-title i {
    color: var(--accent-color);
}

.galley-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.galley-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.galley-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.galley-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.galley-card:hover::before {
    opacity: 1;
}

.galley-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.galley-info {
    flex: 1;
}

.galley-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.galley-type {
    font-size: 12px;
    color: var(--text-muted);
}

.galley-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--transition);
}

.galley-card:hover .galley-action {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Supplementary files */
.supplementary-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-color);
}

.supplementary-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   REFERENCES TAB
   ============================================ */
.references-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    direction: ltr;
}

.references-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.references-title i {
    color: var(--accent-color);
}

.references-count {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.references-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: ref-counter;
}

.reference-item {
    position: relative;
    padding: 16px 20px 16px 55px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 14px;
    line-height: 1.7;
    direction: ltr;
    text-align: left;
}

.reference-item::before {
    counter-increment: ref-counter;
    content: counter(ref-counter);
    position: absolute;
    left: 16px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.reference-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
    background: #fff;
}

.reference-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.reference-item a:hover {
    text-decoration: underline;
}

/* ============================================
   STATISTICS TAB - ENHANCED STYLES
   ============================================ */
.stats-tab-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-tab-header i {
    color: var(--accent-color);
}

/* Statistics Summary Grid - OLD (kept for reference) */
/* .stats-summary-grid is replaced by .stats-main-row layout below */

/* ============================================
   STATISTICS TAB - MAIN 2×2 GRID LAYOUT
   ============================================ */

/* شبكة 2×2: عمودان كل عمود بطاقتان */
.stats-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

/* بطاقة النص الكامل — مطابقة تماماً لباقي البطاقات */
.stats-summary-item.stats-files-card {
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.stats-summary-item.stats-files-card::before {
    background: var(--primary-color);
}

.stats-summary-item.stats-files-card:hover {
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.stats-summary-item.stats-files-card .stats-summary-icon {
    background: rgba(26, 82, 118, 0.08);
    color: var(--primary-color);
    flex-shrink: 0;
}

/* قيمة النوع داخل بطاقة النص الكامل */
.stats-file-value {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.stats-file-type {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
}

/* زر التحميل في الزاوية */
.stats-file-download-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--transition);
    margin-left: auto;
    
}

html[dir="ltr"] .stats-file-download-btn {
    margin-right: 0;
    margin-right: auto;
}

.stats-summary-item.stats-files-card:hover .stats-file-download-btn {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* إخفاء القديم إن بقي */
.stats-files-inner {
    width: 100%;
    min-width: 0;
}

/* ============================================
   STATISTICS TAB - RESPONSIVE
   ============================================ */

/* Tablet ≤991px: عمود واحد (البطاقات تتراص) */
@media (max-width: 991px) {
    .stats-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

/* Mobile ≤767px: عمودان بحجم أصغر */
@media (max-width: 767px) {
    .stats-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .stats-summary-item {
        padding: 16px 14px;
    }

    .stats-summary-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .stats-summary-value {
        font-size: 20px;
    }

    .stats-galley-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .stats-galley-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .stats-galley-name {
        font-size: 12px;
    }

    .stats-galley-action {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

/* Small Mobile ≤480px: عمود واحد */
@media (max-width: 480px) {
    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stats-summary-item {
        padding: 14px 12px;
    }

    .stats-galley-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* --- Galley List in Stats Tab --- */
.stats-galley-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.stats-files-sub-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    margin-top: 4px;
}

.stats-galley-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats-galley-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.stats-galley-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.stats-galley-card:hover::before {
    opacity: 1;
}

.stats-galley-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.stats-galley-icon--supp {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

.stats-galley-info {
    flex: 1;
    min-width: 0;
}

.stats-galley-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-galley-type {
    font-size: 11px;
    color: var(--text-muted);
}

.stats-galley-action {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.stats-galley-action--supp {
    background: #7f8c8d;
}

.stats-galley-card:hover .stats-galley-action {
    background: var(--accent-color);
    transform: scale(1.1);
    animation: none;
}

/* ============================================
   STATISTICS TAB - RESPONSIVE
   ============================================ */

/* Tablet: بطاقتان في الصف الأول وبطاقة في الثاني */
@media (max-width: 991px) {
    .stats-counters-col {
        flex-wrap: wrap;
    }

    .stats-counters-col .stats-summary-item {
        flex: 1 1 calc(50% - 7px);
        min-width: 140px;
    }
}

/* Mobile ≤767px */
@media (max-width: 767px) {
    .stats-main-row {
        gap: 16px;
    }

    /* بطاقتان جنباً إلى جنب */
    .stats-counters-col {
        flex-wrap: wrap;
        gap: 10px;
    }

    .stats-counters-col .stats-summary-item {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
        padding: 16px 14px;
    }

    .stats-files-col {
        padding: 16px;
    }

    .stats-galley-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .stats-galley-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .stats-galley-name {
        font-size: 13px;
    }

    .stats-galley-action {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Small Mobile ≤480px: كل بطاقة في سطر مستقل */
@media (max-width: 480px) {
    .stats-counters-col .stats-summary-item {
        flex: 1 1 100%;
    }

    .stats-files-col {
        padding: 14px;
        gap: 10px;
    }

    .stats-galley-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .stats-galley-name {
        font-size: 12px;
    }
}

/* RTL support for new stats layout */
html[dir="ltr"] .stats-galley-card {
    flex-direction: row;
}

html[dir="ltr"] .stats-galley-card::before {
    left: auto;
    right: 0;
}

html[dir="ltr"] .stats-files-header,
html[dir="ltr"] .stats-files-sub-header {
    flex-direction: row;
}

html[dir="ltr"] .stats-summary-item.stats-files-card {
    flex-direction: row;
}



.stats-summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats-summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: var(--transition);
}

.stats-summary-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stats-summary-item:hover::before {
    opacity: 1;
}

/* Views Summary Card */
.stats-summary-item.views-total::before {
    background: var(--stats-views);
}

.stats-summary-item.views-total:hover {
    border-color: var(--stats-views);
}

.stats-summary-item.views-total .stats-summary-icon {
    background: var(--stats-views-light);
    color: var(--stats-views);
}

/* Downloads Summary Card */
.stats-summary-item.downloads-total::before {
    background: var(--stats-downloads);
}

.stats-summary-item.downloads-total:hover {
    border-color: var(--stats-downloads);
}

.stats-summary-item.downloads-total .stats-summary-icon {
    background: var(--stats-downloads-light);
    color: var(--stats-downloads);
}

/* Publication Date Card */
.stats-summary-item.pub-date::before {
    background: var(--accent-color);
}

.stats-summary-item.pub-date:hover {
    border-color: var(--accent-color);
}

.stats-summary-item.pub-date .stats-summary-icon {
    background: rgba(230, 126, 34, 0.08);
    color: var(--accent-color);
}

/* Summary Icon */
.stats-summary-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition);
}

.stats-summary-item:hover .stats-summary-icon {
    transform: scale(1.1);
}

/* Summary Info */
.stats-summary-info {
    flex: 1;
}

.stats-summary-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stats-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.stats-summary-value .text-muted {
    color: var(--text-muted);
    font-weight: 400;
}

/* Loading State */
.stats-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.stats-loading i {
    animation: spin 1s linear infinite;
    font-size: 18px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Statistics Chart Section */
.stats-chart-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-top: 20px;
    transition: var(--transition);
}

.stats-chart-section:hover {
    box-shadow: var(--shadow-sm);
}

.stats-chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-chart-title i {
    color: var(--primary-color);
    font-size: 16px;
}

.stats-chart-wrapper {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    min-height: 320px;
    position: relative;
    border: 1px solid var(--border-color);
}

/* Ensure chart canvas is visible */
.stats-chart-wrapper canvas {
    width: 100% !important;
    height: 350px !important;
    max-height: 350px;
}

/* No Stats Message */
#usageStatsUnavailableMsg {
    animation: fadeInUp 0.4s ease;
}

#usageStatsUnavailableMsg .alert {
    margin: 0;
    padding: 30px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}

#usageStatsUnavailableMsg .alert i {
    display: block;
    font-size: 36px;
    color: #bdc3c7;
    margin-bottom: 12px;
}

/* Stats Chart Placeholder (Legacy) */
.stats-chart-placeholder {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: var(--radius-sm);
}

/* ============================================
   DETAILS SIDEBAR (HIDDEN DEFAULT SIDEBAR)
   ============================================ */
/* Hide sidebar on article page only */
body.pkp_page_article .pkp_structure_sidebar,
body.pkp_page_article .pkp_block {
  display: none !important;
}

/* Expand main content to full width on article page */
body.pkp_page_article .pkp_structure_main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}


/* ============================================
   ADDITIONAL DETAILS SECTION
   ============================================ */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.detail-card {
    padding: 18px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.detail-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.detail-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ============================================
   AUTHOR BIOGRAPHIES
   ============================================ */
.bio-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-color);
}

.bio-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: var(--transition);
}

.bio-card:hover {
    box-shadow: var(--shadow-sm);
}

.bio-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ============================================
   LICENSE SECTION
   ============================================ */
.license-section {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26,82,118,0.03), rgba(41,128,185,0.03));
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
}

.license-section img {
    max-height: 40px;
    margin-bottom: 10px;
}

.license-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   USAGE STATS (Legacy Support)
   ============================================ */
.stats-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.stats-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   COVER IMAGE
   ============================================ */
.article-cover-wrapper {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-cover-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.cmp_notification {
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (max-width: 991px)
   ============================================ */
@media (max-width: 991px) {
    .article-title-main {
        font-size: 24px;
    }

    .article-title-main small {
        font-size: 16px;
    }

    .academic-tabs-nav li a {
        padding: 15px 18px;
        font-size: 13px;
    }

    .academic-tab-content {
        padding: 25px 20px;
    }

    .quick-info-bar {
        padding: 14px 20px;
    }

    .authors-section {
        padding: 20px;
    }

    .author-card {
        min-width: 200px;
    }

    .galley-cards {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    /* Statistics Tablet */
    .stats-summary-item {
        padding: 18px 20px;
    }

    .stats-summary-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .stats-summary-value {
        font-size: 20px;
    }

    .stats-chart-section {
        padding: 22px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
    .academic-article-header {
        padding: 30px 0 25px;
    }

    .academic-article-header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .article-header-content {
        padding: 0 5px;
    }

    .article-journal-badge {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 14px;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .article-title-main {
        font-size: 20px;
        line-height: 1.45;
        word-break: break-word;
    }

    .article-title-main small {
        font-size: 14px;
        margin-top: 8px;
        line-height: 1.4;
    }

    .article-meta-header {
        gap: 8px;
        font-size: 11px;
        margin-top: 14px;
        flex-wrap: wrap;
    }

    .article-meta-header span {
        gap: 4px;
    }

    .stats-badge-header {
        font-size: 11px;
        padding: 3px 10px;
    }

    .academic-tabs-nav {
        flex-wrap: nowrap;
    }

    .academic-tabs-nav li {
        min-width: auto;
        flex: 1;
    }

    .academic-tabs-nav li a {
        padding: 12px 8px;
        font-size: 12px;
        gap: 5px;
        flex-direction: column;
    }

    .academic-tabs-nav li a i {
        font-size: 16px;
    }

    .academic-tabs-nav li.active a::after {
        width: 30px;
    }

    .academic-tab-content {
        padding: 18px 14px;
    }

    .quick-info-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 14px 16px;
        align-items: start;
    }

    .quick-info-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }

    .authors-section {
        padding: 16px;
    }

    .authors-title {
        font-size: 12px;
    }

    .author-card {
        min-width: 100%;
        padding: 12px;
    }

    .author-avatar {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .author-name {
        font-size: 13px;
    }

    .author-affiliation {
        font-size: 11px;
    }

    .galley-cards {
        grid-template-columns: 1fr;
    }

    .galley-card {
        padding: 14px;
        gap: 12px;
    }

    .galley-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .galley-name {
        font-size: 13px;
    }

    .galley-type {
        font-size: 11px;
    }

    .galley-action {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail-card {
        padding: 14px 16px;
    }

    .reference-item {
        padding: 14px 14px 14px 48px;
        font-size: 13px;
        line-height: 1.6;
    }

    .reference-item::before {
        width: 24px;
        height: 24px;
        font-size: 10px;
        left: 12px;
        right: auto;
    }

    .references-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .references-title {
        font-size: 16px;
    }

    .abstract-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .abstract-label {
        font-size: 11px;
        padding: 6px 14px;
    }

    .keywords-list {
        gap: 6px;
    }

    .keyword-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .bio-card {
        padding: 14px;
        gap: 10px;
    }

    .bio-text {
        font-size: 12px;
    }

    .license-section {
        padding: 14px;
    }

    .stats-section {
        padding: 14px;
    }

    .galleys-title,
    .supplementary-title {
        font-size: 15px;
    }

    /* Statistics Tab Mobile */
    .stats-tab-header {
        font-size: 16px;
    }

    .stats-summary-item {
        padding: 16px 18px;
    }

    .stats-summary-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stats-summary-value {
        font-size: 20px;
    }

    .stats-chart-section {
        padding: 16px;
    }

    .stats-chart-wrapper {
        padding: 12px;
        min-height: 250px;
    }

    .stats-chart-wrapper canvas {
        height: 250px !important;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .academic-article-header {
        padding: 18px 0 15px;
    }

    .article-title-main {
        font-size: 16px;
    }

    .article-title-main small {
        font-size: 12px;
    }

    .article-meta-header {
        font-size: 10px;
        gap: 8px;
    }

    .academic-tabs-nav li a {
        padding: 10px 4px;
        font-size: 11px;
    }

    .academic-tabs-nav li a i {
        font-size: 14px;
    }

    .academic-tab-content {
        padding: 14px 10px;
    }

    .authors-section {
        padding: 12px;
    }

    .author-card {
        padding: 10px;
    }

    .quick-info-bar {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .quick-info-item .info-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .quick-info-item .info-label {
        font-size: 10px;
    }

    .quick-info-item .info-value {
        font-size: 12px;
    }

    .reference-item {
        padding: 12px 12px 12px 42px;
        font-size: 12px;
    }

    .reference-item::before {
        width: 22px;
        height: 22px;
        font-size: 9px;
        left: 10px;
        right: auto;
    }

    .galley-card {
        padding: 12px;
    }

    .galley-icon {
        width: 38px;
        height: 38px;
    }

    /* Statistics Tab Small Mobile */
    .stats-summary-item {
        padding: 14px 16px;
    }

    .stats-summary-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .stats-summary-value {
        font-size: 18px;
    }

    .stats-chart-section {
        padding: 12px;
    }

    .stats-chart-wrapper {
        padding: 10px;
        min-height: 200px;
    }

    .stats-chart-wrapper canvas {
        height: 200px !important;
    }

    .stats-chart-placeholder {
        padding: 30px 12px;
    }
}

/* ============================================
   RTL SUPPORT (Right-to-Left Languages)
   ============================================ */
html[dir="ltr"] .academic-article-header::before {
    right: auto;
    left: -100px;
}

html[dir="ltr"] .academic-article-header::after {
    left: auto;
    right: -60px;
}

html[dir="ltr"] .article-header-content {
    padding: 0 15px;
}

html[dir="ltr"] .author-card {
    flex-direction: row;
}

html[dir="ltr"] .quick-info-item {
    flex-direction: row !important;
}

html[dir="ltr"] .reference-item {
    padding: 16px 20px 16px 55px;
}

html[dir="ltr"] .reference-item::before {
    right: auto;
    left: 16px;
}

html[dir="ltr"] .galley-card {
    flex-direction: row;
}

html[dir="ltr"] .galley-card::before {
    left: auto;
    right: 0;
}

html[dir="ltr"] .bio-card {
    flex-direction: row;
}

html[dir="ltr"] .abstract-content p {
    text-align: justify;
}

/* RTL Statistics */
html[dir="ltr"] .stats-summary-item {
    flex-direction: row;
}

html[dir="ltr"] .stats-summary-item::before {
    left: auto;
    right: 0;
}

html[dir="ltr"] .stats-tab-header {
    flex-direction: row;
}

html[dir="ltr"] .stats-chart-title {
    flex-direction: row;
}

html[dir="ltr"] .stats-badge-header {
    flex-direction: row;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .academic-article-header {
        background: #fff !important;
        color: #000 !important;
        padding: 20px 0;
    }

    .article-title-main {
        color: #000 !important;
    }

    .galley-action,
    .author-orcid {
        display: none !important;
    }

    .tab-pane {
        display: block !important;
    }

    .academic-tabs-nav {
        display: none !important;
    }

    .academic-tab-content {
        padding: 0;
    }

    .author-card,
    .galley-card,
    .reference-item,
    .detail-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    /* Print Statistics */
    .stats-chart-section {
        page-break-inside: avoid;
    }

    .stats-summary-grid {
        page-break-inside: avoid;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.galley-action {
    animation: pulse 2s infinite;
}

.galley-card:hover .galley-action {
    animation: none;
}

/* Stats Loading Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glyphicon-spin {
    animation: spin 1s linear infinite;
}

/* Fade In Animation for Stats */
@keyframes statsFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-summary-item {
    animation: statsFadeIn 0.5s ease forwards;
}

.stats-summary-item:nth-child(1) { animation-delay: 0.1s; }
.stats-summary-item:nth-child(2) { animation-delay: 0.2s; }
.stats-summary-item:nth-child(3) { animation-delay: 0.3s; }

#articlesBySimilarityList {
  direction: ltr;
  font-family: 'Source Serif 4', 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  margin: 2.5rem 0 2rem 0;
  padding: 0;
}

#articlesBySimilarityList .section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

#articlesBySimilarityList .section-header::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 28px;
  background: linear-gradient(180deg, #1a5276, #2e86c1);
  border-radius: 3px;
  flex-shrink: 0;
}

#articlesBySimilarityList h2.label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

#articlesBySimilarityList ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#articlesBySimilarityList ul li {
  background: #fff;
  border: 1px solid #dce6f0;
  border-left: 4px solid #2e86c1;
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-size: 0.93rem;
  color: #444;
  line-height: 1.7;
  transition: box-shadow 0.2s ease, border-left-color 0.2s ease;
}

#articlesBySimilarityList ul li:hover {
  box-shadow: 0 3px 12px rgba(46, 134, 193, 0.13);
  border-left-color: #1a5276;
}

#articlesBySimilarityList ul li .author-names {
  display: block;
  font-size: 1.35rem;
  color: #6c7a89;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

#articlesBySimilarityList ul li .article-title {
  display: block;
  margin-bottom: 0.3rem;
}

#articlesBySimilarityList ul li .article-title a {
  color: #1a5276;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.33rem;
  transition: color 0.2s ease;
}

#articlesBySimilarityList ul li .article-title a:hover {
  color: #2e86c1;
  text-decoration: underline;
}

#articlesBySimilarityList ul li .issue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.22rem;
  color: #2e86c1;
  text-decoration: none;
  margin-top: 0.25rem;
  transition: color 0.2s;
}

#articlesBySimilarityList ul li .issue-link:hover {
  color: #1a5276;
  text-decoration: underline;
}

#articlesBySimilaritySearch {
  margin-top: 1rem;
  font-size: 1.38rem;
  color: #6c7a89;
  text-align: center;
}

#articlesBySimilaritySearch a {
  color: #2e86c1;
  text-decoration: none;
  font-weight: 500;
}

#articlesBySimilaritySearch a:hover {
  color: #1a5276;
  text-decoration: underline;
}

@media (max-width: 600px) {
  #articlesBySimilarityList ul li {
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }
  #articlesBySimilarityList h2.label {
    font-size: 1.05rem;
  }
}
#articlesBySameAuthorList {
  direction: ltr;
  font-family: 'Source Serif 4', 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  margin: 2.5rem 0 2rem 0;
  padding: 0;
}

#articlesBySameAuthorList .section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

#articlesBySameAuthorList .section-header::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 28px;
  background: linear-gradient(180deg, #1a5276, #2e86c1);
  border-radius: 3px;
  flex-shrink: 0;
}

#articlesBySameAuthorList h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  letter-spacing: 0;
}

#articlesBySameAuthorList ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#articlesBySameAuthorList ul li {
  background: #fff;
  border: 1px solid #dce6f0;
  border-left: 4px solid #2e86c1;
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-size: 0.93rem;
  color: #444;
  line-height: 1.7;
  transition: box-shadow 0.2s ease, border-left-color 0.2s ease;
}

#articlesBySameAuthorList ul li:hover {
  box-shadow: 0 3px 12px rgba(46, 134, 193, 0.13);
  border-left-color: #1a5276;
}

#articlesBySameAuthorList ul li .author-names {
  display: block;
  font-size: 1.35rem;
  color: #6c7a89;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

#articlesBySameAuthorList ul li .article-title {
  display: block;
  margin-bottom: 0.3rem;
}

#articlesBySameAuthorList ul li .article-title a {
  color: #1a5276;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.33rem;
  transition: color 0.2s ease;
}

#articlesBySameAuthorList ul li .article-title a:hover {
  color: #2e86c1;
  text-decoration: underline;
}

#articlesBySameAuthorList ul li .issue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.22rem;
  color: #2e86c1;
  text-decoration: none;
  margin-top: 0.25rem;
  transition: color 0.2s;
}

#articlesBySameAuthorList ul li .issue-link:hover {
  color: #1a5276;
  text-decoration: underline;
}

#articlesBySameAuthorPages {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

#articlesBySameAuthorPages a,
#articlesBySameAuthorPages span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid #b8cfe0;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #1a5276;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

#articlesBySameAuthorPages a:hover {
  background: #2e86c1;
  color: #fff;
  border-color: #2e86c1;
}

#articlesBySameAuthorPages .current,
#articlesBySameAuthorPages span.highlight {
  background: #1a5276;
  color: #fff;
  border-color: #1a5276;
  font-weight: bold;
}

@media (max-width: 600px) {
  #articlesBySameAuthorList ul li {
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }
  #articlesBySameAuthorList h2 {
    font-size: 1.05rem;
  }
}

/* ============================================================
   MOBILE FIXES - النسخة النهائية الكاملة
   ============================================================ */

@media (max-width: 767px) {

    /* --- overflow وعرض container --- */
    .academic-article-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    .academic-article-wrapper > .container {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .authors-section,
    .quick-info-bar,
    .academic-tabs-wrapper,
    .cmp_notification,
    .article-cover-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- شريط الإحصائيات في الهيدر: كل العناصر في سطر واحد --- */
    .article-meta-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 4px !important;
        overflow: visible !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    .article-meta-header > span,
    .article-meta-header .stats-badge-header {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        justify-content: center !important;
        font-size: 9px !important;
        padding: 3px 4px !important;
        gap: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }
    .article-meta-header i,
    .stats-badge-header i {
        font-size: 10px !important;
        flex-shrink: 0 !important;
    }

    /* --- بطاقات المؤلفين --- */
    .authors-section { padding: 12px !important; }
    .authors-list { flex-direction: column !important; gap: 10px !important; }
    .author-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        gap: 10px !important;
    }
    .author-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
    }
    .author-info {
        min-width: 0 !important;
        overflow: hidden !important;
        flex: 1 1 0% !important;
        text-align: left !important;
    }
    .author-name {
        font-size: 13px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    .author-affiliation {
        font-size: 11px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    /* --- quick-info-bar --- */
    .quick-info-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    .quick-info-item {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        text-align: left !important;
    }
    .quick-info-item .info-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }
    .quick-info-item > div { text-align: left !important; }
    .quick-info-item .info-label { font-size: 10px !important; }
    .quick-info-item .info-value { font-size: 12px !important; word-break: break-all !important; }

    /* --- التبويبات --- */
    .academic-tabs-nav {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        flex-wrap: nowrap !important;
    }
    .academic-tabs-nav::-webkit-scrollbar { display: none !important; }
    .academic-tabs-nav li { min-width: 70px !important; flex: 1 !important; }
    .academic-tabs-nav li a {
        padding: 10px 6px !important;
        font-size: 10px !important;
        flex-direction: column !important;
        gap: 3px !important;
    }
    .academic-tabs-nav li a i { font-size: 15px !important; }

    /* --- بطاقات الإحصائيات: 2×2 grid صحيح على الموبايل --- */
    /*
       [ تحميل      ] [ مشاهدة      ]
       [ منشور      ] [ النص الكامل ]
    */
    .stats-cards-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas:
            "downloads views"
            "pubdate files" !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .stats-summary-item.views-total      { grid-area: views !important; }
    .stats-summary-item.downloads-total  { grid-area: downloads !important; }
    .stats-summary-item.pub-date         { grid-area: pubdate !important; }
    .stats-summary-item.stats-files-card { grid-area: files !important; }

    /* شكل كل بطاقة: flex row — أيقونة + معلومات */
    .stats-summary-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 12px 10px !important;
    }
    .stats-summary-item .stats-summary-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        border-radius: var(--radius-sm) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .stats-summary-item.views-total .stats-summary-icon {
        background: var(--stats-views-light) !important;
        color: var(--stats-views) !important;
    }
    .stats-summary-item.downloads-total .stats-summary-icon {
        background: var(--stats-downloads-light) !important;
        color: var(--stats-downloads) !important;
    }
    .stats-summary-item.pub-date .stats-summary-icon {
        background: rgba(230,126,34,0.08) !important;
        color: var(--accent-color) !important;
    }
    .stats-summary-item.stats-files-card .stats-summary-icon {
        background: rgba(26,82,118,0.08) !important;
        color: var(--primary-color) !important;
        display: flex !important;
    }
    .stats-summary-item .stats-summary-info {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2px !important;
        min-width: 0 !important;
        text-align: left !important;
    }
    .stats-summary-value {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }
    .stats-summary-label {
        font-size: 9px !important;
        margin: 0 !important;
    }
    .stats-summary-item.pub-date .stats-summary-value {
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }

    /* بطاقة النص الكامل على الموبايل: نفس شكل باقي البطاقات */
    .stats-summary-item.stats-files-card {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .stats-file-value {
        font-size: 15px !important;
    }
    .stats-file-type {
        font-size: 9px !important;
    }
    .stats-file-download-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
    }
}

/* ============================================================
   FINAL LTR OVERRIDE
   ============================================================ */
.quick-info-item,
.academic-article-wrapper .quick-info-item,
.quick-info-bar .quick-info-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}
/* ============================================
   MOBILE CRITICAL FIXES
   ============================================ */

/* 1. إصلاح شريط الإحصائيات في الهيدر */
@media (max-width: 576px) {
  .article-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
  }

  .article-meta-header span,
  .stats-badge-header {
    font-size: 10px;
    padding: 3px 9px;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* 2. إصلاح بطاقة المؤلف المقطوعة */
@media (max-width: 576px) {
  .authors-section {
    padding: 12px;
    margin-left: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    overflow: hidden;
  }

  .authors-list {
    flex-direction: column;
    gap: 10px;
  }

  .author-card {
    min-width: 0 !important;
    width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .author-info {
    min-width: 0;
    overflow: hidden;
  }

  .author-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .author-affiliation {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* 3. إصلاح quick-info-bar */
@media (max-width: 576px) {
  .quick-info-bar {
    margin-left: 0 !important;
    width: 100% !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }

  .quick-info-item {
    gap: 8px;
  }

  .quick-info-item .info-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .quick-info-item .info-value {
    font-size: 12px;
    word-break: break-all;
  }
}

/* 4. إصلاح التبويبات */
@media (max-width: 576px) {
  .academic-tabs-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
  }

  .academic-tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .academic-tabs-nav li {
    min-width: 70px;
    flex: 1;
  }

  .academic-tabs-nav li a {
    padding: 10px 6px;
    font-size: 10px;
    flex-direction: column;
    gap: 3px;
  }
}

/* 5. إزالة margin-right السالب على الموبايل */
@media (max-width: 576px) {
  .authors-section,
  .quick-info-bar,
  .academic-tabs-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0px !important;
  }
}

/* 6. منع overflow أفقي عام */
@media (max-width: 576px) {
  .academic-article-wrapper {
    overflow-x: hidden;
    width: 100%;
  }

  .academic-article-wrapper .container {
    padding-right: 10px;
    padding-left: 10px;
  }
}
.tqarb-citation-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-top: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.tqarb-citation-header {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.citation-text {
    background: #f7f7f7;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.citation-actions {
    margin-top: 12px;
    position: relative;
}

.toggle-formats {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.formats-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 99;
}

.formats-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.formats-dropdown li a {
    display: block;
    padding: 6px 10px;
    text-decoration: none;
    color: #333;
}

.formats-dropdown li a:hover {
    background: #f0f0f0;
}

.citation-downloads {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.download-btn {
    background: #10b981;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
}
.breadcrumb {
  margin-bottom: 0px !important; 
  border-radius: 8px 8px 0px 0px;
}
.pkp_block.block_make_submission a {
  color: #333 !important;
  background-color: #fff;
  border-color: #ccc;
}
.btn-default:hover,
.pkp_block.block_make_submission a:hover {
  color: #fff !important;
  background-color: #185FA5 !important;
  border-color: #185FA5 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* ============================================
   تنسيقات عامة للـ Toggle
   ============================================ */
.toggle-panel {
    margin-bottom: 15px;
    border: 0px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.toggle-title {
    padding: 12px 15px;
    background-color: #f5f5f5;
    margin: 0;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    user-select: none;
}

.toggle-title:hover {
    background-color: #e8e8e8;
}

.toggle-title .toggle-icon {
    margin-right: 8px;
    font-size: 12px;
    color: #fff;
    display: inline-block;
    float: right;
}

.toggle-content {
    padding: 15px;
    background-color: #fff;
}

.collapse:not(.in) {
    display: none;
}

/* ============================================
   تنسيقات خاصة بالسايدبار
   ============================================ */
#sidebar .toggle-panel {
    margin-bottom: 15px;
}

#sidebar .toggle-title {
    font-size: 16px;
}

/* ============================================
   تنسيقات خاصة بـ ac-current-issue
   ============================================ */
.ac-articles-wrap.toggle-panel {
    margin-bottom: 25px;
    border: 1px solid #ddd !important;
}

.ac-articles-wrap .toggle-title {
    background-color: #337ab7;
    color: #fff;
    font-size: 18px;
    padding: 15px 20px;
}

.ac-articles-wrap .toggle-title:hover {
    background-color: #286090;
}

.ac-articles-wrap .toggle-title .toggle-icon {
    color: #fff;
    float: right;
}

.ac-articles-wrap .toggle-content {
    padding: 20px;
}
@media (min-width: 992px) {
  .search-content-col {
    padding-right: 70px !important;
    padding-left: 20px !important;
  }
}

.privacy-doc-header::before {
  left: 50px !important;
}
.privacy-doc-header::after {
  right: 25px !important;
}
.privacy-contact-box::before {
  right: -25px !important;
}

@media (min-width: 992px) {
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    float: left !important;
  }
}