/* ============================================================
   Partners By Category — [technovator_partners]
   Layout: flex, max 3 logos per row, break between categories
   ============================================================ */

.tnv-partners-by-category {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---- Category block ---- */
.tnv-partners-category {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Category title ---- */
.tnv-partners-category__title {
  margin: 0;
  padding: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---- Logos row — flex, max 3 per row ---- */
.tnv-partners-category__logos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---- Each logo cell: exactly 1/3 of the row minus gaps ---- */
.tnv-partners-category__logo-item {
  flex: 0 0 calc((100% - 32px) / 3); /* (100% - 2 gaps of 16px) / 3 */
  max-width: calc((100% - 32px) / 3);
  min-width: 0;
}

/* ---- Link wrapper (or static wrapper) ---- */
.tnv-partners-category__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  overflow: hidden;
  text-decoration: none;
  box-sizing: border-box;
  padding: 12px 16px;
}

/* a.tnv-partners-category__logo-link:hover {
  scale: 1.05;
} */

/* ---- Logo image ---- */
.tnv-partners-category__logo-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   Responsive
   ============================================================ */

/* 2 per row on tablet */
@media (max-width: 768px) {
  .tnv-partners-category__logo-item {
    flex: 0 0 calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
}

/* 1 per row on mobile */
@media (max-width: 480px) {
  .tnv-partners-category__logos {
    gap: 12px;
  }

  .tnv-partners-category__logo-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .tnv-partners-category__logo-link {
    height: 68px;
  }
}