* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 60vh;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  transition: opacity 1s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  display: block;
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.overlay {
  position: absolute;
  top: 20%;
  left: 10%;
  color: orangered;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  max-width: 50%;
  z-index: 2;
}
.overlay h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.overlay p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.overlay a {
  display: inline-block;
  background: #0067b8;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.navigation span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background-color: rgba(0,0,0,0.5);
  padding: 10px;
  cursor: pointer;
  z-index: 3;
}
.prev { left: 10px; }
.next { right: 10px; }

.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 2;
}
.dots span {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  background-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
}
.dots span.active {
  background-color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .overlay {
    top: 70%;
    left: 20%;
    max-width: 90%;
  }
  .overlay h2 {
    font-size: 2rem;
  }
  .overlay p {
    font-size: 1rem;
  }
}