.slider {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  /* margin-top: 80px; */
}

.slider-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: 75%;
  max-width: 1200px;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.slide h2 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color1);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  width: auto;
  max-width: 200px;
}
.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation dots */
.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 2;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}
.slider-dot.active {
  background-color: var(--white);
  transform: scale(1.3);
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border: none;
}
.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow.prev {
  left: 20px;
}
.slider-arrow.next {
  right: 20px;
}

@media (max-width: 768px) {
  .slider {
    height: 60vh;
    margin-top: 70px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .slider-arrow.prev {
    left: 15px;
  }
  .slider-arrow.next {
    right: 15px;
  }
}

@media (max-width: 480px) {
  .slider {
    height: 50vh;
  }

  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  .slider-arrow.prev {
    left: 10px;
  }
  .slider-arrow.next {
    right: 10px;
  }
}
