/* Question system pages */

.ls-qa-notice {
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.ls-qa-notice-success {
  background: #dff3e4;
  border: 1px solid #bee8c7;
  color: #1f6b35;
}

.ls-qa-notice-error {
  background: #fde7ea;
  border: 1px solid #f5c2cb;
  color: #932532;
}

.ls-qa-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
  max-width: 1140px;
  margin: 18px auto 30px;
}

.ls-qa-card {
  background-color: #fff;
  margin-bottom: 15px;
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--ls-shadow);
  border: 1px solid #eaeaea;
}

.ls-qa-card-title {
  margin: 0 0 12px;
  font-size: 26px;
}
.ls-qa-card-topic {
  font-weight: 700;
  padding: 8px 5px;
  font-size: 16px;
  font-family: "Inter" !important;
  display: flex;
  gap: 5px;
}
.ls-qa-topics .ls-qa-card-title,
.ls-qa-ranking .ls-qa-card-title {
  font-size: 28px;
  line-height: 1.2;
}

.ls-qa-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.ls-qa-topic-list-wrap {
  --ls-topic-collapsed-height: 250px;
  position: relative;
  overflow: hidden;
  transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
}

.ls-qa-topic-list-wrap.is-collapsed {
  max-height: var(--ls-topic-collapsed-height);
}

.ls-qa-topic-list-wrap.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.ls-qa-topic-list li + li {
  margin-top: 3px;
}

.ls-qa-topic-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: #111;
  padding: 8px;
  border-radius: 8px;
  align-items: center;
  border: 1px solid #eaeaea;
  font-size: 14px;
  margin-block: 8px;
}
.ls-qa-topic-list a.is-active {
  background: #cae0ff;
  color: #0b61d8;
}

.ls-qa-topic-icon {
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  color: #555;
}

.ls-qa-topic-name {
  flex: 1;
}

.ls-qa-topic-count {
  color: #0b61d8;
  font-weight: 500;
  font-size: 14px;
  padding-inline: 8px;
  aspect-ratio: 1;
  border-radius: 4px;
}

.ls-qa-topic-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ls-qa-topic-toggle i {
  font-size: 14px;
}

.ls-qa-direct-consult-box {
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
  border-radius: 12px;
  padding: 16px 14px;
  background: linear-gradient(135deg, var(--brand-color) 0%, var(--dark-brand-color, var(--brand-color)) 100%);
}

.ls-qa-direct-consult-box h6 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-family: Inter !important;
  line-height: 1.3;
}

.ls-qa-direct-consult-box p {
  margin: 0 0 12px;
  color: #f6f5f5;
  font-size: 13px;
  line-height: 1.5;
}

.ls-qa-direct-consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border-radius: 999px;
  color: var(--brand-color);
  background: #fff;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
}

.ls-qa-direct-consult-btn:hover {
  color: var(--dark-brand-color, var(--brand-color));
}

.ls-qa-main {
  min-width: 0;
}

.ls-qa-heading {
  font-size: 28px;
  color: #555;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 1px solid #f5f6fa;
  padding-bottom: 16px;
}

.ls-qa-heading span {
  font-size: 16px;
  font-weight: 400;
}

.ls-qa-question-list {
  display: flex;
  flex-direction: column;
}

.ls-qa-question-item {
  border-bottom: 1px solid #f5f6fa;
  padding: 16px 0;
}

.ls-qa-question-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}

.ls-qa-question-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.ls-qa-question-author div {
  display: flex;
  flex-direction: column;
}

.ls-qa-question-author span {
  color: #8b8b8b;
  font-size: 13px;
}

.ls-qa-question-item h2 a {
  font-size: 18px;
  line-height: 1.35;
}

.ls-qa-question-item h2 a {
  color: #000;
  text-decoration: none;
}

.ls-qa-question-item p {
  padding-top: 6px;
  color: #454545;
  font-size: 14px;
  line-height: 1.55;
}

.ls-qa-feed-main {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.ls-qa-feed-list {
  gap: 16px;
}

.ls-qa-feed-body {
  position: relative;
  transition:
    opacity 0.25s ease,
    filter 0.25s ease,
    transform 0.25s ease;
}

.ls-qa-feed-main.is-loading .ls-qa-feed-body {
  opacity: 0.35;
  filter: blur(1.5px);
  transform: translateY(4px);
  pointer-events: none;
}

.ls-qa-feed-main.is-loading::after {
  content: "";
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-top-color: var(--brand-color);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);
  animation: lsQaSpin 0.8s linear infinite;
  z-index: 4;
}

