.fmg-hub-wrapper {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  font-family: "Nunito", sans-serif;
  --navy: #141633;
  --purple: #7334f0;
  --border: #e5e7eb;
  padding: 0 1rem;
}

.fmg-hub-head {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 1.2rem + 1vw, 1.78rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  line-height: 1.2;
  text-wrap: balance;
}

.fmg-hub-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fmg-hub-link:hover {
  color: var(--purple);
  transform: translateY(-1px);
}

.fmg-hub-link::after {
  content: " ->";
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fmg-hub-link:hover::after {
  opacity: 1;
}

.fmg-hub-link:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(115, 52, 240, 0.2);
}

.fmg-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.fmg-hub-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fmg-hub-card:hover {
  transform: translateY(-3px);
}

.fmg-hub-card:active {
  transform: scale(0.99) translateY(1px);
}

.fmg-hub-card:focus-visible {
  outline: none;
}

.fmg-hub-card:focus-visible .fmg-hub-thumb {
  box-shadow: 0 0 0 3px rgba(115, 52, 240, 0.2), 0 2px 6px rgba(20, 22, 51, 0.08), 0 16px 34px rgba(20, 22, 51, 0.14);
}

.fmg-hub-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 6px rgba(20, 22, 51, 0.08), 0 16px 34px rgba(20, 22, 51, 0.14);
  background: linear-gradient(145deg, #f7f9ff, #eef2f7);
}

.fmg-hub-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 51, 0) 15%, rgba(20, 22, 51, 0.3) 100%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.fmg-hub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
}

.fmg-hub-card:hover .fmg-hub-thumb img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.fmg-hub-card:hover .fmg-hub-thumb::after {
  opacity: 0.42;
}

.fmg-play-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(20, 22, 51, 0.08) 0%, rgba(20, 22, 51, 0.36) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.fmg-hub-card:hover .fmg-play-overlay {
  opacity: 1;
}

.fmg-hub-card:focus-visible .fmg-play-overlay {
  opacity: 1;
}

.fmg-play-icon {
  font-size: 2.55rem;
  color: #fff;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(115, 52, 240, 0.42);
  box-shadow: 0 3px 8px rgba(20, 22, 51, 0.18), 0 12px 24px rgba(20, 22, 51, 0.2);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s ease;
}

.fmg-hub-card:hover .fmg-play-icon {
  transform: scale(1.05);
  background: rgba(115, 52, 240, 0.6);
}

.fmg-hub-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.52rem;
  transition: color 0.2s ease;
  text-wrap: balance;
}

.fmg-hub-card:hover .fmg-hub-title,
.fmg-hub-card:focus-visible .fmg-hub-title {
  color: var(--purple);
}

.fmg-hub-meta {
  font-size: 0.84rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fmg-hub-badge {
  background: rgba(115, 52, 240, 0.11);
  border: 1px solid rgba(115, 52, 240, 0.26);
  color: var(--purple);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .fmg-hub-link,
  .fmg-hub-card,
  .fmg-hub-thumb img,
  .fmg-hub-thumb::after,
  .fmg-play-overlay,
  .fmg-play-icon {
    transition: none;
  }

  .fmg-hub-link:hover,
  .fmg-hub-card:hover,
  .fmg-hub-card:active,
  .fmg-hub-card:hover .fmg-play-icon {
    transform: none;
  }
}

@media (max-width: 768px) {
  .fmg-hub-grid {
    gap: 1.15rem;
  }

  .fmg-hub-thumb {
    border-radius: 14px;
    margin-bottom: 0.78rem;
  }

  .fmg-hub-title {
    font-size: 1.02rem;
    line-height: 1.32;
    margin-bottom: 0.42rem;
  }

  .fmg-hub-meta {
    font-size: 0.8rem;
  }
}
