/* ==========================================================================
   NETSYNQ UNIFIED FAQ DESIGN SYSTEM (faq.css)
   Split 2-Column Layout | Dual-Theme (Light/Dark) | Zero Jitter | Sleek & Compact
   ========================================================================== */

/* 1. Section Container & Layout */
.netsynq-faq-section {
  position: relative;
  padding: 65px 0 75px 0;
  overflow: hidden;
}

.netsynq-faq-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

/* 2. Left Sticky Sidebar / Title Block */
.netsynq-faq-sidebar {
  position: sticky;
  top: 95px;
  padding-right: 15px;
}

@media (max-width: 991px) {
  .netsynq-faq-sidebar {
    position: static;
    padding-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }
}

.netsynq-faq-title {
  font-family: var(--font-heading), 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.netsynq-faq-subtitle {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

@media (max-width: 991px) {
  .netsynq-faq-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 540px;
  }
}

/* 3. Left Sidebar Need Help Block (Clean, Borderless & Box-Free) */
.netsynq-faq-help-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  margin-top: 24px;
}

[data-theme="light"] .netsynq-faq-help-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.netsynq-faq-help-card:hover {
  border-color: transparent;
  box-shadow: none;
}

[data-theme="light"] .netsynq-faq-help-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.netsynq-faq-help-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 242, 255, 0.12);
  border: 1px solid rgba(0, 242, 255, 0.25);
  color: var(--neon-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

[data-theme="light"] .netsynq-faq-help-icon {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

.netsynq-faq-help-heading {
  font-family: var(--font-heading), 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.netsynq-faq-help-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0 0 6px 0;
}

.netsynq-faq-help-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme="light"] .netsynq-faq-help-link {
  color: #0284c7;
}

.netsynq-faq-help-link i {
  transition: transform 0.2s ease;
}

.netsynq-faq-help-link:hover i {
  transform: translateX(3px);
}

/* 4. Right Column Accordion Wrapper & Items (Streamlined, Compact & Flush) */
.netsynq-faq-accordion,
.netsynq-faq-wrapper {
  width: 100%;
}

.netsynq-faq-item {
  position: relative;
  background: var(--glass-surface);
  border: 1.5px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.netsynq-faq-item:hover {
  border-color: rgba(0, 242, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 242, 255, 0.08);
}

[data-theme="light"] .netsynq-faq-item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .netsynq-faq-item:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.07);
}

/* Active Open Item State */
.netsynq-faq-item.is-open {
  border-color: var(--neon-primary) !important;
  background: var(--glass-surface-strong, var(--glass-surface)) !important;
  box-shadow: 0 6px 22px rgba(0, 242, 255, 0.12) !important;
}

[data-theme="light"] .netsynq-faq-item.is-open {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.09) !important;
}

/* 5. Question Header Button */
.netsynq-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  outline: none;
  transition: background-color 0.2s ease;
}

.netsynq-faq-header:focus-visible {
  outline: 2px solid var(--neon-primary);
  outline-offset: -2px;
}

/* Question Text - Flush Left, High Contrast */
.netsynq-faq-question-text {
  font-family: var(--font-heading), 'Space Grotesk', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
  flex-grow: 1;
  transition: color 0.2s ease;
}

.netsynq-faq-item.is-open .netsynq-faq-question-text {
  color: var(--neon-primary);
}

[data-theme="light"] .netsynq-faq-item.is-open .netsynq-faq-question-text {
  color: #0284c7;
}

/* Animated Plus Toggle Icon (Turns into 'x' / close on open) */
.netsynq-faq-icon-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.2);
  color: var(--neon-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease;
  flex-shrink: 0;
}

[data-theme="light"] .netsynq-faq-icon-toggle {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
  color: #0284c7;
}

.netsynq-faq-item.is-open .netsynq-faq-icon-toggle {
  transform: rotate(45deg);
  background: var(--neon-primary);
  border-color: var(--neon-primary);
  color: #050b14;
  box-shadow: 0 0 8px rgba(0, 242, 255, 0.35);
}

[data-theme="light"] .netsynq-faq-item.is-open .netsynq-faq-icon-toggle {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.3);
}

/* 6. Answer Body - Aligned 100% Flush with Question Text */
.netsynq-faq-collapse {
  transition: height 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.netsynq-faq-body {
  padding: 0 18px 13px 18px;
  color: var(--text-dim);
  font-size: 0.87rem;
  line-height: 1.55;
}

.netsynq-faq-body-inner {
  border-left: none !important;
  padding-left: 0 !important;
}

.netsynq-faq-body code {
  color: var(--neon-primary);
  background: rgba(0, 242, 255, 0.1);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.88em;
}

[data-theme="light"] .netsynq-faq-body code {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

/* 7. Mobile Responsive Refinements */
@media (max-width: 767px) {
  .netsynq-faq-section {
    padding: 50px 0 60px 0;
  }
  .netsynq-faq-header {
    padding: 11px 14px;
    gap: 10px;
  }
  .netsynq-faq-question-text {
    font-size: 0.88rem;
  }
  .netsynq-faq-icon-toggle {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  .netsynq-faq-body {
    padding: 0 14px 12px 14px;
    font-size: 0.84rem;
  }
}
