.lsw-content-center,
.lsw-content-center * {
  box-sizing: border-box;
}

.lsw-content-center {
  width: 100%;
  padding: 0 16px 16px;
  color: #1f2937;
}

.lsw-content-center a,
.lsw-content-center button,
.lsw-content-center input,
.lsw-content-center .btn,
.lsw-content-center .card,
.lsw-content-center .badge,
.lsw-content-center .pagination .page-link {
  border-radius: 0 !important;
}

.lsw-content-center__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.lsw-content-center__layout--kb {
  grid-template-columns: 280px minmax(0, 1fr);
}

.lsw-content-center__main,
.lsw-content-center__aside {
  min-width: 0;
}

.lsw-content-panel,
.lsw-kb-search-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.lsw-content-panel__head {
  min-height: 76px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lsw-content-panel__head h1,
.lsw-content-panel__head h2,
.lsw-category-panel__head h2,
.lsw-kb-search-panel__intro h1 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

.lsw-content-panel__head p,
.lsw-category-panel__head p,
.lsw-kb-search-panel__intro p {
  margin: 4px 0 0;
  color: #8a94a3;
  font-size: 13px;
  line-height: 1.6;
}

.lsw-content-panel__head--articles {
  min-height: 68px;
}

.lsw-content-search {
  display: flex;
  align-items: stretch;
  border: 1px solid #d8dee8;
  background: #fff;
}

.lsw-content-search--compact {
  width: 330px;
  max-width: 100%;
}

.lsw-content-search--large {
  width: min(680px, 100%);
}

.lsw-content-search input {
  min-width: 0;
  flex: 1 1 auto;
  height: 40px;
  padding: 0 12px;
  color: #1f2937;
  font-size: 13px;
  border: 0;
  outline: 0;
  background: transparent;
}

.lsw-content-search input::placeholder {
  color: #a0a8b4;
}

.lsw-content-search button {
  flex: 0 0 auto;
  min-width: 82px;
  height: 40px;
  padding: 0 13px;
  border: 0;
  border-left: 1px solid #d8dee8;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lsw-content-search button:hover {
  background: #1d4ed8;
}

.lsw-content-search button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lsw-news-list,
.lsw-kb-list {
  width: 100%;
}

.lsw-news-item,
.lsw-kb-item {
  position: relative;
  min-height: 68px;
  padding: 13px 18px;
  border-bottom: 1px solid #edf0f4;
  color: inherit;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color .15s ease;
}

.lsw-news-item:last-child,
.lsw-kb-item:last-child {
  border-bottom: 0;
}

.lsw-news-item:hover,
.lsw-kb-item:hover {
  color: inherit;
  background: #fafbfc;
}

.lsw-news-item__mark {
  width: 4px;
  height: 28px;
  flex: 0 0 4px;
  background: #2563eb;
}

.lsw-news-item__body,
.lsw-kb-item__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lsw-news-item__body strong,
.lsw-kb-item__body strong {
  overflow: hidden;
  color: #202938;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsw-news-item__hint,
.lsw-kb-item__body span {
  color: #9aa3af;
  font-size: 12px;
  line-height: 1.45;
}

.lsw-news-item__time,
.lsw-kb-item__time {
  flex: 0 0 auto;
  color: #8b95a5;
  font-size: 12px;
  white-space: nowrap;
}

.lsw-news-item__arrow,
.lsw-kb-item__arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #a3acb9;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lsw-kb-item__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #dbe5f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.lsw-kb-item__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lsw-category-panel__head {
  min-height: 72px;
  padding: 15px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lsw-category-panel__head > svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: none;
  stroke: #2563eb;
  stroke-width: 1.45;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lsw-category-list {
  display: block;
}

.lsw-category-item {
  min-height: 46px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f4;
  color: #596474;
  font-size: 13px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lsw-category-item:last-child {
  border-bottom: 0;
}

.lsw-category-item:hover,
.lsw-category-item.is-active {
  color: #2563eb;
  background: #f8faff;
}

.lsw-category-item.is-active {
  box-shadow: inset 3px 0 0 #2563eb;
}

.lsw-category-item > svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lsw-category-item__count {
  min-width: 24px;
  padding: 0 5px;
  border: 1px solid #dce3ec;
  color: #7d8795;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.lsw-category-item.is-active .lsw-category-item__count {
  border-color: #b9cef8;
  color: #2563eb;
}

.lsw-kb-search-panel {
  margin-bottom: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lsw-kb-search-panel__intro {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lsw-kb-search-panel__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #cfdcf1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.lsw-kb-search-panel__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lsw-content-empty {
  min-height: 230px;
  padding: 36px 20px;
  color: #8a94a3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lsw-content-empty svg {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  fill: none;
  stroke: #9aa7b8;
  stroke-width: 1.35;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lsw-content-empty strong {
  margin-bottom: 5px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
}

.lsw-content-empty span {
  font-size: 12px;
}

.lsw-content-pagination {
  padding: 14px 16px 4px;
  border-top: 1px solid #edf0f4;
}

.lsw-content-pagination .row {
  margin-left: -8px;
  margin-right: -8px;
}

.lsw-content-pagination [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

@media (max-width: 991.98px) {
  .lsw-content-center__layout,
  .lsw-content-center__layout--kb {
    grid-template-columns: 1fr;
  }

  .lsw-content-center__aside {
    order: -1;
  }

  .lsw-news-page .lsw-content-center__aside {
    order: 0;
  }

  .lsw-kb-search-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .lsw-content-search--large {
    width: 100%;
  }

  .lsw-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lsw-category-item:nth-child(2n+1) {
    border-right: 1px solid #edf0f4;
  }
}

@media (max-width: 767.98px) {
  .lsw-content-center {
    padding: 0 12px 12px;
  }

  .lsw-content-center__layout,
  .lsw-content-center__layout--kb {
    gap: 12px;
  }

  .lsw-kb-search-panel {
    margin-bottom: 12px;
    padding: 14px;
  }

  .lsw-kb-search-panel__intro {
    align-items: flex-start;
  }

  .lsw-kb-search-panel__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .lsw-kb-search-panel__icon svg {
    width: 19px;
    height: 19px;
  }

  .lsw-content-panel__head {
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .lsw-content-search--compact {
    width: 100%;
  }

  .lsw-content-search input,
  .lsw-content-search button {
    height: 42px;
  }

  .lsw-content-search button {
    min-width: 76px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .lsw-news-item,
  .lsw-kb-item {
    min-height: 0;
    padding: 13px 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .lsw-news-item__mark {
    height: 24px;
    margin-top: 1px;
  }

  .lsw-news-item__body,
  .lsw-kb-item__body {
    min-width: calc(100% - 38px);
  }

  .lsw-news-item__body strong,
  .lsw-kb-item__body strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .lsw-news-item__time,
  .lsw-kb-item__time {
    width: 100%;
    padding-left: 14px;
    font-size: 11px;
  }

  .lsw-kb-item__time {
    padding-left: 44px;
  }

  .lsw-news-item__arrow,
  .lsw-kb-item__arrow {
    display: none;
  }

  .lsw-category-panel__head {
    min-height: 64px;
    padding: 13px 14px;
  }

  .lsw-category-list {
    grid-template-columns: 1fr;
  }

  .lsw-category-item:nth-child(2n+1) {
    border-right: 0;
  }

  .lsw-category-item {
    min-height: 43px;
    padding: 9px 13px;
  }

  .lsw-content-pagination {
    padding: 12px 12px 2px;
  }
}

/* News page refinement: cleaner list, category state and pagination */
.lsw-news-page .lsw-news-item {
  gap: 10px;
}

.lsw-news-page .lsw-news-item__mark {
  display: none !important;
}

.lsw-news-page .lsw-category-item.is-active {
  box-shadow: none !important;
  background: #f6f8fb;
  color: #2563eb;
  font-weight: 500;
}

.lsw-news-page .lsw-category-item__count {
  min-width: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #8a94a3;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.lsw-news-page .lsw-category-item.is-active .lsw-category-item__count {
  border: 0 !important;
  color: #2563eb;
}

.lsw-news-page .lsw-content-pagination {
  padding: 12px 16px;
}

.lsw-news-page .lsw-content-pagination .pagination,
.lsw-news-page .lsw-content-pagination ul.pagination {
  margin: 0;
  gap: 10px;
}

.lsw-news-page .lsw-content-pagination .page-item,
.lsw-news-page .lsw-content-pagination .page-link,
.lsw-news-page .lsw-content-pagination .pagination > li,
.lsw-news-page .lsw-content-pagination .pagination > li > a,
.lsw-news-page .lsw-content-pagination .pagination > li > span {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.lsw-news-page .lsw-content-pagination .page-link,
.lsw-news-page .lsw-content-pagination .pagination > li > a,
.lsw-news-page .lsw-content-pagination .pagination > li > span {
  min-width: auto !important;
  height: auto !important;
  padding: 2px 3px !important;
  color: #7b8794;
  line-height: 1.4;
}

.lsw-news-page .lsw-content-pagination .page-item.active .page-link,
.lsw-news-page .lsw-content-pagination .pagination > li.active > a,
.lsw-news-page .lsw-content-pagination .pagination > li.active > span,
.lsw-news-page .lsw-content-pagination .page-link:hover,
.lsw-news-page .lsw-content-pagination .pagination > li > a:hover {
  color: #2563eb !important;
  background: transparent !important;
  font-weight: 600;
}


.lsw-news-page .lsw-content-pagination select {
  height: auto !important;
  padding: 0 2px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #374151;
}

@media (max-width: 767.98px) {
  .lsw-news-page .lsw-news-item__body {
    min-width: 0;
    width: calc(100% - 26px);
  }

  .lsw-news-page .lsw-news-item__time {
    padding-left: 0;
  }

  .lsw-news-page .lsw-content-pagination {
    padding: 10px 12px;
  }
}
