body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #fefefe;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: block; /* NU flex */
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  flex-shrink: 0;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background-color: rgba(0,0,0,0.4);
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 0 10px;
  border-radius: 5px;
  user-select: none;
}

.nav.left {
  left: 0px;
}

.nav.right {
  right: 0px;
}

/* BULE DE PAGINARE */
.dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.dots span {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dots span.active {
  background-color: #333;
}


.intro-text {
  max-width: 800px;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

.intro-text h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #222;
}

.intro-text ol {
  padding-left: 1.2em;
  text-align: left;
  line-height: 1.6;
}

.intro-text p {
  margin-top: 20px;
  font-weight: bold;
}

.carousel-slide img {
  width: 100%;
  height: auto; /* 🔥 Asta previne tăierea pe înălțime */
  flex-shrink: 0;
  object-fit: contain; /* Asigură redimensionare corectă fără tăiere */
}

.intro-text,
.carousel-container,
.dots {
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .intro-text h2 {
    font-size: 1.2rem;
  }

  .intro-text ol {
    font-size: 0.95rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .carousel-container {
    max-width: 100%;
  }

  .carousel-slide img {
    height: auto;
    object-fit: contain;
  }

  .nav {
    font-size: 2rem;
    padding: 5px 8px;
  }

  .nav.left {
    left: 5px;
  }

  .nav.right {
    right: 5px;
  }

  .dots span {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}

@media (max-width: 480px) {
  .intro-text h2 {
    font-size: 1rem;
  }

  .intro-text ol {
    font-size: 0.9rem;
  }

  .nav {
    font-size: 1.8rem;
  }
}

