/* ==========================================================================
   Karibo - Nos Marques Partenaires
   All classes prefixed with .kb- to avoid conflicts.
   ========================================================================== */

.kb-brands-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}

.kb-brands-inner {
  background: #fff;
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   Title
   -------------------------------------------------------------------------- */

.kb-brands-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kb-brands-subtitle {
  text-align: center;
  font-size: 15px;
  color: #666;
  margin: 0 0 32px 0;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.kb-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Brand Card
   -------------------------------------------------------------------------- */

.kb-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 18px;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  background: #fff;
  min-height: 140px;
}

.kb-brand-card:hover {
  border-color: #E30613;
  box-shadow: 0 4px 16px rgba(227, 6, 19, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.kb-brand-logo {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: grayscale(30%);
  transition: filter 0.2s ease;
}

.kb-brand-card:hover .kb-brand-logo {
  filter: grayscale(0%);
}

/* --------------------------------------------------------------------------
   Brand name & count
   -------------------------------------------------------------------------- */

.kb-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-align: center;
}

.kb-brand-count {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .kb-brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .kb-brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .kb-brands-inner {
    padding: 24px 16px;
  }

  .kb-brands-title {
    font-size: 20px;
  }

  .kb-brand-card {
    padding: 16px 12px 14px;
    min-height: 110px;
  }

  .kb-brand-logo {
    max-width: 90px;
    max-height: 45px;
  }

  .kb-brand-name {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .kb-brands-title {
    font-size: 18px;
  }

  .kb-brand-card {
    padding: 12px 8px;
    min-height: 90px;
  }
}
