.hero-carousel:has(.slide-world-aids:not([hidden])) {
  --ribbon-red: #e8030f;
  background: white;
}

.hero-carousel:has(.slide-world-aids:not([hidden]))::before,
.hero-carousel:has(.slide-world-aids:not([hidden]))::after {
  display: none;
}

.slide-world-aids {
  background: white;
  color: var(--ribbon-red);
}

.slide-world-aids .hero-inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.slide-world-aids h1 {
  font-size: clamp(42px, 5.4vw, 74px);
  text-wrap: balance;
}

.slide-world-aids .eyebrow,
.slide-world-aids p {
  color: var(--ribbon-red);
}

.slide-world-aids .eyebrow::before,
.slide-world-aids .whitebtn {
  background: var(--ribbon-red);
}

.slide-world-aids .whitebtn {
  color: white;
  font-size: 14px;
}

.slide-world-aids .whitebtn:hover {
  background: #bc0712;
}

.slide-world-aids a:focus-visible,
.hero-carousel:has(.slide-world-aids:not([hidden])) .carousel-controls button:focus-visible {
  outline: 2px solid var(--ribbon-red);
  outline-offset: 4px;
}

.hero-carousel:has(.slide-world-aids:not([hidden])) .carousel-controls button {
  border-color: #c84b54;
  background: white;
  color: var(--ribbon-red);
}

.hero-carousel:has(.slide-world-aids:not([hidden])) .banner-dot.active {
  background: var(--ribbon-red);
  border-color: var(--ribbon-red);
}

.world-aids-banner-art {
  display: block;
}

.world-aids-banner-art img {
  display: block;
  width: 100%;
  height: auto;
}

.hiv-resource-card img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}

.hiv-resource-card {
  scroll-margin-top: 90px;
}

@media (max-width: 900px) {
  .slide-world-aids .hero-inner { grid-template-columns: 1fr; }
  .world-aids-banner-art { max-width: 510px; }
}

@media (max-width: 580px) {
  .slide-world-aids { height: auto; }
  .slide-world-aids .hero-inner { padding: 54px 0 58px; gap: 24px; }
  .slide-world-aids h1 { font-size: clamp(40px, 10vw, 54px); }
}
