/* Markazda Kitobxon — banner karuseli (MDJAmin uslubi, sahifaga nisbatan scope) */
.banner-kitobxon-carousel-section {
  position: relative;
  z-index: 1;
}

.bk-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  min-height: 280px;
  margin-left: auto;
  margin-right: auto;
  background: #f5f5f5;
  box-shadow: 0 30px 50px #dbdbdb;
  border-radius: 20px;
}

@media (min-width: 768px) {
  .bk-carousel {
    width: 58%;
    max-width: 100%;
  }
}

.bk-carousel .bk-slide {
  border-radius: 20px;
  position: relative;
  width: 100%;
  height: 100%;
}

.bk-carousel .bk-item {
  /* 800×400 aslida: kichik kartochka 200×250 */
  width: 25%;
  height: 62.5%;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 24px 48px rgba(0, 0, 0, 0.42);
  background-color: #14161c;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  display: inline-block;
  transition: all 0.5s;
  overflow: hidden;
  isolation: isolate;
}

/* Matn va o‘ng tomondagi muqova ajralishi uchun gradient parda */
.bk-carousel .bk-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 8, 14, 0.92) 0%,
    rgba(6, 8, 14, 0.55) 38%,
    rgba(6, 8, 14, 0.12) 62%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

/* Kichik old/ortada kartochkalar — yengil vignette, kulrang fondan ajraladi */
.bk-slide .bk-item:nth-child(3)::before,
.bk-slide .bk-item:nth-child(4)::before {
  background: radial-gradient(
    ellipse 120% 100% at 70% 40%,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.bk-slide .bk-item:nth-child(3),
.bk-slide .bk-item:nth-child(4) {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.38);
}

.bk-slide .bk-item:nth-child(1),
.bk-slide .bk-item:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transition: all 0.5s;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 32px 64px rgba(0, 0, 0, 0.5);
}

.bk-slide .bk-item:nth-child(3) {
  left: 50%;
}

.bk-slide .bk-item:nth-child(4) {
  left: calc(50% + 27.5%);
}

.bk-slide .bk-item:nth-child(5) {
  left: calc(50% + 55%);
}

.bk-slide .bk-item:nth-child(n + 6) {
  left: calc(50% + 82.5%);
  opacity: 0;
}

.bk-item .bk-content {
  position: absolute;
  top: 50%;
  left: 12.5%;
  width: min(37.5%, calc(100% - 24px));
  text-align: left;
  color: #eee;
  transform: translate(0, -50%);
  font-family: system-ui, "Manrope", sans-serif;
  display: none;
  z-index: 1;
}

.bk-slide .bk-item:nth-child(2) .bk-content {
  display: block;
}

.bk-content .bk-name {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  animation: bk-animate 1s ease-in-out 1 forwards;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.7);
}

.bk-content .bk-des {
  margin-top: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: bk-animate 1s ease-in-out 0.3s 1 forwards;
  font-size: 0.95rem;
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.65);
}

.bk-content .bk-see-more {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  opacity: 0;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.673);
  transition: all 0.5s;
  animation: bk-animate 1s ease-in-out 0.6s 1 forwards;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.9rem;
}

.bk-content .bk-see-more:hover {
  background-color: rgb(255, 255, 255);
}

@keyframes bk-animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }

  to {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
  }
}

.bk-carousel .bk-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  left: 0;
  right: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 20px;
}

.bk-nav button {
  width: 40px;
  height: 35px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  border: 2px solid #000000bd;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.578);
}

.bk-nav button:hover {
  color: #000000;
  border: 2px solid #ffffffbd;
  transform: scale(1.1);
}

.bk-nav button:focus {
  transform: scale(1.1);
  background: #ffffff;
  border: 2px solid #ffffffbd;
  outline: none;
}

.bk-nav button:active {
  transform: scale(1.02);
}

.bk-nav .bk-nav-next {
  padding: 0 0 0 3px;
}

.bk-nav .bk-nav-prev {
  padding: 0 3px 0 0;
}

@media (max-width: 767px) {
  .bk-carousel {
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 220px;
  }

  .bk-item .bk-content {
    left: 4%;
    width: 92%;
  }

  .bk-slide .bk-item:nth-child(3) {
    left: 46%;
  }

  .bk-slide .bk-item:nth-child(4) {
    left: calc(46% + 22%);
  }
}
