/* Pages written in the admin panel («المحتوى والصفحات»): /p/<slug>, /news, /guide, /faq, banners and the footer.
   Uses the site's card, prose and laurel styles (site.css). */
.cx .cx-body { line-height: 1.9; font-size: 18px; }
.cx .cx-body > :first-child { margin-top: 0; }
.cx .cx-body h3 { color: #ffe08a; font-size: 20px; margin: 16px 0 6px; }
.cx .cx-body h4 { font-size: 18px; margin: 14px 0 4px; }
.cx .cx-body p { margin: 0 0 12px; }
.cx .cx-body ol { padding-inline-start: 24px; }
.cx .cx-body a { color: #8fc8ff; text-decoration: underline; text-underline-offset: 3px; }
.cx .cx-body blockquote { margin: 14px 0; padding: 10px 18px; border-inline-start: 4px solid #f5b62e; background: rgba(255, 200, 60, .08); border-radius: 8px; }
.cx .cx-body img, .cx .cx-body video { display: block; max-width: 100%; height: auto; margin: 14px auto; border-radius: 14px; }
.cx .cx-body hr { border: 0; border-top: 1px solid rgba(160, 140, 255, .35); margin: 20px 0; }
.cx-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.cx-date { margin-top: 14px; }
.cx-crumbs { text-align: center; color: var(--soft); font-size: 15px; margin: -12px 0 18px; }
.cx-crumbs a { color: #ffd24a; }
.cx-preview { text-align: center; margin: 0 auto 16px; padding: 8px 14px; max-width: 560px; border-radius: 12px; background: rgba(255, 180, 40, .15); border: 1px solid #f5b62e; color: #ffe08a; font-weight: 700; }

.cx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.cx-item { display: flex; gap: 16px; padding: 16px; align-items: flex-start; transition: transform .15s, border-color .15s; }
.cx-item:hover { transform: translateY(-3px); border-color: #f5b62e; }
.cx-item > img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.cx-item-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(180deg, #5b2bd6, #3a1690); color: #fff; }
.cx-item-ic .ic { width: 30px; height: 30px; }
.cx-item h2 { margin: 0 0 4px; font-size: 20px; color: #ffd24a; }
.cx-item p { margin: 0; color: var(--soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-item small { color: #9fa6e8; font-size: 13px; }
.cx-pager { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.cx-pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; }

.cx-faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.cx-q summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-size: 19px; font-weight: 800; list-style: none; }
.cx-q summary::-webkit-details-marker { display: none; }
.cx-q summary::after { content: "+"; margin-inline-start: auto; font-size: 26px; color: #ffd24a; line-height: 1; }
.cx-q[open] summary::after { content: "−"; }
.cx-q summary .ic { color: #ffd24a; }
.cx-q .prose { padding: 0 22px 16px 22px; padding-inline-start: 56px; color: #e6e8ff; }
.cx-q .prose p { margin: 0 0 8px; }

/* Banners */
.cx-banners { display: grid; gap: 12px; max-width: 1200px; margin: 0 auto 20px; }
.cx-banner { display: block; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--edge); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.cx-banner img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
main.home .cx-banners { position: relative; width: min(1420px, 92%); margin: 0 auto 20px; }
.cx-content { margin-top: 22px; }

/* Footer links */
.cx-foot { padding: 22px 18px 28px; text-align: center; background: rgba(7, 9, 34, .96); border-top: 1px solid rgba(120, 110, 255, .22); }
.cx-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.cx-foot a { color: var(--soft); font-weight: 700; font-size: 15px; }
.cx-foot a:hover { color: #ffd24a; }
.cx-foot p { margin: 10px 0 0; color: #7f86c4; font-size: 13px; }

@media (max-width: 860px) {
  .cx .cx-body { font-size: 17px; }
  .cx .prose { padding: 18px 16px; }
  .cx-list { grid-template-columns: 1fr; gap: 12px; }
  .cx-item > img { width: 96px; height: 70px; }
  .cx-q summary { font-size: 17px; padding: 14px 16px; }
  .cx-q .prose { padding: 0 16px 14px; padding-inline-start: 16px; }
  .cx-foot { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* Legal pages (/privacy, /terms and /en/…): the other-language link as a small pill */
.legal-lang a { display: inline-block; padding: 4px 16px; border: 1px solid rgba(255, 210, 74, .55); border-radius: 20px; font-weight: 700; font-family: Cairo, sans-serif; }
.legal .cx-body h2 { font-size: 22px; margin-top: 26px; }
.legal .cx-body h3 { font-size: 18px; }
.legal .cx-body { overflow-wrap: anywhere; }
