:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dce5f2;
  --primary: #2563eb;
  --primary-700: #1d4ed8;
  --gold: #f59e0b;
  --shadow: 0 12px 30px rgba(15,23,42,.06);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.bg-light { background: var(--bg); }

.blog-public-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(220,229,242,.9); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand { font-weight: 900; letter-spacing: 2px; color: #0f172a; }
.public-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.public-nav > a { color: #334155; font-weight: 600; }
.public-nav-dropdown { position: relative; }
.public-nav-dropdown-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #334155;
  font: inherit;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.public-nav-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform .2s ease;
}
.public-nav-dropdown.is-open .public-nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.public-nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 320px;
  max-width: min(92vw, 420px);
  background: rgba(255,255,255,.98);
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(15,23,42,.12);
  display: none;
  z-index: 300;
}
.public-nav-dropdown.is-open .public-nav-dropdown-menu {
  display: grid;
  gap: 4px;
}
.public-nav-dropdown-menu a {
  display: block;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.35;
}
.public-nav-dropdown-menu a:hover,
.public-nav-dropdown-menu a:focus-visible {
  background: #eef4ff;
  color: var(--primary);
  outline: none;
}

.btn { border-radius: 999px; padding: 10px 16px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 24px rgba(37,99,235,.2); }
.btn-primary:hover { background: var(--primary-700); }
.btn-outline { background: #fff; color: #0f172a; border-color: #bfd0ee; }

.blog-hero { padding: 46px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: #eaf1ff; color: var(--primary); padding: 8px 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.blog-hero h1 { margin: 16px 0 12px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.02; color: #0b1a53; }
.blog-hero .intro { max-width: 900px; color: #475569; font-size: 1.05rem; line-height: 1.75; margin: 0; }

.blog-filters-wrap { padding: 6px 0 20px; }
.blog-search-form { display: flex; gap: 12px; margin-bottom: 14px; }
.blog-search-form input { flex: 1; border: 1px solid #cfdae9; border-radius: 14px; padding: 12px 14px; font: inherit; }
.category-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border-radius: 999px; border: 1px solid #c8d8ef; background: #fff; color: #294a7b; padding: 9px 14px; font-weight: 700; font-size: 13px; }
.chip.active { background: #eaf1ff; border-color: #9dbbf8; color: var(--primary); }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding-bottom: 40px; }
.blog-grid.compact { grid-template-columns: repeat(3, minmax(0,1fr)); }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,23,42,.09); }
.blog-card .image-link { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef4ff; }
.blog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.blog-card:hover img { transform: scale(1.03); }
.blog-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #335b95; font-weight: 800; text-align: center; padding: 20px; background: linear-gradient(135deg, #eaf1ff, #f8fbff); }
.blog-card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.category-badge { border-radius: 999px; background: #eaf1ff; border: 1px solid #bfd4fb; color: var(--primary); padding: 5px 9px; font-weight: 800; font-size: 12px; }
.blog-card h2, .blog-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; color: #0f172a; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--primary); }
.blog-card p { margin: 0; color: #475569; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { color: var(--primary); font-weight: 800; }
.empty-state { background: #fff; border: 1px dashed #c9d7ea; border-radius: 16px; padding: 18px; color: #475569; grid-column: 1 / -1; }

/* Legacy/shared blog card style (matches homepage "old" cards) */
.blog-card-legacy {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.blog-card-legacy:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
}
.blog-card-legacy .blog-card-media {
  display: block;
  margin: 0;
  color: inherit;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: auto;
  line-height: 0;
}
.blog-card-legacy .blog-card-media img.blog-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .45s ease;
}
.blog-card-legacy:hover .blog-card-media img.blog-image {
  transform: scale(1.03);
}
.blog-card-legacy .blog-card-placeholder {
  height: 210px;
  display: grid;
  place-items: center;
}
.blog-card-legacy .blog-card-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card-legacy .blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.blog-card-legacy .badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 9px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.blog-card-legacy .blog-meta p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.blog-card-legacy .blog-meta time {
  color: inherit;
}
.blog-card-legacy h2,
.blog-card-legacy h3 {
  font-size: 1.12rem;
  line-height: 1.32;
  margin: 0;
  color: #0f172a;
}
.blog-card-legacy h2 .blog-card-title-link,
.blog-card-legacy h3 .blog-card-title-link {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0f172a;
}
.blog-card-legacy h2 .blog-card-title-link:hover,
.blog-card-legacy h3 .blog-card-title-link:hover {
  color: var(--primary);
}
.blog-card-legacy .blog-card-excerpt {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
}
.blog-card-legacy .blog-card-read-more {
  margin: auto 0 0;
  display: inline-flex;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  align-items: center;
  gap: 6px;
}
.blog-card-legacy .blog-card-read-more::after {
  content: '→';
  transition: transform .2s ease;
}
.blog-card-legacy:hover .blog-card-read-more::after {
  transform: translateX(2px);
}

.public-pagination { justify-content: center; margin-bottom: 50px; }
.public-pagination a { min-width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #0f172a; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.public-pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.breadcrumb-row { padding: 20px 0 10px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.blog-article { padding-bottom: 36px; }
.article-header { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.article-header h1 { margin: 12px 0 10px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; color: #0b1a53; }
.article-excerpt { color: #475569; line-height: 1.7; margin: 0; }
.article-image { width: 100%; max-height: 540px; object-fit: cover; border-radius: 16px; margin-top: 16px; border: 1px solid var(--line); }
.article-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 18px; }
.article-sidebar { display: grid; gap: 14px; align-content: start; position: sticky; top: 98px; height: fit-content; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.sidebar-card h3 { margin: 0 0 10px; font-size: 1rem; }
.toc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc-list li a { color: #334155; }
.toc-list li.h3 { padding-left: 12px; }
.share-buttons { display: grid; gap: 8px; }
.share-buttons a, .share-buttons button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 10px; text-align: left; font: inherit; cursor: pointer; color: #334155; }

.prose { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); line-height: 1.8; color: #334155; }
.prose h2, .prose h3 { color: #0f172a; margin-top: 1.4em; scroll-margin-top: 100px; }
.prose p { margin: .9em 0; }
.prose ul, .prose ol { padding-left: 20px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.prose a { color: var(--primary); text-decoration: underline; }
.panel-soft-public { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.cta-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.related-posts { padding-bottom: 50px; }
.related-posts h2 { margin: 10px 0 14px; font-size: 1.6rem; color: #0b1a53; }

.empty-page { padding: 60px 0; }
.empty-page h1 { margin: 10px 0; font-size: clamp(2rem, 6vw, 3rem); color: #0b1a53; }
.empty-page p { color: #475569; }

/* CMS single-post layout (ported from the approved static blog style) */
.blog-detail-hero-cms {
  padding: 8px 0 14px;
}
.blog-detail-category-cms {
  display: inline-flex;
  margin-top: 6px;
}
.blog-detail-title-cms {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  color: #0b1437;
  max-width: 980px;
}
.blog-detail-meta-cms {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
}
.blog-detail-meta-cms span:not(:first-child)::before {
  content: '•';
  margin-right: 14px;
  color: #94a3b8;
}
.blog-detail-excerpt-cms {
  margin: 12px 0 0;
  max-width: 880px;
  color: #475569;
  line-height: 1.72;
}
.blog-featured-cms {
  margin: 18px 0 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #dbe3f2;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}
.blog-featured-cms img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.blog-detail-main-cms {
  padding: 18px 0 48px;
}
.blog-detail-layout-cms {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: start;
}
.blog-article-cms {
  background: #ffffff;
  border: 1px solid #dbe3f2;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.blog-content-cms.prose {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  color: #334155;
  line-height: 1.78;
}
.blog-content-cms.prose h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.1vw, 1.72rem);
  line-height: 1.25;
}
.blog-content-cms.prose h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
}
.blog-content-cms.prose p {
  margin: 0;
}
.blog-content-cms.prose p + p {
  margin-top: 14px;
}
.blog-content-cms.prose ul {
  margin: 14px 0;
  padding-left: 24px;
  display: grid;
  gap: 7px;
}
.blog-content-cms.prose a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-tight-top-cms {
  margin-top: 28px;
}
.section-head-cms {
  margin-bottom: 14px;
}
.section-head-cms h2 {
  margin: 6px 0 0;
  font-size: 1.45rem;
  color: #0f172a;
}
.eyebrow-cms {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eaf1ff;
  color: #2563eb;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}
.blog-toc-cms {
  background: #ffffff;
  border: 1px solid #dbe3f2;
  border-radius: 18px;
  padding: 18px;
  position: sticky;
  top: 96px;
}
.blog-toc-cms h2 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  color: #0f172a;
}
.blog-toc-cms ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.blog-toc-cms li {
  margin: 0;
}
.blog-toc-cms a,
.blog-toc-cms span {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.4;
}
.blog-toc-cms a:hover {
  color: #2563eb;
}
.blog-toc-cms .toc-level-3 {
  padding-left: 14px;
}
.blog-faq-list-cms {
  display: grid;
  gap: 12px;
}
.blog-faq-item-cms {
  border: 1px solid #dbe3f2;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 16px;
}
.blog-faq-item-cms summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  padding: 16px 0;
}
.blog-faq-item-cms summary::-webkit-details-marker {
  display: none;
}
.blog-faq-item-cms p {
  margin: 0;
  color: #475569;
  padding: 0 0 16px;
  line-height: 1.62;
}
.blog-share-row-cms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-share-row-cms h2 {
  font-size: 1rem;
  margin: 0 8px 0 0;
  color: #0f172a;
}
.blog-share-btn-cms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 14px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.blog-share-btn-cms:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.blog-cta-box-cms {
  border-radius: 22px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(145deg, #eff6ff, #ffffff);
  padding: 28px;
}
.blog-cta-box-cms h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  color: #0f172a;
}
.blog-cta-box-cms p {
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.7;
}
.blog-cta-actions-cms {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-cta-actions-cms .btn {
  min-width: 190px;
}
.blogs-grid-cms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Legacy single blog detail style (matches older/static blog pages) */
.blog-detail-hero {
  padding-top: 8px;
  padding-bottom: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
  border-radius: 20px;
  border: 1px solid #dbe3f2;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  padding-inline: 18px;
}
.blog-detail-category {
  margin-top: 4px;
}
.blog-detail-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  max-width: 980px;
  color: #0b1437;
}
.blog-detail-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
}
.blog-detail-meta span:not(:first-child)::before {
  content: '•';
  margin-right: 14px;
  color: #94a3b8;
}
.blog-detail-excerpt {
  margin: 12px 0 0;
  max-width: 880px;
  color: #475569;
  line-height: 1.72;
}
.blog-featured {
  margin-top: 18px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #dbe3f2;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}
.blog-featured img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.blog-detail-main {
  padding-top: 18px;
  padding-bottom: 48px;
}
.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: start;
}
.blog-article {
  background: #ffffff;
  border: 1px solid #dbe3f2;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.blog-content {
  color: #334155;
  line-height: 1.78;
}
.blog-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.1vw, 1.72rem);
  line-height: 1.25;
}
.blog-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
}
.blog-content p {
  margin: 0;
  color: #334155;
  line-height: 1.78;
}
.blog-content h2,
.blog-content h3,
.blog-content p,
.blog-content li {
  overflow-wrap: anywhere;
}
.blog-content p + p {
  margin-top: 14px;
}
.blog-content ul,
.blog-content ol {
  margin: 14px 0;
  padding-left: 24px;
  display: grid;
  gap: 7px;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #dbe3f2;
}
.blog-content a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-tight-top {
  margin-top: 28px;
}
.section-head {
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: 1.45rem;
  color: #0f172a;
}
.blog-toc {
  background: #ffffff;
  border: 1px solid #dbe3f2;
  border-radius: 18px;
  padding: 18px;
  position: sticky;
  top: 96px;
}
.blog-toc h2 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  color: #0f172a;
}
.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.blog-toc a,
.blog-toc span {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.blog-toc a:hover {
  color: #2563eb;
}
.blog-toc .toc-level-3 {
  padding-left: 14px;
}
.blog-faq-list {
  display: grid;
  gap: 12px;
}
.blog-faq {
  margin-top: 28px;
}
.blog-faq-head {
  margin-bottom: 14px;
}
.blog-faq-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eaf1ff;
  color: #2563eb;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}
.blog-faq-head h2 {
  margin: 6px 0 0;
  font-size: 1.45rem;
  color: #0f172a;
}
.blog-faq-item {
  border: 1px solid #dbe3f2;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 16px;
}
.blog-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  padding: 16px 0;
}
.blog-faq-item summary::-webkit-details-marker {
  display: none;
}
.blog-faq-item p {
  margin: 0;
  color: #475569;
  padding: 0 0 16px;
  line-height: 1.62;
}
.blog-share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-share-row h2 {
  font-size: 1rem;
  margin: 0 8px 0 0;
  color: #0f172a;
}
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 14px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.blog-share-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.blog-cta-box {
  border-radius: 22px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(145deg, #eff6ff, #ffffff);
  padding: 28px;
}
.blog-cta-box h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  color: #0f172a;
}
.blog-cta-box p {
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.7;
}
.blog-cta-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-cta-actions .btn {
  min-width: 190px;
}
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-public-footer { border-top: 1px solid #dde6f2; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 36px; }
.footer-inner p { color: #64748b; max-width: 560px; margin: 8px 0 0; line-height: 1.7; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { color: #334155; font-weight: 600; }

@media (max-width: 1100px) {
  .public-nav { gap: 12px; }
  .blog-grid, .blog-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .blogs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .blogs-grid-cms { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .blog-detail-layout { grid-template-columns: 1fr; }
  .blog-toc { position: static; }
  .blog-detail-layout-cms { grid-template-columns: 1fr; }
  .blog-toc-cms { position: static; order: -1; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(1200px, calc(100% - 24px)); }
  .nav-wrap { min-height: auto; padding: 12px 0; align-items: start; flex-direction: column; }
  .public-nav { width: 100%; gap: 10px; }
  .public-nav .btn { padding: 8px 12px; }
  .public-nav-dropdown { width: 100%; }
  .public-nav-dropdown-toggle { width: 100%; justify-content: flex-start; }
  .public-nav-dropdown-menu {
    position: static;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 10px 22px rgba(15,23,42,.08);
  }

  .blog-search-form { flex-direction: column; }
  .blog-grid, .blog-grid.compact { grid-template-columns: 1fr; }
  .blogs-grid { grid-template-columns: 1fr; }
  .blogs-grid-cms { grid-template-columns: 1fr; }
  .blog-detail-hero { padding: 12px 12px 14px; border-radius: 16px; }
  .blog-article { padding: 18px; }
  .blog-cta-box { padding: 20px; }
  .blog-cta-actions .btn { width: 100%; min-width: 0; }
  .blog-detail-title-cms { font-size: clamp(1.8rem, 8vw, 2.35rem); }
  .blog-article-cms { padding: 18px; }
  .blog-cta-box-cms { padding: 20px; }
  .blog-cta-actions-cms .btn { width: 100%; min-width: 0; }
  .article-sidebar { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
