@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

:root {
  --primary:        #215197;
  --primary-dark:   #1a3f7a;
  --primary-light:  #2E86DE;
  --accent:         #3498db;
  --text:           #1a1a2e;
  --text-light:     #555e6d;
  --text-muted:     #8892a4;
  --bg:             #ffffff;
  --bg-alt:         #F7F9FC;
  --bg-dark:        #0c1a33;
  --border:         #e2e8f0;
  --white:          #ffffff;

  --tag-ai:       #215197;
  --tag-oracle:   #c0392b;
  --tag-sql:      #e67e22;
  --tag-news:     #27ae60;
  --tag-felieton: #8e44ad;
  --badge-new:    #e74c3c;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  --container: 1200px;
  --gap: 24px;
  --radius:    6px;
  --radius-lg: 12px;
  --shadow:       0 2px 12px rgba(33,81,151,.08);
  --shadow-hover: 0 8px 28px rgba(33,81,151,.16);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; padding-top: 72px; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── PROGRESS BAR ─────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  z-index: 1000;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── BLOG CATEGORY BAR ────────────────────────── */
.blog-cats-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-cats-bar::-webkit-scrollbar { display: none; }
.blog-cats-bar .container {
  display: flex; align-items: center;
  height: 44px; gap: 4px;
}
.blog-cats-bar a {
  padding: 5px 14px; font-size: .84rem; font-weight: 500;
  color: var(--text-light); white-space: nowrap;
  border-radius: 20px; transition: all var(--transition);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .blog-cats-bar { overflow-x: visible; }
  .blog-cats-bar .container { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .blog-cats-bar a { flex-shrink: 1; }
}
.blog-cats-bar a:hover { color: var(--primary); background: rgba(33,81,151,.06); }
.blog-cats-bar a.active { background: var(--primary); color: white; }

/* ── BLOG HERO ────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  padding: 64px 0 48px; position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.blog-hero .hero-content { position: relative; z-index: 1; }
.blog-hero h1 {
  font-size: 2.4rem; font-weight: 700; color: white;
  letter-spacing: -.02em; margin-bottom: 12px; max-width: 640px;
}
.blog-hero h1 span { color: var(--primary-light); }
.blog-hero p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 520px; }

/* ── TAGS / BADGES ────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 4px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.tag-ai      { background: rgba(33,81,151,.1);  color: var(--primary); }
.tag-oracle  { background: rgba(192,57,43,.1);  color: #c0392b; }
.tag-sql     { background: rgba(230,126,34,.1); color: #e67e22; }
.tag-news    { background: rgba(39,174,96,.1);  color: #27ae60; }
.tag-felieton{ background: rgba(142,68,173,.1); color: #8e44ad; }

.badge-new {
  display: inline-flex; align-items: center;
  padding: 2px 8px; background: var(--badge-new); color: white;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 3px;
}

/* ── FEATURED ARTICLE ─────────────────────────── */
.featured-article {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 48px; transition: all var(--transition);
}
.featured-article:hover { box-shadow: var(--shadow-hover); }
.featured-article .featured-image {
  min-height: 340px; position: relative; overflow: hidden;
  background: linear-gradient(135deg,#1a1a2e 0%,#215197 60%,#2E86DE 100%);
}
.featured-article .featured-body {
  padding: 40px; display: flex; flex-direction: column; justify-content: center;
}
.featured-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary-light); margin-bottom: 12px;
}
.featured-article h2 {
  font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700;
  color: var(--text); line-height: 1.3; margin-bottom: 16px;
}
.featured-article .lead-text {
  font-size: .94rem; color: var(--text-light); line-height: 1.7;
  margin-bottom: 24px; font-weight: 600;
}
.featured-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ── ARTICLE CARDS ────────────────────────────── */
.article-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--transition);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(33,81,151,.2);
}
.article-card .card-image {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
}
.article-card .card-image .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.card-badge-new {
  display: inline-block;
  background: #e63946;
  color: #fff; font-size: .62rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px;
  vertical-align: middle; margin-left: 6px;
  white-space: nowrap;
}
.article-card .card-body {
  padding: 20px; flex: 1;
  display: flex; flex-direction: column;
}
.card-meta {
  display: flex; align-items: center;
  gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.card-date { font-size: .78rem; color: var(--text-muted); }
.reading-time-small {
  font-size: .78rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 3px;
}
.article-card h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  line-height: 1.35; margin-bottom: 10px;
  transition: color var(--transition);
}
.article-card:hover h2 { color: var(--primary); }
.article-card .lead-preview {
  font-size: .88rem; color: var(--text-light); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1; margin-bottom: 16px;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.read-more {
  font-size: .82rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.read-more:hover { gap: 8px; color: var(--primary-light); }

/* ── BLOG INDEX — FEATURED WRAP ───────────────── */
.blog-featured-wrap {
  padding: 40px 0 36px;
}

/* ── BLOG INDEX — ARTICLES SECTION ───────────── */
.blog-articles-section {
  padding: 0 0 56px;
}

/* ── ARTICLE GRID ─────────────────────────────── */
.section-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 28px;
}
.section-title {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 20px;
  background: var(--primary); border-radius: 2px;
}
.articles-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap);
}

