/* View (detail page) */
.mb-view {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.mb-view-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.mb-view-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
}

.mb-view-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6b7280;
}

.mb-view-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mb-view-content {
  padding: 32px 24px;
  min-height: 300px;
  line-height: 1.7;
  color: #374151;
  font-size: 15px;
}

.mb-view-content img {
  max-width: 100%;
  height: auto;
}

/* Main QA Board - Accordion Style */
.mbqa-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
}

.mbqa-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 0 18px 0;
}

.mbqa-board-title {
  font-weight: 800;
  font-size: 22px;
}

.mbqa-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mbqa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e8eaf0;
  background: #fff;
  color: #303549;
  text-decoration: none;
  font-size: 13px;
}

.mbqa-btn.primary {
  background: #111827;
  color: #fff;
  border-color: rgba(0, 0, 0, .08);
}

.mbqa-search-wrap {
  margin: 0 0 18px 0;
}

.mbqa-search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mbqa-search-select {
  height: 48px;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  font-size: 13px;
  outline: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  min-width: 120px;
  max-width: 120px;
}

.mbqa-search-input {
  flex: 1;
  min-width: 200px;
  height: 48px;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  font-size: 13px;
  outline: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.mbqa-search-input:focus {
  border-color: #c7b9ff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .10);
  outline: 0;
}

.mbqa-search-btn {
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  background: #fff;
  color: #303549;
  cursor: pointer;
  font-size: 13px;
}

.mbqa-search-btn:hover {
  border-color: #d8dcf0;
  background: #fafbff;
}

.mbqa-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .2s;
}

.mbqa-item.active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.mbqa-question {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background .2s;
}

.mbqa-question:hover {
  background: #fafbff;
}

.mbqa-question-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mbqa-question-num {
  width: 60px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.mbqa-question-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.mbqa-question-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

.mbqa-question-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: transform .2s;
}

.mbqa-item.active .mbqa-question-icon {
  transform: rotate(180deg);
}

.mbqa-answer {
  display: none;
  padding: 0 20px 20px 92px;
  border-top: 1px solid #f1f5f9;
}

.mbqa-answer-content {
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  line-height: 1.7;
  color: #374151;
}

.mbqa-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

.mbqa-badge.new {
  background: #eff6ff;
  color: #1d4ed8;
}

.mbqa-badge.answered {
  background: #ecfdf5;
  color: #065f46;
}

.mbqa-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0 0 0;
}

.mbqa-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 13px;
}

.mbqa-page-link.active {
  background: #111827;
  color: #fff;
}

@media (max-width:768px) {
  .mbqa-wrap {
    padding: 20px 16px;
  }

  .mbqa-question {
    padding: 14px 16px;
  }

  .mbqa-answer {
    padding: 0 16px 16px 16px;
  }

  .mbqa-question-num {
    width: 50px;
    font-size: 12px;
  }

  .mbqa-question-title {
    font-size: 14px;
  }

  .mbqa-question-meta {
    display: none;
  }
}

/* Pills for category */
.mb-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px 0;}
.mb-pill{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;border:1px solid #e8eaf0;background:#fff;color:#303549;text-decoration:none;font-size:13px;}
.mb-pill:hover{background:#f6f7ff;border-color:#dfe3f5;}
.mb-pill.is-active{background:rgba(124,58,237,.10);border-color:rgba(124,58,237,.35);color:#5b21b6;}
