/* ============================================================
   FAQs PAGE (faqs.css)
   Conigx — Surgical Instruments
============================================================ */

.faqs-main {
  padding-bottom: 72px;
}

.faqs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.faqs-layout--full {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

.faqs-head {
  margin-bottom: 28px;
}
.faqs-head .sec-title {
  margin-bottom: 10px;
}

/* Toolbar */
.faqs-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.faqs-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
}
.faqs-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, .12);
}
.faqs-search i {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}
.faqs-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-dark);
  font-family: inherit;
  min-width: 0;
}
.faqs-search-input::placeholder {
  color: var(--text-muted);
}
.faqs-search-input[type="search"]::-webkit-search-cancel-button,
.faqs-search-input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.faqs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.faqs-filter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--white);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--ease);
}
.faqs-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.faqs-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Empty state */
.faqs-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 24px;
}
.faqs-empty i {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.faqs-empty p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* FAQ groups */
.faqs-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faqs-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faqs-group.is-hidden {
  display: none;
}
.faqs-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  background: var(--off-white);
}
.faqs-group-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: rgba(21, 101, 192, .08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.faqs-group-head h3 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.faqs-group-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: rgba(21, 101, 192, .1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Accordion */
.faqs-accordion {
  padding: 8px 0;
}
.faqs-item {
  border-bottom: 1px solid var(--border-light);
}
.faqs-item:last-child {
  border-bottom: none;
}
.faqs-item.is-hidden {
  display: none;
}
.faqs-item-head {
  margin: 0;
}
.faqs-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: var(--ease);
}
.faqs-item-btn span {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.55;
}
.faqs-item-btn:hover span {
  color: var(--accent);
}
.faqs-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--accent);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--ease);
}
.faqs-item-btn[aria-expanded="true"] .faqs-item-icon {
  background: var(--accent);
  color: var(--white);
  transform: rotate(45deg);
}
.faqs-item-panel {
  overflow: hidden;
}
.faqs-item-body {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
}
.faqs-item-body p {
  margin: 0 0 12px;
}
.faqs-item-body p:last-child {
  margin-bottom: 0;
}

/* Sidebar */
.faqs-sidebar {
  position: sticky;
  top: calc(var(--site-top) + 20px);
}
.faqs-sidebar-card {
  background: linear-gradient(145deg, var(--primary) 0%, #0b2545 55%, #134074 100%);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.faqs-sidebar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #90caf9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.faqs-sidebar-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
}
.faqs-sidebar-card > p {
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
  margin: 0 0 20px;
}
.faqs-sidebar-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faqs-sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}
.faqs-sidebar-list li i {
  color: #90caf9;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.faqs-sidebar-list a {
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  transition: var(--ease);
}
.faqs-sidebar-list a:hover {
  color: var(--white);
}
.faqs-sidebar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--r);
  background: var(--white);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--ease);
}
.faqs-sidebar-btn:hover {
  background: #eaf0ff;
  color: var(--primary);
  transform: translateY(-1px);
}

/* CTA */
.faqs-cta {
  padding: 56px 0 72px;
}
.faqs-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 44px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #060e1a 0%, #0b2545 50%, #071525 100%);
  position: relative;
  overflow: hidden;
}
.faqs-cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(21, 101, 192, .18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 100% 80%, rgba(0, 172, 193, .1) 0%, transparent 50%);
  pointer-events: none;
}
.faqs-cta-content,
.faqs-cta-actions {
  position: relative;
  z-index: 1;
}
.faqs-cta-content {
  flex: 1 1 320px;
  max-width: 560px;
}
.faqs-cta-content h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.25;
}
.faqs-cta-content p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .68);
  line-height: 1.7;
}
.faqs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Heading overrides */
.conigx-faqs-page .faqs-head .sec-title,
.conigx-faqs-page .faqs-group-head h3,
.conigx-faqs-page .faqs-sidebar-card h3,
.conigx-faqs-page .faqs-cta-content h2 {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .faqs-layout {
    grid-template-columns: 1fr;
  }
  .faqs-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .faqs-main {
    padding-bottom: 56px;
  }
  .faqs-group-head,
  .faqs-item-btn {
    padding-left: 16px;
    padding-right: 16px;
  }
  .faqs-item-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .faqs-cta-panel {
    padding: 28px 22px;
    flex-direction: column;
    align-items: stretch;
  }
  .faqs-cta-actions {
    flex-direction: column;
  }
  .faqs-cta-actions .btn-hero-primary,
  .faqs-cta-actions .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }
  .faqs-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .faqs-filters::-webkit-scrollbar {
    display: none;
  }
  .faqs-filter {
    flex-shrink: 0;
  }
}
