/* تنسيق الزر ليكون النص والأيقونة على سطر واحد */
.obj_galley_link_supplementary {
    background-color: #2b3d6f !important;
    color: #ffffff !important;
    padding: 8px 35px !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    display: inline-flex !important; /* يجعل العناصر بجانب بعضها */
    align-items: center !important;  /* يوازن العناصر عمودياً */
    gap: 10px !important;            /* مسافة بين الأيقونة والنص */
    font-weight: bold !important;
    transition: 0.3s ease;
}

/* تكبير الأيقونة قليلاً لتناسب النص */
.obj_galley_link_supplementary:before {
    font-size: 1.2rem !important;
}

.obj_galley_link_supplementary:hover {
    background-color: #1a274a !important;
}

.obj_galley_link_supplementary:after {
    right: auto;
    left: 16px;
    text-align: left;
    padding-top: 6px;
}

/* 1. تغيير خلفية الصفحة الخارجية بالكامل */

.pkp_structure_page {

    background-image: url('https://rakaezcenter.com/wp-content/uploads/2026/01/back-scaled.jpg') !important;
    background-attachment: fixed !important; /* تجعل الخلفية ثابتة أثناء التمرير */
    background-size: 50% !important;
   
}

/* إخفاء غلاف الفوتر الرمادي السفلي */
.pkp_structure_footer_wrapper {
  background: #0B3543 !important;
  padding: 0 !important;
  border: none !important;
}

/* إخفاء أي علامة تجارية متبقية برمجياً */
.pkp_brand_footer {
  display: none !important;
}


/* 1.   الحفاظ علي منطقة المحتوي بلون فاتح */
.pkp_structure_main, .pkp_structure_content {
    background: #fbfbfb !important;
}

/* ===== Hanbali Journal — Custom Stylesheet ===== */

.hanbali-home {
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  }
  
  /* ===== مشتركة ===== */
  .sec-title {
    font-size: 1.7rem;
    color: #0B3543;
    font-weight: 700;
    margin: 0 0 8px 0;
  }
  .gold-line {
    width: 48px;
    height: 3px;
    background: #C3AC5E;
    border-radius: 2px;
    margin-bottom: 22px;
  }
  
  /* ===== نبذة ===== */
  .nabza-section {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    margin: 24px 0;
    border: 1px solid #d6cba8;
    box-shadow: 0 2px 14px rgba(11,53,67,0.08);
  }
  .nabza-section p {
    color: #333;
    line-height: 2.1;
    font-size: 0.97rem;
    margin-bottom: 12px;
  }
  .nabza-section p strong { color: #0B3543; }
  .meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }
  .meta-item {
    background: #f0f5f7;
    border: 1px solid #b8d0d8;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 0.88rem;
    color: #0B3543;
  }
  .meta-item strong { color: #C3AC5E; font-weight: 700; }
  
  /* ===== إحصائيات ===== */
  .stats-section {
    background: #0B3543;
    border-radius: 12px;
    padding: 36px 32px;
    margin: 24px 0;
    color: #fff;
  }
  .stats-section .sec-title { color: #fff; }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  @media (max-width: 600px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
  }
  .stat-card {
    background: rgba(195,172,94,0.12);
    border: 1px solid rgba(195,172,94,0.35);
    border-radius: 10px;
    padding: 28px 16px;
    text-align: center;
    transition: transform 0.25s, background 0.25s;
  }
  .stat-card:hover {
    transform: translateY(-5px);
    background: rgba(195,172,94,0.22);
  }
  .stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    height: 44px;
  }
  .stat-icon svg { display: block; }
  .stat-number {
    font-size: 2.3rem;
    font-weight: 800;
    color: #C3AC5E;
    display: block;
    line-height: 1;
  }
  .stat-label {
    font-size: 0.83rem;
    color: #c8dde3;
    margin-top: 8px;
    display: block;
  }
  
  /* ===== أسئلة شائعة — details/summary ===== */
  .faq-section {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    margin: 24px 0;
    border: 1px solid #d6cba8;
    box-shadow: 0 2px 14px rgba(11,53,67,0.08);
  }
  
  details.faq-item {
    border: 1px solid #c8dde3;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
  }
  
  /* إخفاء مثلث الـ details الافتراضي */
  details.faq-item > summary {
    list-style: none;
  }
  details.faq-item > summary::-webkit-details-marker {
    display: none;
  }
  
  summary.faq-q {
    background: #f0f5f7;
    padding: 15px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #0B3543;
    font-size: 0.95rem;
    user-select: none;
    transition: background 0.2s;
  }
  summary.faq-q:hover { background: #ddeaee; }
  
  details[open] > summary.faq-q {
    background: #0B3543;
    color: #fff;
  }
  
  .faq-arrow {
    color: #C3AC5E;
    flex-shrink: 0;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: transform 0.3s;
    display: inline-block;
  }
  details[open] > summary .faq-arrow {
    transform: rotate(180deg);
    color: #C3AC5E;
  }
  
  .faq-a {
    padding: 15px 18px;
    color: #444;
    line-height: 1.95;
    font-size: 0.93rem;
    border-top: 2px solid #C3AC5E;
    background: #fff;
  }
  
  /* ===== إعادة ترتيب الصفحة الرئيسية ===== */
  #pkp_content_main {
    display: flex;
    flex-direction: column;
  }
  #homepageIssue {
    order: 10;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e0d5b5;
  }
  #homepageIssue > h2 {
    font-size: 1.7rem !important;
    color: #0B3543 !important;
    font-weight: 700 !important;
  }
  #homepageIssue > h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #C3AC5E;
    border-radius: 2px;
    margin-top: 8px;
    margin-bottom: 20px;
  }
  #pkp_content_main > div:not(#homepageIssue) {
    order: 1;
  }
  .pkp_block_make_submission { display: none; }


  /* Hide current issue on main page */
