.hub-head { padding: 40px 0 24px; }
.hub-head h1 { font-size: 30px; margin: 0 0 8px; }
.hub-head p { color: var(--muted); margin: 0; max-width: 60ch; }

.hub-grid {
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 60px;
}
.hub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.hub-card:hover { transform: translateY(-3px); }
.hub-card .hub-thumb { position: relative; aspect-ratio: 16/10; background: #f1f2ef; overflow: hidden; }
.hub-card .hub-thumb img { width: 100%; height: 100%; object-fit: cover; }

.hub-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}
.hub-thumb-overlay .hub-thumb-text {
  background: rgba(16,26,20,0.68);
  border-radius: 10px;
  padding: 10px 12px;
  /* Fixed width, not max-content: sized to fit the longest title on the
     site ("LAUNCH MONITORS & SIMULATORS", measured at ~297px including
     padding) with a safety margin for font-rendering differences across
     browsers/OSes, so every card gets the exact same badge size. */
  width: 320px;
  max-width: 100%;
}
.hub-thumb-overlay h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.hub-thumb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.3px;
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
}
.hub-thumb-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.hub-card .hub-body { padding: 18px 20px 22px; }
.hub-card h3 { font-size: 17px; margin: 0 0 8px; }
.hub-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.hub-card .hub-link { font-size: 13px; font-weight: 600; color: var(--green); }

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