#sh-home-ads {
  position: relative;
  width: min(1140px, calc(100% - 32px));
  height: 250px;
  margin: 28px auto;
  overflow: hidden;
  border-radius: 12px;
  background: #101b19;
}

#sh-home-ads[hidden] {
  display: none !important;
}

.sh-home-ad-card {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  padding: 32px 40px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #101b19;
  background-position: center;
  background-size: cover;
  color: #fff;
  isolation: isolate;
  transform: translateX(0);
  transition: transform .55s ease;
}

.sh-home-ad-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.28));
}

.sh-home-ad-copy {
  max-width: 560px;
}

.sh-home-ad-copy h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

.sh-home-ad-copy p {
  margin: 0 0 20px;
  color: #f2f2f2;
  line-height: 1.6;
}

.sh-home-ad-button {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid #00FF9C;
  border-radius: 7px;
  background: #fff;
  color: #00A968;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.sh-home-ad-button:hover {
  background: #00FF9C;
  color: #07140f;
}

.sh-home-ad-art {
  display: block;
  width: min(34%, 300px);
  max-height: 210px;
  object-fit: contain;
}

@media (max-width: 640px) {
  #sh-home-ads {
    width: calc(100% - 24px);
    height: 220px;
    margin: 20px auto;
  }

  .sh-home-ad-card {
    padding: 24px 20px;
  }

  .sh-home-ad-art {
    width: 30%;
    max-height: 140px;
  }
}

@media (max-width: 420px) {
  #sh-home-ads {
    height: 210px;
  }

  .sh-home-ad-card {
    padding: 22px 18px;
  }

  .sh-home-ad-art {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-home-ad-card {
    transition: none;
  }
}


/* Sliding transition between standalone advertisements */
.sh-home-ad-entering {
  transform: translateX(100%);
}

.sh-home-ad-leaving {
  transform: translateX(-100%);
}

.sh-home-ad-current {
  transform: translateX(0);
}

.sh-home-ad-button.is-disabled,
.sh-home-ad-button.is-disabled:hover {
  background: #fff;
  color: #00A968;
  cursor: default;
  pointer-events: none;
}
