/* Hero product carousel - shared across regional homepages */
.hero-image {
  flex: 1;
  max-width: 650px;
  position: relative;
}

.recivo-hero-carousel {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 24px 70px rgba(42, 101, 246, 0.16),
    0 12px 35px rgba(0, 0, 0, 0.08);
  z-index: 12;
}

/* Subtle dark shade over slides when hovering carousel */
.recivo-hero-carousel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  z-index: 14;
  pointer-events: none;
}

.recivo-hero-carousel:hover::before {
  background: rgba(0, 0, 0, 0.28);
}

.recivo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 1.1s ease, transform 1.1s ease;
  pointer-events: none;
}

.recivo-slide.active {
  opacity: 1;
  transform: scale(1);
  position: relative;
  pointer-events: auto;
}

.recivo-slide img {
  width: 100%;
  display: block;
  border-radius: 24px;
}

/* Prev / next - hidden until carousel hover */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recivo-hero-carousel:hover .carousel-arrow {
  opacity: 1;
  visibility: visible;
}

.carousel-arrow:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.38);
  transform: translateY(-50%) scale(1.06);
}

.carousel-arrow--prev {
  left: 14px;
}

.carousel-arrow--next {
  right: 14px;
}

.carousel-arrow:focus-visible {
  opacity: 1;
  visibility: visible;
  outline: 2px solid #2a65f6;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    order: 1;
    width: 100%;
  }

  .hero-image {
    order: 2;
    max-width: 420px;
    width: 100%;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-arrow--prev {
    left: 10px;
  }

  .carousel-arrow--next {
    right: 10px;
  }
}
