/* Archives */
.faq-archive-container {
  margin: auto;
  padding: 40px 20px;
  font-family: "Segoe UI", sans-serif;
}
.faq-archive-header {
  text-align: center;
  margin-bottom: 30px;
}
.faq-archive-header h1 {
  font-size: 32px;
  color: #005f7f;
}
.faq-description {
  font-size: 16px;
  color: #555;
}
.faq-search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
#faq-search-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
}
.faq-suggestions {
  position: absolute;
  background: #fff;
  width: 100%;
  border: 1px solid #ccc;
  border-top: none;
  z-index: 100;
}
.faq-suggestion {
  padding: 8px 10px;
  cursor: pointer;
}
.faq-suggestion:hover {
  background: #e6f7ff;
}
.faq-suggestion.no-result {
  font-style: italic;
  color: #888;
}
.faq-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.faq-category-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.faq-category-title {
  font-size: 20px;
  color: #0073aa;
  margin-bottom: 10px;
}
.faq-category-list {
  list-style: none;
  padding: 0;
}
.faq-category-list li {
  margin-bottom: 8px;
}
.faq-category-list a {
  text-decoration: none;
  color: #333;
}
.faq-category-list a:hover {
  text-decoration: underline;
  color: #0073aa;
}
.faq-archive-pagination {
  text-align: center;
  margin-top: 30px;
}
#load-more-faq-cat {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}
#load-more-faq-cat:hover {
  background: #005177;
}

/* Single */
.faq-wrapper {
  display: flex;
  margin: 60px auto;
  padding: 20px;
  gap: 40px;
  flex-wrap: wrap;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.faq-sidebar {
  flex: 1;
  min-width: 250px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.faq-sidebar h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #0073aa;
}
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-list li {
  margin-bottom: 10px;
}
.faq-list a {
  color: #005f8d;
  text-decoration: none;
  font-weight: 500;
}
.faq-list a:hover {
  background: #c8d0d4ff;
  border-color: #0073aa;
  padding: 8px;
  text-decoration: none;
  color: #007cba;
}
.faq-main {
  flex: 2;
  min-width: 0;
}
.faq-main-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #005f7f;
}
.faq-desc {
  font-size: 16px;
  color: #444;
  margin-bottom: 30px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: #00aa00;
  color: #fff;
  font-size: 18px;
  padding: 15px 20px;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.faq-question:hover {
  background: #008000;
}
.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  background: #f9f9f9;
}
.faq-question[aria-expanded="true"] + .faq-answer {
  padding: 20px;
  max-height: 500px;
}
.faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #333;
}
.faq-link-highlight {
  background-color: #e6f7ff;
  color: #0073aa;
  padding: 2px 4px;
  border-radius: 3px;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .faq-wrapper {
    flex-direction: column;
  }
}
