/* ==========================================================================
   الجمعية الخيرية لتحفيظ القرآن الكريم بالفوارة - أنماط التصميم الرسمية
   الهوية البصرية - خط ثمانية المعتمد
   ========================================================================== */

/* --- تعريف خطوط ثمانية (Thmanyah Typeface) --- */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Regular.woff2') format('woff2'),
       url('../fonts/thmanyahsans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Medium.woff2') format('woff2'),
       url('../fonts/thmanyahsans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Bold.woff2') format('woff2'),
       url('../fonts/thmanyahsans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Black.woff2') format('woff2'),
       url('../fonts/thmanyahsans-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('../fonts/thmanyahserifdisplay-Bold.woff2') format('woff2'),
       url('../fonts/thmanyahserifdisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('../fonts/thmanyahserifdisplay-Black.woff2') format('woff2'),
       url('../fonts/thmanyahserifdisplay-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- المتغيرات اللونية والتصميمية --- */
:root {
  --primary: #15803d;         /* أخضر إسلامي رئيسي */
  --primary-dark: #0f5132;    /* أخضر عميق */
  --primary-light: #22c55e;   /* أخضر مشرق */
  --primary-subtle: #f0fdf4;  /* خلفية خضراء ناعمة */
  --secondary: #c69214;       /* ذهبي وقور */
  --secondary-light: #eab308; /* ذهبي مشرق */
  --secondary-dark: #92400e;  /* برونزي */
  --secondary-subtle: #fefce8;
  --dark: #0f172a;            /* كحلي غامق للنصوص */
  --dark-soft: #1e293b;
  --muted: #64748b;           /* رمادي وسيط */
  --light-gray: #f8fafc;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Thmanyah Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Thmanyah Sans', 'Thmanyah Serif Display', system-ui, sans-serif;
}

/* --- الإعدادات العامة وقواعد منع انكسار النصوص --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-main);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  color: var(--dark);
  background-color: #fafbfc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-break: normal;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  line-height: 1.75;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-break: normal;
}

h1, h2, h3, h4, h5, h6 {
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  line-height: 1.35;
}

.nav-link,
.dropdown-link,
.btn,
.badge,
.hero-badge,
.section-badge,
.stat-number,
.stat-label,
.brand-title,
.brand-subtitle,
.top-info-item,
.btn-donate-nav,
.tab-btn {
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

p, li, span, blockquote, div {
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* --- تخطيط الحاويات --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }
}

/* --- الزخارف والخلفيات الإسلامية --- */
.islamic-pattern {
  background-color: var(--primary-dark);
  background-image: radial-gradient(rgba(198, 146, 20, 0.18) 1px, transparent 0);
  background-size: 24px 24px;
}

.islamic-pattern-light {
  background-color: #ffffff;
  background-image: radial-gradient(rgba(21, 128, 61, 0.08) 1px, transparent 0);
  background-size: 20px 20px;
}

.bg-pattern-gold {
  background-image: radial-gradient(rgba(198, 146, 20, 0.12) 1.5px, transparent 0);
  background-size: 28px 28px;
}

/* --- الشريط العلوي (Top Header Bar) --- */
.top-bar {
  background-color: var(--dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  max-width: 100vw;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}

.top-info-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
  white-space: nowrap;
  font-size: 0.84rem;
}

.top-info-item i {
  color: var(--secondary-light);
  flex-shrink: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.top-social-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.top-social-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.top-social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* --- الناف بار الرئيسي (Main Navbar) --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(21, 128, 61, 0.12);
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  gap: 1rem;
  flex-wrap: nowrap;
}

.navbar-brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.65rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  word-break: keep-all;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.nav-link i.dropdown-icon {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-link i.dropdown-icon {
  transform: rotate(180deg);
}

/* القائمة المنسدلة (Dropdown) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  width: max-content;
  max-width: 320px;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-soft);
  white-space: nowrap;
  transition: var(--transition);
}

.dropdown-link i {
  color: var(--primary);
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-link:hover {
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
  padding-right: 1.35rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-donate-nav {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-donate-nav:hover {
  background: linear-gradient(135deg, #166534, #14532d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.45);
}

/* مكونات الجوال - مخفية تماماً على شاشات الكمبيوتر */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.4rem;
}

.drawer-backdrop {
  display: none;
}

.mobile-drawer {
  display: none;
}

/* --- قسم الهيرو الرئيسي (Hero Section) --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #072a16 0%, #0f5132 55%, #15803d 100%);
  color: #ffffff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(198, 146, 20, 0.18), transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(34, 197, 94, 0.18), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fef08a;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-title span {
  color: #fef08a;
  position: relative;
}

.hero-subtitle {
  font-size: 1.18rem;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 2.2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #c69214, #d97706);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
  color: #fff;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* بطاقة التبرع السريع بالهيرو */
.hero-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--dark);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.donation-preset-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.preset-btn {
  background: #f8fafc;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.preset-btn .amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.preset-btn .currency {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
}

.preset-btn:hover, .preset-btn.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.donation-preset-buttons.page-presets {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.pay-method-option {
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  padding: 0.75rem 0.35rem;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: var(--transition);
  color: var(--dark);
}

.pay-method-option:hover,
.pay-method-option.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

.preset-btn.active .amount {
  color: var(--primary);
}

.preset-btn.active .currency {
  color: var(--primary);
}

.custom-amount-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.4rem;
}

.about-stat-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.strategic-framework-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.strategic-pillar-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.strategic-pillar-tag {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
}

.strategic-goals-block {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.75rem;
}

.goals-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.goal-item-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.goal-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.goal-item-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .strategic-framework-card {
    padding: 1.5rem 1.25rem;
  }
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .strategic-pillar-box {
    padding: 1.25rem;
  }
  .goals-list-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

/* هيكل ومصفوفة مجلس الإدارة الرسمي */
.board-executive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.board-executive-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.board-executive-card.president {
  border: 1.5px solid #15803d;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.board-members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.board-member-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.15rem 0.85rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.board-member-card:hover, .board-executive-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media (max-width: 992px) {
  .board-executive-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .board-members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .board-members-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

.custom-amount-input {
  position: relative;
  margin-bottom: 1.25rem;
}

.custom-amount-input input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  transition: var(--transition);
  background: #fff;
}

.custom-amount-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.15);
}

