/* cyrillic-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOOaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIMeaBXso.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOuaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOOaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIMeaBXso.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOuaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOOaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIMeaBXso.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOuaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOOaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIMeaBXso.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOuaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOOaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIMeaBXso.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOuaBXso.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --topbar-height: 0px;
  --header-height: 80px;
  --blue: #2882fa;
  --blue-light: #ebf3fe;
  --blue-dark: #1573e8;
  --text: #1a1a2e;
  --text-secondary: #5f6b7a;
  --text-muted: #8b95a5;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --bg-dark: #1a1a2e;
  --accent-green: #059669;
  --stat-bg: #ebf3fe;
  --stat-border: #2882fa;
  --cta-gradient: linear-gradient(135deg, #2882fa 0%, #1573e8 100%);
  --font:
    "Nunito", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content-width: 700px;
  --sidebar-width: 200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--blue-dark);
}

/* ============================================
     PAGE WRAPPER
     ============================================ */
.blog-page {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 32px;
}

@media (min-width: 1060px) {
  .single-post .landing-container {
    width: 66rem;
  }
}

/* ============================================
     HERO
     ============================================ */
.blog-hero {
  padding: 56px 0 20px;
  text-align: left;
}
.blog-hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}
.blog-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 580px;
  font-weight: 400;
}

/* ============================================
     FILTER BAR
     ============================================ */
.filter-bar {
  padding: 16px 0 0;
  background: var(--bg);
}
.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pill:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.pill.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ============================================
     ARTICLE GRID
     ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 16px 0 48px;
  max-width: 820px;
}

.article-card {
  padding: 22px 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.article-card:hover .card-title {
  color: #0f52b8;
}

.card-cat {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
  align-self: flex-start;
  background: #e8f5f0;
  color: #047857;
}
.card-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.card-cats .card-cat {
  margin-bottom: 0;
}

.card-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.card-desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 400;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  display: none;
}
.empty-state.show {
  display: block;
}
.empty-state-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 14px;
}

/* ============================================
     PAGINATION
     ============================================ */
.pagination-wrap {
  padding: 32px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--text-muted);
  color: var(--text);
}
.page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  cursor: default;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-btn.arrow {
  padding: 0 14px;
}
.page-ellipsis {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 4px;
  user-select: none;
}

/* ============================================
     RESPONSIVE
     ============================================ */
@media (max-width: 768px) {
  .blog-page {
    padding: 0 20px;
  }

  .blog-hero {
    padding: 40px 0 28px;
  }
  .blog-hero h1 {
    font-size: 32px;
  }
  .blog-hero p {
    font-size: 16px;
  }

  .filter-bar {
    padding: 18px 0 8px;
  }

  .article-grid {
    padding: 16px 0 32px;
  }
  .article-card {
    padding: 16px 0;
  }
  .card-title {
    font-size: 21px;
  }
  .card-desc {
    font-size: 15.5px;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 28px;
  }
}

/*  Single blog page  */

/* ============================================
     READING PROGRESS BAR — NEW
     ============================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 35%;
  height: 3px;
  background: var(--blue);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ============================================
     BREADCRUMB
     ============================================ */
.breadcrumb-bar {
  margin-top: calc(var(--topbar-height) + 2.5rem);
  margin-left: auto;
  margin-right: auto;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-bar nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: -6px;
}
.breadcrumb-bar a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 6px;
}
.breadcrumb-bar a:hover {
  color: var(--text-secondary);
}
.breadcrumb-bar span {
  margin: 0 6px;
}

/* ============================================
     ARTICLE HEADER
     ============================================ */
