/**
 * Badge Bar Block Styles
 * Credential logos carousel
 */

.badge-bar {
  background: var(--white);
  border-bottom: 4px solid var(--orange);
  padding: 16px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.badge-bar img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: transform .2s;
}

.badge-bar img:hover {
  transform: scale(1.05);
}

/* Desktop: hide arrows, let slides dissolve so images become direct flex children */
@media (min-width: 601px) {
  .badge-arrow {
    display: none;
  }
  
  .badge-slides {
    display: contents;
  }
}

/* Mobile: show 2 at a time with arrows */
@media (max-width: 600px) {
  .badge-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6px;
    overflow: hidden;
    position: relative;
    gap: 0;
  }
  
  .badge-bar img {
    display: none;
  }
  
  .badge-bar img.active {
    display: block;
    width: calc(50% - 8px);
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
  }
  
  .badge-arrow {
    background: none;
    border: none;
    color: var(--orange);
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    transition: color .2s;
    line-height: 1;
  }
  
  .badge-arrow:hover {
    color: var(--brown);
  }
  
  .badge-slides {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
  }
}