.ls-qa-feed-card {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ls-qa-create-card-main {
  margin-bottom: 20px;
}

.ls-qa-create-card-main hr {
  margin: 15px 0 10px;
  border: 0;
  border-top: 1px solid #e8ebf0;
}

.create-post {
  display: flex;
  align-items: center;
  gap: 14px;
}

.post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.create-post-input {
  flex: 1;
  min-width: 0;
  background-color: #f0f2f5;
  border-radius: 20px;
  padding: 10px 15px;
  color: #65676b;
  cursor: pointer;
  transition: background-color 0.2s;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 0;
}

.ls-qa-create-card-main .action-btn {
  width: 100% !important;
}

.post-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.post-header > img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.post-time {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.ls-qa-meta-sep {
  margin: 0 4px;
}

.ls-qa-topic-link {
  color: var(--brand-color);
  font-weight: 700;
  text-decoration: none;
}

.post-content {
  margin-top: 16px;
}

.ls-qa-feed-title-link {
  text-decoration: none;
}

.ls-qa-feed-title {
  margin: 0 0 4px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  font-family: "Inter", sans-serif !important;
}

.ls-qa-feed-excerpt {
  color: #101828;
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ls-qa-read-more {
  display: inline-block;
  margin-top: 10px;
  color: #98a2b3;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.ls-qa-feed-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8ebf0;
  color: #667085;
  font-size: 15px;
}

.ls-qa-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ls-qa-stat-item i {
  color: var(--brand-color);
}

.ls-qa-stat-link {
  color: inherit;
  text-decoration: none;
}

.post-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.action-btn:hover,
.action-btn:focus {
  background: #f8f9fb;
  color: var(--dark-brand-color);
}

.action-btn.is-liked,
.action-btn.text-primary {
  color: var(--brand-color);
}

.action-btn.is-liked i {
  color: var(--brand-color);
}

.ls-qa-share-wrap {
  position: relative;
}

.ls-qa-share-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
  z-index: 30;
}

.ls-qa-share-wrap.is-open .ls-qa-share-menu {
  display: inline-flex;
}

.ls-qa-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff !important;
  border: 0;
  text-decoration: none;
  font-size: 18px;
  cursor: pointer;
}

.ls-qa-share-icon.is-facebook {
  background: #1877f2;
}
.ls-qa-share-icon.is-twitter {
  background: #1da1f2;
}
.ls-qa-share-icon.is-linkedin {
  background: #0077b5;
}
.ls-qa-share-icon.is-whatsapp {
  background: #25d366;
}
.ls-qa-share-icon.is-telegram {
  background: #229ed9;
}
.ls-qa-share-icon.is-copy {
  background: #8b8b8b;
}

.ls-qa-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.ls-qa-pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ls-qa-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ls-qa-pagination .page-numbers:hover,
.ls-qa-pagination .page-numbers:focus {
  border-color: var(--brand-color);
  color: var(--brand-color);
}

.ls-qa-pagination .page-numbers.current {
  background: var(--brand-color);
  border-color: var(--brand-color);
  color: #fff;
}

.ls-qa-login-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.56);
  z-index: 9999;
}

.ls-qa-login-modal.is-open {
  display: flex;
}

.ls-qa-login-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
}

.ls-qa-login-box .login-logo span {
  display: block;
  color: #667085;
  text-align: center;
  font-size: 15px;
  padding-bottom: 0;
}

.ls-qa-login-box .login-logo h2 {
  margin: 8px 0;
  text-align: center;
  color: #101828;
  font-size: 26px;
  font-weight: 700;
}

.ls-qa-login-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #344054;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.ls-qa-login-links {
  padding-top: 8px;
  margin: 0;
}

body.ls-modal-open {
  overflow: hidden;
}

@keyframes lsQaSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.right-head {
  font-weight: 700;
  border-bottom: 1px solid #dedede;
  padding: 0 0 10px;
  margin-bottom: 5px;
}

.right-head > svg {
  margin-right: 15px;
}

.ls-qa-single-main {
  min-width: 0;
}

.ls-qa-question-box {
  padding: 18px;
}

.ls-qa-question-head {
  margin-bottom: 10px;
}

