/* Deal Intelligence hub — editorial listing grid
 * Navy / gold restrained; matches homepage DI module quality.
 */
:root {
  --dih-navy: #0d1b2e;
  --dih-navy-soft: #162536;
  --dih-gold: #c9a227;
  --dih-ink: #1a2332;
  --dih-muted: #5a6577;
  --dih-line: rgba(13, 27, 46, 0.1);
  --dih-paper: #f7f5f0;
}

body.di-hub-page {
  background: #fff;
}

/* --- Masthead --- */
.di-hub-hero {
  position: relative;
  background: var(--dih-navy);
  color: #fff;
  padding: 112px 0 56px;
  overflow: hidden;
}

.di-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 88% 20%, rgba(201, 162, 39, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(13, 27, 46, 0.98) 0%, rgba(22, 37, 54, 0.92) 55%, rgba(8, 106, 216, 0.12) 100%);
  pointer-events: none;
}

.di-hub-hero .container {
  position: relative;
  z-index: 1;
}

.di-hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Rubik, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dih-gold);
  margin-bottom: 16px;
}

.di-hub-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--dih-gold);
}

.di-hub-hero h1 {
  margin: 0 0 14px;
  font-family: Poppins, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  max-width: 16ch;
}

.di-hub-hero h1 .title-dot {
  color: var(--dih-gold);
}

.di-hub-hero-sub {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* --- Intro strip --- */
.di-hub-intro {
  padding: 36px 0 8px;
  background: #fff;
}

.di-hub-intro__inner {
  max-width: 720px;
}

.di-hub-intro p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #334155;
}

.di-hub-intro p:last-child {
  margin-bottom: 0;
}

.di-hub-intro strong {
  color: var(--dih-navy);
  font-weight: 600;
}

.di-hub-intro a {
  color: var(--dih-navy);
  border-bottom: 1px solid rgba(13, 27, 46, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.di-hub-intro a:hover {
  color: var(--dih-gold);
  border-bottom-color: var(--dih-gold);
}

.di-hub-meta-links {
  margin-top: 18px !important;
  font-size: 0.88rem !important;
  color: var(--dih-muted) !important;
}

.di-hub-meta-links a {
  color: var(--dih-muted);
  border-bottom-color: transparent;
}

.di-hub-meta-links a:hover {
  color: var(--dih-navy);
  border-bottom-color: var(--dih-gold);
}

/* --- Article grid --- */
.di-hub-feed {
  padding: 40px 0 72px;
  background:
    linear-gradient(180deg, #fff 0%, var(--dih-paper) 28%, #eef1f5 100%);
}

.di-hub-feed__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.di-hub-feed__label {
  font-family: Rubik, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dih-gold);
}

.di-hub-feed__count {
  font-family: Rubik, sans-serif;
  font-size: 0.82rem;
  color: var(--dih-muted);
}

.di-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.di-hub-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: var(--dih-muted);
}

/* --- Card --- */
.di-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(13, 27, 46, 0.08);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(13, 27, 46, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.di-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 18px 40px rgba(13, 27, 46, 0.1);
}

.di-hub-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dih-navy);
  flex-shrink: 0;
}

.di-hub-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
  transition: transform 0.65s ease;
}

.di-hub-card:hover .di-hub-card__media img {
  transform: scale(1.04);
}

.di-hub-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(7, 17, 29, 0.22) 100%
  );
  pointer-events: none;
}

.di-hub-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
  min-width: 0;
  position: relative;
}

.di-hub-card__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 32px;
  height: 2px;
  background: var(--dih-gold);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.di-hub-card:hover .di-hub-card__body::before {
  opacity: 1;
}

.di-hub-card__sector {
  margin: 0 0 10px;
  font-family: Rubik, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dih-gold);
}

.di-hub-card__title {
  margin: 0 0 12px;
  font-family: Poppins, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--dih-navy);
}

.di-hub-card__dek {
  margin: 0 0 18px;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--dih-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.di-hub-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(13, 27, 46, 0.06);
  padding-top: 14px;
}

.di-hub-card__date {
  font-family: Rubik, sans-serif;
  font-size: 0.78rem;
  color: var(--dih-muted);
  letter-spacing: 0.02em;
}

.di-hub-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: Rubik, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dih-navy);
  white-space: nowrap;
}

.di-hub-card__cta .arrow {
  transition: transform 0.2s ease;
  color: var(--dih-gold);
}

.di-hub-card:hover .di-hub-card__cta .arrow {
  transform: translateX(3px);
}

/* --- Scope footer band --- */
.di-hub-scope {
  padding: 0 0 64px;
  background: #eef1f5;
}

.di-hub-scope__inner {
  max-width: 720px;
  padding-top: 28px;
  border-top: 1px solid rgba(13, 27, 46, 0.1);
}

.di-hub-scope h2 {
  margin: 0 0 10px;
  font-family: Poppins, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dih-navy);
}

.di-hub-scope p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--dih-muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .di-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .di-hub-hero {
    padding: 96px 0 44px;
  }

  .di-hub-feed {
    padding: 28px 0 56px;
  }

  .di-hub-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .di-hub-card__body {
    padding: 18px 18px 20px;
  }

  .di-hub-card__title {
    font-size: 1.02rem;
  }

  .di-hub-scope {
    padding-bottom: 48px;
  }
}
