/* ====================================
   WATSONS STYLE CAROUSEL
==================================== */
.hero-banner {
  margin-bottom: 80px;
}

.hero-carousel {
  width: 100%;

  padding: 30px 40px 0;

  position: relative;

  z-index: 0;

  background: #f7f7f7;
}

.hero-carousel,
.carousel-container,
.carousel-card {
  z-index: 1;
}
/* CONTAINER */

.carousel-container {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 22px;

  position: relative;

  z-index: 1;
}

/* CARDS */

.carousel-card {
  position: relative;

  overflow: hidden;

  border-radius: 28px;

  transition: 0.5s ease;

  background: #f5f5f5;
}

/* IMAGES */

.carousel-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition: 0.5s ease;
}

/* ACTIVE */

.active-card {
  width: 62%;

  max-width: 900px;

  height: 540px;

  z-index: 5;

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
}

/* PREVIEW */

.prev-card,
.next-card {
  width: 19%;
  height: 430px;

  opacity: 0.65;

  transform: scale(0.92);

  overflow: hidden;
}

/* PREVIEW EFFECT */

.prev-card img,
.next-card img {
  filter: blur(2px);

  transform: scale(1.06);
}

/* ACTIVE IMAGE */

.active-card img {
  filter: none;
}

/* HOVER */

.prev-card:hover,
.next-card:hover {
  opacity: 0.8;
}

/* ====================================
   ARROWS
==================================== */

.carousel-arrow {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 56px;
  height: 56px;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.95);

  color: #222;

  font-size: 22px;

  cursor: pointer;

  z-index: 20;

  transition: 0.3s ease;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* LEFT */

.left-arrow {
  left: 21%;
}

/* RIGHT */

.right-arrow {
  right: 21%;
}

/* HOVER */

.carousel-arrow:hover {
  background: #f7941d;

  color: white;
}

/* ====================================
   DOTS
==================================== */

.carousel-dots {
  position: absolute;

  bottom: 18px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  gap: 10px;

  z-index: 30;
}

.carousel-dot {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.7);

  transition: 0.3s ease;
}

.carousel-dot.active {
  width: 34px;

  border-radius: 30px;

  background: #1a237e;
}

/* ====================================
   RESPONSIVE
==================================== */

@media (max-width: 991px) {
  .prev-card,
  .next-card {
    display: none;
  }

  .active-card {
    width: 100%;
    height: 380px;
  }

  .left-arrow {
    left: 15px;
  }

  .right-arrow {
    right: 15px;
  }
}

@media (max-width: 600px) {
  .hero-carousel {
    padding: 10px;
  }

  .active-card {
    height: 250px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;

    font-size: 18px;
  }
}


/* CODEX SLIDER PATCH */
.carousel-card {
  cursor: pointer;
}

.carousel-card img {
  transition: opacity 0.45s ease, transform 0.55s ease;
}

.carousel-dot {
  border: 0;
  cursor: pointer;
}

.banner-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 10, 12, 0.82);
}

.banner-preview-modal img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.banner-preview-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
