.slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 500px;
  min-height: 250px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: #000;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Ensure media fills the slide */
.slide video,
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.content {
  position: relative;
  z-index: 2;
  color: white;
  margin-left: 80px;
  max-width: 500px;
}

.content h2 {
  font-size: 42px;
  margin-bottom: 10px;
margin-top: 5px !important;
  color: white;

} 

.content p {
  font-size: 18px;
  margin-bottom: 0px !important;
  color: white;
}




.gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  left: 0;
  top: 0;
  background: 
    
    linear-gradient(90deg, rgba(33,33,39,0.9) 0%, rgba(33,33,39,0.6) 40%, transparent 70%),
    
    linear-gradient(0deg, rgba(33,33,39,0.9) 5%, transparent 40%);
}

.navigation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: white;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  z-index: 3;
}

.arrow.prev {
  left: 20px;
}

.arrow.next {
  right: 20px;
}

@media(max-width: 768px){
    .slider {
  
  max-height: 700px;
  min-height: 450px;
}

.content h2 {
  font-size: 30px;
 
 
}
.content {
  padding-right: 60px;
 

}

}