/* ── InvoiceGenie FAQ v1.0.5 ── */

.ig-faq-wrap {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
  align-items: flex-start;
}

/* ── Sidebar nav ── */
.ig-faq-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 100px;
}

.ig-faq-sidebar h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 12px;
}

.ig-faq-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Select hidden on desktop */
.ig-faq-nav-select-wrap {
  display: none;
}

.ig-faq-sidebar ul li {
  margin: 0;
}

.ig-faq-sidebar ul li a {
  display: block;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1.3;
}

.ig-faq-sidebar ul li a:hover,
.ig-faq-sidebar ul li a.ig-faq-active {
  color: #6c3ecc;
  background: rgba(108, 62, 204, 0.07);
  border-left-color: #6c3ecc;
}

/* ── Main content ── */
.ig-faq-main {
  flex: 1 1 0;
  min-width: 0;
}

.ig-faq-section {
  margin-bottom: 52px;
  scroll-margin-top: 110px;
}

.ig-faq-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #120d2b;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e0ff;
}

/* ── Accordion items ── */
.ig-faq-item {
  border: 1px solid #ece8f7;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.ig-faq-item:hover {
  box-shadow: 0 2px 12px rgba(108, 62, 204, 0.1);
}

.ig-faq-item.ig-open {
  box-shadow: 0 4px 18px rgba(108, 62, 204, 0.12);
}

.ig-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  gap: 12px;
  line-height: 1.4;
}

.ig-faq-q:hover {
  background: #faf8ff;
}

.ig-open .ig-faq-q {
  background: #faf8ff;
  color: #6c3ecc;
}

.ig-faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ece8f7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.15s;
}

.ig-open .ig-faq-chevron {
  transform: rotate(180deg);
  background: #6c3ecc;
  color: #fff;
}

.ig-open .ig-faq-chevron svg {
  stroke: #fff;
}

.ig-faq-a {
  display: none;
  padding: 0 20px 18px;
  background: #faf8ff;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}

.ig-faq-a.ig-open {
  display: block;
}

.ig-faq-a ul {
  margin: 8px 0 8px 18px;
  padding: 0;
}

.ig-faq-a ul li {
  margin-bottom: 4px;
}

.ig-faq-a strong {
  color: #120d2b;
}

.ig-faq-a a {
  color: #6c3ecc;
  text-decoration: none;
}

.ig-faq-a a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .ig-faq-wrap {
    flex-direction: column;
    gap: 20px;
    padding: 24px 16px 48px;
  }
  /* Hide entire Quick Navigation sidebar on mobile */
  .ig-faq-sidebar {
    display: none !important;
  }
  /* Show + style the dropdown (kept for future re-enable) */
  .ig-faq-nav-select-wrap {
    display: block;
    position: relative;
  }
  .ig-faq-nav-select-wrap::after {
    content: '';
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6c3ecc;
  }
  .ig-faq-nav-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 44px 12px 16px;
    border: 2px solid #ddd6f7;
    border-radius: 12px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 4px rgba(108,62,204,0.08);
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .ig-faq-nav-select:focus {
    border-color: #6c3ecc;
    box-shadow: 0 0 0 3px rgba(108,62,204,0.15);
  }
}
