/* === FAQ SECTION (dynamic) === */
.faq-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.faq-modal.show {
  opacity: 1;
  pointer-events: all;
}

.faq-content {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh; /* limit výšky modalu */
  overflow: hidden;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  position: relative;
  display: flex;
  flex-direction: column;
}

.faq-inner {
  overflow-y: auto; /* scroll pro celý obsah FAQ */
  max-height: 70vh; /* přizpůsobit dle potřeby */
  padding-right: 0.5rem;
}

/* Scrollbar styl (volitelné) */
.faq-inner::-webkit-scrollbar {
  width: 8px;
}

.faq-inner::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.faq-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #555;
  transition: color 0.2s ease;
}

.faq-close:hover {
  color: #000;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: normal;
  position: relative;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  max-height: 0;           /* po defaultu sklonjeno */
  overflow: hidden;         /* skriva tekst */
  padding: 0 0.5rem;       /* padding u zatvorenom stanju */
  color: #555;
  line-height: 1.6;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;       /* dovoljno veliko da stane dugački tekst */
  padding: 0.8rem 0.5rem 1.2rem 0.5rem;
}

/* === FAQ SECTION (dynamic) === */
/* ... tvoj postojeći CSS ovde ... */

/* === Dark mode za FAQ modal === */
body.dark-mode .faq-content {
  background: #1e1e1e; /* tamna pozadina */
  color: #fff;          /* svetli tekst */
}

body.dark-mode .faq-question,
body.dark-mode .faq-answer {
  color: #fff;
}

body.dark-mode .faq-question:hover {
  background: #333; /* kontrast pri hoveru */
}

body.dark-mode .faq-close {
  color: #fff;
}
