/**
 * EBP Custom Clients 1 — logo grid section.
 * Colours mostly come from Elementor Style controls; these rules handle layout and fallbacks.
 */

.ebp-clients-1 {
  box-sizing: border-box;
}

.ebp-clients-1 .wrapper {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.ebp-clients-1__heading {
  margin: 0 0 0.75rem;
  text-align: center;
  font-weight: 700;
}

/* Intro sits under the heading; inherits font colour from the section */
.ebp-clients-1__intro {
  margin: 0 auto 2.5rem;
  max-width: 42rem;
  text-align: center;
  line-height: 1.5;
}

.ebp-clients-1__intro p:last-child {
  margin-bottom: 0;
}

/* Evenly spaced row on large screens; stacks on narrow viewports */
.ebp-clients-1__grid {
  display: flex;
  gap: 2rem 1.5rem;
  justify-items: center;
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.ebp-clients-1__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 12rem;
  padding-inline-start: 0 !important;
  flex: 1;
}

/* Circle behind the logo — slightly lighter than the section when no custom background is set */
.ebp-clients-1__logo-wrap {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ebp-clients-1__logo-img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

/* Placeholder icon when no logo image is chosen */
.ebp-clients-1__logo-placeholder {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.9;
}

.ebp-clients-1__company {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
