.term-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.term-hero h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.term-hero h1 svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: #1d4ed8;
}

.term-hero p {
  margin: 0;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.55;
}

.term-dict {
  display: grid;
  gap: 16px;
}

.term-filter-card {
  background: #fff;
  border: 1px solid #e5e9fb;
  border-radius: 12px;
  padding: 16px 18px 18px;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.04);
}

.term-cho {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.term-cho button {
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e9fb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.term-cho button:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.term-cho button.is-on {
  border-color: transparent;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
}

.term-search {
  display: flex;
  gap: 8px;
}

.term-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1px solid #e5e9fb;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
}

.term-search input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}

.term-search .btn {
  height: 42px;
  padding: 0 18px;
  background: #2563eb;
  border-color: #2563eb;
}

.term-count {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.term-list {
  display: grid;
  gap: 12px;
}

.term-item {
  background: #fff;
  border: 1px solid #e5e9fb;
  border-radius: 12px;
  overflow: hidden;
}

.term-item:hover {
  border-color: #bfdbfe;
}

.term-item[open] {
  border-color: #93c5fd;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.06);
}

.term-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
}

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

.term-item summary strong {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.term-item summary span {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.45;
}

.term-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: auto;
  flex-shrink: 0;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.term-item[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.term-body {
  padding: 0 18px 18px;
  border-top: 1px solid #eef2f7;
}

.term-body dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.term-body dt {
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 2px;
}

.term-body dd {
  margin: 0;
  font-size: 14px;
  color: #111827;
  line-height: 1.6;
}

.term-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.term-related span {
  font-weight: 800;
  color: #374151;
}

.term-related button {
  border: 0;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.term-related button:hover {
  background: #dbeafe;
}

.term-dict .board-pager {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.term-dict .board-pager button {
  min-width: 36px;
  height: 36px;
  border: 1px solid #e5e9fb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.term-dict .board-pager button.is-on {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.faq-dict .term-item summary {
  align-items: flex-start;
}

.faq-dict .term-item summary strong {
  flex: 0 1 38%;
  min-width: 200px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .term-hero h1 {
    font-size: 26px;
  }

  .term-item summary {
    flex-wrap: wrap;
  }

  .term-item summary span {
    flex-basis: 100%;
    order: 3;
  }

  .faq-dict .term-item summary strong {
    flex: 1 1 auto;
    min-width: 0;
  }

  .term-search {
    flex-direction: column;
  }
}
