.brxComponent { padding: unset;}
.container .brand-header {padding: 1rem; padding-top: 0px;}

.exbrands-section {
  max-width: 1368px;
  margin: 8px auto;
  padding: 1rem;
}

.exbrands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Left column: background image */
.exbrands-main-image {
  background: url("https://static.globalindustrial.com/site42/htmlsection/shop-by-brand/sbb-exclusive-brands.webp") center/cover no-repeat;
  height: 180px; /* shorter height for mobile */
  /* border-radius: 8px; */
}

.exbrands-grid {
  background-color: #f4f4f4;
}

/* Content area */
.exbrands-content {
  padding: 16px;
  padding-top: 0;
}

.exbrands-content h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
}

.exbrands-content p {
  margin-bottom: 1.5rem;
  line-height: 1.4;
  /* NEEDS REVIEW */
  font-size: clamp(0.9rem, 1vw, 1rem); 
  font-weight: 300;
}

/* Link cards */
.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  width: 100%;
  min-width: 140px;
  height: 100px;
  transition: background 0.2s;
  border: 1px solid #bcbec0;
  box-shadow: 4px 4px 4px -4px rgba(0,0,0,0.15);
}

.link-card:hover {
  background: #f9f9f9;
}

.link-card img {
  width: 70%;
}

/* Tablet */
@media screen and (min-width: 768px) {
  .exbrands-main-image {
    height: 240px; /* taller background area */
  }

.exbrands-content h2 {
  font-size: 1.625rem;
}

  .link-cards {
    grid-template-columns: repeat(4, minmax(160px, 1fr)); /* 2x2 */
  }

    .link-card img {
    width: 100%;
  }
}

/* Desktop */
@media screen and (min-width: 1200px) {
  .exbrands-section {
    margin: 16px auto;
  }  
  
  .exbrands-grid {
    grid-template-columns: 1fr 2fr; /* two-column layout */
    align-items: center;
    padding-right: 2rem;
  }

  .exbrands-main-image {
    height: auto; 
    min-height: 300px;
  }

  .link-cards {
    grid-template-columns: repeat(4, 199px); /* 1 row of 4 cards */
    justify-content: start;
  }
}
