/* modules/psfaq/views/css/psfaq.css */

/* Sekcja ogólna – pełna szerokość + padding + radius */
.psfaq-section {
  width: 100%;
  max-width: 100%;
  padding: 3rem 0 3.5rem;
  border-radius: 4px;
background:white;
margin-top:50px;
margin-bottom:50px;
}


/* Tytuł + opis u góry */
.psfaq-title {
  font-weight: 600;
  font-size: 22px;
}

.psfaq-subtitle {
  color: #111;
  font-size: 0.85rem;
  margin-left: auto;
  margin-right: auto;
}

/* Lista pytań – flex z równymi odstępami */
.psfaq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centruje psfaq-item */
  gap: 1rem;             /* równe odstępy między kafelkami */
}

/* Każdy pojedynczy “kafelek” FAQ – 70% szerokości */
.psfaq-item {
  width: 70%;
}

/* Na małych ekranach pełna szerokość */
@media (max-width: 768px) {
  .psfaq-item {
    width: 100%;
  }
}

/* Przycisk pytania */
.psfaq-question {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #e4e7eb;
  background-color: #ffffff;
  padding: 1.05rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-align: left;
}

.psfaq-left {
  display: flex;
  align-items: center;
}

.psfaq-question-text {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Ikonka z lewej */
.psfaq-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e4e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.psfaq-icon-inner {
  font-size: 0.9rem;
}

/* Strzałka z prawej */
.psfaq-chevron {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* Odpowiedź – rozwijana część */
.psfaq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.psfaq-answer-inner {
  display: flex;
  border-radius: 0 0 4px 4px;
  background-color: #ffffff;
  border-left: 1px solid #e4e7eb;
  border-right: 1px solid #e4e7eb;
  border-bottom: 1px solid #e4e7eb;
}

/* Zielony pasek po lewej (jak na screenie) */
.psfaq-answer-bar {
  width: 4px;
  background-color: #22c55e;
  border-bottom-left-radius: 4px;
}

/* Treść odpowiedzi */
.psfaq-answer-content {
  padding: 0.9rem 1.3rem 1.1rem 1.1rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #333;
}

/* Hover / stan otwarty */
.psfaq-question:hover {
  background-color: #f9fafb;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.psfaq-item.is-open .psfaq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #e4e7eb;
  background-color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.psfaq-item.is-open .psfaq-chevron {
  transform: rotate(180deg);
}

/* Ikonka z lewej */
.psfaq-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e4e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.psfaq-icon i {
  font-size: 1.05rem;
}

/* Strzałka z prawej */
.psfaq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.psfaq-chevron i {
  font-size: 1.15rem;
}

/* Obrót strzałki gdy otwarte */
.psfaq-item.is-open .psfaq-chevron {
  transform: rotate(180deg);
}

