.jmo-afg {
  width: 100%;
}

.jmo-afg__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.jmo-afg__filter select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;

  border: 2px solid #d81b60;
  color: #d81b60;
  background: #fff;

  border-radius: 10px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;

  background-image:
    linear-gradient(45deg, transparent 50%, #d81b60 50%),
    linear-gradient(135deg, #d81b60 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.jmo-afg__status {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 14px;
  opacity: 0.8;
}

.jmo-afg__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.jmo-afg__card {
  background: #fff;
  border: 2px solid #203a43;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.jmo-afg__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.jmo-afg__cardLink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.jmo-afg__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.jmo-afg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jmo-afg__img--placeholder {
  width: 100%;
  height: 100%;
  background: #f1f3f5;
}

.jmo-afg__body {
  padding: 14px 14px 16px;
}

.jmo-afg__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #d81b60;
}

.jmo-afg__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #111;
  opacity: 0.9;
  font-family: 'ogonex-heavy', sans-serif !important;
}
.jmo-afg__terms_list {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #111;
  opacity: 0.9;
	font-weight:600;
}
.jmo-afg__media img {
    border-radius: 0px 0px 12px 12px;
}

.jmo-afg__empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

.jmo-afg.is-loading .jmo-afg__grid {
  opacity: 0.6;
  pointer-events: none;
}
/* Inverted (pink background, white text) for 1st and 3rd filters */
.jmo-afg__filters .jmo-afg__filter:nth-child(1) select,
.jmo-afg__filters .jmo-afg__filter:nth-child(3) select {
  background-color: #d81b60;
  color: #ffffff;
  border-color: #d81b60;

  /* Flip arrow to white */
  background-image:
    linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(135deg, #ffffff 50%, transparent 50%);
}

/* Mobile */
@media (max-width: 780px) {
  .jmo-afg__filters {
    grid-template-columns: 1fr;
  }

  .jmo-afg__grid {
    grid-template-columns: 1fr;
  }
}
