/**
 * FAQ Accordion (Style 2) – استايل أسئلة صفحة تفاصيل السبيس
 * ارفع هذا الملف على السيرفر وضمّنه في القالب لضمان ظهور الاستايل
 */
.space-faqs-section {
  border-color: #e5e7eb;
}
.space-faqs-section .space-faqs-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}
.space-faqs-section .space-faqs-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.space-faqs-section .space-faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.space-faqs-section .space-faq-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.space-faqs-section .space-faq-item .space-faq-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.space-faqs-section .space-faq-item .space-faq-btn:hover,
.space-faqs-section .space-faq-item .space-faq-btn:focus {
  color: #111827;
  background: #f9fafb;
  outline: none;
}
.space-faqs-section .space-faq-item .space-faq-btn[aria-expanded="true"] {
  color: #2563eb;
  background: #f9fafb;
}
.space-faqs-section .space-faq-item .space-faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-right: 14px;
  border-radius: 8px;
  background: #e5e7eb;
  color: #4b5563;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s, color 0.2s;
}
.space-faqs-section .space-faq-item .space-faq-btn[aria-expanded="true"] .space-faq-icon {
  transform: rotate(-180deg);
  background: #2563eb;
  color: #fff;
}
.space-faqs-section .space-faq-item .space-faq-question {
  flex: 1;
}
.space-faqs-section .space-faq-item .space-faq-body {
  border-top: 1px solid #e5e7eb;
}
.space-faqs-section .space-faq-item .space-faq-body.collapse:not(.show) {
  display: none !important;
}
.space-faqs-section .space-faq-item .space-faq-body.collapse.show {
  display: block !important;
}
.space-faqs-section .space-faq-item .space-faq-answer {
  padding: 14px 18px 18px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  background: #f9fafb;
}
.space-faqs-section .space-faq-item .space-faq-answer p {
  margin-bottom: 0.5em;
}
.space-faqs-section .space-faq-item .space-faq-answer p:last-child {
  margin-bottom: 0;
}
.space-faqs-section .space-faq-item .space-faq-answer ol,
.space-faqs-section .space-faq-item .space-faq-answer ul {
  padding-left: 1.6em;
  margin-bottom: 0.5em;
}
.space-faqs-section .space-faq-item .space-faq-answer a {
  color: #2563eb;
}
/* RTL – نفس قواعد الصفحات الداخلية (تفاصيل السبيس) */
[dir="rtl"] .space-faqs-section .space-faq-item .space-faq-btn,
html.rtl .space-faqs-section .space-faq-item .space-faq-btn {
  text-align: right;
}
[dir="rtl"] .space-faqs-section .space-faq-item .space-faq-icon,
html.rtl .space-faqs-section .space-faq-item .space-faq-icon {
  margin-right: 0;
  margin-left: 14px;
}
[dir="rtl"] .space-faqs-section .space-faq-item .space-faq-answer,
html.rtl .space-faqs-section .space-faq-item .space-faq-answer {
  text-align: right;
  padding-right: 22px;
  padding-left: 18px;
}
[dir="rtl"] .space-faqs-section .space-faqs-title,
html.rtl .space-faqs-section .space-faqs-title {
  text-align: right;
}
[dir="rtl"] .space-faqs-section .space-faq-answer ol,
[dir="rtl"] .space-faqs-section .space-faq-answer ul,
html.rtl .space-faqs-section .space-faq-answer ol,
html.rtl .space-faqs-section .space-faq-answer ul {
  padding-left: 0;
  padding-right: 2.5em;
}
/* تعزيز على الديسكتوب */
@media (min-width: 992px) {
  .space-faqs-section .space-faqs-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .space-faqs-section .space-faq-item {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .space-faqs-section .space-faq-item .space-faq-btn {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 16px 18px !important;
    border: none !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: left !important;
    cursor: pointer !important;
  }
  .space-faqs-section .space-faq-item .space-faq-btn[aria-expanded="true"] {
    color: #2563eb !important;
    background: #f9fafb !important;
  }
  .space-faqs-section .space-faq-item .space-faq-question {
    flex: 1 !important;
  }
  .space-faqs-section .space-faq-item .space-faq-icon {
    display: inline-flex !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    margin-right: 14px !important;
    border-radius: 8px !important;
    background: #e5e7eb !important;
    color: #4b5563 !important;
  }
  .space-faqs-section .space-faq-item .space-faq-btn[aria-expanded="true"] .space-faq-icon {
    transform: rotate(-180deg) !important;
    background: #2563eb !important;
    color: #fff !important;
  }
  .space-faqs-section .space-faq-item .space-faq-answer {
    padding: 14px 18px 18px !important;
    font-size: 14px !important;
    color: #4b5563 !important;
    line-height: 1.5 !important;
    background: #f9fafb !important;
  }
  /* RTL على الديسكتوب – نفس الصفحات الداخلية (جميع السيليكتورات) */
  [dir="rtl"] .space-faqs-section .space-faq-item .space-faq-btn,
  html.rtl .space-faqs-section .space-faq-item .space-faq-btn,
  body.is-rtl .space-faqs-section .space-faq-item .space-faq-btn {
    text-align: right !important;
  }
  [dir="rtl"] .space-faqs-section .space-faq-item .space-faq-icon,
  html.rtl .space-faqs-section .space-faq-item .space-faq-icon,
  body.is-rtl .space-faqs-section .space-faq-item .space-faq-icon {
    margin-right: 0 !important;
    margin-left: 14px !important;
  }
  [dir="rtl"] .space-faqs-section .space-faq-item .space-faq-answer,
  html.rtl .space-faqs-section .space-faq-item .space-faq-answer,
  body.is-rtl .space-faqs-section .space-faq-item .space-faq-answer {
    padding-right: 22px !important;
    padding-left: 18px !important;
    text-align: right !important;
  }
}
