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

html, body {
  width: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background: #f5f5f5;
}

.slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  z-index: 1;
}

/* Text fix suprapus pe carusel */
.slide-content.static {
  position: absolute;
  z-index: 2;
  color: white;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  max-width: 600px;
  pointer-events: none;
}

.slide-content.static h2 {
  font-size: 2.5rem;
  color: #fdd835;
  margin-bottom: 1rem;
}

.slide-content.static p {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 1.5rem;
}

.slide-content.static a {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  background-color: #ff9800;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  color: white;
  transition: background-color 0.3s ease;
}

.slide-content.static a span {
  color: #fffde7;
}

.slide-content.static a:hover {
  background-color: #e65100;
}

/* Butoane navigare (doar desktop) */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.nav-btn.prev {
  left: 10px;
}

.nav-btn.next {
  right: 10px;
}

.slider:hover .nav-btn {
  opacity: 1;
}

/* === Responsive === */
@media (max-width: 768px) {
  .slider {
    height: 400px;
  }

  .slide-content.static h2 {
    font-size: 1.8rem;
  }

  .slide-content.static p {
    font-size: 1rem;
  }

  .slide-content.static a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .nav-btn {
    display: none;
  }
}

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

  .slide-content.static {
    left: 3%;
    right: 3%;
  }

  .slide-content.static h2 {
    font-size: 1.5rem;
  }

  .slide-content.static p {
    font-size: 0.95rem;
  }
}
