/* Containerul principal al secțiunii FAQ */
.faq-section {
  max-width: 1000px;
  margin: 0 auto;
  /* Mai mult spațiu sus-jos și lateral */
  padding: 4rem 2rem;
  font-family: sans-serif;
}

.faq-items-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Titlul principal al secțiunii */
.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 3rem; /* Spațiu mai generos sub titlu */
  font-weight: 700;
  color: #fff; /* Pentru vizibilitate pe fundal închis */
  text-align: center;
}

/* === LINK-URI (a) === */
.faq-section a {
  color: #1db954; 
  text-decoration: underline;
  transition: color 0.3s;
}
.faq-section a:hover {
  color: #fff;
}

/* Container pentru categoriile de FAQ (două coloane la ecrane mari) */
.faq-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem; /* Spațiu orizontal între coloane */
}

/* Categoriile individuale (ex. Cariere & Internship-uri) */
.faq-category {
  /* Optional: un mic background semi-transparent, dacă dorești */
  /* background-color: rgba(255,255,255,0.05); */
  padding: 1rem;
  border-radius: 6px;
}

/* Ascundem numele categoriilor */
.faq-category h3 {
  display: none;
}

/* Fiecare întrebare-răspuns este un .faq-item */
.faq-item {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(29, 185, 84, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #1db954;
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  background: rgba(29, 185, 84, 0.05);
  border-color: rgba(29, 185, 84, 0.3);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.1);
}

.faq-item.active {
  background: rgba(29, 185, 84, 0.08);
  border-color: rgba(29, 185, 84, 0.4);
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.15);
}

.faq-item.active::before {
  transform: scaleY(1);
}

/* Butonul care conține întrebarea */
.faq-question {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  padding: 1.5rem 1.5rem 1.5rem 1.8rem;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1rem;
}

/* La hover, întrebarea rămâne evidențiată */
.faq-question:hover {
  color: #1db954;
}

.faq-item.active .faq-question {
  color: #1db954;
}

/* Simbolul + care se rotește la click */
.faq-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: bold;
  font-size: 1.5rem;
  color: #1db954;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.2);
}

.faq-question:hover .faq-icon {
  background: rgba(29, 185, 84, 0.2);
  border-color: rgba(29, 185, 84, 0.4);
  transform: scale(1.1);
}

/* Răspunsul inițial ascuns (max-height = 0) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  color: #d0d0d0;
  padding: 0 1.8rem;
  line-height: 1.7;
}

/* Când .faq-item devine .active, creștem max-height (ex. 500px) */
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.8rem 1.5rem 1.8rem;
}

/* Rotim simbolul + cu 45 de grade pentru a semăna cu un x */
.faq-item.active .faq-icon {
  transform: rotate(45deg) scale(1.1);
  background: rgba(29, 185, 84, 0.2);
  border-color: rgba(29, 185, 84, 0.5);
}

/* Spațiu și aspect la textul răspunsului */
.faq-answer p {
  padding: 0;
  margin: 0;
  line-height: 1.7;
  color: #d0d0d0;
}

/* === MEDIA QUERIES: Mobile Friendly === */
@media (max-width: 768px) {
  .faq-items-wrapper {
    grid-template-columns: 1fr;
  }

  .faq-categories {
    /* O singură coloană pe ecrane mai mici */
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faq-section {
    padding: 2rem 1rem;
  }

  .faq-section h2 {
    margin-bottom: 2rem;
  }
}