.legacy-news-container,
.legacy-news-main,
.legacy-news-promo-inner {
  width: min(1180px, calc(100vw - 48px));
  margin-right: auto;
  margin-left: auto;
}

.nav a:first-child {
  background: transparent;
  color: var(--text-sub);
}

.nav a[href="/News"] {
  background: #eff6ff;
  color: #2563eb;
}

.legacy-news-promo {
  margin-top: -8px;
  padding: 22px 0 10px;
}

.legacy-news-promo-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 28px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.promo-visual {
  display: grid;
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: var(--primary-color);
  font-size: 34px;
  font-weight: 900;
}

.promo-copy h4 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 20px;
}

.promo-copy h4 a {
  margin-left: 18px;
  color: var(--primary-color);
  font-size: 14px;
}

.promo-copy p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 22px 6px 0;
  color: var(--text-sub);
  font-size: 13px;
}

.promo-copy i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary-color);
}

.legacy-news-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0 64px;
}

.legacy-news-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
}

.legacy-news-sidebar h2 {
  margin: 0;
  font-size: 15px;
}

.legacy-news-category {
  display: block;
  padding: 17px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  font-weight: 700;
}

.legacy-news-sidebar h2:last-child .legacy-news-category {
  border-bottom: 0;
}

.legacy-news-category:hover,
.legacy-news-category.active {
  color: var(--primary-color);
  background: #fff7ed;
}

.legacy-news-content {
  min-width: 0;
}

.legacy-news-search {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
}

.legacy-news-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
}

.legacy-news-search input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .1);
}

.legacy-news-search button {
  min-width: 92px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--primary-color);
  font-weight: 800;
  cursor: pointer;
}

.legacy-news-table-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
}

.legacy-news-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.legacy-news-table th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-main);
  font-size: 14px;
  text-align: center;
}

.legacy-news-table th:first-child {
  text-align: left;
}

.legacy-news-table th:nth-child(2),
.legacy-news-table td:nth-child(2) {
  width: 138px;
}

.legacy-news-table th:nth-child(3),
.legacy-news-table td:nth-child(3) {
  width: 128px;
}

.legacy-news-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-sub);
  font-size: 14px;
  text-align: center;
}

.legacy-news-table tbody tr:hover {
  background: #fffaf5;
}

.legacy-news-title-cell {
  text-align: left !important;
}

.legacy-news-title-cell a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text-main);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-news-title-cell a:hover {
  color: var(--primary-color) !important;
}

.legacy-news-empty {
  padding: 36px 16px !important;
  color: var(--text-muted);
  text-align: center !important;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
}

.page-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.page-btn.active {
  border-color: var(--text-main);
  background: var(--text-main);
  color: #fff;
}

.page-btn.page-nav {
  width: auto;
  min-width: 64px;
}

.page-btn.disabled {
  pointer-events: none;
  color: #cbd5e1;
  background: #f8fafc;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 36px;
  color: var(--text-muted);
  font-weight: 800;
}

.page-total {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin-left: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.news-pagination {
  padding: 4px 0;
}

.legacy-news-breadcrumb {
  margin: -32px 0 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-sub);
  font-size: 13px;
}

.legacy-news-breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #cbd5e1;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 60px;
}

.article-card {
  min-height: 600px;
  max-width: 900px;
  padding: 40px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .02);
}

