.rm-ad-slot {
  margin: 2rem 0;
  position: relative;
}

.rm-top-banner-wrap {
  margin: 1rem auto 0;
}

.rm-ad-slot__banner-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: .45rem 0 0 auto;
  color: rgba(31, 27, 36, .72);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: right;
}

.rm-ad-slot--banner {
  width: 100%;
  margin: 0 0 1.5rem;
}

.rm-journal-article__banner {
  margin: 1.75rem 0 1.5rem;
}

.rm-journal-article__banner .rm-ad-slot--banner {
  margin: 0;
}

.rm-ad-slot--banner .rm-ad-card {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.rm-ad-slot--banner .rm-ad-slot__media {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.rm-ad-slot--banner .rm-ad-slot__banner-rotation {
  width: 100%;
}

.rm-ad-slot--banner .rm-ad-slot__banner-rotation-item {
  display: block;
  width: 100%;
  opacity: 1;
  transition: opacity .28s ease;
  will-change: opacity;
}

.rm-ad-slot--banner .rm-ad-slot__banner-rotation-item.is-fading {
  opacity: 0;
}

.rm-ad-slot--banner .rm-ad-slot__banner-rotation-item img {
  width: 100%;
  height: auto;
  max-width: min(100%, var(--container));
  display: block;
}

.rm-ad-slot--banner .rm-ad-slot__media a {
  display: block;
  width: 100%;
}

.rm-ad-slot__badge {
  position: absolute;
  top: -10px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f1b24 0%, #7a2d57 100%);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(31, 27, 36, .25);
}

.rm-ad-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(122, 45, 87, .16);
  background:
    radial-gradient(circle at top left, rgba(122, 45, 87, .14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 248, 250, .98));
  box-shadow: 0 18px 42px rgba(34, 17, 26, .08);
  overflow: hidden;
}

.rm-ad-slot__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 27, 36, .04), rgba(122, 45, 87, .08));
}

.rm-ad-slot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rm-ad-slot__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .7rem;
  padding: .2rem 0;
}

.rm-ad-slot__meta {
  margin: 0;
  color: #7a2d57;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rm-ad-slot__title {
  margin: 0;
  color: #1f1b24;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.06;
}

.rm-ad-slot__sponsor,
.rm-ad-slot__stats {
  margin: 0;
  color: rgba(31, 27, 36, .72);
  font-size: .95rem;
}

.rm-ad-slot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}

.rm-ad-slot__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a2d57 0%, #c85b84 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(122, 45, 87, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}

.rm-ad-slot__button:hover,
.rm-ad-slot__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(122, 45, 87, .32);
}

@media (max-width: 760px) {
  .rm-ad-card {
    grid-template-columns: 1fr;
  }

  .rm-ad-slot__media {
    min-height: 170px;
  }
}