/* ==========================================================================
   FAQ Accordion Widget — faq-accordion-widget.css
   Place this file in your child theme at:
   /assets/css/faq-accordion-widget.css
   ========================================================================== */

/* List wrapper
   -------------------------------------------------------------------------- */
.faq-aw-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Individual item
   -------------------------------------------------------------------------- */
.faq-aw-item {
  border-bottom: 1px solid #e2e2e2;
}

.faq-aw-item:first-child {
  border-top: 1px solid #e2e2e2;
}

/* Trigger (question button)
   -------------------------------------------------------------------------- */
.faq-aw-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #111111;
  /* Typography is controlled via Elementor Group_Control_Typography */
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: normal;
}

.faq-aw-trigger:hover,
.faq-aw-trigger:focus,
.faq-aw-trigger:active {
  color: #444444;
  background-color: transparent !important;
  outline: none !important;
}

.faq-aw-trigger-text {
  flex: 1;
}

/* Icon
   -------------------------------------------------------------------------- */
.faq-aw-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-aw-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-aw-item.is-open .faq-aw-icon svg {
  transform: rotate(180deg);
}

/* Body (answer) — CSS grid expand/collapse trick
   -------------------------------------------------------------------------- */
.faq-aw-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-aw-item.is-open .faq-aw-body {
  grid-template-rows: 1fr;
}

.faq-aw-body-inner {
  overflow: hidden;
}

.faq-aw-body-content {
  padding-bottom: 26px;
  color: #6b6b6b;
  /* Typography is controlled via Elementor Group_Control_Typography */
  width: 100%;
  max-width: 99%;
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .faq-aw-trigger {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .faq-aw-body-content {
    padding-bottom: 20px;
  }
}
