.knowledge-home {
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 154, 83, .13), transparent 34%),
    linear-gradient(145deg, #111210, #080909);
}

.knowledge-home-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.knowledge-home-top .section-kicker,
.knowledge-home-top .section-title,
.knowledge-home-top .section-desc { margin-right: 0; text-align: right; }
.knowledge-home-top .section-desc { max-width: 720px; }
.knowledge-archive-button,
.knowledge-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  color: #17120b !important;
  text-decoration: none !important;
  border: 1px solid #e8bd73;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0cc87, #c7954a);
  box-shadow: 0 12px 30px rgba(199, 149, 74, .2);
  font-size: .86rem;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.knowledge-archive-button { flex: 0 0 auto; min-width: 165px; }
.knowledge-archive-button:hover,
.knowledge-back-button:hover { color: #17120b !important; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 36px rgba(199, 149, 74, .3); }

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.knowledge-card {
  overflow: hidden;
  border: 1px solid rgba(201, 154, 83, .18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(31, 28, 22, .72), rgba(16, 17, 16, .82));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.knowledge-card:hover {
  transform: translateY(-7px);
  border-color: rgba(242, 203, 130, .5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
}

.knowledge-card-image {
  height: 205px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #1a140c;
  background: linear-gradient(135deg, #e7c382, #9c6f32);
  font-weight: 900;
}

.knowledge-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.knowledge-card:hover .knowledge-card-image img { transform: scale(1.06); }
.knowledge-card-body { padding: 20px; text-align: right; }
.knowledge-card-kicker { display: block; margin-bottom: 8px; color: #d9ab62; font-size: .72rem; font-weight: 850; }
.knowledge-card h2, .knowledge-card h3 { margin: 0 0 10px; text-align: right; font-size: 1.02rem; font-weight: 900; line-height: 1.8; }
.knowledge-card h2 a, .knowledge-card h3 a { color: #fff3e4; }
.knowledge-card p { min-height: 58px; margin: 0 0 14px; color: #aaa194; text-align: right; font-size: .8rem; line-height: 1.9; }
.knowledge-read-more { display: inline-flex; align-items: center; gap: 7px; color: #e6bd75; font-size: .8rem; font-weight: 850; }
.knowledge-read-more:hover { color: #ffe1a8; }
.knowledge-empty-public { grid-column: 1 / -1; padding: 48px 18px; text-align: center; color: #aaa194; border: 1px dashed rgba(201, 154, 83, .25); border-radius: 18px; }

.knowledge-page { min-height: 100vh; color: #eee4d6; background: #090a0a; }
.knowledge-hero, .knowledge-article-header { padding: 150px 0 70px; border-bottom: 1px solid rgba(201, 154, 83, .16); background: radial-gradient(circle at 78% 12%, rgba(201, 154, 83, .16), transparent 34%), linear-gradient(145deg, #17150f, #080909); }
.knowledge-hero h1, .knowledge-article-header h1 { max-width: 920px; margin: 16px 0; color: #fff3e4; text-align: right; font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 950; line-height: 1.45; }
.knowledge-hero p, .knowledge-article-header p { max-width: 780px; margin: 0; color: #b1a797; text-align: right; line-height: 2; }
.knowledge-eyebrow { color: #e2b86f; font-size: .8rem; font-weight: 900; }
.knowledge-page .breadcrumb-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: #958b7c;
  font-size: .8rem;
  line-height: 1.8;
}
.knowledge-page .breadcrumb-mini a,
.knowledge-page .breadcrumb-mini a:visited {
  color: #e1b66d !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
}
.knowledge-page .breadcrumb-mini a:hover { color: #ffe2ab !important; }
.knowledge-page .breadcrumb-mini b { color: #c7bcad; font-weight: 700; }
.knowledge-archive-section { padding: 70px 0 90px; }
.knowledge-pagination { margin-top: 34px; }

.knowledge-article-header-inner { max-width: 1040px; }
.knowledge-article-shell { max-width: 1040px; padding-top: 52px; padding-bottom: 90px; }
.knowledge-cover { overflow: hidden; margin: 0 0 34px; border: 1px solid rgba(201, 154, 83, .2); border-radius: 24px; box-shadow: 0 25px 75px rgba(0,0,0,.35); }
.knowledge-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.knowledge-content { overflow-x: auto; padding: clamp(22px, 5vw, 54px); color: #d7cdbf; border: 1px solid rgba(201, 154, 83, .16); border-radius: 24px; background: rgba(255, 255, 255, .025); font-size: 1rem; line-height: 2.2; }
.knowledge-content h2, .knowledge-content h3, .knowledge-content h4 { margin: 1.8em 0 .7em; color: #fff2df; text-align: right; line-height: 1.7; }
.knowledge-content h2:first-child, .knowledge-content h3:first-child { margin-top: 0; }
.knowledge-content p, .knowledge-content li, .knowledge-content blockquote { text-align: right; }
.knowledge-content img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: 16px; }
.knowledge-content figure { max-width: 100%; margin: 28px auto; }
.knowledge-content figcaption { color: #948b7f; text-align: center; font-size: .78rem; }
.knowledge-content a { color: #e7bd73; text-decoration: underline; }
.knowledge-content blockquote { margin: 24px 0; padding: 16px 20px; color: #e9ddcc; border-right: 3px solid #d3a558; background: rgba(201, 154, 83, .07); }
.knowledge-content table { min-width: 620px; width: 100%; margin: 28px 0; border-collapse: collapse; }
.knowledge-content th, .knowledge-content td { padding: 12px 14px; text-align: right; border: 1px solid rgba(201, 154, 83, .25); }
.knowledge-content th { color: #fff1da; background: rgba(201, 154, 83, .13); }
.knowledge-content td { background: rgba(255, 255, 255, .025); }
.knowledge-article-footer { display: flex; justify-content: flex-start; margin-top: 28px; }

.knowledge-ltr { direction: ltr; }
.knowledge-ltr .knowledge-home-top .section-kicker,
.knowledge-ltr .knowledge-home-top .section-title,
.knowledge-ltr .knowledge-home-top .section-desc,
.knowledge-ltr .knowledge-card-body,
.knowledge-ltr .knowledge-card h2,
.knowledge-ltr .knowledge-card h3,
.knowledge-ltr .knowledge-card p,
.knowledge-ltr .knowledge-hero h1,
.knowledge-ltr .knowledge-article-header h1,
.knowledge-ltr .knowledge-hero p,
.knowledge-ltr .knowledge-article-header p,
.knowledge-ltr .knowledge-content h2,
.knowledge-ltr .knowledge-content h3,
.knowledge-ltr .knowledge-content h4,
.knowledge-ltr .knowledge-content p,
.knowledge-ltr .knowledge-content li,
.knowledge-ltr .knowledge-content blockquote,
.knowledge-ltr .knowledge-content th,
.knowledge-ltr .knowledge-content td { margin-left: 0; text-align: left; }
.knowledge-ltr .knowledge-content blockquote { border-right: 0; border-left: 3px solid #d3a558; }
.knowledge-ltr .knowledge-article-footer { justify-content: flex-end; }

@media (max-width: 991.98px) {
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-home-top { align-items: stretch; flex-direction: column; }
  .knowledge-archive-button { align-self: flex-start; }
}

@media (max-width: 575.98px) {
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card-image { height: 190px; }
  .knowledge-hero, .knowledge-article-header { padding: 118px 0 48px; }
  .knowledge-archive-section { padding: 48px 0 65px; }
  .knowledge-content { padding: 20px 15px; font-size: .9rem; }
  .knowledge-archive-button, .knowledge-back-button { width: 100%; }
}
