/* OTW RHI FAQ – Front-end accordion
   All button rules are fully reset and double-scoped so Elementor cannot
   bleed in. Elementor style-panel values override naturally (its generated
   CSS comes later in the cascade or uses {{WRAPPER}} which adds specificity). */

.otw-rhi-faq-block {
  margin: 1.5em 0;
}

.otw-rhi-faq-block .otw-rhi-faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.otw-rhi-faq-block .otw-rhi-faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}

/* ── Full button reset ─────────────────────────────────────────────────────
   Strips every property Elementor's global stylesheet may set on <button>.  */
.otw-rhi-faq-block .otw-rhi-faq-btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  background-color: transparent;
  background-image: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  font-style: normal;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  padding: 14px 0;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  vertical-align: baseline;
  width: 100%;
  gap: 12px;
  transition: none;
}

.otw-rhi-faq-block .otw-rhi-faq-btn:focus {
  outline: none;
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: inherit;
}

.otw-rhi-faq-block .otw-rhi-faq-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ── Chevron icon ─────────────────────────────────────────────────────────── */
.otw-rhi-faq-block .otw-rhi-faq-icon {
  flex-shrink: 0;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.otw-rhi-faq-block .otw-rhi-faq-btn[aria-expanded="true"] .otw-rhi-faq-icon {
  transform: rotate(-180deg);
}

/* ── Answer panel ─────────────────────────────────────────────────────────── */
.otw-rhi-faq-block .otw-rhi-faq-panel[hidden] {
  display: none;
}

.otw-rhi-faq-block .otw-rhi-faq-panel {
  padding-bottom: 14px;
  line-height: 1.65;
}

.otw-rhi-faq-block .otw-rhi-faq-panel a {
  color: currentColor;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .otw-rhi-faq-block .otw-rhi-faq-icon {
    transition-duration: 1ms;
  }
}
