.slider {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  top: 0;
  left: 0;
}

.items {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
}

.item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-position: center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px 30px;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
}
.slide-title {
  margin: 0 0 10px;
  font-size: clamp(48px, 5vw, 96px);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
}
.item.current .slide-title {
  animation: slideTitleFadeUp 0.8s ease-out both;
}
@keyframes slideTitleFadeUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-description p {
  margin: 0 0 12px;
  line-height: 1.5;
  font-size: 22px;
}
.slide-link {
  display: inline-block;
  margin-top: 12px;
  padding: 15px 24px;
  background: #fff;
  color: #222;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}
.slide-link:hover {
  background: #dcc59b;
  color: #222;
  text-decoration: none;
}
.item.current {
  opacity: 1;
}
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buttons {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 1%;
  width: 98%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrays {
  width: 32px;
  height: 32px;
  border: none;
  outline: none;
  padding: 0;
  background: transparent center no-repeat;
  cursor: pointer;
  opacity: 0.9;
}
.arrays.prev {
  background-image: url(prev.png);
}
.arrays.next {
  background-image: url(next.png);
}
.arrays:hover {
  opacity: 0.8;
}

.dots {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  z-index: 9999;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  outline: none;
  padding: 0;
  background: #fff;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.4s ease-in-out;
}
.dot:nth-child(n + 2) {
  margin-left: 5px;
}
.dot.current {
  opacity: 1;
}
