/* سيكشن بوابات التفاعل على الرئيسية — مميز وهادف بدون زحمة الهيرو */

.hub-engage {
  --engage-ink: #140308;
  --engage-rose: #b10011;
  --engage-cream: #fff7f5;
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(215, 0, 0, 0.28), transparent 55%),
    radial-gradient(70% 60% at 100% 100%, rgba(80, 0, 20, 0.55), transparent 50%),
    linear-gradient(145deg, #0a0004 0%, #1a050c 45%, #2a0710 100%);
  color: #fff;
}

.hub-engage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent 0,
    transparent 14px,
    rgba(255, 255, 255, 0.015) 14px,
    rgba(255, 255, 255, 0.015) 15px
  );
  pointer-events: none;
}

.hub-engage .container {
  position: relative;
  z-index: 1;
}

.hub-engage-head {
  max-width: 42rem;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.hub-engage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
  color: #fecdd3;
}

.hub-engage-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.25;
  color: #fff !important;
}

.hub-engage-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 650;
  line-height: 1.75;
  max-width: 54ch;
}

.hub-engage-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.hub-engage-portal {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  overflow: hidden;
  min-height: 190px;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  animation: hubEngageIn 0.55s ease both;
  animation-delay: calc(var(--engage-i, 0) * 70ms);
}

.hub-engage-portal.is-featured {
  grid-row: 1 / span 2;
  min-height: 100%;
  padding: 24px 20px 20px;
  background:
    linear-gradient(160deg, rgba(215, 0, 0, 0.35), rgba(255, 255, 255, 0.04) 55%),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 180, 180, 0.35);
}

.hub-engage-portal:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.hub-engage-portal-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-engage-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fecdd3;
  font-size: 16px;
}

.hub-engage-portal.is-featured .hub-engage-ico {
  width: 48px;
  height: 48px;
  font-size: 18px;
  background: rgba(215, 0, 0, 0.55);
  color: #fff;
}

.hub-engage-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
}

.hub-engage-lead {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.35;
  color: #fff !important;
}

.hub-engage-portal.is-featured .hub-engage-lead {
  font-size: clamp(22px, 2.6vw, 30px);
}

.hub-engage-feed {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-engage-feed em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #fda4af;
}

.hub-engage-feed b {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
}

.hub-engage-feed small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
  font-size: 12.5px;
  line-height: 1.55;
}

.hub-engage-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fecdd3;
}

.hub-engage-portal:hover .hub-engage-go {
  color: #fff;
}

@keyframes hubEngageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-engage-portal {
    animation: none;
  }

  .hub-engage-portal:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  .hub-engage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hub-engage-portal.is-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

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

/* صفحات البوابات — تغذية المحتوى */
.hub-engage-feed-list {
  display: grid;
  gap: 12px;
}

.hub-engage-feed-item {
  display: grid;
  gap: 6px;
  padding: 16px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ececf1;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-engage-feed-item:hover {
  border-color: rgba(185, 28, 28, 0.35);
  box-shadow: 0 12px 28px rgba(120, 0, 20, 0.08);
}

.hub-engage-feed-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #b91c1c;
}

.hub-engage-feed-item strong {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

.hub-engage-feed-item p {
  margin: 0;
  color: #4b5563;
  font-weight: 650;
  line-height: 1.6;
}

body.homepage .hub-engage-feed-item strong,
body.homepage .hub-engage-feed-item p {
  color: #111827 !important;
}

body.homepage .hub-engage-feed-item em {
  color: #b91c1c !important;
}