/* ── NEWS GRID ────────────────────────────────── */
.blog-news-section {
  padding: 0 0 56px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.news-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap);
}
.news-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--transition);
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(33,81,151,.2);
}
.news-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}
.news-card-body {
  padding: 16px 18px 18px; flex: 1;
  display: flex; flex-direction: column;
}
.news-card .card-meta { margin-bottom: 8px; }
.news-card h3 {
  font-size: .95rem; font-weight: 700; color: var(--text);
  line-height: 1.35; margin-bottom: 8px;
  transition: color var(--transition);
}
.news-card h3 a { color: inherit; }
.news-card:hover h3 { color: var(--primary); }
.news-card .news-lead {
  font-size: .83rem; color: var(--text-light); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1; margin-bottom: 12px;
}
.news-card .card-footer {
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* ── ARTICLE SIDEBAR WIDGETS ─────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.widget-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a {
  padding: 5px 12px; border: 1px solid var(--border);
  border-radius: 20px; font-size: .82rem; color: var(--text-light);
  transition: all var(--transition);
}
.tag-cloud a:hover { border-color: var(--primary); color: var(--primary); background: rgba(33,81,151,.05); }
.recent-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.recent-item { display: flex; gap: 12px; align-items: flex-start; }
.recent-item .recent-thumb {
  width: 52px; height: 52px; border-radius: var(--radius); flex-shrink: 0; overflow: hidden;
}
.recent-item .recent-info h4 {
  font-size: .84rem; font-weight: 600; color: var(--text);
  line-height: 1.3; margin-bottom: 3px; transition: color var(--transition);
}
.recent-item:hover .recent-info h4 { color: var(--primary); }
.recent-item .recent-info span { font-size: .74rem; color: var(--text-muted); }

/* ── NEWSLETTER WIDGET ────────────────────────── */
.newsletter-widget {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none !important;
}
.newsletter-widget .widget-title { color: rgba(255,255,255,.65); border-bottom-color: rgba(255,255,255,.15); }
.newsletter-widget h3 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 8px; }
.newsletter-widget p  { font-size: .84rem; color: rgba(255,255,255,.8); line-height: 1.5; margin-bottom: 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  padding: 10px 14px; border: none; border-radius: var(--radius);
  font-size: .88rem; background: rgba(255,255,255,.15); color: white; outline: none;
  transition: background var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { background: rgba(255,255,255,.25); }
.newsletter-form button {
  padding: 10px 14px; background: white; color: var(--primary);
  border: none; border-radius: var(--radius);
  font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition);
}
.newsletter-form button:hover { background: var(--bg-alt); transform: translateY(-1px); }