.custom-amount-input .currency-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--muted);
}

.donation-type-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--dark);
  background-color: #fff;
  margin-bottom: 1.25rem;
}

.btn-donate-submit {
  width: 100%;
  background: linear-gradient(135deg, #15803d, #166534);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(21, 128, 61, 0.35);
  transition: var(--transition);
}

.btn-donate-submit:hover {
  background: linear-gradient(135deg, #166534, #14532d);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.45);
}

/* --- شريط الإنجازات (Stats Section) --- */
.stats-bar {
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2.5rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem;
}

.stat-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08) rotate(5deg);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* --- العناوين الرئيسية للأقسام --- */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
}

.py-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* --- بطاقات مسارات الجمعية (Track Cards - مصفوفة تحت بعضها) --- */
.tracks-container {
  max-width: 1060px;
}

.tracks-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.track-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  text-align: right;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 128, 61, 0.25);
}

.track-card:hover::before {
  opacity: 1;
}

.track-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
  transition: var(--transition);
  margin-bottom: 0;
}

.track-card:hover .track-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  transform: scale(1.06);
}

.track-body {
  flex: 1;
  text-align: right;
}

.track-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.track-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 0;
  text-wrap: pretty;
  width: 100%;
}

.track-action {
  flex-shrink: 0;
}

.track-link {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  background: #f0fdf4;
  border: 1px solid rgba(21, 128, 61, 0.2);
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
}

