/* تنسيق الزر ليكون النص والأيقونة على سطر واحد */
.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;
   
}


/* 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;
}
