/* FAQ Page - inside .news-detail .text-content */

/* Search */
.faq-search {
  margin: 0 0 30px;
  position: relative;
  max-width: 500px;
}
.faq-search input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 1px solid #e6e8ee;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
  color: #333;
}
.faq-search input:focus { border-color: #409eff; }
.faq-search input::placeholder { color: #c0c4cc; }
.faq-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.35;
  pointer-events: none;
}

/* Category Title */
.faq-category-title {
  font-size: 18px;
  font-weight: bold;
  color: #111;
  margin: 30px 0 16px;
  padding-left: 10px;
  border-left: 3px solid #409eff;
  line-height: 1.4;
}
.faq-category-title:first-child { margin-top: 0; }

/* FAQ List */
.faq-list { padding: 0; margin: 0; list-style: none; }
.faq-item {
  border: 1px solid #e6e8ee;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
  background: #fff;
}
.faq-item:hover { border-color: #c0c4cc; }
.faq-item.active { border-color: #409eff; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  user-select: none;
}
.faq-question:hover { color: #1e6cff; }
.faq-question .q-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecf5ff;
  border-radius: 50%;
  color: #409eff;
  font-size: 14px;
  transition: transform 0.2s;
  margin-left: 12px;
  line-height: 1;
}
.faq-item.active .faq-question .q-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 18px;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 18px 16px;
}
.faq-answer p { margin: 0; }

/* No Result */
.faq-no-result {
  display: none;
  text-align: center;
  padding: 40px 0;
  color: #999;
  font-size: 14px;
}
.faq-no-result a { color: #409eff; }

/* CTA */
.faq-cta {
  text-align: center;
  margin-top: 50px;
  padding: 36px 20px;
  background: #f9fbff;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
}
.faq-cta h2 {
  font-size: 20px;
  color: #111;
  margin: 0 0 10px;
  font-weight: bold;
}
.faq-cta p {
  color: #666;
  margin: 0 0 20px;
  font-size: 14px;
}
.faq-cta .btn {
  display: inline-block;
  padding: 9px 32px;
  background: #409eff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s;
}
.faq-cta .btn:hover { background: #1e6cff; color: #fff; }

@media (max-width: 768px) {
  .faq-question { font-size: 14px; padding: 12px 14px; }
  .faq-answer { font-size: 14px; padding: 0 14px; }
  .faq-item.active .faq-answer { padding: 0 14px 12px; }
  .faq-category-title { font-size: 16px; }
}
