/* FAQ Knowledge Center — white + blue ProxyGrove corporate system */

.faq-page {
  background: #ffffff;
  color: #111827;
}

.faq-breadcrumb {
  padding: 1.25rem 0 0;
}

.faq-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.faq-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #94a3b8;
}

.faq-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.faq-hero {
  padding: 2.25rem 0 2.5rem;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 75%);
}

.faq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.25rem;
  align-items: center;
}

.faq-hero-copy h1 {
  margin: 0.65rem 0 0.9rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
}

.faq-aeo {
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #2563eb;
  background: #eff6ff;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 40rem;
}

.faq-hero-copy .lede {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 38rem;
}

.faq-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 36rem;
  margin-bottom: 0.85rem;
}

.faq-search input[type="search"] {
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 0.9rem 5.5rem 0.9rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}

.faq-search input[type="search"]:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-color: #2563eb;
}

.faq-search-clear {
  position: absolute;
  right: 0.55rem;
  border: 0;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.faq-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.faq-topic-chip {
  border: 1px solid #dbeafe;
  background: #ffffff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.faq-topic-chip:hover,
.faq-topic-chip:focus-visible {
  border-color: #2563eb;
  color: #2563eb;
  outline: none;
}

.faq-hero-visual {
  position: relative;
}

.faq-hero-glow {
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 68%);
  pointer-events: none;
}

.faq-hero-visual img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

.faq-recommended {
  padding: 0.5rem 0 2.5rem;
}

.faq-section-head {
  margin-bottom: 1.25rem;
}

.faq-section-head h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  color: #111827;
}

.faq-section-head p {
  margin: 0;
  color: #64748b;
}

.faq-rec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.faq-rec-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-rec-card:hover,
.faq-rec-card:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  outline: none;
}

.faq-rec-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
}

.faq-rec-q {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

.faq-library {
  padding: 0 0 3rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 5.5rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fbff;
}

.faq-sidebar-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #111827;
}

.faq-sidebar-note {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: #64748b;
}

.faq-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.faq-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
}

.faq-cat-btn:hover,
.faq-cat-btn:focus-visible {
  background: #eff6ff;
  outline: none;
}

.faq-cat-btn.is-active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
}

.faq-cat-count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.faq-toolbar h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #111827;
}

.faq-visible-meta {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.faq-mobile-cat {
  display: none;
  width: 100%;
}

.faq-mobile-cat select {
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #ffffff;
}

.faq-empty {
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.faq-group {
  margin-bottom: 1.75rem;
}

.faq-group-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #1e3a8a;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.faq-item.is-open {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
}

.faq-item.is-hidden {
  display: none;
}

.faq-item-q {
  margin: 0;
  font-size: 1rem;
}

.faq-item-trigger {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-weight: 600;
  text-align: left;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.faq-item-trigger:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.faq-chevron {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.35rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(225deg);
  margin-top: 0.55rem;
}

.faq-item-panel {
  padding: 0 1rem 1rem;
}

.faq-item-a {
  margin: 0 0 0.85rem;
  color: #475569;
  line-height: 1.65;
}

.faq-item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.faq-item-links a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.faq-item-links a:hover,
.faq-item-links a:focus-visible {
  text-decoration: underline;
}

.faq-related {
  padding-top: 0.35rem;
  border-top: 1px solid #e2e8f0;
}

.faq-related-label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.faq-related ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
}

.faq-related a {
  color: #2563eb;
  text-decoration: none;
}

.faq-related a:hover,
.faq-related a:focus-visible {
  text-decoration: underline;
}

.faq-support {
  padding: 0 0 3.5rem;
}

.faq-support-panel {
  border-radius: 20px;
  padding: 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 55%, #ffffff 100%);
  border: 1px solid #dbeafe;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.08);
}

.faq-support-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  color: #111827;
}

.faq-support-panel p {
  margin: 0 0 1.25rem;
  color: #64748b;
  max-width: 42rem;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .faq-hero-grid,
  .faq-layout,
  .faq-rec-grid {
    grid-template-columns: 1fr;
  }

  .faq-hero-visual {
    order: -1;
    max-width: 28rem;
  }

  .faq-sidebar {
    position: static;
    display: none;
  }

  .faq-mobile-cat {
    display: block;
  }
}

@media (max-width: 640px) {
  .faq-support-panel {
    padding: 1.35rem;
  }

  .faq-support-panel .cta-row {
    display: flex;
    flex-direction: column;
  }

  .faq-support-panel .cta-row .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron,
  .faq-rec-card {
    transition: none;
  }
}