.article-header {
  max-width: 870px;
  margin-top: calc(var(--topbar-height));
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
  text-align: center;
}
.category-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.category-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 20px;
}
.article-header h1 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}
.article-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto 20px;
  font-weight: 400;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.article-meta strong {
  color: var(--text-secondary);
  font-weight: 700;
  margin-left: 5px;
}
.meta-shield {
  width: 14px;
  height: 14px;
  color: var(--blue);
  flex-shrink: 0;
  margin-right: 4px;
  vertical-align: -2px;
}
.meta-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.meta-avatar svg {
  width: 16px;
  height: 16px;
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================
     EDITORIAL PROCESS (collapsible)
     ============================================ */
.editorial-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  margin: 8px auto 0;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.editorial-toggle:hover {
  background: #fff;
  border-color: var(--text-muted);
  color: var(--text);
}
.editorial-toggle .toggle-icon {
  width: 14px;
  height: 14px;
  color: var(--blue);
  flex-shrink: 0;
}
.editorial-toggle .chev {
  transition: transform 0.25s;
  font-size: 10px;
  line-height: 1;
  color: var(--text-muted);
  margin-left: 2px;
}
.editorial-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.editorial-process {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    margin-top 0.25s ease,
    padding 0.25s ease;
  padding: 0 24px;
}
.editorial-process.open {
  max-height: 800px;
  opacity: 1;
  padding: 24px 24px;
  margin-bottom: 24px;
}
.editorial-process-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 16px;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.process-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.article-content .process-step-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.article-content .process-step-body p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
}
.process-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.process-link:hover {
  border-bottom-color: var(--blue);
}
.process-link svg {
  flex-shrink: 0;
}

/* ============================================
     MAIN CONTENT LAYOUT
     ============================================ */
.article-layout {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 88px;
  position: relative;
}

/* ============================================
     STICKY TOC — UPDATED (sticky + active)
     ============================================ */
.toc-sidebar {
  position: relative;
}
.toc-sticky {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
.toc-sticky ul {
  list-style: none;
  font-size: 14.5px;
  line-height: 1.45;
}
.toc-sticky li {
  margin-bottom: 4px;
}
.toc-sticky a {
  text-decoration: none;
  color: var(--text-muted);
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  max-width: 220px;
}
.toc-sticky a:hover {
  color: var(--text-secondary);
}
.toc-sticky a.active {
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 600;
}

/* ============================================
     ARTICLE CONTENT
     ============================================ */
.article-content {
  max-width: var(--content-width);
}

/* Key takeaways */
.key-takeaways {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}
.key-takeaways-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.key-takeaways-title span {
  font-size: 16px;
}
.key-takeaways ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text-secondary);
}
.key-takeaways li {
  margin-bottom: 8px;
}

/* Headings */
.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 44px 0 16px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* Body text */
.article-content p {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
}
.article-content strong {
  font-weight: 700;
}

/* Stat callout */
.stat-callout {
  background: var(--stat-bg);
  border-left: 4px solid var(--stat-border);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  margin: 28px 0;
}
.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
     INLINE CTA
     ============================================ */
.inline-cta {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 32px;
  margin: 36px 0;
  text-align: center;
  color: #fff;
}
.inline-cta h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}
.inline-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-bottom: 18px;
}
.inline-cta .btn-cta {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}

/* ============================================
     SHARING BUTTONS
     ============================================ */
.share-row {
  display: flex;
  gap: 8px;
  margin: 32px 0;
}
.share-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-muted);
}
.share-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

/* ============================================
     FAQ
     ============================================ */
.faq-section {
  margin: 40px 0;
}
.faq-section h2 {
  font-size: 26px;
  margin-bottom: 20px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--bg);
}
.faq-q:hover {
  background: var(--bg-soft);
}
.faq-chevron {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 22px 18px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}
.faq-item.open .faq-a {
  display: block;
}

/* ============================================
     AUTHOR / BRAND BOX — trust-signal style
     ============================================ */
.brand-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 30px;
  margin: 40px 0;
}
.brand-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.brand-box-header svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
  flex-shrink: 0;
}
.brand-box h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 12px;
}
.brand-box p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.brand-box-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.brand-box-link:hover {
  border-bottom-color: var(--blue-dark);
}
.brand-box-link svg {
  flex-shrink: 0;
}

/* ============================================
     PRIMARY CTA — "Simple Start" style
     ============================================ */
