/* صفحة الحاضنات — بطاقات تملى عرض السطر بدون فراغ من الجنبين */

body.incubators-body > main.container.incubators-page {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: 1rem !important;
  box-sizing: border-box;
}

body.incubators-body .top-nav .container {
  max-width: none !important;
  width: 100% !important;
  padding-inline: 1rem;
}

body.incubators-body .incubators-hero,
body.incubators-body .incubators-sections,
body.incubators-body .section-head,
body.incubators-body .incubator-cta,
body.incubators-body .incubators-footer {
  width: 100%;
  max-width: none;
}

.incubators-page .section-head {
  margin-top: 8px;
}

/* 6 في الصف · الصف الناقص يتمطّ ويملى السطر */
body.incubators-body .incubators-page .incubator-grid.cards {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: none !important;
  gap: 1rem !important;
  margin-bottom: 0 !important;
  justify-content: stretch !important;
  align-items: stretch !important;
}

body.incubators-body .incubators-page .incubator-card.card {
  flex: 1 1 calc((100% - 5 * 1rem) / 6) !important;
  width: auto !important;
  min-width: calc((100% - 5 * 1rem) / 6) !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.incubator-card-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.incubators-body .incubators-page .incubator-card.card {
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

body.incubators-body .incubators-page .incubator-card.card:focus-visible,
body.incubators-body .incubators-page .incubator-card.card.is-hash-focus {
  border-color: rgba(var(--brand-red-rgb), 0.95) !important;
  box-shadow:
    0 0 0 3px rgba(var(--brand-red-rgb), 0.28),
    0 12px 28px rgba(15, 23, 42, 0.14) !important;
  transform: translateY(-2px);
  z-index: 2;
}

.incubators-tab.active {
  background: rgba(var(--brand-red-rgb), 0.45);
  border-color: rgba(var(--brand-red-rgb), 0.8);
}

.incubators-footer-links a {
  color: inherit;
}

@media (max-width: 1200px) {
  body.incubators-body .incubators-page .incubator-card.card {
    flex: 1 1 calc((100% - 3 * 1rem) / 4) !important;
    min-width: calc((100% - 3 * 1rem) / 4) !important;
  }
}

@media (max-width: 900px) {
  body.incubators-body .incubators-page .incubator-card.card {
    flex: 1 1 calc((100% - 2 * 0.75rem) / 3) !important;
    min-width: calc((100% - 2 * 0.75rem) / 3) !important;
  }

  body.incubators-body .incubators-page .incubator-grid.cards {
    gap: 0.75rem !important;
  }
}

@media (max-width: 600px) {
  body.incubators-body > main.container.incubators-page {
    padding-inline: 0.75rem !important;
  }

  body.incubators-body .incubators-page .incubator-card.card {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }

  .incubator-card-actions {
    width: 100%;
  }

  .incubator-card-actions .hub-act,
  .incubator-card-actions button,
  .incubator-card-actions a {
    min-height: 40px;
  }
}
