/* Componenta FAQ (unică clasă folosită în HTML) */
#faq {
  margin: 6rem 0 0;
  color: white;
}
#faq h1 {
  color: white;
  font-size: 18px;
  margin-bottom: 1rem;
  font-weight: 400;
  text-transform: uppercase;
}
/* #faq .faq {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 7px;
  padding: 0 2rem;
} */

/* fiecare item */
.faq > div {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 7px;
  padding: 1.6rem 2rem;
  margin-bottom: 4px;
}
.faq > div:last-child {
  border: none;
}

@media screen and (max-width: 767px) {
  .faq > div {
    background-color: rgba(228, 148, 0, 0.575);
  }
}

/* butonul de întrebare */
.faq dt > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  gap: 2rem;
}

.faq dt > button:focus {
  outline: 2px solid #4b9cff;
  outline-offset: 2px;
}

/* titlul întrebării */
.faq h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* iconițe: arată doar plus când e închis, doar minus când e deschis */
.faq dt > button[aria-expanded="true"] svg:first-of-type {
  display: none;
}
.faq dt > button[aria-expanded="false"] svg:last-of-type {
  display: none;
}

/* panoul de răspuns (inițial ascuns; JS îl animă) */
.faq dd {
  display: none;
}

.faq dd p {
  margin: 0 0 8px 0;
}
.faq dd ul {
  margin: 0;
  padding-left: 18px;
}
.faq span.view-more {
  display: flex;
  padding: 4px;
  border-radius: 7px;
}
.faq span.view-more svg {
  width: 20px;
  height: 20px;
}
.faq button:hover span.view-more {
  background-color: #ffffff2d;
}
