/* Secțiunea Întrebări frecvente */
.faq {
  padding: 60px 20px;
  background-color: #111;
  color: #fff;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

.faq h2 {
  font-size: 2rem;
  color: #ff6600;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.faq-item {
  margin-bottom: 20px;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.question {
  width: 100%;
  background-color: #222;
  color: #fff;
  border: none;
  padding: 20px;
  font-size: 16px;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.question:hover {
  background-color: #ff6600;
  transform: scale(1.05);
}

/* Modificăm răspunsul pentru a fi ascuns inițial și a se deschide lin */
.answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #333;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

/* Când un item este activ, adăugăm un max-height pentru a-l face vizibil */
.faq-item.active .answer {
  max-height: 500px; /* Răspunsul va fi vizibil */
  padding: 20px; /* Apare doar când răspunsul este deschis */
}

/* Iconița de rotire pentru întrebarea activă */
.faq-item.active .question span {
  transform: rotate(180deg);
}


/* Responsivitate - pe mobil ascundem răspunsurile */
@media (max-width: 768px) {

  
  .faq h2 {
    font-size: 1.5rem;
  }

  .question {
    font-size: 14px;
    padding: 15px;
  }

  /* Ascundem răspunsurile pe mobil */
  .answer {
    padding: 15px;
    max-height: 0;
    display: none; /* Ascundem complet răspunsurile pe mobil */
  }

  /* Când un item este activ, arătăm răspunsul */
  .faq-item.active .answer {
    display: block;
    max-height: 300px; /* Răspunsul va fi vizibil */
    padding: 15px;
  }
}