/* =========================================================
   منظمة نعمة — تحسينات الشاشات الصغيرة (الجوال والأجهزة اللوحية)
   يُحمَّل بعد باقي الأنماط ليضبط المقاسات والمسافات والكثافة
   ========================================================= */
@media (max-width: 760px) {
  :root { --header-h: 64px; --radius: 18px; }
  body { font-size: 1.02rem; line-height: 1.8; }

  /* المسافات والعناوين */
  .section { padding: 3rem 0; }
  .section-head { margin-bottom: 1.6rem; }
  .section-head h2 { font-size: 1.55rem; margin-bottom: .4rem; }
  .section-head p, .section-head--row p { font-size: 1rem; }
  .section-head--row { gap: .6rem; align-items: flex-start; flex-direction: column; }
  .head-tools { width: 100%; justify-content: space-between; }
  .page-hero, .detail-hero, .article-hero { padding: calc(var(--header-h) + 2rem) 0 2rem; }
  .page-hero h1, .detail-hero h1, .article-hero h1 { font-size: 1.85rem; line-height: 1.3; }
  .lead { font-size: 1.02rem; }
  .crumbs { font-size: .85rem; margin-bottom: .9rem; }

  /* الترويسة */
  .brand .brand-logo { height: 36px; }
  .menu-btn { width: 42px !important; height: 42px !important; }

  /* السلايدر */
  .slider { height: 86svh; min-height: 520px; }
  .slide-title { font-size: 1.95rem; line-height: 1.32; margin-bottom: .7rem; }
  .slide-text { font-size: 1rem; line-height: 1.75; }
  .slide-kicker { font-size: .8rem; padding: .35rem .8rem; margin-bottom: 1rem; }
  .slide-actions { margin-top: 1.1rem; gap: .6rem; }
  .slide-actions .btn { padding: .8rem 1.25rem; font-size: .95rem; }
  .slide-content { padding-bottom: 5rem; }
  .slider-ui { bottom: 1rem; }
  .slider-dots .dot { max-width: none; }
  .slider-arrows button { width: 40px; height: 40px; }
  .marquee { padding: .75rem 0; }
  .marquee span { font-size: .95rem; }
  .marquee-track { gap: 1.8rem; }

  /* الفيديو التعريفي */
  .video-media { padding: 1.2rem 0 1.2rem; padding-inline-end: .8rem; }
  .vm-dots { display: none; }
  .video-title { font-size: 1.6rem; }
  .video-text { font-size: 1rem; }
  .play { width: 112px; height: 112px; }
  .play-core { width: 58px; height: 58px; }
  .play-core svg { width: 24px; height: 24px; }
  .play-ring text { font-size: 16px; }
  .video-stat { bottom: -.4rem; inset-inline-start: .6rem; padding: .55rem .9rem; border-radius: 14px; }
  .video-stat b { font-size: 1.2rem; }
  .points li { font-size: .98rem; }

  /* أرقام الأثر */
  .impact-total { max-width: 210px; }
  .impact-total .num { font-size: 2.1rem; }
  .bars { gap: .9rem; }
  .bar-name { font-size: .95rem; }

  /* القطاعات: عمودان مضغوطان */
  .sector-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .sector a { padding: 1.1rem .9rem 1rem; }
  .sector-icon { width: 44px; height: 44px; border-radius: 13px; margin-bottom: .7rem; }
  .sector-icon .ico { width: 23px; height: 23px; }
  .sector h3 { font-size: .98rem; line-height: 1.45; margin: 0; }
  .sector p, .sector-arrow { display: none; }

  /* البطاقات والكاروسيل */
  .car-item { flex-basis: 82vw; }
  .card-body { padding: 1.1rem 1.15rem 1.2rem; }
  .card h3 { font-size: 1.1rem; }
  .card p { font-size: .95rem; }
  .news-grid .is-big .card-body { padding: 1.2rem; }
  .news-grid .is-big h3 { font-size: 1.2rem; }

  /* شريط الصور */
  .strip-stage { gap: .7rem; padding-block: .6rem 1rem; }
  .strip-track { gap: .7rem; }
  .strip-item { width: 58vw; border-radius: 14px; }
  .strip-row.is-rev .strip-item { width: 44vw; }

  /* الشركاء */
  .partner { height: 76px; min-width: 130px; padding: .7rem 1rem; }
  .partner img { max-height: 44px; max-width: 110px; }

  /* الفلاتر */
  .filter-bar { padding: .55rem; gap: .5rem; }
  .fsel { flex: 1 1 calc(50% - .5rem); justify-content: space-between; }
  .fsel select { max-width: none; flex: 1; }
  .filter-count { width: 100%; margin: 0; text-align: center; }
  .sector-tabs a { font-size: .88rem; padding: .5rem .9rem; }

  /* تفاصيل المشروع والمقالة */
  .prose, .prose--article { font-size: 1.04rem; }
  .prose h2 { font-size: 1.35rem; } .prose h3 { font-size: 1.15rem; }
  .detail-cover { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .share { flex-wrap: wrap; }

  /* التبرع */
  .account { padding: 1.3rem; }
  .account h3 { font-size: 1.05rem; }
  .copyable code { font-size: .92rem; letter-spacing: .02em; }
  .accounts { gap: .9rem; }

  /* التذييل */
  .footer-cta-inner { padding-block: 2.4rem; gap: 1.2rem; }
  .footer-cta h2 { font-size: 1.5rem; }
  .footer-cta .btn { width: 100%; }
  .footer-grid { padding-block: 2.4rem 1.6rem; gap: 1.8rem; }
  .footer-brand .footer-logo { width: 200px; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* النماذج */
  .contact-form { padding: 1.3rem; }
  .contact-form .btn { width: 100%; }
  .zakat-form fieldset { padding: 1.2rem; }
  .zr-ring { width: 180px; }
}

@media (max-width: 380px) {
  .slide-title { font-size: 1.7rem; }
  .sector h3 { font-size: .9rem; }
  .fsel { flex-basis: 100%; }
}

/* نصوص لاتينية داخل صفحة عربية (أسماء البنوك وغيرها) تُعرض بترتيبها الصحيح */
.bidi { unicode-bidi: plaintext; }
