/* portal-carousel.css */

/* Recommended slide image size: 800×600px (4:3 aspect ratio) for desktop, scaled down on mobile */

/* 1) Full-screen wrapper */
html, body, .iframe-wrapper {
  height: 100%;
  margin: 0;
  background: transparent;
}

/* 2) Base carousel container */
.portal-carousel {
  width: 100%;
  height: 100%;
  overflow: visible !important;
  position: relative;
  padding: 60px 20px 100px; /* space for dots */
  font-family: 'Inter', sans-serif;
}

/* 3) Radial-burst accents */
.portal-carousel::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 350px; height: 350px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(112,194,236,0.5) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}
.portal-carousel::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 350px; height: 350px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(236,38,99,0.5) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* 4) Swiper fills the frame */
.portal-carousel .swiper-container,
.portal-carousel .swiper-wrapper,
.portal-carousel .swiper-slide {
  width: 100%;
  height: 100%; /* desktop behavior */
}
.portal-carousel .swiper-wrapper {
  display: flex;
}
.portal-carousel .swiper-slide {
  flex: 0 0 100% !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}
.portal-carousel .slide-inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  overflow: visible !important;
}

/* 5) Scale top image */
.portal-carousel .slide-image img {
  max-width: 100%;
  max-height: 30vh;
  object-fit: contain;
  margin-bottom: 1.5em;
  border-radius: 8px;
}

/* 6) Typography */
.portal-carousel h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0.5em 0;
}
.portal-carousel h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  text-transform: uppercase;
  margin-bottom: 0.75em;
  color: var(--mend-secondary, #70C2EC);
}
.portal-carousel p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5em;
}

/* 7) CTA Button */
.portal-carousel a.button {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  background: linear-gradient(135deg, #EC2663 0%, #C21F58 100%);
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 8px;
  transition: filter 0.3s ease;
  z-index: 2;
}
.portal-carousel a.button:hover {
  filter: brightness(0.9);
}

/* 8) Progress bar */
.portal-carousel .progress-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.2);
  z-index: 10;
}
.portal-carousel .progress-bar .progress-fill {
  width: 100%; height: 100%;
  background: var(--mend-secondary, #70C2EC);
  transform-origin: left;
  transform: scaleX(1);
  z-index: 11;
}

/* 9) Pagination dots */
.swiper-pagination-bullets {
  bottom: 20px !important;
  z-index: 10;
}
.swiper-pagination-bullet {
  background: rgba(0,0,0,0.2);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: var(--mend-secondary, #70C2EC);
}

/* 10) Hide nav arrows */
.swiper-button-prev, .swiper-button-next { display: none !important; }

/* 11) Dark background tweaks */
.fx-block-bg-dark .portal-carousel {
  background-color: #001f3f !important;
}
.fx-block-bg-dark .portal-carousel h2 {
  color: #ffffff !important;
}
.fx-block-bg-dark .swiper-pagination-bullet {
  background: rgba(255,255,255,0.3) !important;
}
.fx-block-bg-dark .swiper-pagination-bullet-active {
  background: var(--mend-secondary, #70C2EC) !important;
}

/* 12) Responsive: mobile layout */
@media (max-width: 768px) {
  /* allow auto height on mobile */
  .portal-carousel .swiper-container,
  .portal-carousel .swiper-wrapper,
  .portal-carousel .swiper-slide {
    height: auto !important;
  }
  .portal-carousel .slide-inner { max-width: none; }

  /* side-by-side image & content */
  .portal-carousel .swiper-slide {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
  }
  .portal-carousel .slide-image {
    flex: 0 0 40%;
    margin-right: 10px;
  }
  .portal-carousel .slide-image img {
    max-height: 100%;
    width: 100%;
  }
  .portal-carousel .slide-inner {
    flex: 0 0 60%;
    padding: 0;
  }

  /* adjust text sizes */
  .portal-carousel h2 { font-size: 1.25rem; }
  .portal-carousel h3 { font-size: 1rem; }
  .portal-carousel p  { font-size: 0.875rem; }

  /* reduce bottom padding */
  .portal-carousel { padding: 20px 10px 60px; }
}