/* Static FAQ/SEO beautification pass 2 */

/* Long FAQ titles should remain prominent without overwhelming the page. */
.faq-seo-page h1 {
  max-width: 900px !important;
  font-size: clamp(1.9rem, 2.65vw, 2.65rem) !important;
  line-height: 1.1 !important;
}

.faq-answer {
  max-width: 860px !important;
}

/* Modern FAQ library index */
.faq-library-page {
  display: grid;
  gap: 22px;
}

.faq-library-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 32px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 20%, rgba(37,99,235,.12), transparent 22rem),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,249,255,.96));
  box-shadow: 0 18px 46px rgba(15,23,42,.065);
}

.faq-library-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg,#2563eb,#06b6d4,#f97316);
}

.faq-library-hero h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -.035em;
}

.faq-library-hero .lead {
  margin: 0;
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.faq-library-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.faq-library-stats span {
  padding: 6px 10px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #475569;
  font-size: .82rem;
  font-weight: 650;
}

.faq-library-tools {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

.faq-library-search {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
}

.faq-library-search input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  outline: none;
}

.faq-library-search input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.faq-library-search button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37,99,235,.22);
}

.faq-library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-filter-chip {
  padding: 7px 11px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}

.faq-filter-chip:hover,
.faq-filter-chip.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.faq-library-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: #64748b;
  font-size: .86rem;
}

.faq-library-groups {
  display: grid;
  gap: 18px;
}

.faq-library-group {
  padding: 22px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 20px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 12px 32px rgba(15,23,42,.05);
}

.faq-library-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.faq-library-group-header h2 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}

.faq-library-group-header span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: .76rem;
  font-weight: 650;
}

.faq-library-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.faq-library-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 14px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  color: #172033;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.faq-library-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,.32);
  box-shadow: 0 10px 24px rgba(15,23,42,.07);
}

.faq-library-card strong {
  color: #172033;
  line-height: 1.4;
  font-size: .92rem;
}

.faq-library-card small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #64748b;
  font-size: .74rem;
}

.faq-library-card small span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

.faq-library-empty {
  display: none;
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: #64748b;
  text-align: center;
}

.faq-library-empty.visible { display: block; }

@media(max-width:980px){
  .faq-library-grid{grid-template-columns:1fr}
}

@media(max-width:640px){
  .faq-library-hero{padding:24px 20px}
  .faq-library-tools{padding:14px}
  .faq-library-search{grid-template-columns:1fr}
  .faq-library-group{padding:17px}
  .faq-library-summary{align-items:flex-start;flex-direction:column}
}
