/* V4 page styles - the blogs-new.min.css rules that the blog index and post
 * pages actually use, plus the JS/DB-state classes in
 * docs/v4-cleanup/css-keep.txt.
 * Renamed from blogs-new.min.css and pruned by
 * docs/v4-cleanup/tools/build-v4-compat.cjs; pretty-printed and hand-editable. */

/* ---- blogs-new.min.css ---- */
.blog-article,
.blog-card {
  box-shadow: var(--shadow,0 4px 24px rgba(52,103,167,.1));
}
.blog-article-content a:hover,
.blog-card-meta .fa-folder,
.blog-card-meta .fa-folder-open,
.blog-post-meta-cat {
  color: var(--blue,#3467a7);
}
[dir=rtl] .blog-article-body,
[dir=rtl] .blog-article-content,
[dir=rtl] .blog-article-content blockquote,
[dir=rtl] .blog-article-content h2,
[dir=rtl] .blog-article-content h3,
[dir=rtl] .blog-article-content h4,
[dir=rtl] .blog-article-content ol,
[dir=rtl] .blog-article-content p,
[dir=rtl] .blog-article-content th,
[dir=rtl] .blog-article-content ul,
[dir=rtl] .blog-article-excerpt,
[dir=rtl] .blog-card-body,
[dir=rtl] .blog-hero,
[dir=rtl] .blog-hero-inner,
[dir=rtl] .blog-index-hero,
[dir=rtl] .blog-related-section {
  text-align: right;
}
.blog-page {
  background: var(--white,#eef4f8);
  padding: 56px 0 80px;
}
.blog-page--article,
.blog-page--index {
  padding-top: 40px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}
@media (min-width:900px) {
  .blog-grid>article:first-child {
    grid-column: span 2;
    flex-direction: row;
  }
}
.blog-article h1,
.blog-article-content h2 {
  font-family: var(--font-display, 'Exo 2', sans-serif);
  font-weight: 800;
}
.blog-back-link:hover,
.blog-page-number.active {
  color: #fff;
  background: var(--blue,#3467a7);
}
.blog-page-number.active {
  border-color: var(--blue,#3467a7);
}
.blog-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: 0 0;
  z-index: 9999;
  pointer-events: none;
}
.blog-reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,var(--blue-dark,#1b3660) 0,var(--cyan,#1caadd) 100%);
  transition: width .12s linear;
}
.blog-article-shell {
  max-width: 900px;
  margin: 0 auto;
}
.blog-article {
  background: #fff;
  border: 1px solid var(--border,#d4e5f2);
  border-radius: var(--radius-lg,20px);
  overflow: hidden;
}
.blog-article h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue-dark,#1b3660);
  line-height: 1.2;
  margin: 12px 0 0;
}
.blog-article-content {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #2d3b55;
}
.blog-article-content,
.blog-article-content>:first-child {
  margin-top: 0;
}
.blog-article-content iframe,
.blog-article-content img,
.blog-article-content table {
  max-width: 100%;
}
.blog-article-content p {
  margin: 0 0 1em;
}
.blog-article-content h2 {
  color: var(--blue-dark,#1b3660);
  font-size: 1.45rem;
  margin-top: 2em;
  margin-bottom: .6em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--border,#d4e5f2);
}
.blog-article-content h3,
.blog-article-content h4,
.blog-article-content th {
  font-weight: 700;
  font-family: var(--font-display, 'Exo 2', sans-serif);
}
.blog-article-content h4 {
  color: var(--blue-mid,#255190);
  font-size: 1.05rem;
  margin-top: 1.4em;
  margin-bottom: .4em;
}
.blog-article-content a {
  color: var(--cyan,#1caadd);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-article-content ol,
.blog-article-content ul {
  padding-left: 1.6em;
  margin: .5em 0 1em;
}
.blog-article-content ul li {
  list-style: none;
  position: relative;
  padding-left: .4em;
  margin-bottom: .35em;
}
.blog-article-content ul li::before {
  content: '';
  position: absolute;
  left: -1.1em;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan,#1caadd);
  flex-shrink: 0;
}
.blog-article-share-bottom .blog-hero-share a:hover,
.blog-article-share-bottom .blog-hero-share-copy:hover,
.blog-tags span:hover {
  background: var(--blue,#3467a7);
  border-color: var(--blue,#3467a7);
  color: #fff;
}
@media (max-width:1100px) {
  .blog-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .blog-grid>article:first-child {
    grid-column: span 2;
  }
}
@media (max-width:768px) {
  .blog-page {
    padding: 40px 0 60px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .blog-grid>article:first-child {
    grid-column: span 1;
    flex-direction: column;
  }
  .blog-article-body {
    padding: 22px;
  }
  .blog-article-content h2,
  .blog-related-section h2 {
    font-size: 1.25rem;
  }
}
[dir=rtl] .blog-article-content ul li::before {
  left: auto;
  right: -1.1em;
}
[dir=rtl] .blog-article-content ol,
[dir=rtl] .blog-article-content ul {
  padding-left: 0;
  padding-right: 1.6em;
}
.blog-article-share-label,
.blog-hero-back {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-weight: 700;
}
.blog-hero-back,
.blog-hero-share a,
.blog-hero-share-copy {
  background: rgba(255,255,255,.12);
  text-decoration: none;
  backdrop-filter: blur(6px);
  color: #fff;
}
.blog-hero-back,
.blog-hero-share {
  align-items: center;
  display: inline-flex;
}
.blog-hero-share {
  gap: 8px;
}
.blog-hero-share a,
.blog-hero-share-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s,transform .2s,color .2s,border-color .2s;
}
.blog-hero-share a:hover,
.blog-hero-share-copy:hover {
  background: var(--cyan,#1caadd);
  border-color: var(--cyan,#1caadd);
  transform: translateY(-3px);
}
.blog-hero-share-copy.is-copied {
  background: #2ecc71;
  border-color: #2ecc71;
}
.blog-page--article {
  padding-top: 56px;
}
.blog-article-body {
  padding: 40px 44px 44px;
}
.blog-article-share-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border,#d4e5f2);
}
.blog-article-share-label {
  font-size: .85rem;
  color: var(--blue-dark,#1b3660);
  letter-spacing: .02em;
}
.blog-article-share-bottom .blog-hero-share a,
.blog-article-share-bottom .blog-hero-share-copy {
  background: var(--blue-pale,#eaf1fa);
  border: 1px solid var(--border,#d4e5f2);
  color: var(--blue,#3467a7);
  backdrop-filter: none;
}
.blog-article-share-bottom .blog-hero-share-copy.is-copied {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
}
[dir=rtl] .blog-article-share-bottom {
  flex-direction: row-reverse;
}
@media (max-width:991px) {
  .blog-article-body {
    padding: 32px 30px 36px;
  }
}
@media (max-width:767px) {
  .blog-hero-share {
    justify-content: center;
    flex-wrap: wrap;
  }
  .blog-hero-share a,
  .blog-hero-share-copy {
    width: 38px;
    height: 38px;
    font-size: .85rem;
  }
  .blog-article-body {
    padding: 24px 20px 28px;
  }
  .blog-article-share-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .blog-article-share-bottom .blog-hero-share {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion:reduce) {
  .blog-card,
  .blog-card-footer .btn-main .icon-fa,
  .blog-card-media img,
  .blog-hero-back,
  .blog-hero-share a,
  .blog-hero-share-copy,
  .blog-reading-progress-bar {
    transition: none;
  }
}
.blog-category-footer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border,#E5E7EB);
}
.blog-category-label {
  font-family: var(--font-body,'Montserrat',sans-serif);
  font-size: .9rem;
  font-weight: 600;
  color: #64748B;
}
.blog-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background-color: #F4F0E8;
  color: #1B3660;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color .2s ease;
}
.blog-category-badge:hover {
  background-color: #EBE4D8;
}