/* ── PAGINATION ───────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 40px;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .85rem; font-weight: 500; color: var(--text-light);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: white; }
.pagination .pagination-next { width: auto; padding: 0 14px; font-size: 1.1rem; }

/* ── NEWS PAGE ────────────────────────────────── */
.news-header-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 28px;
}
.news-header-section h1 {
  font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700;
  color: var(--text); line-height: 1.25; margin-bottom: 20px;
  max-width: 780px; letter-spacing: -.01em;
}
.news-article-layout {
  display: grid; grid-template-columns: 52px 1fr 240px;
  gap: 0 36px; padding: 28px 0 56px; align-items: start;
}
.news-body { max-width: 680px; }
.news-lead {
  font-size: 1.06rem; font-weight: 700; color: var(--text);
  line-height: 1.65; margin-bottom: 24px;
  padding-bottom: 24px; border-bottom: 2px solid var(--border);
}
.news-content {
  font-family: var(--font-serif); font-size: 1rem;
  line-height: 1.85; color: var(--text);
}
.news-content p { margin-bottom: 18px; }
.news-source {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin-top: 28px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .84rem; color: var(--text-light);
}
.news-source a { color: var(--primary); font-weight: 600; }
.news-source a:hover { color: var(--primary-light); }
.news-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.news-tags span {
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
}
.news-sidebar {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 20px;
}
.news-related-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.news-related-item { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.news-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-related-item a {
  font-size: .85rem; font-weight: 600; color: var(--text);
  line-height: 1.35; display: block; margin-bottom: 3px;
  transition: color var(--transition);
}
.news-related-item a:hover { color: var(--primary); }
.news-related-item span { font-size: .74rem; color: var(--text-muted); }

/* ── ARTICLE PAGE ─────────────────────────────── */
.article-header-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}
.article-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--text-muted); margin-bottom: 20px;
}
.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb .sep { color: var(--border); }

.article-header-section h1 {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700;
  color: var(--text); line-height: 1.25;
  margin-bottom: 20px; max-width: 800px; letter-spacing: -.01em;
}
.article-meta-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .82rem; color: var(--text-muted);
}

/* ── ACTIONS BAR ──────────────────────────────── */
.article-actions-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border: 1.5px solid var(--border);
  border-radius: 24px; font-size: .82rem; font-weight: 600;
  color: var(--text-light); background: white;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
  font-family: var(--font-sans);
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(33,81,151,.04); }
.action-btn.playing { background: var(--primary); color: white; border-color: var(--primary); }

/* ── ARTICLE LAYOUT ───────────────────────────── */
.article-layout {
  display: grid; grid-template-columns: 52px 1fr 280px;
  gap: 0 40px; padding: 32px 0 64px; align-items: start;
}
.article-body { max-width: 720px; }

/* ── ARTICLE SHARE BAR ────────────────────────── */
.article-share-bar {
  position: sticky; top: 96px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding-top: 2px;
}
.share-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--border); border-radius: 50%;
  background: white; color: var(--text-light);
  cursor: pointer; text-decoration: none;
  font-family: var(--font-sans);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.share-btn:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(33,81,151,.06);
}
.share-btn.copied { border-color: #27ae60; color: #27ae60; }
.share-btn svg { flex-shrink: 0; }

/* Circular scroll progress */
.scroll-progress-circle {
  position: relative; width: 40px; height: 40px;
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}
.spc-bg {
  fill: white;
  transition: fill .3s ease;
}
.spc-track { stroke: var(--border); }
.spc-fill {
  stroke: var(--primary); stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset .12s linear, stroke .3s ease;
}
.spc-icon {
  position: absolute;
  color: var(--text-muted);
  transition: color .3s ease;
}
/* Completed state */
.scroll-progress-circle.completed .spc-bg   { fill: var(--primary); }
.scroll-progress-circle.completed .spc-fill { stroke: var(--primary-light); stroke-dashoffset: 0; }
.scroll-progress-circle.completed .spc-icon { color: white; }

.article-lead {
  font-size: 1.08rem; font-weight: 700; color: var(--text);
  line-height: 1.65; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 2px solid var(--border);
}
.article-hero-image {
  width: 100%; border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 32px;
}

/* ── ARTICLE CONTENT ──────────────────────────── */
.article-content {
  font-family: var(--font-serif); font-size: 1rem; line-height: 1.85; color: var(--text);
}
.article-content h2 {
  font-family: var(--font-sans); font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin: 36px 0 14px; line-height: 1.3;
  scroll-margin-top: 80px;
}
.article-content h3 {
  font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600;
  color: var(--primary); margin: 24px 0 10px;
  scroll-margin-top: 80px;
}
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px; margin: 28px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-light);
}

/* ── KEY POINTS BOX ───────────────────────────── */
.key-points-box {
  background: linear-gradient(135deg,rgba(33,81,151,.05) 0%,rgba(46,134,222,.05) 100%);
  border: 1.5px solid rgba(33,81,151,.2);
  border-radius: var(--radius-lg); padding: 24px; margin: 32px 0;
}
.key-points-box .kp-title {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.key-points-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.key-points-box li {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-sans); font-size: .9rem;
  color: var(--text); line-height: 1.5;
}
.key-points-box li::before {
  content: ''; display: block; width: 8px; height: 8px;
  background: var(--primary-light); border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}

