/* ==========================================================
   Sage Qualifications – Custom Components
   File: sq-components.css
   All classes are prefixed "sq-" to avoid clashing with skin styles.
   ========================================================== */


/* ----------------------------------------------------------
   Awarding bodies logo grid
   Markup: section.sq-awarding > ul.sq-awarding__list > li.sq-awarding__item > img.sq-awarding__logo
   Layout: 4 per row on desktop/tablet, 2 per row on mobile
   ---------------------------------------------------------- */
.sq-awarding {
  padding: 40px 20px;
}

.sq-awarding__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.sq-awarding__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}

.sq-awarding__item::before,
.sq-awarding__item::after {
  content: none; /* cancel any custom bullets the skin adds to li */
}

.sq-awarding__logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .sq-awarding {
    padding: 30px 15px;
  }

  .sq-awarding__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }

  .sq-awarding__item {
    height: 80px;
  }
}
