/* ==========================================================================
   Quantum Tiger Insights — Editorial Grid Layout
   Equal-size card grid matching Quantum Tiger's full-width architecture
   ========================================================================== */

/* ==========================================================================
   Content Section & Heading (Matches brand-pages.css full width)
   ========================================================================== */

.content-section#insights {
  width: min(100% - 64px, 1200px);
  margin: 0 auto;
  padding: 68px 0 88px;
}

.content-section#insights .section-heading {
  margin-bottom: 36px;
}

/* ==========================================================================
   Uniform Grid Layout (Equal size for all cards)
   ========================================================================== */

.related_collection-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 36px;
  align-items: stretch;
  position: relative;
  width: 100%;
}

.related_collection-item {
  position: relative;
  min-width: 0;
  display: flex;
}

@media screen and (max-width: 991px) {
  .content-section#insights {
    width: min(100% - 40px, 1200px);
    padding: 48px 0 68px;
  }

  .related_collection-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 28px;
  }
}

@media screen and (max-width: 600px) {
  .content-section#insights {
    width: min(100% - 32px, 1200px);
  }

  .related_collection-wrapper {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
}

/* ==========================================================================
   Card Styling
   ========================================================================== */

.resource_card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 100%;
  position: relative;
}

.resource_card-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e7e7e2;
  background-color: #f0f0ed;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.resource_card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource_card:hover .resource_card-img {
  transform: scale(1.035);
}

.resource_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
}

.resource_card-heading {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.resource_card-title {
  font-family: 'Space Grotesk', 'PP Neue Montreal', system-ui, -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  margin: 0;
  transition: color 0.18s ease;
}

.resource_card:hover .resource_card-title {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resource_card-excerpt {
  font-family: 'PP Neue Montreal Text', system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #525252;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Accessible full-card clickable overlay */
.resource_card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  text-indent: -9999px;
  overflow: hidden;
}

.footer {
  color: #000;
}


/* ==========================================================================
   Hidden Category Tags
   ========================================================================== */

.resource_card-tag,
.why_heading-tag {
  display: none !important;
}
