.family-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
  padding: 9px 13px 8px;
  border: 2px solid #ff4b16;
  border-radius: 999px;
  background: #fff4dc;
  color: #152b4b;
  box-shadow: 0 4px 0 rgba(21, 43, 75, .16), 0 10px 22px rgba(21, 43, 75, .12);
  font-family: "Gabarito", "DM Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.family-badge::before {
  content: "\2726";
  color: #ff4b16;
  font-size: 15px;
  line-height: .8;
}

.language-availability-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: "Gabarito", "DM Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
  transform: none;
}

.language-availability-badge .language-flag {
  display: block;
  position: static;
  inset: auto;
  flex: 0 0 auto;
  width: 24px;
  height: 16px;
  border: 0;
  border-radius: 3px;
  box-shadow:
    2px 3px 0 rgba(21, 43, 75, .24),
    0 7px 12px rgba(21, 43, 75, .45);
  object-fit: cover;
  object-position: center;
  clip-path: none;
  transform: none;
}

.activity-card.has-family-badge {
  padding-top: 72px;
}

.family-proof {
  width: min(760px, calc(100% - 12px));
  margin: 26px auto 0;
  padding: 18px 20px;
  border: 2px solid rgba(21, 43, 75, .12);
  border-radius: 22px;
  background: #fff4dc;
  color: #152b4b;
  box-shadow: 0 8px 0 rgba(21, 43, 75, .08);
  text-align: left;
}

.family-proof strong {
  display: block;
  margin-bottom: 5px;
  color: #ff4b16;
  font-size: 17px;
  font-weight: 900;
}

.family-proof span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .family-badge {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 8px 11px 7px;
    font-size: 10px;
  }

  .language-availability-badge {
    top: 12px;
    right: 12px;
  }

  .activity-card.has-family-badge {
    padding-top: 66px;
  }

  .family-proof {
    margin-top: 22px;
    padding: 16px;
    border-radius: 18px;
  }

  .family-proof strong { font-size: 16px; }
  .family-proof span { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .family-badge,
  .language-availability-badge { transform: none; }
}