/* ── CONCLUSION ───────────────────────────────── */
.article-conclusion {
  border-top: 2px solid var(--primary);
  padding-top: 24px; margin-top: 36px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  color: var(--text); line-height: 1.65; font-style: italic;
}

/* ── SOURCES ──────────────────────────────────── */
.sources-box {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px; margin-top: 32px;
}
.sources-box .src-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.sources-box ol { margin-left: 20px; }
.sources-box li { font-size: .85rem; color: var(--text-light); margin-bottom: 6px; }
.sources-box a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 2px; }

/* ── ARTICLE SIDEBAR ──────────────────────────── */
.article-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-toc {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.sidebar-toc .toc-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.sidebar-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.sidebar-toc ol li { counter-increment: toc; margin-bottom: 8px; }
.sidebar-toc ol li a {
  display: flex; gap: 8px; font-size: .82rem;
  color: var(--text-light); line-height: 1.4; transition: color var(--transition);
}
.sidebar-toc ol li a::before {
  content: counter(toc) '.'; color: var(--text-muted);
  flex-shrink: 0; font-size: .75rem; margin-top: 1px;
}
.sidebar-toc ol li a:hover { color: var(--primary); }
.sidebar-toc ol li a.active { color: var(--primary); font-weight: 600; }

/* ── RELATED ARTICLES ─────────────────────────── */
.related-articles { padding: 48px 0; border-top: 1px solid var(--border); }
.related-articles h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── NEWSLETTER SECTION ───────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  padding: 64px 0; position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.newsletter-section .inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 520px; margin: 0 auto;
}
.newsletter-section h2 { font-size: 1.75rem; font-weight: 700; color: white; margin-bottom: 12px; }
.newsletter-section p  { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.newsletter-inline-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.newsletter-inline-form input {
  flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius);
  font-size: .9rem; background: rgba(255,255,255,.15); color: white; outline: none;
  font-family: var(--font-sans);
}
.newsletter-inline-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-inline-form input:focus { background: rgba(255,255,255,.25); }
.newsletter-inline-form button {
  padding: 12px 22px; background: white; color: var(--primary);
  border: none; border-radius: var(--radius);
  font-size: .9rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  font-family: var(--font-sans); transition: all var(--transition);
}
.newsletter-inline-form button:hover { background: var(--bg-alt); transform: translateY(-1px); }

/* ── FOOTER ───────────────────────────────────── */
.blog-footer {
  background: var(--bg-dark); color: rgba(255,255,255,.5);
  padding: 32px 0; font-size: .83rem;
}
.blog-footer .footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.blog-footer .footer-logo { font-weight: 700; color: white; font-size: .95rem; }
.blog-footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.blog-footer a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.blog-footer a:hover { color: white; }

/* ── PRINT ────────────────────────────────────── */
@media print {
  .blog-nav, #progress-bar, .article-actions-bar,
  .article-sidebar, .related-articles,
  .newsletter-section, .blog-footer { display: none !important; }
  .article-layout { grid-template-columns: 1fr !important; }
  .article-body { max-width: 100% !important; }
  .article-header-section { background: white; border: none; }
  .article-content h2 { page-break-after: avoid; }
  .article-content p { orphans: 3; widows: 3; }
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1024px) {
  .articles-grid        { grid-template-columns: repeat(2,1fr); }
  .news-grid            { grid-template-columns: repeat(2,1fr); }
  .article-layout       { grid-template-columns: 1fr; }
  .news-article-layout  { grid-template-columns: 1fr; }
  .article-share-bar    { display: none; }
  .article-sidebar      { position: static; }
  .news-sidebar         { position: static; }
  .featured-article     { grid-template-columns: 1fr; }
  .featured-article .featured-image { min-height: 220px; }
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid     { grid-template-columns: repeat(2,1fr); }
  .related-grid  { grid-template-columns: 1fr; }
  .article-header-section h1 { font-size: 1.6rem; }
  .newsletter-inline-form { flex-direction: column; }
}
@media (max-width: 520px) {
  .articles-grid { grid-template-columns: 1fr; }
  .news-grid     { grid-template-columns: 1fr; }
  .featured-article .featured-body { padding: 24px; }
  .container { padding: 0 16px; }
  .article-actions-bar { flex-wrap: wrap; }
}
