/* ==========================================================
   منظمة ينبوع الخير — الأنماط المشتركة
   ----------------------------------------------------------
   الألوان الأساسية:
     #0C2C49  أزرق داكن (الخلفيات الداكنة والعناوين)
     #1D5A94  أزرق الهوية (الأزرار والروابط)
     #6DAE2E  أخضر الهوية (لمسات وزخارف)
     #3B7419  أخضر للنصوص على الخلفيات الفاتحة
     #13232F  لون النص الأساسي
     #56636C  نص ثانوي
     #FBFAF6  خلفية الصفحة
     #F3EEE3  خلفية الأقسام الرملية
     #E4DED1  الحدود
   الخطوط: Almarai للعناوين — IBM Plex Sans Arabic للنصوص
   ملاحظة: أغلب تنسيقات الأقسام مكتوبة داخل كل عنصر (style)
   حتى يسهل تعديل أي جزء مباشرة من صفحته.
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fbfaf6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: #1d5a94;
}

a:hover {
  color: #0c2c49;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6dae2e;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ---------- أزرار التصفية (المشاريع، المساجد، المعرض) ---------- */
.chip {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  background: #ffffff;
  color: #13232f;
  border: 1px solid #d9d2c3;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover {
  border-color: #0c2c49;
}

.chip.is-active {
  background: #0c2c49;
  color: #ffffff;
  border-color: #0c2c49;
}

/* ---------- بطاقات أشكال الشراكة (صفحة ادعمنا) ---------- */
.way {
  font-family: inherit;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border-radius: 26px;
  cursor: pointer;
  background: #ffffff;
  color: #13232f;
  border: 2px solid #e4ded1;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.way:hover {
  border-color: #1d5a94;
}

.way.is-active {
  background: #0c2c49;
  color: #ffffff;
  border-color: #0c2c49;
}

.way-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf1f8;
  color: #1d5a94;
}

.way.is-active .way-icon {
  background: #6dae2e;
  color: #0c2c49;
}

/* ---------- عارض شهادة التسجيل (صفحة الحوكمة) ---------- */
.cert-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 24, 40, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.cert-dialog img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
}

.cert-dialog__close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #0c2c49;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 720px) {
  h1 {
    font-size: 38px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  [style*="grid-column: span 2"] {
    grid-column: auto !important;
  }
}