.article-header {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f1f5f9;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.category-tag {
  padding: 4px 10px;
  border-radius: 4px;
  background-color: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.article-date {
  color: var(--text-muted);
  font-size: 13px;
}

.article-title {
  margin: 0 0 25px;
  color: var(--text-main);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.4;
}

.article-summary {
  margin-bottom: 30px;
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  background-color: #fff7ed;
  color: #9a3412;
  font-size: 15px;
  font-weight: 500;
}

.article-summary h4 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  opacity: .8;
}

.article-summary p {
  margin: 0;
}

.article-content {
  max-width: 100%;
  overflow-x: hidden;
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-content p {
  margin: 0 0 14px;
  text-align: justify;
}

.article-content img {
  display: inline-block;
  max-width: 100% !important;
  height: auto !important;
}

.article-content table {
  width: 100% !important;
}

.article-content h2 {
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
}

.article-content h3 {
  color: #1e293b;
  font-size: 15px;
  font-weight: 700;
}

.article-content strong {
  color: #1e293b;
  font-weight: 700;
}

body.client-news-detail {
  background: #f7f9fc;
}

.client-news-main {
  min-height: 100vh;
  background: #f7f9fc;
}

.client-news-layout {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 12px 28px;
}

.client-news-layout .article-card {
  min-height: 0;
  max-width: none;
  padding: 18px 16px 22px;
  border: 1px solid #e6edf6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.client-news-layout .article-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.client-news-layout .article-title {
  margin: 0;
  color: #14213d !important;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: 0;
}

.client-news-layout .article-content {
  color: #334155;
  font-size: 15px;
  line-height: 1.86;
}

.client-news-layout .article-content p {
  margin: 0 0 12px;
  text-align: left;
  text-indent: 0 !important;
}

.client-news-layout .article-content h1,
.client-news-layout .article-content h2,
.client-news-layout .article-content h3 {
  margin: 20px 0 10px;
  color: #14213d;
  line-height: 1.45;
}

.client-news-layout .article-content h1 {
  font-size: 22px;
}

.client-news-layout .article-content h2 {
  font-size: 19px;
}

.client-news-layout .article-content h3 {
  font-size: 17px;
}

.client-news-layout .article-content ul,
.client-news-layout .article-content ol {
  padding-left: 1.4em;
}

.client-news-layout .article-content img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 12px auto;
  border-radius: 8px;
}

.client-news-layout .article-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.client-news-layout .article-content a {
  color: #0f766e;
  font-weight: 700;
}


.article-carousel-image {
  display: grid;
  margin: 0 0 24px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #f8fafc;
}

.article-carousel-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  margin: 0 auto;
  object-fit: contain;
}

.article-content > .client-duplicate-title:first-child {
  display: none !important;
}

.sidebar-widget {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.widget-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary-color);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #f1f5f9;
  cursor: pointer;
}

.related-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.related-item:hover .related-title {
  color: var(--primary-color) !important;
}

.related-info {
  min-width: 0;
}

.related-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transition: color .2s;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-date {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 11px;
}

.promo-card {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  text-align: center;
}

.promo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
}

.promo-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.promo-card p {
  margin: 0 0 15px;
  color: #94a3b8;
  font-size: 12px;
}

.promo-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}

.promo-btn:hover {
  background: var(--primary-hover);
}