.primary-cta {
  background: linear-gradient(135deg, #f2f7fe 0%, #e8f0fc 100%);
  border: 1px solid #d8e4f8;
  border-radius: 16px;
  padding: 36px 40px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.cta-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 100px;
  align-self: flex-start;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(40, 130, 250, 0.25);
}
.primary-cta h2.cta-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 4px;
}
.cta-free {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.04em;
  margin: 6px 0 14px;
}
.cta-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
  max-width: 320px;
}
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cta-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cta-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
  font-weight: 400;
}
.cta-feature strong {
  color: var(--text);
  font-weight: 700;
}
.cta-check {
  width: 18px;
  height: 18px;
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}
.cta-action {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
  box-shadow: 0 8px 22px rgba(40, 130, 250, 0.35);
  transition:
    background 0.15s,
    transform 0.1s;
}
.cta-action:hover {
  background: var(--blue-dark);
}
.cta-action:active {
  transform: translateY(1px);
}

/* ============================================
     RELATED ARTICLES — homepage card style
     ============================================ */
.related-section {
  margin: 64px 0 60px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.related-header {
  margin-bottom: 8px;
}
.related-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.related-card {
  padding: 24px 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.related-card:hover h4 {
  color: #0f52b8;
}

.related-card-cat {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
  align-self: flex-start;
  background: #e8f5f0;
  color: #047857;
}
.related-card h4 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--blue-dark);
  transition: color 0.15s;
}
.related-card .related-card-desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: 400;
}
.related-card .card-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.related-card .card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ============================================
     LABEL for new elements
     ============================================ */
.new-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Annotation overlays */
.annotation-wrapper {
  position: relative;
}
.annotation {
  position: absolute;
  right: -220px;
  width: 200px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
  border: 1px solid #bbf7d0;
}
.annotation::before {
  content: "←";
  margin-right: 4px;
}

/* TOC mobile toggle button — hidden on desktop */
.toc-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 0;
  }
  /* TOC hidden on mobile — reading progress bar handles navigation */
  .toc-sidebar {
    display: none;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
  .annotation {
    display: none;
  }
  .article-header h1 {
    font-size: 32px;
  }
  .article-header {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .article-meta {
    flex-wrap: wrap;
    gap: 6px 10px;
    justify-content: center;
  }
  /* Первая строка на мобиле: Date · Read time */
  .article-meta > span:nth-child(5) {
    order: 1;
  } /* Date */
  .article-meta > div:nth-child(6) {
    order: 2;
    display: block;
  } /* dot */
  .article-meta > span:nth-child(7) {
    order: 3;
  } /* Read time */
  /* Перенос строки */
  .article-meta::before {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 4;
  }
  /* Вторая строка: By Neurotool · Reviewed by */
  .article-meta > span:nth-child(1) {
    order: 5;
  } /* By Neurotool */
  .article-meta > div:nth-child(2) {
    order: 6;
    display: block;
  } /* dot */
  .article-meta > span:nth-child(3) {
    order: 7;
  } /* Reviewed by */
  /* Скрываем dot перед датой — он теперь не нужен */
  .article-meta > div:nth-child(4) {
    display: none;
  }
  .article-content h2 {
    font-size: 22px;
  }
  .article-content p {
    font-size: 17px;
    line-height: 1.7;
  }
  .stat-number {
    font-size: 36px;
  }
  .primary-cta {
    padding: 28px 24px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .primary-cta h2.cta-title {
    font-size: 26px;
  }
  .cta-free {
    font-size: 48px;
  }
  .cta-tagline {
    max-width: 100%;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-card {
    padding: 20px 0;
  }
  .related-card h4 {
    font-size: 19px;
  }
  .related-card-desc {
    font-size: 14.5px;
  }
  .related-title {
    font-size: 22px;
  }
  .related-section {
    padding-top: 36px;
    margin-top: 40px;
  }
  .brand-box {
    padding: 22px 22px;
  }
  .inline-cta {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 26px;
  }
}
