/* شبكة خدماتنا — مربعات بيضاء بأيقونة حمراء كما في شريحة ترتيب صفحات هوب */

.ns-section {
  margin-bottom: 28px;
}

.ns-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ns-head-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #111827;
}

.ns-head-copy p {
  margin: 0;
  max-width: 640px;
  color: #64748b;
  font-weight: 700;
  line-height: 1.75;
  font-size: 15px;
}

.ns-head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ns-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #fecaca;
}

.ns-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 2px dashed #dc2626;
  background: #fff;
  color: #dc2626;
  font: inherit;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

.ns-add-btn:hover,
.ns-add-btn:focus-visible {
  background: #fff1f2;
}

.ns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.ns-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 230px;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 18px;
  border-top: 3px solid var(--brand-red, #d70000);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  text-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(120, 0, 20, 0.12);
}

.ns-card-media,
.ns-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: linear-gradient(145deg, #fff1f2, #ffe4e6);
  color: #dc2626;
  font-size: 22px;
  overflow: hidden;
}

.ns-card-media img,
.ns-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-card strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  color: #111827;
  margin-bottom: 8px;
}

.ns-card-lead {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.ns-card-arrows {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 12px;
  pointer-events: none;
}

.ns-card-del {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  cursor: pointer;
  font-size: 12px;
}

.ns-dialog {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.ns-dialog-x {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #dc2626;
  background: #fff;
  color: #dc2626;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ns-dialog-x:hover,
.ns-dialog-x:focus-visible {
  background: #dc2626;
  color: #fff;
}

.ns-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.ns-dialog-inner {
  padding: 22px 20px 18px;
  padding-inline-end: 58px;
}

.ns-dialog-inner h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.ns-dialog-inner > p {
  margin: 0 0 14px;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}

.ns-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.ns-preview img,
.ns-preview video {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.ns-dialog-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ns-detail-media {
  display: grid;
  gap: 14px;
  margin: 8px 0 18px;
}

.ns-detail-media img,
.ns-detail-media video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  background: #0f172a;
}

.ns-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 8px 0 22px;
}

.ns-detail-panel {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 18px;
  padding: 20px 18px;
  border-top: 3px solid var(--brand-red, #d70000);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ns-detail-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.ns-detail-panel p,
.ns-detail-panel li {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.ns-detail-panel ul,
.ns-detail-panel ol {
  margin: 0;
  padding-inline-start: 1.2em;
  display: grid;
  gap: 8px;
}

@media (max-width: 640px) {
  .ns-grid {
    grid-template-columns: 1fr;
  }
}