.ls-qa-single-title {
  margin: 0 0 12px;
  font-size: 15px !important;
  line-height: 1.32;
  color: #111;
}

.ls-qa-single-content {
  color: #222;
  font-size: 15px;
  line-height: 1.75;
}

.ls-qa-single-content p {
  margin-bottom: 12px;
}

.ls-qa-answer-total {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
  padding-bottom: 8px;
  font-family: "Inter", sans-serif !important;
  border-bottom: 1px solid #e9e9f2 !important;
}

.ls-qa-answers-thread {
  padding: 18px;
}

.ls-qa-answers-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ls-qa-answer-item {
  padding: 0;
}

.ls-qa-answer-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ls-qa-answer-avatar-link img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ls-qa-answer-bubble {
  flex: 1;
  min-width: 0;
  background: #f0f2f5;
  border-radius: 14px;
  padding: 10px 14px;
  position: relative;
}

.ls-qa-like-summary {
  position: absolute;
  bottom: -10px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border: 1px solid #e4e6e9;
  border-radius: 999px;
  padding: 2px 6px 2px 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  font-size: 11px;
  font-weight: 700;
  color: #65676b;
  line-height: 1;
}

.ls-qa-like-summary[hidden] {
  display: none !important;
}

.ls-qa-like-summary i {
  width: 18px;
  height: 18px;
  background: var(--brand-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.ls-qa-answer-bubble-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ls-qa-answer-name {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ls-qa-answer-name:hover {
  color: var(--brand-color);
}

.ls-qa-answer-lawyer-badge {
  background: #fff4db;
  color: #8f5b00;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.ls-qa-comments-wrap {
  margin-top: 20px;
}

.ls-qa-answer-actions {
  margin-top: 6px;
  margin-left: 56px;
  padding-left: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ls-qa-answer-action {
  border: 0;
  background: transparent;
  color: #5b6472;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.ls-qa-answer-action.is-active,
.ls-qa-answer-action:hover {
  color: var(--brand-color);
}

.ls-qa-action-count {
  color: #8a94a6;
  font-size: 13px;
  font-weight: 400;
}

.ls-qa-answer-time {
  color: #8a94a6;
  font-size: 13px;
}

.ls-qa-answer-reply-compose {
  margin-top: 10px;
  margin-left: 56px;
}

.ls-qa-answer-reply-compose textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #cfdae8;
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
}

.ls-qa-answer-reply-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.ls-qa-reply-cancel,
.ls-qa-reply-submit,
.ls-qa-reply-save {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.ls-qa-reply-cancel {
  background: #eef2f7;
  color: #4b5563;
}

.ls-qa-reply-submit,
.ls-qa-reply-save {
  background: var(--brand-color);
  color: #fff;
}

.ls-qa-answer-content {
  margin-top: 6px;
}

.ls-qa-answer-content-text {
  color: #182030;
  font-size: 15px;
  line-height: 1.7;
}

.ls-qa-answer-content-text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.ls-qa-content-toggle {
  border: 0;
  background: transparent;
  color: var(--brand-color);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  margin-top: 6px;
}

.ls-qa-reply-list {
  margin-top: 10px;
  margin-left: 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ls-qa-reply-item {
  padding: 0;
}

.ls-qa-reply-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Backward compatibility for cached JS markup */
.ls-qa-reply-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ls-qa-reply-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.ls-qa-reply-bubble {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 0;
  flex: 1;
}

/* Backward compatibility for cached JS markup */
.ls-qa-reply-body {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 0;
  flex: 1;
}

.ls-qa-reply-author-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ls-qa-reply-author {
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.ls-qa-reply-author:hover {
  color: var(--brand-color);
}

.ls-qa-reply-badge {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}

.ls-qa-reply-badge.is-approved {
  background: #e9f9ef;
  color: #137b39;
}

.ls-qa-reply-badge.is-pending {
  background: #fff4db;
  color: #8f5b00;
}

.ls-qa-reply-content {
  margin-top: 4px;
  color: #243041;
  font-size: 14px;
  line-height: 1.6;
}

.ls-qa-reply-meta {
  margin-top: 4px;
  margin-left: 48px;
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* If legacy markup keeps meta inside body, do not indent */
.ls-qa-reply-body .ls-qa-reply-meta {
  margin-left: 0;
}

.ls-qa-reply-time {
  color: #6b7280;
  font-size: 12px;
}

.ls-qa-reply-meta-btn {
  border: 0;
  background: transparent;
  color: #3b4354;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}

.ls-qa-reply-meta-btn.is-danger {
  color: #bd1e29;
}

.ls-qa-reply-edit-box {
  margin-top: 8px;
}

.ls-qa-reply-edit-box textarea {
  width: 100%;
  border: 1px solid #cfdae8;
  border-radius: 10px;
  padding: 9px 11px;
  resize: vertical;
}

.ls-qa-reply-edit-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ls-qa-answer-empty {
  margin: 0;
  color: #6b7280;
}

.ls-qa-answer-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.38);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ls-qa-answer-feedback-modal.is-open {
  display: flex;
}

.ls-qa-answer-feedback-content {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dce5f2;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.2);
  padding: 20px;
  text-align: center;
}

.ls-qa-answer-feedback-content p {
  margin: 0 0 14px;
  color: #1f2937;
}

.ls-qa-answer-feedback-close {
  border: 0;
  border-radius: 8px;
  background: var(--brand-color);
  color: #fff;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
}

.ls-qa-mini-btn {
  flex-shrink: 0;
}

.ls-qa-mini-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  background: #0b61d8;
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.ls-qa-answer-time {
  color: #666;
  font-size: 13px;
}

.ls-qa-answer-content {
  margin-top: 12px;
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.7;
}

.ls-qa-answer-content p {
  margin: 0 0 10px;
}

.ls-qa-answer-form-wrap {
  margin-top: 16px;
  padding: 16px;
}

.ls-qa-answer-form-wrap h3 {
  margin: 0 0 12px;
}

.ls-qa-answer-form-wrap textarea {
  width: 100%;
  border: 1px solid #ccd3db;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 16px;
}

.ls-qa-auth-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.ls-qa-auth-box p {
  margin: 0;
}

.ls-qa-auth-box a {
  color: var(--brand-color);
}

.ls-qa-ranking ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ls-qa-ranking li + li {
  margin-top: 10px;
}

.ls-qa-ranking a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
  padding: 5px 0;
}

.ls-qa-ranking img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.ls-qa-ranking span {
  color: #7a7a7a;
}

.ls-qa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.ls-qa-btn {
  display: flex;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  color: #fff;
  background: #0b61d8;
  border: 1px solid #0b61d8;
  font-weight: 400;
  padding: 8px 10px;
  font-size: 15px;
  gap: 10px;
  justify-content: center;
}

.ls-qa-create-wrap {
  padding: 40px 16px;
}

.ls-qa-create-card {
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.ls-qa-create-intro {
  border: 1px solid #b9dfbf;
  background: #cbe8cf;
  border-radius: 4px;
  color: #115822;
  padding: 16px;
  margin-bottom: 16px;
}

.ls-qa-create-intro h1 {
  margin: 0 0 8px;
  font-size: 31px;
}

.ls-qa-create-intro p {
  margin: 0;
}

.ls-qa-field {
  margin-bottom: 14px;
}

.ls-qa-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.ls-qa-field input,
.ls-qa-field select,
.ls-qa-field textarea {
  width: 100%;
  border: 1px solid #ccd3db;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 16px;
  min-height: 44px;
}

.ls-qa-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ls-qa-submit-btn {
  border: none;
  border-radius: 4px;
  background: #0b61d8;
  color: #fff;
  padding: 11px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .ls-qa-grid {
    padding-inline: 16px;
    grid-template-columns: 1fr;
  }

  .ls-qa-main {
    order: 1;
  }

  .ls-qa-topics,
  .ls-qa-sidebar {
    order: 2;
  }

  .ls-qa-grid-2 {
    grid-template-columns: 1fr;
  }

  .ls-qa-single-title {
    font-size: 14px !important;
  }
  .ls-qa-single-content {
    font-size: 13px;
  }

  .ls-qa-answer-total {
    font-size: 16px;
  }
  .ls-qa-feed-card {
    padding: 16px;
  }
  .ls-qa-answer-content-text {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .ls-qa-grid {
    margin: 0 auto 24px;
    gap: 0;
  }
  .ls-qa-login-close {
    top: -15px;
    right: -10px;
  }
  .ls-qa-create-intro h1 {
    font-size: 24px;
  }
  .post-actions {
    gap: 4px;
  }

  .create-post-input,
  .post-author,
  .ls-qa-feed-title {
    font-size: 14px;
  }

  .post-time,
  .ls-qa-feed-excerpt,
  .action-btn,
  .ls-qa-read-more,
  .ls-qa-feed-stats {
    font-size: 13px;
  }

  .ls-qa-read-more {
    margin-top: 0;
  }
  .ls-qa-feed-stats {
    margin-top: 12px;
  }

  .action-btn {
    padding: 0;
    flex: unset;
    gap: 6px;
    width: fit-content;
  }

  .post-actions {
    display: flex;
    justify-content: space-between;
  }
  .ls-qa-share-wrap {
    width: fit-content;
  }
}

/* =========================================================================
 * Câu trả lời của luật sư: trình bày dạng thư tư vấn (đoạn canh đều, lùi đầu dòng, danh sách thụt, tiêu đề rõ)
 * Nội dung qua ls_format_answer_content() (wpautop + giữ căn lề / lùi dòng của trình soạn thảo).
 * ====================================================================== */
.ls-qa-answer-content-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: #1f2937;
  text-align: justify;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.ls-qa-answer-content-text > :first-child { margin-top: 0; }
.ls-qa-answer-content-text > :last-child { margin-bottom: 0; }
.ls-qa-answer-content-text p {
  margin: 0 0 .4em;
  text-indent: 1.6em;
}
/* Lời chào đầu thư, đoạn sau tiêu đề, đoạn căn giữa/phải: không lùi đầu dòng */
.ls-qa-answer-content-text > p:first-child,
.ls-qa-answer-content-text h2 + p,
.ls-qa-answer-content-text h3 + p,
.ls-qa-answer-content-text h4 + p,
.ls-qa-answer-content-text p[style*="center"],
.ls-qa-answer-content-text p[style*="right"],
.ls-qa-answer-content-text li p,
.ls-qa-answer-content-text blockquote p {
  text-indent: 0;
}
.ls-qa-answer-content-text h2,
.ls-qa-answer-content-text h3,
.ls-qa-answer-content-text h4 {
  margin: 1.1em 0 .5em;
  color: #0f2a4a;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}
.ls-qa-answer-content-text h2 { font-size: 1.2em; }
.ls-qa-answer-content-text h3 { font-size: 1.1em; padding-bottom: .25em; border-bottom: 1px solid #e5e9f0; }
.ls-qa-answer-content-text h4 { font-size: 1em; }
.ls-qa-answer-content-text ul,
.ls-qa-answer-content-text ol {
  margin: .2em 0 .9em;
  padding-left: 2.6em;
  text-align: left;
}
.ls-qa-answer-content-text ul { list-style: disc; }
.ls-qa-answer-content-text ol { list-style: decimal; }
.ls-qa-answer-content-text ul ul { list-style: circle; }
.ls-qa-answer-content-text ul ul,
.ls-qa-answer-content-text ol ol,
.ls-qa-answer-content-text ul ol,
.ls-qa-answer-content-text ol ul { margin: .3em 0 .3em; padding-left: 1.6em; }
.ls-qa-answer-content-text li {
  margin: 0 0 .4em;
  padding-left: .2em;
  list-style: inherit; /* theme Jannah đặt * { list-style: none } */
}
.ls-qa-answer-content-text li::marker { color: #64748b; }
.ls-qa-answer-content-text strong,
.ls-qa-answer-content-text b { color: #111827; font-weight: 700; }
.ls-qa-answer-content-text blockquote {
  margin: .8em 0;
  padding: .7em 1em;
  border-left: 3px solid var(--brand-color, #d72027);
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #334155;
}
.ls-qa-answer-content-text hr { margin: 1em 0; border: 0; border-top: 1px solid #e5e9f0; }
/* Rút gọn theo chiều cao (giữ nguyên bố cục đoạn/danh sách) thay cho cắt 4 dòng */
.ls-qa-answer-content-text.is-clamped {
  display: block;
  -webkit-line-clamp: unset;
  max-height: 12.6em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
@media (max-width: 767px) {
  .ls-qa-answer-content-text { font-size: 15px; line-height: 1.65; text-align: left; }
  .ls-qa-answer-content-text p { text-indent: 1.2em; }
  .ls-qa-answer-content-text ul,
  .ls-qa-answer-content-text ol { padding-left: 1.8em; }
}