.track-card:hover .track-link {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .track-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
  }

  .track-card::before {
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: 4px;
  }

  .track-body {
    text-align: center;
  }

  .track-action {
    width: 100%;
  }

  .track-link {
    width: 100%;
    justify-content: center;
  }
}
/* --- بنر حملة التبرع بالرسائل القصيرة SMS 5051 --- */
.sms-banner-card {
  background: linear-gradient(135deg, #15803d 0%, #064e3b 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  padding: 3rem 2.8rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.sms-banner-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sms-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.sms-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 1rem;
}

.sms-banner-title {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.sms-banner-desc {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.8;
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}

.sms-banner-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sms-banner-code {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.sms-banner-code .code-num {
  color: #dc2626;
  font-size: 1.35rem;
  font-weight: 900;
}

.sms-banner-code .code-to {
  color: #15803d;
  font-size: 1.35rem;
  font-weight: 900;
}

.sms-banner-operators {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.sms-options-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sms-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.sms-option-row:not(:last-child) {
  margin-bottom: 0.85rem;
}

.sms-option-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.sms-option-pill {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.sms-op-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
}

.sms-banner-media {
  text-align: center;
}

.sms-banner-img {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: block;
}

/* التجاوب الممتاز مع شاشات الجوال */
@media (max-width: 860px) {
  .sms-banner-card {
    padding: 2.25rem 1.25rem;
    text-align: center;
  }

  .sms-banner-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .sms-banner-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .sms-banner-title {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .sms-banner-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
  }

  .sms-banner-actions {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }

  .sms-banner-code {
    width: 100%;
    max-width: 320px;
    padding: 0.85rem 1rem;
    font-size: 1.1rem;
    margin: 0 auto;
  }

  .sms-banner-operators {
    justify-content: center;
    width: 100%;
  }

  .sms-options-box {
    text-align: center;
    padding: 1.1rem 0.85rem;
  }

  .sms-option-row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .sms-option-label {
    text-align: center;
    display: block;
    width: 100%;
  }

  .sms-option-pill {
    margin: 0 auto;
    font-size: 1rem;
    padding: 0.45rem 1.25rem;
  }

  .sms-banner-media {
    margin-top: 0.5rem;
  }

  .sms-banner-img {
    max-height: 250px;
    max-width: 250px;
  }
}

/* --- بطاقات المشاريع والتبرعات --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.project-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image-wrap img {
  transform: scale(1.08);
}

.project-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* شريط التقدم */
.progress-box {
  margin-bottom: 1.25rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.progress-bar-bg {
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 9999px;
  transition: width 1s ease-in-out;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-donate-card {
  flex: 1;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
}

.btn-donate-card:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* --- بطاقة منصة إحسان (Ehsan Card) --- */
.ehsan-banner-card {
  background: linear-gradient(135deg, #094726 0%, #0d5f34 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.ehsan-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ehsan-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 1.25rem;
}

.ehsan-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.ehsan-desc {
  font-size: 1.05rem;
  color: #d1fae5;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* --- الحسابات البنكية (Bank Accounts Grid) --- */
.bank-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.bank-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.4rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.bank-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.bank-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.bank-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.bank-badge {
  font-size: 0.76rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bank-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.iban-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 0.85rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
  transition: var(--transition);
}

.bank-card:hover .iban-box {
  border-color: rgba(21, 128, 61, 0.3);
  background: #f0fdf4;
}

.iban-text {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  direction: ltr;
  text-align: center;
  letter-spacing: 0.5px;
  user-select: all;
  background: #ffffff;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-iban {
  width: 100%;
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff !important;
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.2);
}

.btn-copy-iban:hover {
  background: linear-gradient(135deg, #166534, #14532d);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}

.btn-copy-iban.btn-success {
  background: #047857 !important;
  color: #ffffff !important;
}

/* --- بطاقات وقوائم الحوكمة والسياسات (Governance Rows & Cards) --- */
.governance-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.gov-policy-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.gov-policy-row:hover {
  border-color: #15803d;
  box-shadow: 0 10px 25px rgba(21, 128, 61, 0.08);
  transform: translateY(-2px);
}

.gov-policy-main {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
}

.gov-num-badge {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0f5132 0%, #15803d 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.gov-policy-info {
  flex: 1;
}

.gov-policy-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.gov-policy-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.gov-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.gov-policy-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.gov-policy-action {
  flex-shrink: 0;
}

.btn-download-policy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #f8fafc;
  color: #15803d;
  border: 1.5px solid #bbf7d0;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-download-policy:hover {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
  transform: translateY(-2px);
}

.btn-download-policy i {
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .gov-policy-row {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.25rem 1.1rem !important;
    gap: 1.1rem !important;
  }
  
  .gov-policy-main {
    gap: 0.85rem !important;
  }
  
  .gov-num-badge {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
  }

  .gov-policy-title {
    font-size: 1.05rem !important;
  }

  .gov-policy-desc {
    font-size: 0.86rem !important;
  }

  .gov-policy-action {
    width: 100% !important;
  }

  .btn-download-policy {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.8rem 1rem !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1.5px solid #bbf7d0 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    font-weight: 700 !important;
  }

  .btn-gov-all-link {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.85rem 1rem !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.governance-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.governance-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.gov-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.gov-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.gov-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.gov-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-gov-view {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- معرض الوسائط (Media Gallery) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* --- شركاء النجاح (Partners Section) --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  align-items: center;
}

.partner-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.partner-icon {
  font-size: 2.4rem;
  color: var(--primary);
}

.partner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-soft);
}

/* --- الفوتر (Footer) --- */
.main-footer {
  background: #092014;
  color: #cbd5e1;
  padding: 5rem 0 2rem;
  margin-top: auto;
  border-top: 4px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 70px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 3px;
  background: var(--secondary);
  border-radius: 9999px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  font-size: 0.92rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: #fef08a;
  transform: translateX(-4px);
}

.footer-link i {
  font-size: 0.75rem;
  color: var(--secondary-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.footer-contact-item i {
  color: var(--secondary-light);
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

/* --- زر التبرع العائم وشريط الواتساب --- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.floating-whatsapp {
  background: #25d366;
}

.floating-donate {
  background: linear-gradient(135deg, #c69214, #d97706);
}

.floating-btn:hover {
  transform: scale(1.12) translateY(-4px);
}

/* --- شاشات المودال (Modals) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-backdrop.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-close-modal:hover {
  color: #ef4444;
}

.modal-body {
  padding: 1.75rem;
}

/* --- رسائل التنبيه والتأكيد (Toast Notifications) --- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-right: 4px solid var(--primary-light);
}

/* --- بطاقات النبذة والموجهات الاستراتيجية ومجلس الإدارة (About Page Components) --- */
.about-stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.strategic-framework-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  max-width: 980px;
  margin: 0 auto;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.strategic-pillar-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.strategic-pillar-tag {
  display: inline-block;
  align-self: flex-start;
  background: #15803d;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.strategic-goals-block {
  background: #ffffff;
}

.goals-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.goal-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  transition: var(--transition);
}

.goal-item-row:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.goal-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #15803d;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.goal-item-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
}

/* بطاقات مجلس الإدارة */
.board-executive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 750px;
  margin: 0 auto 2rem;
}

.board-executive-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.75rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.board-executive-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #15803d;
}

.board-role-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #15803d !important;
  margin-bottom: 0.35rem;
}

.board-members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.board-member-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.board-member-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* --- دليل الخدمات والمسارات القرآنية (Services Page Styles) --- */
.service-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-directory-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.service-directory-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #15803d;
}

.service-badge-num {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.15rem;
}

.service-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.service-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-card-footer a {
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  overflow: hidden;
}

.service-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.service-detail-header h2,
.service-detail-title {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.service-detail-meta-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.service-badge-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
}

.service-scope-text {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 700;
}

.service-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.spec-box h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.spec-box p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* --- شاشات اللابتوب والمتوسطة (1025px إلى 1320px) --- */
@media (min-width: 1025px) and (max-width: 1320px) {
  .navbar-container {
    gap: 0.5rem;
  }
  .brand-logo img {
    height: 48px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    font-size: 0.68rem;
  }
  .nav-menu {
    gap: 0.1rem;
  }
  .nav-link {
    padding: 0.5rem 0.45rem;
    font-size: 0.86rem;
    gap: 0.2rem;
  }
  .btn-donate-nav {
    padding: 0.5rem 1rem;
    font-size: 0.86rem;
  }
  .top-info-list {
    gap: 0.85rem;
  }
  .top-info-item {
    font-size: 0.78rem;
  }
}

/* --- التجاوب مع شاشات الجوال والأجهزة اللوحية (أقل من 1025px) --- */
@media (max-width: 1024px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .main-header {
    padding: 0;
  }

  .navbar-container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 0.45rem;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
  }

  .navbar-brand-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }

  .brand-logo img {
    height: 38px;
    width: auto;
    flex-shrink: 0;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    justify-content: center;
  }

  .brand-title {
    font-size: clamp(0.74rem, 2.8vw, 0.95rem);
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    display: none !important;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-actions {
    gap: 0.35rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .btn-donate-nav {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.35rem;
    flex-shrink: 0;
    white-space: nowrap !important;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--primary-subtle);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    border: 1px solid rgba(21, 128, 61, 0.2);
    cursor: pointer;
    flex-shrink: 0;
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -360px;
    width: 330px;
    max-width: 88vw;
    height: 100vh;
    background: #ffffff;
    z-index: 2500;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.22);
    padding: 0;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-drawer.active {
    right: 0;
  }

  .drawer-header {
    padding: 1.15rem 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .drawer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .drawer-logo-wrap img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .drawer-title-box {
    display: flex;
    flex-direction: column;
  }

  .drawer-org-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #15803d;
    line-height: 1.3;
  }

  .drawer-org-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
  }

  .btn-close-drawer {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 1.1rem;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-close-drawer:hover,
  .btn-close-drawer:active {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
  }

  .drawer-body {
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
  }

  .drawer-item {
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    overflow: hidden;
  }

  .drawer-item.active-parent,
  .drawer-item.open {
    background: #f8fafc;
    border-color: #e2e8f0;
  }

  .drawer-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .drawer-item-row:hover {
    background: #f1f5f9;
  }

  .drawer-nav-link {
    flex: 1;
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
  }

  .drawer-nav-link i.main-icon {
    font-size: 1.05rem;
    color: #15803d;
    width: 22px;
    text-align: center;
  }

  .drawer-nav-link.active {
    color: #15803d;
    background: #f0fdf4;
    border-radius: 8px;
    font-weight: 800;
  }

  .mobile-drawer,
  .mobile-drawer * {
    -webkit-tap-highlight-color: rgba(21, 128, 61, 0.2);
  }

  .drawer-toggle-btn {
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    padding: 0;
    border-radius: 8px;
    outline: none;
    -webkit-tap-highlight-color: rgba(21, 128, 61, 0.2);
  }

  .drawer-toggle-btn:hover,
  .drawer-toggle-btn:focus {
    background: #dcfce7;
    color: #15803d;
    outline: none;
  }

  .drawer-toggle-btn:active {
    background: #bbf7d0;
    color: #15803d;
    outline: none;
  }

  .drawer-item.open .drawer-toggle-btn {
    transform: rotate(180deg);
    color: #15803d;
    background: #f0fdf4;
  }

  .drawer-item.open .drawer-toggle-btn:hover,
  .drawer-item.open .drawer-toggle-btn:focus {
    background: #dcfce7;
  }

  .drawer-item.open .drawer-toggle-btn:active {
    background: #bbf7d0;
  }

  .drawer-submenu {
    display: none;
    padding: 0.35rem 0.5rem 0.75rem 1rem;
    margin-right: 1.5rem;
    border-right: 2.5px solid #86efac;
    flex-direction: column;
    gap: 0.25rem;
  }

  .drawer-item.open .drawer-submenu {
    display: flex;
  }

  .drawer-sub-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
  }

  .drawer-sub-link i {
    font-size: 0.82rem;
    color: #15803d;
    width: 16px;
    text-align: center;
  }

  .drawer-sub-link:hover,
  .drawer-sub-link:active {
    background: #f0fdf4;
    color: #15803d;
    font-weight: 700;
  }

  .drawer-footer {
    padding: 1.15rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    position: sticky;
    bottom: 0;
    z-index: 20;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
  }

  .hero-section {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline-white {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .hero-card {
    padding: 1.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 520px;
  }

  .stats-bar {
    padding: 1.5rem 1.25rem;
    margin-top: -2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .stat-card {
    padding: 0.25rem;
    gap: 0.75rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    border-radius: 14px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .py-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-header {
    margin-bottom: 2.2rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .tracks-grid,
  .projects-grid,
  .governance-grid,
  .bank-cards-grid,
  .news-grid,
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .ehsan-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .ehsan-banner-card {
    padding: 2.25rem 1.5rem;
  }

  .ehsan-title {
    font-size: 1.75rem;
  }

  .ehsan-desc {
    font-size: 0.95rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .about-stat-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .service-directory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .service-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .board-executive-grid {
    grid-template-columns: 1fr !important;
    max-width: 650px;
    gap: 1rem;
  }

  .board-members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  /* استجابة الشبكات والقوائم الداخلية لجميع الصفحات */
  div[style*="grid-template-columns: 1.1fr 0.9fr"],
  div[style*="grid-template-columns: 0.9fr 1.1fr"],
  div[style*="grid-template-columns: 0.8fr 1.2fr"],
  div[style*="grid-template-columns: 1.25fr 0.75fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

/* --- الهواتف الذكية والشاشات المتوسطة والصغيرة (أقل من 768px) --- */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* بانرات العناوين الرئيسية لجميع الصفحات الفرعية */
  section[style*="padding: 4rem 0"],
  section[style*="padding: 4.5rem 0"],
  section[style*="padding:4rem 0"],
  section[style*="padding:4.5rem 0"] {
    padding: 2.75rem 0 !important;
  }

  h1[style*="font-size:2.8rem"],
  h1[style*="font-size: 2.8rem"],
  h1[style*="font-size:2.6rem"],
  h1[style*="font-size: 2.6rem"] {
    font-size: clamp(1.45rem, 5.5vw, 2.1rem) !important;
    line-height: 1.35 !important;
    text-wrap: balance !important;
  }

  p[style*="font-size:1.15rem"],
  p[style*="font-size: 1.15rem"],
  p[style*="font-size:1.1rem"],
  p[style*="font-size: 1.1rem"] {
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
    text-wrap: pretty !important;
  }

  /* جميع الحاويات والبطاقات ذات الحواشي الكبيرة */
  div[style*="padding: 3.5rem"],
  div[style*="padding:3.5rem"],
  div[style*="padding: 3rem"],
  div[style*="padding:3rem"],
  div[style*="padding: 2.5rem"],
  div[style*="padding:2.5rem"] {
    padding: 1.35rem 1.1rem !important;
  }

  /* انهيار جميع الشبكات في الصفحات لتصبح عموداً واحداً بدون انكسار */
  div[style*="grid-template-columns"],
  div[style*="display:grid"],
  div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* نماذج الإدخال بجميع الصفحات */
  form div[style*="grid-template-columns"],
  form div[style*="display:grid"],
  form div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  form input,
  form select,
  form textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.92rem !important;
  }

  .tracks-grid,
  .projects-grid,
  .governance-grid,
  .bank-cards-grid,
  .news-grid,
  .services-grid,
  .gallery-grid,
  .service-directory-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .service-specs-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    padding: 1.15rem 1rem !important;
  }

  .service-detail-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .service-detail-card {
    padding: 1.35rem 1.1rem !important;
  }

  .main-footer {
    text-align: center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center !important;
  }

  .footer-brand {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .footer-brand img {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1rem !important;
  }

  .footer-desc {
    text-align: center !important;
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-title {
    text-align: center !important;
    margin-bottom: 1.25rem !important;
  }

  .footer-title::after {
    right: 50% !important;
    transform: translateX(50%) !important;
  }

  .footer-links {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-link {
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-contact-item {
    display: block !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1.1rem !important;
    max-width: 400px !important;
    line-height: 1.75 !important;
  }

  .footer-contact-item i {
    display: inline-block !important;
    margin: 0 0 0 0.45rem !important;
    font-size: 1.05rem !important;
    color: var(--secondary-light) !important;
    vertical-align: middle !important;
  }

  .footer-contact-item span {
    display: inline !important;
    text-align: center !important;
    line-height: inherit !important;
    direction: rtl !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
  }

  .footer-bottom div {
    text-align: center !important;
    justify-content: center !important;
  }

  /* تحسين أزرار الفلترة والتنقل */
  div[style*="display:flex"][style*="justify-content:center"] {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .board-executive-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 0.85rem !important;
  }

  .board-executive-card {
    padding: 1.25rem 1rem !important;
  }

  .board-members-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .board-member-card {
    padding: 1rem 0.85rem !important;
  }

  .strategic-framework-card {
    padding: 1.35rem 1.1rem !important;
  }

  .goal-item-row {
    padding: 0.75rem 1rem !important;
    gap: 0.75rem !important;
  }

  .goal-item-text {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }
}

/* --- الهواتف الذكية والشاشات الصغيرة (أقل من 640px) --- */
@media (max-width: 640px) {
  .top-bar {
    padding: 0.35rem 0;
    font-size: 0.76rem;
  }

  .top-bar-content {
    gap: 0.5rem;
    justify-content: space-between;
  }

  .top-info-list {
    display: flex;
    gap: 0.75rem;
  }

  .top-info-item:not(:first-child) {
    display: none;
  }

  .top-info-item {
    font-size: 0.76rem;
  }

  .top-social-links {
    gap: 0.35rem;
  }

  .top-social-link {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }

  .hero-section {
    padding: 2.25rem 0 3.25rem;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.35;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .hero-card {
    padding: 1.25rem 1rem;
  }

  .hero-card-title {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 1.45rem;
    line-height: 1.35;
  }

  .section-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .donation-preset-buttons {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
  }

  .donation-preset-buttons.page-presets {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .pay-methods-grid {
    gap: 0.35rem;
  }

  .pay-method-option {
    padding: 0.65rem 0.2rem;
    font-size: 0.76rem;
    gap: 0.25rem;
  }

  .preset-btn {
    padding: 0.6rem 0.25rem;
  }

  .preset-btn .amount {
    font-size: 1.05rem;
  }

  .preset-btn .currency {
    font-size: 0.68rem;
  }

  .iban-box {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    text-align: center;
    font-size: 0.8rem;
  }

  .btn-copy-iban {
    justify-content: center;
    width: 100%;
    padding: 0.55rem;
  }

  .floating-buttons {
    bottom: 1rem;
    left: 1rem;
    gap: 0.6rem;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .modal-box {
    max-width: 95vw;
    width: 95vw;
    margin: 1rem auto;
  }

  .modal-header {
    padding: 1.1rem 1.25rem;
  }

  .modal-title {
    font-size: 1.15rem;
  }

  .modal-body {
    padding: 1.25rem 1rem;
  }
}

/* --- الهواتف الضيقة جداً (أقل من 480px) --- */
@media (max-width: 480px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar-container {
    gap: 0.3rem;
  }

  .navbar-brand-group {
    gap: 0.35rem;
  }

  .brand-logo {
    gap: 0.35rem;
  }

  .brand-logo img {
    height: 34px;
  }

  .brand-title {
    font-size: clamp(0.68rem, 2.7vw, 0.82rem);
    white-space: nowrap !important;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    display: none !important;
  }

  .btn-donate-nav {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    gap: 0.25rem;
    white-space: nowrap !important;
  }

  .mobile-toggle {
    width: 33px;
    height: 33px;
    min-width: 33px;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
  }

  .stat-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .donation-preset-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .donation-preset-buttons.page-presets {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
  }

  .preset-btn .amount {
    font-size: 0.95rem;
  }
}
