/* FAQ page — xshirad-dasmuli-kitxvebi.php */

.faq-page-wrapper {
  position: relative;
  background: #f8f9fa;
  min-height: calc(100vh - 63px);
  flex: 1;
  width: 100%;
}

.faq-page-dots-bg {
  position: fixed;
  top: 63px;
  left: 0;
  width: 100%;
  height: calc(100vh - 63px);
  z-index: 0;
  pointer-events: none;
}

.faq-page-main {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  border-left: 1px solid #e9ecef;
  border-right: 1px solid #e9ecef;
}

.faq-page-article {
  background: #fff;
  min-height: calc(100vh - 63px);
  padding: 28px 20px 56px;
}

.faq-page-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.faq-page-hero {
  text-align: left;
  padding: 8px 0 28px;
  margin-bottom: 0;
  border-bottom: none;
}

.faq-page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1c3146;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.faq-page-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #1c3146;
  line-height: 1.3;
  margin: 0 0 14px;
}

.faq-page-intro {
  max-width: none;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.faq-page-intro a {
  color: #1c3146;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sections column */
.faq-sections {
  min-width: 0;
}

.faq-sections-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

.faq-sections-meta strong {
  font-weight: 700;
  color: #1c3146;
}

.faq-sections-meta-sep {
  color: #cbd5e1;
  user-select: none;
}

/* Layout: sidebar + content */
.faq-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid #e9ecef;
}

@media (min-width: 960px) {
  .faq-page-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
  }
}

/* TOC sidebar */
.faq-toc {
  background: #f8fafc;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 18px 16px;
}

@media (min-width: 960px) {
  .faq-toc {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 20px 16px;
  }

  .faq-toc::-webkit-scrollbar {
    width: 4px;
  }

  .faq-toc::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
}

.faq-toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.faq-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.faq-toc-list a::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.15s ease;
}

.faq-toc-list a:hover,
.faq-toc-list a:focus-visible {
  background: #fff;
  color: #1c3146;
}

.faq-toc-list a:hover::before,
.faq-toc-list a:focus-visible::before {
  background: #1c3146;
}

/* Sections */
.faq-section {
  margin-bottom: 36px;
  scroll-margin-top: 88px;
}

.faq-section:last-child {
  margin-bottom: 0;
}

.faq-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1c3146;
}

.faq-section-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #1c3146;
  margin: 0;
  line-height: 1.35;
}

.faq-section-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Accordion */
.faq-accordion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-accordion-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion-item:hover {
  border-color: #cbd5e1;
}

.faq-accordion-item.is-open {
  border-color: #1c3146;
  box-shadow: 0 4px 16px rgb(28 49 70 / 0.08);
}

.faq-accordion-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-accordion-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1c3146;
  cursor: pointer;
  line-height: 1.5;
  transition: background 0.15s ease;
}

.faq-accordion-trigger:hover {
  background: #f8fafc;
}

.faq-accordion-item.is-open .faq-accordion-trigger {
  background: #f8fafc;
  padding-bottom: 12px;
}

.faq-accordion-trigger:focus-visible {
  outline: 2px solid #1c3146;
  outline-offset: -2px;
}

.faq-accordion-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 0;
  background: #f1f5f9;
  border-radius: 8px;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-accordion-item.is-open .faq-accordion-icon {
  background: #1c3146;
}

.faq-accordion-icon::before,
.faq-accordion-icon::after {
  content: "";
  position: absolute;
  background: #64748b;
  border-radius: 1px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-accordion-item.is-open .faq-accordion-icon::before,
.faq-accordion-item.is-open .faq-accordion-icon::after {
  background: #fff;
}

.faq-accordion-icon::before {
  width: 12px;
  height: 2px;
}

.faq-accordion-icon::after {
  width: 2px;
  height: 12px;
}

.faq-accordion-trigger[aria-expanded="true"] .faq-accordion-icon::after {
  transform: scaleY(0);
}

.faq-accordion-panel {
  overflow: hidden;
}

.faq-accordion-panel[hidden] {
  display: none;
}

.faq-accordion-answer {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin: 0 18px 18px;
  padding-left: 0;
  padding-right: 0;
}

.faq-accordion-answer a {
  color: #1c3146;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-accordion-answer a:hover {
  color: #0f172a;
}

/* Quick links (top) */
.faq-page-cta {
  margin-bottom: 28px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-align: left;
}

.faq-page-cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c3146;
  margin: 0 0 8px;
}

.faq-page-cta-text {
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
  margin: 0 0 16px;
}

.faq-page-cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.faq-page-cta-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1c3146;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-page-cta-link:hover {
  border-color: #1c3146;
  box-shadow: 0 2px 8px rgb(28 49 70 / 0.08);
}

.faq-page-cta-link--primary {
  background: #1c3146;
  border-color: #1c3146;
  color: #fff;
}

.faq-page-cta-link--primary:hover {
  background: #0f2235;
  border-color: #0f2235;
  color: #fff;
}

@media (max-width: 599px) {
  .faq-page-article {
    padding: 20px 14px 40px;
  }

  .faq-accordion-trigger {
    padding: 14px;
    font-size: 0.9rem;
  }

  .faq-accordion-answer {
    margin: 0 14px 14px;
    font-size: 14px;
  }
}
