.promo-banner-wrapper {
  /* background: #ffffff36; */
}

.promo-banner {
  overflow: hidden;
}

.promo-banner-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.promo-banner-swiper .swiper-wrapper {
  align-items: stretch;
}

.promo-banner-swiper .swiper-slide {
  height: auto;
}

.promo-banner-slide {
  flex-shrink: 0;
  min-width: 0;
  height: auto !important;
  container-type: inline-size;
}

/* Border */
.promo-banner-media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  border-radius: var(--brand-round-lg);
  border: 1px solid rgb(255 255 255 / 10%);

  z-index: 2;
}

.promo-banner-media {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 3 / 1;

  overflow: hidden;
  isolation: isolate;
  transition: all 0.3s ease;

  border-radius: var(--brand-round-lg);

  /* Fallback background */
  background-color: var(--custom-base);

  /* Keep the image covering the entire banner */
  background-image: var(--promo-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Extend the background under the transparent border */
  background-origin: border-box;
  background-clip: border-box;
}

.promo-banner-media::after {
  content: "";
  position: absolute;
  border-radius: var(--brand-round-lg);

  /* 1. Resize the entire effect */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 1;
  pointer-events: none;

  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);

  background: linear-gradient(
    55deg,
    rgb(from var(--color) r g b/.25) 0,
    #0000 50%
  );

  filter: saturate(1.5) brightness(0.9);

  /* 2. Resize the visible gradient / blur shape */
  -webkit-mask-image:
    radial-gradient(
      ellipse 127% 130% at 5% 100%,
      #000 18%,
      #000 24%,
      #000000a8 32%,
      #0000 40%
    ),
    linear-gradient(51deg, #000, #fff0 55%);
  mask-image:
    radial-gradient(
      ellipse 127% 130% at 5% 100%,
      #000 18% 24%,
      #000000a8 32%,
      #0000 40%
    ),
    linear-gradient(51deg, #000, #fff0 55%);
}

.promo-banner-media:hover {
  transform: scale(0.99);
}
.promo-banner-media:active {
  transform: scale(0.98);
}

.promo-banner-offer-badges {
  position: absolute;
  top: clamp(0.5rem, 2cqw, 1rem);
  left: clamp(0.5rem, 2cqw, 1rem);

  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: center;
  gap: 0.5rem;

  padding: 0.25rem 0.5rem;
  border: 1px solid var(--brand-line);
  border-radius: 0.5rem;

  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  background-color: rgb(24 27 34 / 50%);

  z-index: 4;
}

.promo-banner-offer-badges svg {
  margin-top: -3px;
}
.promo-banner-offer-badges svg,
.promo-banner-offer-badges img {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: #ffffff;
  align-content: flex-start;
  align-items: flex-start;
}

.promo-banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(0.5rem, 2.2cqw, 1rem);
  padding: clamp(0.5rem, 2cqw, 1rem);
  overflow: hidden;
}

.promo-banner-info {
  min-width: 0;
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  gap: clamp(7px, 2.2cqw, 12px);
}

.promo-banner-icon {
  width: clamp(3rem, 13.5cqw, 4rem);
  height: clamp(3rem, 13.5cqw, 4rem);
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: clamp(0.5rem, 3cqw, 1rem);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.promo-banner-copy {
  min-width: 0;
  max-width: 50%;
}

.promo-banner-title {
  margin: 0;
  color: #fff;
  font-size: clamp(0.875rem, 3cqw, 1rem);
  line-height: 1.12;
  font-weight: 700;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-banner-description {
  margin: clamp(2px, 0.4cqw, 4px) 0 0;
  font-size: clamp(0.75rem, 2.05cqw, 0.875rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-banner-full-logo {
  display: block;
  width: min(44cqw, 20rem);
  max-height: min(19cqw, 6rem);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.promo-banner-action {
  min-width: 0;
  align-self: end;
}

.promo-banner-button {
  box-shadow: 0 8px 22px rgba(153, 68, 255, 0.32);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.promo-banner-button:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 11px 26px rgba(153, 68, 255, 0.42);
}

.promo-banner-nav {
  position: absolute;
  top: 45%;
  z-index: 5;

  transition:
    background 0.3s ease,
    opacity 0.3s ease;
}

.promo-banner-nav-prev {
  left: 3rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.promo-banner-nav-next {
  right: 3rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.promo-banner:hover .promo-banner-nav-prev {
  left: clamp(0.5rem, 2cqw, 1rem);
  opacity: 1;
}

.promo-banner:hover .promo-banner-nav-next {
  right: clamp(0.5rem, 2cqw, 1rem);
  opacity: 1;
}

.promo-banner-pagination {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 1rem;
  margin: 1rem 0 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 6;
  overflow: visible !important;
  pointer-events: auto;
}

.promo-banner-pagination .swiper-pagination-bullet {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  padding: 0;
  flex: 0 0 auto;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}
.promo-banner-pagination .swiper-pagination-bullet-active {
  width: 20px;
  opacity: 1;
  background: var(--bs-primary);
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .promo-banner-title {
    -webkit-line-clamp: 2;
  }

  .promo-banner-description {
    -webkit-line-clamp: 1;
  }
  .promo-banner-media {
    aspect-ratio: 2 / 1;
  }

  .promo-banner-copy {
    min-width: 0;
    max-width: 70%;
  }
}
@media (min-width: 1200px) and (max-width: 1400px) {
  /* .promo-banner-media {
    aspect-ratio: 2 / 1;
  } */

  .promo-banner-button.custom-pri-btn {
    font-size: clamp(0.5rem, 0rem + 1vw, 0.75rem);
    padding: 0.5rem;
    height: 2rem;
  }

  .promo-banner-nav.custom-sec-btn.btn-squ {
    width: 1.8rem !important;
    height: 1.8rem !important;
    font-size: 0.75rem;
    border-radius: 0.5rem;
  }
}

@media (min-width: 768px) and (max-width: 999px) {
  .promo-banner-button.custom-pri-btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    height: 2rem;
    border-radius: var(--brand-round-pill);
  }
}

@media (max-width: 767.98px) {
  .promo-banner .card-body {
    padding: 0.5rem !important;
  }

  .promo-banner-media {
    min-height: 0;
    max-height: none;
    aspect-ratio: 2 / 1;
  }

  .promo-banner-content {
    gap: clamp(6px, 2cqw, 10px);
  }

  .promo-banner-info {
    gap: clamp(6px, 2cqw, 9px);
  }
  .promo-banner-copy {
    min-width: 0;
    max-width: 70%;
  }

  .promo-banner-icon {
    width: clamp(44px, 12.5cqw, 58px);
    height: clamp(44px, 12.5cqw, 58px);
    border-radius: clamp(9px, 2.8cqw, 13px);
  }

  .promo-banner-title {
    font-size: clamp(0.76rem, 3.25cqw, 0.98rem);
  }

  .promo-banner-description {
    font-size: clamp(0.58rem, 2cqw, 0.7rem);
  }

  .promo-banner-full-logo {
    width: min(54cqw, 220px);
    max-height: min(18cqw, 68px);
  }
}

@media (max-width: 576px) {
  .promo-banner-button.custom-pri-btn {
    font-size: 0.875rem;
    padding: 0.313rem 0.5rem;
    height: 1.8rem;
    border-radius: var(--brand-round-pill);
  }

  .promo-banner-nav.custom-sec-btn.btn-squ {
    width: 1.8rem !important;
    height: 1.8rem !important;
    font-size: 0.75rem;
    border-radius: 0.5rem;
  }
}

/* Entire promotion card is clickable */
.promo-banner-clickable {
  cursor: pointer;
}

/* Keep controls clearly interactive */
.promo-banner-clickable .promo-banner-button {
  cursor: pointer;
}

/* Decorative overlays must not interfere with interaction */
.promo-banner-media::after {
  pointer-events: none;
}

/* Default: white text for dark backgrounds */
.promo-banner-title,
.promo-banner-description {
  color: #fff;
  transition: color 200ms ease;
}

/* Automatically switch to dark text on bright images */
.promo-banner-media.promo-banner-light-bg .promo-banner-title,
.promo-banner-media.promo-banner-light-bg .promo-banner-description {
  color: #111222;
  text-shadow: none;
}

/* =========================================
   Ambient Glow Behind Promotion Banners
========================================= */

.promo-banner-wrapper {
  position: relative;
  isolation: isolate;
}

/* Broad glow behind the entire banner area */
.promo-banner-wrapper::before {
  content: "";
  position: absolute;
  inset: -30px -20px -24px;
  z-index: -1;

  background:
    radial-gradient(
      ellipse 55% 70% at 18% 20%,
      rgba(153, 68, 255, 0.24),
      transparent 72%
    ),
    radial-gradient(
      ellipse 48% 65% at 82% 15%,
      rgba(55, 112, 255, 0.16),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 55% at 55% 100%,
      rgba(153, 68, 255, 0.16),
      transparent 72%
    );

  filter: blur(36px);
  opacity: 0.95;
  pointer-events: none;
}

/* Each slide provides a positioning layer for its halo */
.promo-banner-slide {
  position: relative;
  isolation: isolate;
}

/* Blurred copy of the individual banner image */
.promo-banner-slide::before {
  content: "";
  position: absolute;
  inset: -10px -8px -14px;
  z-index: 0;

  border-radius: var(--brand-round-lg, 1rem);

  background-image:
    radial-gradient(
      ellipse at 25% 75%,
      rgba(153, 68, 255, 0.3),
      transparent 68%
    ),
    var(--promo-bg-image, none);

  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;

  filter: blur(28px) saturate(1.45) brightness(1.08);
  opacity: 0.48;

  transform: translateY(5px) scale(0.97);
  pointer-events: none;
}

/* Keep the actual banner above its glow */
.promo-banner-slide > .promo-banner-media {
  position: relative;
  z-index: 1;
}

/* Ambient glow container */
.promo-banner-wrapper {
  position: relative;
  isolation: isolate;
}

/* Purple and blue ambient glow */
.promo-banner-ambient-glow {
  position: absolute;
  inset: -30px -20px -24px;
  z-index: 0;

  background:
    radial-gradient(
      ellipse 55% 70% at 18% 20%,
      rgba(153, 68, 255, 0.24),
      transparent 72%
    ),
    radial-gradient(
      ellipse 48% 65% at 82% 15%,
      rgba(55, 112, 255, 0.16),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 55% at 55% 100%,
      rgba(153, 68, 255, 0.16),
      transparent 72%
    );

  filter: blur(36px);
  opacity: 0.95;
  pointer-events: none;
}

/* Keep banner content above the glow */
.promo-banner {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
