/* دليل الخدمات الإلكترونية — أنماط (BEM: sg-) */

/* ---------- شريط التصفية ---------- */
.sg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e7eef4;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 30px;
}
.sg-filter-group { display: flex; flex-direction: column; gap: 8px; min-width: 220px; flex: 1 1 220px; }
.sg-filter-label { font-size: 14px; font-weight: 800; color: #0f5132; }
.sg-filter-select {
  appearance: none;
  border: 1.5px solid #dbe6e0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #374151;
  background: #fff;
  cursor: pointer;
}
.sg-filter-select:focus { outline: none; border-color: #1b8354; }
.sg-filter-reset {
  align-self: flex-end;
  border: 1.5px solid #dbe6e0;
  background: #fff;
  color: #1b8354;
  font-weight: 800;
  font-size: 15px;
  font-family: inherit;
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
}
.sg-filter-reset:hover { background: #f3fcf6; }

.sg-empty {
  display: none;
  text-align: center;
  color: #6b7280;
  font-size: 17px;
  padding: 34px 18px;
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  background: #f9fafb;
}
.sg-empty.is-visible { display: block; }

/* ---------- البطاقة ---------- */
.sg-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7eef4;
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.sg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.10);
  border-color: #cfe3d8;
}
.sg-card.is-hidden { display: none; }

.sg-card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: #f3fcf6;
  color: #1b8354;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex: 0 0 auto;
}
.sg-card__icon svg { width: 26px; height: 26px; }

.sg-card__title { font-size: 20px; font-weight: 800; color: #0f5132; margin: 0 0 9px; line-height: 1.5; }
.sg-card__desc  { font-size: 15.5px; line-height: 1.9; color: #4b5563; margin: 0 0 14px; flex: 1 1 auto; }

.sg-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.sg-tag {
  font-size: 12.5px; font-weight: 700;
  color: #1b8354; background: #f3fcf6;
  border: 1px solid #d8efe1; border-radius: 999px;
  padding: 4px 11px; white-space: nowrap;
}

.sg-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.sg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 10px 18px;
  font-size: 15px; font-weight: 800;
  border: 1.5px solid #1b8354;
  transition: background .2s ease, color .2s ease;
}
.sg-btn--solid { background: #1b8354; color: #fff; }
.sg-btn--solid:hover { background: #0f5132; border-color: #0f5132; }
.sg-btn--ghost { background: #fff; color: #1b8354; }
.sg-btn--ghost:hover { background: #f3fcf6; }
.sg-btn svg { width: 16px; height: 16px; }

/* ---------- البيانات الوصفية ---------- */
.sg-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}
.sg-meta__item {
  background: #fff;
  border: 1px solid #e7eef4;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}
.sg-meta__label { display: block; font-size: 13px; color: #6b7280; font-weight: 700; margin-bottom: 7px; }
.sg-meta__value { display: block; font-size: 16px; color: #0f5132; font-weight: 800; line-height: 1.6; }

/* ---------- التبويبات ---------- */
.sg-tabs { margin: 0 0 30px; }
.sg-tabs__nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  border-bottom: 2px solid #e7eef4; margin-bottom: 20px;
}
.sg-tab {
  appearance: none; background: none; border: none;
  font-family: inherit; font-size: 16px; font-weight: 800;
  color: #6b7280; cursor: pointer;
  padding: 12px 20px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.sg-tab:hover { color: #1b8354; }
.sg-tab[aria-selected="true"] { color: #0f5132; border-bottom-color: #1b8354; }
.sg-tabpanel[hidden] { display: none; }

/* خطوات مرقّمة */
.sg-steps { list-style: none; padding: 0; margin: 0; counter-reset: sg-step; }
.sg-step {
  position: relative;
  padding-right: 52px;
  margin-bottom: 22px;
  counter-increment: sg-step;
}
.sg-step::before {
  content: counter(sg-step);
  position: absolute; right: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: #1b8354; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
}
.sg-step__title { font-size: 17px; font-weight: 800; color: #0f5132; margin: 6px 0 8px; }
.sg-step__list { list-style: none; padding: 0; margin: 0; }
.sg-step__list li {
  position: relative; padding-right: 20px;
  margin-bottom: 7px; font-size: 16px; line-height: 1.9; color: #4b5563;
}
.sg-step__list li::before {
  content: ""; position: absolute; right: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: #9ecfb8;
}

/* قوائم الشروط والمستندات */
.sg-list { list-style: none; padding: 0; margin: 0; }
.sg-list li {
  position: relative; padding-right: 26px;
  margin-bottom: 12px; font-size: 16.5px; line-height: 1.95; color: #374151;
}
.sg-list li::before {
  content: ""; position: absolute; right: 6px; top: 13px;
  width: 8px; height: 8px; border-radius: 50%; background: #1b8354;
}
.sg-none { font-size: 16.5px; color: #6b7280; margin: 0; }

/* ---------- استجابة ---------- */
@media (max-width: 1024px) {
  .sg-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sg-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-filter-group { min-width: 100%; }
  .sg-filter-reset { align-self: stretch; }
  .sg-card__actions .sg-btn { flex: 1 1 auto; justify-content: center; }
  .sg-tab { padding: 11px 14px; font-size: 15px; }
}
