/* Online classes listing — light icon chips on the shared marketplace pills */
.amal-oc-page .amal-mv-cats {
  align-items: center;
}

.amal-oc-page .amal-mv-cat {
  min-height: 44px;
}

.amal-oc-page .amal-mv-cat img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  flex: 0 0 28px;
  padding: 4px;
  border-radius: 8px;
  background: #dbeafe;
  filter: none;
  box-sizing: border-box;
  object-fit: contain;
}

.amal-oc-page .amal-mv-grid.row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.amal-oc-page .amal-mv-grid.row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  display: flex;
}

@media (max-width: 991.98px) {
  .amal-oc-page .amal-mv-grid.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767.98px) {
  .amal-oc-page .amal-mv-grid.row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.amal-oc-page .amal-mv-card {
  width: 100%;
  height: 100%;
}

.amal-oc-page .amal-mv-card__body {
  gap: 6px;
  padding: 14px 14px 12px;
}

.amal-oc-page .amal-mv-card__title {
  min-height: 2.7em;
  max-height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.amal-oc-page .amal-mv-card__specs {
  min-height: 1.25em;
  flex-wrap: nowrap;
}

.amal-oc-page .amal-mv-card__location {
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
}

.amal-oc-page .amal-mv-card__location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amal-oc-page .amal-mv-card__media {
  height: 210px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.amal-oc-page .amal-mv-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center;
}

.amal-oc-page .amal-mv-card__cat-pill {
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amal-oc-page .amal-mv-card__location span {
  min-width: 0;
}

.amal-oc-page .amal-mv-card__type {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.amal-oc-page .amal-mv-card__title {
  min-height: 2.7em;
  max-height: 2.7em;
}

.amal-oc-page .amal-mv-card__footer {
  align-items: center;
  justify-content: stretch;
}

.amal-oc-page .amal-oc-card__cta {
  width: 100%;
  justify-content: center;
}

.amal-oc-page .amal-mv-cat:nth-child(8n + 2) img { background: #dbeafe; }
.amal-oc-page .amal-mv-cat:nth-child(8n + 3) img { background: #dcfce7; }
.amal-oc-page .amal-mv-cat:nth-child(8n + 4) img { background: #ffedd5; }
.amal-oc-page .amal-mv-cat:nth-child(8n + 5) img { background: #ede9fe; }
.amal-oc-page .amal-mv-cat:nth-child(8n + 6) img { background: #fce7f3; }
.amal-oc-page .amal-mv-cat:nth-child(8n + 7) img { background: #e0f2fe; }
.amal-oc-page .amal-mv-cat:nth-child(8n + 8) img { background: #fef9c3; }

.amal-oc-page .amal-mv-cat.is-active img {
  background: rgba(255, 255, 255, 0.18);
  filter: brightness(0) invert(1);
}

.amal-oc-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 10px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
}

.amal-oc-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
