/* ADS CAROUSEL (clean CSS, blends with your cards) */
:root {
  --ib-bg: #e6f0fa;
  --ib-primary: #0d6efd;

  --card-bg: #fff;
  --card-radius: 0.5rem;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  --card-shadow-hover: 0 10px 20px rgba(13, 110, 253, 0.15);
}

.adsCarouselSection {
  background: var(--ib-bg);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.adsCarousel {
  padding: 0;
}

.adsCarousel .adsHeader {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 0 0 10px;
}

.adsCarousel .adsTitle {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  color: #111;
}

.adsCarousel .adsMeta {
  font-size: 0.95rem;
  color: #111;
  opacity: 0.8;
}

.adsCarousel .adsViewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 0;
}
.adsCarousel .adsViewport::-webkit-scrollbar {
  display: none;
}

.adsCarousel .adsTrack {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.adsCarousel .adsSlide {
  scroll-snap-align: center;
  flex: 0 0 clamp(240px, 78vw, 560px);
  aspect-ratio: 904 / 1280;

  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;

  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.adsCarousel .adsSlide:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.adsCarousel .adsSlide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* no cropping */
  display: block;
  background: #fff;
  border-radius: calc(var(--card-radius) - 4px);
}

.adsCarousel .adsControls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.adsCarousel .adsBtn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;

  border: 2px solid var(--ib-primary);
  background: transparent;
  color: var(--ib-primary);
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.adsCarousel .adsBtn:hover {
  background: var(--ib-primary);
  color: #fff;
}
.adsCarousel .adsBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.adsCarousel .adsDots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: min(520px, 80vw);
}

.adsCarousel .adsDot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(13, 110, 253, 0.25);
  cursor: pointer;
}
.adsCarousel .adsDot[aria-current="true"] {
  background: rgba(13, 110, 253, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  .adsCarousel .adsViewport {
    scroll-behavior: auto;
  }
}
