:root {
  --xnce-bg: #ffffff;
  --xnce-surface: #ffffff;
  --xnce-border: #e9e9ea;
  --xnce-text: #111111;
  --xnce-muted: #666a70;
  --xnce-accent: #f58220;
  --xnce-accent-soft: #fff3e8;
  --xnce-radius: 14px;
}

.xnce-news-wrap {
  max-width: 1280px;
  margin: 42px auto;
  padding: 0 clamp(16px, 4vw, 48px) 56px;
  color: var(--xnce-text);
  background: transparent;
  font-family: inherit;
}

.xnce-news-hero {
  background: var(--xnce-surface);
  border: 1px solid var(--xnce-border);
  border-radius: calc(var(--xnce-radius) + 4px);
  padding: 28px;
  margin-bottom: 22px;
}

.xnce-news-hero h1 {
  margin: 0;
  color: var(--xnce-text);
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.xnce-news-hero p {
  margin: 10px 0 0;
  color: var(--xnce-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.xnce-news-lang-switch,
.xnce-news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xnce-news-lang-switch {
  margin-bottom: 10px;
}

.xnce-news-filters {
  margin-bottom: 16px;
}

.xnce-lang-btn,
.xnce-filter-btn {
  border: 1px solid var(--xnce-border);
  background: #fff;
  color: #50545a;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  text-decoration: none;
  line-height: 1;
  transition: all 0.18s ease;
}

.xnce-filter-btn {
  cursor: pointer;
}

.xnce-lang-btn:hover,
.xnce-lang-btn.is-active,
.xnce-filter-btn:hover,
.xnce-filter-btn.is-active {
  color: #1d1f22;
  border-color: #f7b67a;
  background: var(--xnce-accent-soft);
}

.xnce-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  transition: opacity 0.2s ease;
}

.xnce-news-grid.is-loading {
  opacity: 0.45;
}

.xnce-news-card {
  background: #fff;
  border: 1px solid var(--xnce-border);
  border-radius: var(--xnce-radius);
  padding: 18px;
  box-shadow: 0 8px 20px rgba(16, 18, 21, 0.06);
}

.xnce-news-card__title {
  color: var(--xnce-text);
  font-size: 1.08rem;
  line-height: 1.46;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.xnce-news-card__title:hover {
  color: var(--xnce-accent);
}

.xnce-news-card time {
  font-size: 0.84rem;
  color: var(--xnce-muted);
}

.xnce-news-card p {
  margin: 12px 0 0;
  color: #2a2e34;
  line-height: 1.78;
}

.xnce-news-card__tags,
.xnce-news-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.xnce-news-card__tags a,
.xnce-news-single__tags a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #f8c9a0;
  background: #fff6ef;
  color: #b65d12;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  text-decoration: none;
}

.xnce-news-card__tags a:hover,
.xnce-news-single__tags a:hover {
  background: #ffe9d6;
}

.xnce-news-single article {
  background: #fff;
  border: 1px solid var(--xnce-border);
  border-radius: calc(var(--xnce-radius) + 2px);
  padding: 28px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 14px 34px rgba(16, 18, 21, 0.06);
}

.xnce-news-single__header h1 {
  margin: 0;
  color: #0f1114;
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  line-height: 1.35;
}

.xnce-news-single__header time {
  display: block;
  margin-top: 10px;
  color: var(--xnce-muted);
  font-size: 0.88rem;
}

.xnce-news-single__content {
  margin-top: 18px;
  color: #15181c;
  font-size: 1.04rem;
  line-height: 1.95;
  overflow-wrap: break-word;
}

.xnce-news-single article {
  overflow: hidden;
}

.single-fx_news .entry-content,
.single-fx_news .post-content,
.single-fx_news .single-post-content,
.single-fx_news .td-post-content,
.single-fx_news .elementor-widget-theme-post-content {
  display: none !important;
}

.single-fx_news .xnce-news-single .xnce-news-single__content,
.single-fx_news .xnce-news-single .xnce-news-rich {
  display: block !important;
}

.xnce-news-rich,
.xnce-news-rich * {
  box-sizing: border-box;
}

.xnce-news-rich {
  clear: both;
}

.xnce-news-rich p,
.xnce-news-rich h1,
.xnce-news-rich h2,
.xnce-news-rich h3,
.xnce-news-rich h4,
.xnce-news-rich h5,
.xnce-news-rich h6,
.xnce-news-rich div,
.xnce-news-rich section,
.xnce-news-rich article {
  float: none !important;
  position: static !important;
  transform: none !important;
  width: auto !important;
  left: auto !important;
  right: auto !important;
}

.xnce-news-single__content img,
.xnce-news-rich img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.xnce-news-single__content figure,
.xnce-news-rich figure {
  max-width: 100% !important;
  margin: 1em 0;
}

.xnce-news-single__content iframe,
.xnce-news-rich iframe,
.xnce-news-single__content canvas,
.xnce-news-rich canvas,
.xnce-news-single__content svg,
.xnce-news-rich svg {
  max-width: 100% !important;
}

.xnce-news-single__content pre,
.xnce-news-rich pre {
  overflow-x: auto;
}

.xnce-news-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.25em;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid #e6e6e6;
}

.xnce-news-rich th,
.xnce-news-rich td {
  border: 1px solid #ececec;
  padding: 8px 10px;
  text-align: center;
  font-size: 0.92rem;
}

.xnce-news-rich th {
  background: #faf8f6;
}

.xnce-news-single__content p {
  margin: 0 0 1.25em;
}

.xnce-news-single__content p:last-child {
  margin-bottom: 0;
}

.xnce-news-inline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.xnce-inline-filter-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #f8c9a0;
  background: #fff6ef;
  color: #b65d12;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  text-decoration: none;
}

.xnce-inline-filter-link:hover {
  background: #ffe9d6;
}

.xnce-news-single__back {
  margin-top: 22px;
}

.xnce-news-single__back--top {
  margin-top: 0;
  margin-bottom: 14px;
}

.xnce-news-single__back a {
  color: var(--xnce-accent);
  text-decoration: none;
  font-weight: 600;
}

.xnce-news-single__back a:hover {
  text-decoration: underline;
}

.xnce-news-pagination {
  margin-top: 24px;
}

.xnce-news-pagination .page-numbers {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 10px;
  border: 1px solid var(--xnce-border);
  border-radius: 8px;
  color: #4f545c;
  text-decoration: none;
  background: #fff;
}

.xnce-news-pagination .page-numbers:hover {
  border-color: #f7b67a;
  background: var(--xnce-accent-soft);
}

.xnce-news-pagination .current {
  color: #1f2328;
  border-color: #f7b67a;
  background: var(--xnce-accent-soft);
}

.xnce-news-empty {
  color: var(--xnce-muted);
}

@media (max-width: 768px) {
  .xnce-news-wrap {
    margin-top: 24px;
    padding: 0 14px 42px;
  }

  .xnce-news-hero,
  .xnce-news-single article {
    padding: 20px;
  }

  .xnce-news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .xnce-news-single__content {
    font-size: 1rem;
    line-height: 1.82;
  }
}