@media (max-width: 860px) {
  .legacy-news-container,
  .legacy-news-main,
  .legacy-news-promo-inner {
    width: min(1180px, calc(100% - 24px));
  }

  .legacy-news-promo-inner,
  .legacy-news-main,
  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .legacy-news-promo-inner {
    display: grid;
    padding: 18px;
  }

  .legacy-news-sidebar {
    position: static;
  }

  .legacy-news-search {
    flex-direction: column;
  }

  .legacy-news-search button {
    min-height: 42px;
  }

  .legacy-news-table th:nth-child(2),
  .legacy-news-table td:nth-child(2) {
    display: none;
  }

  .legacy-news-table th:nth-child(3),
  .legacy-news-table td:nth-child(3) {
    width: 110px;
  }

  .article-card {
    padding: 20px;
  }

  .article-title {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .legacy-news-container,
  .legacy-news-main,
  .legacy-news-promo-inner {
    width: min(1180px, calc(100% - 20px));
  }

  .legacy-news-promo {
    display: none;
  }

  .legacy-news-promo-inner {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 9px;
    border-radius: 12px;
  }

  .promo-visual {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 16px;
  }

  .promo-copy h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    font-size: 14px;
  }

  .promo-copy h4 a {
    flex: 0 0 auto;
    margin-left: 0;
    font-size: 11px;
  }

  .promo-copy p {
    display: none;
  }

  .legacy-news-main {
    gap: 7px;
    padding: 8px 0 24px;
  }

  .legacy-news-sidebar {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    padding: 6px;
    border-radius: 10px;
  }

  .legacy-news-sidebar h2 {
    flex: 0 0 auto;
  }

  .legacy-news-category {
    min-width: 76px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }

  .legacy-news-category.active {
    background: #fff7ed;
  }

  .legacy-news-search {
    display: grid;
    grid-template-columns: 1fr 68px;
    gap: 8px;
    margin-bottom: 7px;
    padding: 6px;
    border-radius: 10px;
  }

  .legacy-news-search input {
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
  }

  .legacy-news-search button {
    min-width: 0;
    min-height: 36px;
    border-radius: 8px;
    font-size: 13px;
  }

  .legacy-news-table-card {
    border-radius: 10px;
  }

  .legacy-news-table,
  .legacy-news-table tbody,
  .legacy-news-table tfoot {
    display: block;
    width: 100%;
  }

  .legacy-news-table thead {
    display: none;
  }

  .legacy-news-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 10px 11px;
    border-bottom: 1px solid #eef2f7;
  }

  .legacy-news-table tbody tr:last-child {
    border-bottom: 0;
  }

  .legacy-news-table td {
    display: block;
    width: auto !important;
    padding: 0;
    border: 0;
    font-size: 11.5px;
    text-align: left;
  }

  .legacy-news-table td:nth-child(2) {
    display: inline-flex;
    align-items: center;
    width: fit-content !important;
    grid-row: 2;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 800;
  }

  .legacy-news-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 2px;
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
  }

  .legacy-news-title-cell {
    grid-column: 1;
    grid-row: 1;
  }

  .legacy-news-title-cell a {
    display: -webkit-box;
    overflow: hidden;
    padding-right: 2px;
    font-size: 13.5px;
    line-height: 1.38;
    font-weight: 800;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .legacy-news-table tfoot tr,
  .legacy-news-table tfoot td {
    display: block;
    padding: 0;
  }

  .news-pagination {
    margin: 8px 0;
  }

  .page-total {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .legacy-news-breadcrumb {
    display: block;
    margin: -8px 0 0;
    padding: 12px 13px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
  }

  .news-detail-layout {
    width: 100%;
    gap: 12px;
    margin-top: 20px;
  }

  .article-card {
    padding: 22px 12px;
    border-radius: 12px;
  }

  .article-title {
    margin: 12px 0 22px;
    font-size: 28px;
    line-height: 1.25;
  }

  .article-card {
    min-height: 0;
  }

  .article-card .alert,
  .article-card .empty {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .article-header {
    margin-bottom: 18px;
    padding-bottom: 22px;
  }

  .article-meta-row {
    gap: 8px;
    margin-bottom: 7px;
  }

  .article-summary {
    margin: 0 0 18px;
    padding: 14px 14px 14px 18px;
    border-left-width: 4px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .article-summary h4 {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .article-content {
    overflow-x: hidden;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
  }

  .article-content p {
    margin: 0 0 6px;
    text-align: left;
    text-indent: 0 !important;
    letter-spacing: 0;
  }

  .article-content p:empty,
  .article-content p:has(> br:only-child) {
    display: none;
  }

  .article-content img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 6px auto;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    width: 100% !important;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .article-content td,
  .article-content th {
    min-width: 80px;
    padding: 6px;
    font-size: 13px;
  }

  .news-detail-layout aside {
    display: grid;
    gap: 8px;
  }

  .sidebar-widget,
  .promo-card {
    padding: 12px;
    border-radius: 12px;
  }

  .related-item {
    padding: 8px 0;
  }

  .related-title {
    font-size: 13px;
    line-height: 1.45;
  }

  .promo-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
  }

  .promo-icon {
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .promo-card h3,
  .promo-card p {
    grid-column: 2;
    margin: 0;
    text-align: left;
  }

  .promo-card p {
    font-size: 12px;
    line-height: 1.45;
  }

  .promo-btn {
    grid-column: 1 / -1;
    min-height: 38px;
    font-size: 13px;
  }
}
@media (max-width: 560px) {
  .legacy-news-table td:first-child {
    min-width: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  .legacy-news-table td:first-child a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .legacy-news-table td:nth-child(2),
  .legacy-news-table td:nth-child(3) {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .news-pagination,
  .pagination {
    justify-content: center;
    gap: 6px;
    margin: 8px 0 2px;
  }

  .news-pagination .page-btn,
  .pagination .page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 12px;
  }

  .news-pagination .page-nav,
  .pagination .page-nav {
    min-width: 72px;
  }

  .page-total {
    flex: 0 0 100%;
    order: 10;
    font-size: 12px;
  }

  .legacy-news-breadcrumb {
    display: none;
  }

  .news-detail-layout {
    margin-top: 8px;
  }

  .article-card {
    padding: 14px 11px;
  }

  .article-title {
    margin: 6px 0 12px;
    font-size: 20px;
    line-height: 1.3;
  }

  .article-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .article-meta-row {
    gap: 6px;
  }

  .article-summary {
    margin-bottom: 12px;
    padding: 10px 11px;
    font-size: 12px;
  }

  .article-content {
    font-size: 13px;
    line-height: 1.58;
  }
}