.current_issue {
    display: none;
}


/* إخفاء قسم اختيار الدور تماماً في صفحة التقديم */
div#submissionStep1 [id^="submissionRole"] {
  display: none !important;
}

/* إخفاء العنوان والنص التوضيحي الخاص بالتقديم بمثابة */
#submissionStep1 fieldset.submission_role {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* أخفاء قسم بيا الخصوصية من صفحة التقديم */
div#privacyStatement {
  display: none;
}


/* التعديل علي خانه قدم طلبا فى صفحة النشر*/
.cmp_notification {
  display: block;
  width: 100%;
  padding: 1.50rem;
  margin-bottom: 2.857rem;
  background: #c3ac5eb8;
  border-left: .357rem solid #006798;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.43rem;
}

.pkp_lang_switcher_wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 8px;
}

.pkp_lang_btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
  transition: background 0.2s;
}

.pkp_lang_btn:hover {
  background: rgba(255,255,255,0.15);
}

.pkp_lang_arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
  display: inline-block;
}

.pkp_lang_switcher_wrap.open .pkp_lang_arrow {
  transform: rotate(180deg);
}

.pkp_lang_dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  background: #0B3543;
  border: 1px solid rgba(195,172,94,0.35);
  border-radius: 6px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.pkp_lang_switcher_wrap.open .pkp_lang_dropdown {
  display: block;
}

.pkp_lang_dropdown li a {
  display: block;
  padding: 9px 18px;
  color: #b8cdd5;
  font-size: 0.87rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.pkp_lang_dropdown li a:hover {
  background: rgba(195,172,94,0.15);
  color: #fff;
}

.pkp_lang_dropdown li.pkp_lang_active a {
  color: #C3AC5E;
  font-weight: 700;
}

/* إصلاح الـ dropdown في الموبايل */
@media (max-width: 992px) {
  .pkp_lang_switcher_wrap {
      display: block;
      width: 100%;
      margin: 0;
      border-top: 1px solid rgba(195,172,94,0.2);
      padding-top: 8px;
  }

  .pkp_lang_btn {
      width: 100%;
      justify-content: space-between;
      padding: 10px 16px;
      border: none;
      border-radius: 0;
      font-size: 0.95rem;
  }

  .pkp_lang_dropdown {
      position: static;
      box-shadow: none;
      border: none;
      border-radius: 0;
      background: rgba(255,255,255,0.05);
      padding: 0;
      width: 100%;
  }

  .pkp_lang_dropdown li a {
      padding: 10px 24px;
      font-size: 0.9rem;
  }

  .pkp_lang_switcher_wrap.open .pkp_lang_dropdown {
      display: block;
  }
}