* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  background: #f2f2f2;
  text-align: center;
}

/* Karusel */
.carousel {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #000;
  margin: 0px auto;
  border-radius: 0px;
}

/* Slaydlar */
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover; /* Rasm to‘liq joylashishi uchun */
}

/* Tugmalar */
button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 2;

  border-radius: 50%;
}
button.prev:hover,
button.next:hover {
  background: rgba(0, 0, 0, 0.6);
}
button.prev {
  left: 10px;
}
button.next {
  right: 10px;
}

/* Nuqtalar */
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.active-dot {
  background: black;
}

/* Media Queries: Ekran kichrayganda balandlik avtomatik o‘zgaradi */
@media (max-width: 768px) {
  .carousel {
    height: 300px; /* Mobil ekranda 300px bo‘ladi */
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 250px; /* Juda kichik ekranda 250px */
  }
}
