/* ===== GYIK oldal (page-gyik) ===== */
body.page-template-page-gyik {
  background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
  color: #eee;
  font-family: 'Space Grotesk';
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  padding: 0;
}

.faq-wrapper {
  max-width: 1400px;
  margin: 35px auto;
  padding: 2px;
}

.faq-wrapper h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 50px;
  color: #f0f0f0;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  align-items: start;
}

.faq-item {
  background: #0f0c29;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  overflow: hidden;               /* kell a belső animált tartalomhoz */
  transition: box-shadow .3s ease, transform .3s ease; /* célzott transition */
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  gap: 20px;
  white-space: normal;
  word-break: break-word;
  transition: all .5s ease, transform .3s ease; /* célzott transition */
}

.faq-question i {
  margin-right: 10px;
  color: #00c2ff;
  min-width: 22px;
}

.toggle-icon {
  font-size: 24px;
  color: #ccc;
  flex-shrink: 0;
  transition: transform .3s ease, color .3s ease;
}

.faq-question:hover {
  background-color: #f5ebe0;
  color: #000814;
}

.faq-question:hover .toggle-icon {
  color: #000814;
}

/* Megjegyzés:
   Ha JS-sel magasságot animálsz, maradhat "height".
   Ha CSS-t használnál, inkább max-height + overflow hidden. */
.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height .4s ease;
  background-color: #f5ebe0;
  padding: 0 24px;         /* a függőleges paddinget az open állapot adja */
}

.faq-answer p {
  font-size: 19px;
  margin: 0;
  line-height: 1.6;
  color: #000814;
  padding: 20px 0;
}

.faq-item.open .toggle-icon {
  transform: rotate(45deg);
}

/* Opcionális mikro-interakció (nem kötelező) */
.faq-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* Reszponzív: 900px alatt egy oszlop */
@media (max-width: 900px) {
  .faq-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
