:root {
  --ch-bg: #070b14;
  --ch-surface: #101827;
  --ch-surface-soft: #162239;
  --ch-border: rgba(126, 165, 255, 0.2);
  --ch-text: #e7ecf7;
  --ch-text-soft: #aeb9cc;
  --ch-primary: #4f8cff;
  --ch-accent: #11d7b3;
  --ch-glow: rgba(79, 140, 255, 0.28);
}

body.ch-modern {
  background:
    radial-gradient(1400px 600px at -10% -10%, rgba(79, 140, 255, 0.17), transparent 55%),
    radial-gradient(1200px 500px at 110% 0%, rgba(17, 215, 179, 0.14), transparent 58%),
    linear-gradient(180deg, #060a12 0%, var(--ch-bg) 52%, #05080f 100%);
  color: var(--ch-text);
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.ch-modern .navbar {
  background: rgba(8, 13, 23, 0.88);
  border-bottom: 1px solid var(--ch-border);
  overflow: visible;
}

.ch-modern .site-main-shell {
  position: relative;
}

.ch-modern .site-main-shell::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 180px;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.1), rgba(17, 215, 179, 0.08));
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.ch-modern .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: rgba(16, 24, 39, 0.48);
  box-shadow: 0 18px 60px rgba(3, 7, 17, 0.5);
  margin-top: 0.5rem;
}

.hero {
  background: url(/assets/images/hero.webp) center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
  margin-bottom: 60px;
  margin-top: -1.5rem !important;
}

.ch-modern .hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
}

.ch-modern .hero p {
  color: var(--ch-text-soft);
  max-width: 860px;
  margin: 0 auto;
}

.ch-modern .cta-btn,
.ch-modern .btn-primary {
  background: linear-gradient(135deg, var(--ch-primary), #2e6adf);
  border: 1px solid rgba(126, 165, 255, 0.35);
  box-shadow: 0 10px 30px var(--ch-glow);
}

.ch-modern .hero .cta-btn {
  background: linear-gradient(135deg, #f4c84b, #d9a719);
  border: 1px solid rgba(255, 215, 112, 0.7);
  color: #111a2a;
  box-shadow: 0 10px 26px rgba(217, 167, 25, 0.35);
}

.ch-modern .hero .cta-btn:hover {
  color: #0d1624;
}

.ch-modern .btn-primary:hover {
  transform: translateY(-1px);
}

.ch-modern .article-card,
.ch-modern .card.bg-dark,
.ch-modern .article-floating-thumbnail,
.ch-modern .category-bar {
  background: linear-gradient(165deg, rgba(14, 22, 36, 0.94), rgba(11, 17, 29, 0.95)) !important;
  border: 1px solid rgba(126, 165, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(5, 10, 21, 0.34);
}

.ch-modern .article-card-body,
.ch-modern .card-body {
  background: transparent !important;
}

.article-page {
  width: 100%;
  max-width: 100%;
}

.article-summary-block {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

.article-summary-block h2 {
  color: #f4c84b;
}

.article-body-clean {
  width: 100%;
}

.article-body-clean .article-content::after {
  content: "";
  display: block;
  clear: both;
}

.article-image-inline-wrap {
  float: left;
  width: min(38vw, 340px);
  margin: 0 1rem 0.75rem 0;
}

.article-main-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.article-body-clean .article-content p,
.article-body-clean .article-content li {
  max-width: 100%;
}

.ch-modern .category-btn {
  background: rgba(17, 33, 56, 0.76);
  border: 1px solid rgba(126, 165, 255, 0.25);
  color: var(--ch-text);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
}

.ch-modern .category-btn.active,
.ch-modern .category-btn:hover {
  color: #fff;
  border-color: rgba(79, 140, 255, 0.55);
  background: rgba(35, 66, 112, 0.95);
}

.ch-modern footer {
  background: linear-gradient(180deg, rgba(9, 15, 26, 0.96), rgba(6, 10, 18, 0.98)) !important;
  border-top-color: var(--ch-border) !important;
}

.ch-modern .footer-heading {
  color: #7fd3ff;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
}

.ch-modern .footer-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ch-modern .footer-tag-list a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(126, 165, 255, 0.28);
  background: rgba(14, 26, 45, 0.88);
  color: #d9e9ff;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  text-decoration: none;
}

.ch-modern .footer-tag-list a:hover {
  border-color: rgba(17, 215, 179, 0.7);
  color: #ffffff;
}

.ch-modern .text-muted,
.ch-modern .text-white-50 {
  color: var(--ch-text-soft) !important;
}

.ch-modern .offcanvas {
  background: linear-gradient(180deg, #0a1220 0%, #0d1727 100%);
  color: var(--ch-text);
  width: min(88vw, 360px);
  border-right: 1px solid rgba(126, 165, 255, 0.2);
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 1400;
}

.ch-modern .offcanvas .nav-link {
  color: var(--ch-text);
  border-bottom: 1px solid rgba(126, 165, 255, 0.12);
  padding: 0.8rem 1rem;
}

.ch-modern .offcanvas-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.ch-modern .offcanvas .nav-link:hover {
  background: rgba(79, 140, 255, 0.12);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 10, 18, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1rem 2rem;
}

.search-content {
  width: min(920px, 100%);
  border: 1px solid rgba(126, 165, 255, 0.25);
  background: linear-gradient(175deg, rgba(14, 23, 38, 0.98), rgba(11, 18, 31, 0.98));
  border-radius: 14px;
  padding: 1rem;
}

.search-result-item {
  display: block;
  text-decoration: none;
  color: #d9e9ff;
  border: 1px solid rgba(126, 165, 255, 0.14);
  background: rgba(13, 24, 41, 0.75);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
}

.search-result-item:hover {
  border-color: rgba(79, 140, 255, 0.6);
  color: #ffffff;
}

.legal-shell {
  max-width: 980px;
  margin: 0 auto;
}

.legal-card {
  background: linear-gradient(165deg, rgba(14, 22, 36, 0.96), rgba(10, 16, 28, 0.95));
  border: 1px solid rgba(126, 165, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(4, 9, 19, 0.45);
  padding: clamp(1rem, 3vw, 2rem);
}

.legal-card h1,
.legal-card h2 {
  color: #ebf2ff;
  margin-top: 1.1rem;
}

.legal-card p,
.legal-card li {
  color: #bdd0e8;
  line-height: 1.7;
}

.legal-card a {
  color: #7fd3ff;
}

@media (max-width: 768px) {
  .ch-modern .article-card,
  .ch-modern .article-floating-thumbnail,
  .ch-modern .category-bar {
    border-color: rgba(126, 165, 255, 0.08);
    box-shadow: 0 8px 18px rgba(5, 10, 21, 0.24);
  }

  .ch-modern .hero {
    margin-top: -0.8rem !important;
    margin-bottom: 34px;
    box-shadow: 0 10px 24px rgba(3, 7, 17, 0.35);
  }

  .ch-modern .hero .cta-btn {
    width: 100%;
  }

  .article-main-image {
    border-radius: 6px;
  }

  .article-image-inline-wrap {
    float: none;
    width: 100%;
    max-width: 540px;
    margin: 0 auto 0.9rem;
  }

  .article-page .lead {
    font-size: 1rem;
  }

  .article-top-meta {
    text-align: center;
  }

  .article-summary-block ul {
    display: inline-block;
    text-align: start;
    margin-inline: auto;
    max-width: min(96vw, 640px);
  }

  .search-content {
    border-radius: 10px;
    padding: 0.85rem;
  }
}
