/* ==========================================================================
   Dragon ERP - Q&A / Knowledge Base Stylesheet (PHP Version)
   ========================================================================== */

.qa-hero {
  background: radial-gradient(ellipse at 20% 20%, #1e3a8a 0%, transparent 60%), #0b1120;
  color: white;
  padding: 70px 0 50px;
  text-align: center;
}

.qa-hero h1 {
  font-size: clamp(30px, 4vw, 50px);
  margin: 15px 0 10px;
  line-height: 1.3;
}

.qa-hero p {
  color: #94a3b8;
  font-size: 17px;
  max-width: 680px;
  margin: 0 auto 30px;
}

.qa-search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.qa-search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #1e293b;
  color: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.qa-search-input:focus {
  outline: 2px solid #38bdf8;
  background: #0f172a;
}

.qa-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 20px;
  pointer-events: none;
}

/* Module Grid */
.qa-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.qa-module-card {
  background: white;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.qa-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: #2563eb;
}

.qa-module-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: #eff6ff;
  color: #2563eb;
}

.qa-module-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  color: #0f172a;
}

.qa-module-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

.qa-module-link {
  color: #2563eb;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Accordion FAQ items */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

.qa-item {
  background: white;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.qa-item[open] {
  border-color: #93c5fd;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.05);
}

.qa-item summary {
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  background: #ffffff;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "＋";
  font-size: 20px;
  color: #2563eb;
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-inline-start: 12px;
}

.qa-item[open] summary::after {
  content: "−";
  color: #dc2626;
}

.qa-answer {
  padding: 0 24px 22px;
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
  border-top: 1px solid #f1f5f9;
  background: #fcfdfe;
}

.qa-answer p {
  margin: 16px 0 0;
}

.qa-answer ul, .qa-answer ol {
  margin: 12px 0 0;
  padding-inline-start: 22px;
}

.qa-answer li {
  margin-bottom: 8px;
}

/* Breadcrumbs */
.qa-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 25px;
}

.qa-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.qa-breadcrumb a:hover {
  text-decoration: underline;
}

/* Sub-nav pills */
.qa-nav-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.qa-nav-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.qa-nav-pill:hover, .qa-nav-pill.active {
  background: #2563eb;
  color: white;
}

/* Badge highlight */
.qa-highlight-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

@media(max-width: 768px) {
  .qa-hero {
    padding: 40px 0 30px;
  }
  .qa-item summary {
    font-size: 15px;
    padding: 16px;
  }
  .qa-answer {
    padding: 0 16px 16px;
    font-size: 14px;
  }
}
