.brand-carousel {
  max-width: 1400px;
  margin: 0.25rem auto 0.5rem;
  /* padding: 1rem 0; */
  border-radius: 24px;
  /* background: linear-gradient(180deg, #ffffff 0%, #e6f0ff 100%); */
  /* light blue tint */
  border: none;
}

.brand-carousel__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.25rem 0.25rem 0;
}

.brand-carousel__heading-wrap {
  min-width: 0;
}

.brand-carousel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 118, 223, 0.1); /* #0076DF with opacity */
  color: #0076DF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-carousel__title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
}

.brand-carousel__subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.brand-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
}

.brand-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  width: max-content;
  will-change: transform;
  padding: 0 1.25rem;
}

/* ============================================
   BRAND CARD – #0076DF THEME
   ============================================ */

.brand-card {
  flex: 0 0 auto;
  width: clamp(104px, 12vw, 122px);
  padding: 0.95rem 0.7rem 0rem;
  border-radius: 20px;
  background: #ffffff;
  /* border: 1px solid rgba(0, 118, 223, 0.15); #0076DF border */
  /* box-shadow: 0 10px 24px rgba(0, 118, 223, 0.08); #0076DF shadow */
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 118, 223, 0.35); /* #0076DF hover border */
  box-shadow: 0 16px 30px rgba(0, 118, 223, 0.15); /* #0076DF hover shadow */
}

/* ============================================
   BRAND CARD MEDIA – #0076DF BACKGROUND
   ============================================ */

.brand-card__media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  /*background: linear-gradient(180deg, #ffffff 0%, #e6f0ff 100%);  light blue gradient */
  overflow: hidden;
  border: 1px solid #0076DF;
}

.brand-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
}

/* Fallback letter when no image */
.brand-card__fallback {
  color: #0076DF; /* #0076DF text */
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.brand-card__name {
  display: block;
  margin-top: 0.7rem;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-carousel__empty {
  padding: 1.5rem;
  color: #6b7280;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .brand-carousel {
    margin: 0.25rem auto 0.5rem;
    /* padding: 0.85rem; */
    border-radius: 20px;
  }

  .brand-carousel__header {
    align-items: start;
    flex-direction: column;
  }

  .brand-carousel__subtitle {
    font-size: 0.9rem;
  }

  .brand-card {
    width: 96px;
    padding: 0.8rem 0.55rem 0.7rem;
    border-radius: 18px;
  }

  .brand-card__media {
    border-width: 1.5px; /* slightly thinner on mobile */
  }
}