/* PDF modular carousel — full viewport width, fit-to-viewport pages */

.prosper-modular-section.prosper-modular-section--pdf {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 56px 0 64px;
  box-sizing: border-box;
  background: #08182d;
  color: #fff;
  overflow: visible;
  isolation: isolate;
}

.prosper-modular-section--pdf .prosper-modular-section__title--pdf,
.prosper-modular-section--pdf .prosper-modular-section__body--pdf-intro,
.prosper-modular-section--pdf .prosper-modular-section__body--pdf-intro p,
.prosper-modular-section--pdf .prosper-modular-section__body--pdf-intro li {
  color: #fff;
}

.prosper-pdf-carousel {
  position: relative;
  width: 100%;
  max-width: none;
}

.prosper-pdf-carousel__status {
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding: 0 48px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.prosper-pdf-carousel--ready .prosper-pdf-carousel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prosper-pdf-carousel__track {
  width: 100%;
  max-width: none;
  background: #0f2138;
}

.prosper-pdf-carousel__stage {
  position: relative;
}

/* Fade carousel with auto height (avoids clipping tall PDF pages) */
.prosper-pdf-carousel__track .carousel-inner {
  min-height: 0 !important;
  overflow: hidden;
  transition: height 0.25s ease;
}

.prosper-pdf-carousel__track .carousel-item {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  height: auto !important;
  min-height: 0 !important;
}

.prosper-pdf-carousel__track .carousel-item.active,
.prosper-pdf-carousel__track .carousel-item.carousel-item-left,
.prosper-pdf-carousel__track .carousel-item.carousel-item-right,
.prosper-pdf-carousel__track .carousel-item.next,
.prosper-pdf-carousel__track .carousel-item.prev {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.prosper-pdf-carousel__track .carousel-item-next:not(.carousel-item-left),
.prosper-pdf-carousel__track .active.carousel-item-right,
.prosper-pdf-carousel__track .carousel-item-prev:not(.carousel-item-right),
.prosper-pdf-carousel__track .active.carousel-item-left {
  opacity: 0;
  visibility: hidden;
  position: absolute;
}

.prosper-pdf-carousel__slide-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  text-decoration: none;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
}

.prosper-pdf-carousel__slide-link:hover,
.prosper-pdf-carousel__slide-link:focus {
  opacity: 0.92;
  text-decoration: none;
}

.prosper-pdf-carousel__canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.prosper-pdf-carousel__control {
  position: absolute;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5%;
  min-width: 3rem;
  height: 3.5rem;
  opacity: 1;
  z-index: 2;
}

.prosper-pdf-carousel__control .carousel-control-prev-icon,
.prosper-pdf-carousel__control .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.prosper-pdf-carousel__track .carousel-indicators {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0 1rem 0.25rem;
  z-index: 1;
}

.prosper-pdf-carousel__indicators li {
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  text-indent: -999px;
  overflow: hidden;
}

.prosper-pdf-carousel__indicators .active {
  background-color: #fff;
}

.prosper-pdf-carousel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  max-width: 1180px;
  margin: 1.25rem auto 0;
  padding: 0 48px;
}

.prosper-pdf-carousel__page-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.prosper-pdf-carousel__open-link {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.prosper-pdf-carousel__open-link:hover,
.prosper-pdf-carousel__open-link:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

@media (max-width: 991.98px) {
  .prosper-modular-section.prosper-modular-section--pdf {
    padding: 48px 0 56px;
  }

  .prosper-pdf-carousel__status,
  .prosper-pdf-carousel__footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .prosper-pdf-carousel__slide-link {
    padding: 1rem 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .prosper-pdf-carousel__status,
  .prosper-pdf-carousel__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .prosper-pdf-carousel__slide-link {
    padding: 0.75rem 2rem;
  }
}
