/* =============================================================================
   FAQ Accordion — [faq_accordion] shortcode
   ============================================================================= */

.faq-wrap {
  width: 100%;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  border-top: 1px solid rgba(116, 140, 164, 0.35);
}

.faq-item {
  border-bottom: 1px solid rgba(116, 140, 164, 0.35);
}

/* ---- Row button ---- */

.faq-top {
  display: grid;
  grid-template-columns: 60px 1fr 52px;
  align-items: start;
  gap: 0 24px;
  width: 100%;
  padding: 30px 0;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-align: left;
  cursor: pointer;
  color: inherit !important;
  font-family: inherit;
  border-radius: 0 !important;
}

.faq-top:hover,
.faq-top:active {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  outline: none;
}

.faq-top:focus,
.faq-top:focus-visible {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  outline: none;
}

.faq-item:not(.is-open):hover .faq-question {
  color: rgba(12, 36, 74, 0.6);
  transition: color 0.25s ease;
}

.faq-item:not(.is-open):hover .faq-toggle {
  background-color: rgba(12, 36, 74, 0.06);
  border-color: rgba(12, 36, 74, 0.5);
}

.faq-num {
  font-style: italic;
  font-size: 0.7rem;
  color: rgba(12, 36, 74, 0.4);
  padding-top: 8px;
  line-height: 1;
  font-weight: 400;
}

.faq-question {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 300;
  line-height: 1.25;
  color: #0C244A;
  font-family: inherit;
  transition: color 0.25s ease;
}

/* ---- Toggle button ---- */

.faq-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(12, 36, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  justify-self: end;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  color: #0C244A;
}

.faq-item.is-open .faq-toggle {
  background-color: #0C244A;
  border-color: #0C244A;
  color: #fff;
}

.faq-icon-minus { display: none; }
.faq-item.is-open .faq-icon-plus  { display: none; }
.faq-item.is-open .faq-icon-minus { display: block; }

/* ---- Answer panel ---- */

.faq-body {
  height: 0;
  overflow: hidden;
  transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
  padding-left: calc(60px + 24px);
  padding-right: calc(52px + 24px);
  padding-bottom: 30px;
  color: rgba(12, 36, 74, 0.75);
  line-height: 1.7;
  font-size: 1rem;
}

.faq-answer p {
  margin-top: 0;
  margin-bottom: 1em;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---- Service variant — smaller text ---- */

.faq-wrap--service .faq-question {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.faq-wrap--service .faq-answer {
  font-size: 0.9rem;
}

.faq-wrap--service .faq-toggle {
  width: 36px;
  height: 36px;
}

.faq-wrap--service .faq-top {
  padding: 22px 0;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .faq-top {
    grid-template-columns: 36px 1fr 44px;
    gap: 0 14px;
    padding: 22px 0;
  }

  .faq-num {
    padding-top: 5px;
    font-size: 0.65rem;
  }

  .faq-question {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
  }

  .faq-answer {
    padding-left: calc(36px + 14px);
    padding-right: 0;
    padding-bottom: 22px;
  }
}
