/**
 * CNVP Hero Banner Card widget.
 */

.cnvp-hero-banner {
  --cnvp-hero-banner-card-max: 480px;
  --cnvp-hero-banner-card-pad-x: 40px;
  --cnvp-hero-banner-card-pad-y: 45px;

  position: relative;
  width: 100%;
  min-height: 550px;
  font-family: var(--cnvp-font-sans);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cnvp-hero-banner--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 2rem;
  background: var(--cnvp-color-cream);
  color: var(--cnvp-color-muted);
}

.cnvp-hero-banner__swiper {
  width: 100%;
  flex: 1 1 auto;
  min-height: inherit;
}

.cnvp-hero-banner__swiper .swiper-wrapper,
.cnvp-hero-banner__slide {
  height: 100%;
  min-height: inherit;
}

.cnvp-hero-banner__slide {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 40px 24px 100px;
}

.cnvp-hero-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.cnvp-hero-banner__wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--cnvp-container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-sizing: border-box;
}

.cnvp-hero-banner__card {
  background-color: #0d1a15;
  width: 100%;
  max-width: var(--cnvp-hero-banner-card-max);
  padding: var(--cnvp-hero-banner-card-pad-y) var(--cnvp-hero-banner-card-pad-x);
  border-radius: 8px;
  color: var(--cnvp-color-white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  min-width: 0;
}

.cnvp-hero-banner__title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--cnvp-color-white);
}

.cnvp-hero-banner__description {
  font-size: clamp(0.85rem, 1.4vw, 0.9rem);
  line-height: 1.6;
  color: #d1d8d5;
  margin: 0 0 30px;
}

.cnvp-hero-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #f2cb35;
  color: #111111;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: inherit;
  transition: transform 0.2s ease, background-color 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.cnvp-hero-banner__cta:hover {
  background: var(--cnvp-color-accent) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

.cnvp-hero-banner__cta-arrow {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.cnvp-hero-banner__cta-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.cnvp-hero-banner__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5%;
  flex-shrink: 0;
}

.cnvp-hero-banner__badge-img {
  width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  display: block;
}

/* Pagination — same as Hero Slider */
.cnvp-hero-banner__pagination.swiper-pagination {
  bottom: 32px !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}

.cnvp-hero-banner__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  opacity: 1;
  margin: 0 6px !important;
}

.cnvp-hero-banner__pagination .swiper-pagination-bullet-active {
  background: #fff;
  border-color: #fff;
}

/* Navigation controls — same as Hero Slider */
.cnvp-hero-banner .controls {
  position: absolute;
  left: max(24px, calc((100vw - 1336px) / 2));
  bottom: 32px;
  z-index: 10;
  display: flex;
  gap: 16px;
}

.cnvp-hero-banner .control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.cnvp-hero-banner .control:hover span.icon {
  background: var(--cnvp-color-cta);
}

.cnvp-hero-banner .control:hover {
  opacity: 0.85;
}

.cnvp-hero-banner .control:disabled,
.cnvp-hero-banner .control.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cnvp-hero-banner .control .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.cnvp-hero-banner .control .icon svg {
  display: block;
  width: 20px;
  height: auto;
}

.cnvp-hero-banner .control .icon svg path {
  fill: white;
}

/* Tablet */
@media (max-width: 1024px) {
  .cnvp-hero-banner {
    --cnvp-hero-banner-card-max: 420px;
    --cnvp-hero-banner-card-pad-x: 28px;
    --cnvp-hero-banner-card-pad-y: 32px;
    min-height: 480px;
  }

  .cnvp-hero-banner__slide {
    padding: 32px 20px 96px;
    align-items: flex-end;
  }

  .cnvp-hero-banner__wrapper {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 24px;
  }

  .cnvp-hero-banner__card {
    max-width: min(100%, var(--cnvp-hero-banner-card-max));
  }

  .cnvp-hero-banner__badge {
    margin-right: 0;
    order: -1;
    align-self: flex-start;
  }

  .cnvp-hero-banner__badge-img {
    width: 140px;
  }

  .cnvp-hero-banner__title {
    margin-bottom: 14px;
  }

  .cnvp-hero-banner__description {
    margin-bottom: 24px;
  }

  .cnvp-hero-banner .controls {
    left: 20px;
    bottom: 28px;
  }

  .cnvp-hero-banner .control .icon {
    width: 44px;
    height: 44px;
  }

  .cnvp-hero-banner__pagination.swiper-pagination {
    bottom: 28px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .cnvp-hero-banner {
    --cnvp-hero-banner-card-max: 100%;
    --cnvp-hero-banner-card-pad-x: 20px;
    --cnvp-hero-banner-card-pad-y: 24px;
    min-height: 420px;
  }

  .cnvp-hero-banner__slide {
    padding: 24px 16px 72px;
    align-items: flex-end;
  }

  .cnvp-hero-banner__wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
  }

  .cnvp-hero-banner__card {
    max-width: 100%;
    width: 100%;
  }

  .cnvp-hero-banner__badge {
    margin-right: 0;
    order: -1;
    align-self: flex-start;
  }

  .cnvp-hero-banner__badge-img {
    width: 110px;
  }

  .cnvp-hero-banner__title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .cnvp-hero-banner__description {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .cnvp-hero-banner__cta {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.8125rem;
  }

  .cnvp-hero-banner__cta-arrow svg {
    width: 16px;
    height: 16px;
  }

  .cnvp-hero-banner .controls {
    display: none;
  }

  .cnvp-hero-banner__pagination.swiper-pagination {
    bottom: 20px !important;
  }

  .cnvp-hero-banner__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 5px !important;
  }
}

@media (max-width: 480px) {
  .cnvp-hero-banner {
    min-height: 380px;
  }

  .cnvp-hero-banner__slide {
    padding: 20px 14px 64px;
  }

  .cnvp-hero-banner__badge-img {
    width: 96px;
  }

  .cnvp-hero-banner__title {
    font-size: 1.35rem;
  }
}
